/* Skirnir – Rechtstexte und Fehlerseite (Anthrazit & Gold, passend zum Logo); die Anmeldeseite nutzt login.css */
/*
 * Stylesheet der öffentlichen Webseite (Startseite, Impressum, Datenschutz, 404).
 * Die eigentliche Anwendung nutzt ein eigenes Stylesheet (public/css/app.css).
 * Aufbau: Design-Variablen, Grundlagen, danach ein Abschnitt je Seitenbereich in der Reihenfolge der Seite
 * (Kopfzeile, Hero, Funktionen, Sicherheit, Pakete, FAQ, Kontakt, Fußzeile, Rechtstexte).
 * Keine externen Schriften oder Bilder aus dem Netz - die Content-Security-Policy erlaubt nur die eigene Domain.
 * Hinweis: Die Webseite hat bewusst KEINEN automatischen Dark-Mode und keine Druckregeln;
 * dunkle Bereiche entstehen ausschließlich über die Klasse .dark (Abschnitt 'Hero' und weitere).
 */

/* ===================================================================== */
/* ===== Design-Variablen ===== */
/* gold/night: Markenfarben (Gold und Anthrazit); paper/card/ink/muted/line: helle Flächen und Textfarben;
   on-dark: Textfarben auf dunklen Abschnitten; ok/danger: Rückmeldefarben der Formulare;
   wrap: maximale Inhaltsbreite; radius: Eckenrundung der Karten. */
:root {
  --gold: #d4ae6a;
  --gold-2: #e8c98c;
  --gold-strong: #a8823f;
  --night: #121212;
  --night-2: #1b1b1a;
  --night-3: #262523;
  --paper: #f6f3ee;
  --card: #ffffff;
  --ink: #1b1a18;
  --ink-2: #4a4640;
  --muted: #7a746b;
  --line: #e3ddd2;
  --on-dark: #efe9de;
  --on-dark-2: #b9b0a2;
  --ok: #2f7d4f;
  --danger: #b3261e;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* ===================================================================== */
/* ===== Grundlagen und Hilfsklassen ===== */
/* scroll-padding-top: Sprungmarken (#funktionen ...) verschwinden nicht unter der fixierten Kopfzeile.
   .sr-only: nur für Screenreader sichtbar; :focus-visible: deutlicher Fokusring für Tastaturnutzer. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-strong); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: .8rem; }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.dark .lead { color: var(--on-dark-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ===================================================================== */
/* ===== Buttons ===== */
/* ------------------------------------------------ Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 10px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1b1a18; border-color: var(--gold-strong); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: #4a463f; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--night); color: var(--gold); border-color: var(--night); }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--gold-strong); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-block { width: 100%; }

/* ===================================================================== */
/* ===== Kopfzeile (fixiert, halbtransparent) und mobiles Menü ===== */
/* ------------------------------------------------ Kopfzeile */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(18, 18, 18, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid #2d2b27; }
.site-head .wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo img { height: 40px; border-radius: 5px; }
.logo span { color: var(--gold); font-weight: 650; letter-spacing: .26em; font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.site-nav a { color: var(--on-dark-2); text-decoration: none; padding: .5rem .75rem; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { color: #fff; background: var(--night-3); }
.site-nav .btn { margin-left: .5rem; padding: .55rem 1rem; }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: #1b1a18; background: var(--gold); }
.site-nav a.btn-gold:hover { background: var(--gold-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #3a3833; color: var(--on-dark); border-radius: 8px; padding: .45rem .7rem; font-size: 1.15rem; cursor: pointer; }
/* Responsive: Tablet (bis 900 px) - Kopfzeile wird zum Ausklappmenü (Schalter .nav-toggle, per site.js) */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--night); padding: .6rem 20px 1.2rem; border-bottom: 1px solid #2d2b27; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: .5rem 0 0; }
}

/* ===================================================================== */
/* ===== Hero und Anmeldekarte (Login-Formular, Willkommensansicht) ===== */
/* ------------------------------------------------ Hero */
.dark { background: var(--night); color: var(--on-dark); }
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(1200px 500px at 15% -10%, rgba(212, 174, 106, .16), transparent 60%),
  radial-gradient(800px 400px at 110% 110%, rgba(212, 174, 106, .10), transparent 60%), var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: var(--on-dark-2); }
.hero-logo { width: min(300px, 100%); border-radius: 12px; margin-bottom: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-points { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2rem; padding: 0; list-style: none; color: var(--on-dark-2); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points svg { color: var(--gold); flex-shrink: 0; }
/* Responsive: Hero wird einspaltig */
@media (max-width: 900px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { width: 100%; max-width: 240px; }
}

/* Anmeldekarte */
.login-card { background: var(--card); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); border-top: 4px solid var(--gold); }
.login-card h2 { font-size: 1.45rem; margin-bottom: .2rem; }
.login-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.fld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .95rem; }
.fld label { font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #cfc7b9; border-radius: 10px; padding: .7rem .85rem; width: 100%; }
.fld textarea { min-height: 130px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold-strong); box-shadow: 0 0 0 3px rgba(212, 174, 106, .35); }
.form-msg { border-radius: 10px; padding: .7rem .9rem; font-size: .93rem; margin-bottom: .9rem; }
.form-msg.err { background: #fbe5e3; color: var(--danger); }
.form-msg.ok { background: #e3f2e8; color: var(--ok); }
.login-card .foot { margin-top: 1rem; font-size: .85rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.login-card .foot svg { flex-shrink: 0; margin-top: .15rem; color: var(--gold-strong); }
.welcome { text-align: center; }
.welcome .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--night); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; margin: 0 auto .8rem; }

/* ===================================================================== */
/* ===== Allgemeine Abschnitte, Problem- und Funktionsraster ===== */
/* ------------------------------------------------ Abschnitte */
.section { padding: 96px 0; }
.section.alt { background: #fff; }
.section-head { margin-bottom: 48px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

.strip { background: var(--night-2); border-top: 1px solid #2d2b27; border-bottom: 1px solid #2d2b27; color: var(--on-dark-2); }
.strip ul { list-style: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding: 22px 0; margin: 0; font-size: .93rem; }
.strip li { display: flex; align-items: center; gap: .55rem; }
.strip svg { color: var(--gold); }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.problem .num { font-size: .8rem; font-weight: 700; color: var(--gold-strong); letter-spacing: .1em; }
.problem h3 { margin-top: .4rem; }
.problem p { color: var(--ink-2); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .problems { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--night); color: var(--gold); display: grid; place-items: center; margin-bottom: 1rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ===== Produktbilder ===== */
/* Produktbilder */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase.rev .show-text { order: 2; }
.show-text ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.show-text li { display: flex; gap: .7rem; margin-bottom: .75rem; color: var(--ink-2); }
.show-text li svg { color: var(--gold-strong); flex-shrink: 0; margin-top: .25rem; }
.frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 60px rgba(30, 24, 12, .18); border: 1px solid var(--line); }
.frame .bar { height: 30px; background: #ece7df; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4ccc0; }
.device-pair { position: relative; padding-right: 70px; }
.phone { position: absolute; right: 0; bottom: -30px; width: 190px; border-radius: 28px; background: #111; padding: 9px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.phone img { border-radius: 20px; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase.rev .show-text { order: 0; }
  .device-pair { padding-right: 40px; }
  .phone { width: 130px; }
}

/* ===== Ablauf in Schritten ===== */
/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--night-2); border: 1px solid #2f2d29; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 26px; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #1b1a18; font-weight: 750; display: grid; place-items: center; }
.step h3 { color: #fff; margin-top: .4rem; }
.step p { color: var(--on-dark-2); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 34px; } }

/* ===== Sicherheit und Datenschutz ===== */
/* Sicherheit */
.security { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sec-item { border: 1px solid #2f2d29; border-radius: 12px; padding: 20px; background: var(--night-2); }
.sec-item h3 { color: #fff; font-size: 1.02rem; display: flex; gap: .55rem; align-items: center; }
.sec-item h3 svg { color: var(--gold); }
.sec-item p { color: var(--on-dark-2); font-size: .93rem; margin: 0; }
.key-diagram { margin-top: 1.6rem; border: 1px solid #2f2d29; border-radius: 12px; padding: 18px; background: #0c0c0c; }
@media (max-width: 900px) { .security, .sec-list { grid-template-columns: 1fr; } }

/* ===== Zielgruppen ===== */
/* Zielgruppen */
.audience { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }
.audience span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-size: .95rem; }

/* ===== Pakete ===== */
/* Pakete */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.plan.featured { background: var(--night); color: var(--on-dark); border-color: var(--gold-strong); box-shadow: 0 24px 60px rgba(0,0,0,.2); position: relative; }
.plan.featured .tag { position: absolute; top: -13px; left: 30px; background: var(--gold); color: #1b1a18; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan.featured .for { color: var(--on-dark-2); }
.plan .price { font-size: 1.5rem; font-weight: 750; margin: .6rem 0 1.2rem; }
.plan.featured .price { color: var(--gold); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.plan li { display: flex; gap: .6rem; margin-bottom: .6rem; font-size: .96rem; }
.plan li svg { color: var(--gold-strong); flex-shrink: 0; margin-top: .3rem; }
.plan.featured li svg { color: var(--gold); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--gold-strong); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-right: 40px; }

/* ===== Kontaktformular (.hp = verstecktes Honeypot-Feld gegen Spam-Bots, außerhalb des sichtbaren Bereichs) ===== */
/* Kontakt */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.contact-info p { color: var(--ink-2); }
.contact-info .line { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; }
.contact-info .line svg { color: var(--gold-strong); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: .4rem 0 1.2rem; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--gold-strong); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact, .fld-row { grid-template-columns: 1fr; } }

/* ===== Abschlussband mit Handlungsaufforderung (Call to Action) ===== */
/* CTA-Band */
.cta-band { padding: 72px 0; background: linear-gradient(120deg, #1a1813, #121212 60%); border-top: 1px solid #2d2b27; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: var(--on-dark-2); margin: .4rem 0 0; }

/* ===== Fußzeile ===== */
/* Fußzeile */
.site-foot { background: #0d0d0d; color: var(--on-dark-2); padding: 48px 0 32px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-foot a { color: var(--on-dark-2); text-decoration: none; display: block; margin-bottom: .45rem; }
.site-foot a:hover { color: var(--gold); }
.site-foot .operator { display: flex; gap: 14px; align-items: center; }
.site-foot .operator .idea { font-size: .82rem; color: #8f877a; }
.site-foot .operator img { height: 54px; filter: invert(1); opacity: .8; }
.foot-bottom { border-top: 1px solid #262523; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

.foot-bottom a { display: inline; margin: 0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ===== Rechtstexte (Impressum, Datenschutz, 404) - .todo markiert Platzhalter-Hinweise für den Betreiber ===== */
/* Rechtstexte */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal .todo { background: #fbf0d9; border: 1px solid #e5c47a; color: #7a5208; border-radius: 10px; padding: .8rem 1rem; font-size: .92rem; }

/* ===== Einblenden beim Scrollen (.reveal wird von site.js per IntersectionObserver mit .in ergänzt) ===== */
/* Bei aktivierter Systemeinstellung 'Bewegung reduzieren' (letzte Regel unten) entfallen Animationen und weiches Scrollen. */
/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn:hover { transform: none; } }
