/* ZeitWerk – öffentliche Seiten: Onepage, Login, Registrierung */

body.public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.public > main { flex: 1; }

/* ---------- Topbar ---------- */

.site-top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-shrink: 0;   /* body ist flex-column: Header darf nie mitschrumpfen */
    align-items: center;
    gap: 24px;
    padding: 0 clamp(20px, 4vw, 48px);
    height: 78px;
    background: var(--topbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 10px;
    color: var(--ink-dim);
    background: var(--card);
    border: 1px solid var(--line);
    cursor: pointer;
}

.theme-toggle:hover { color: var(--ink); }

.theme-toggle .icon-moon { display: none; }

:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.site-mark {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: .24em;
    line-height: 1.05;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}

.site-mark small {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--brand);
}

.site-top .actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    cursor: pointer;
    font-family: inherit;
    transition: background .1s ease, filter .1s ease;
}

.btn:hover { background: var(--line); }

.btn.primary { color: #fff; background: var(--brand-strong); border-color: transparent; }

.btn.primary:hover { filter: brightness(1.12); }

.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }

/* Topbar-Bedienelemente exakt gleich hoch */
.site-top .actions .btn {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ---------- Hero ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(40px, 7vh, 88px) 24px clamp(28px, 4vh, 56px);
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.015em;
}

.hero p.lead {
    margin: 22px 0 30px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--ink-dim);
    max-width: 52ch;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .cta-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }

@media (max-width: 720px) {
    .hero .cta-note { white-space: normal; }
}

/* CSS-Mockup des Terminals (keine Bilder) */

.mock {
    /* Das Produkt-Mockup bleibt immer dunkel – so sieht das Terminal echt aus */
    --bg-raise: #171c22; --card: #1a2028; --card-edge: #232a34; --line: #2a313b;
    --ink: #f2efe8; --ink-dim: #8a93a0; --ink-faint: #5b6472;
    --off: #525c68; --off-soft: rgba(82, 92, 104, .16);
    color: var(--ink);
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}

:root[data-theme="light"] .mock { box-shadow: 0 30px 70px rgba(25, 30, 37, .28); }

.mock-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }

.mock-clock {
    font-family: var(--font-num);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mock-date { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

.mock-tiles { display: grid; gap: 10px; }

.mock-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-left: 3px solid var(--off);
    border-radius: 12px;
}

.mock-tile.on    { border-left-color: var(--ok); }
.mock-tile.pause { border-left-color: var(--pause); }

.mock-ava {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    background: var(--off-soft);
    border: 2px solid var(--avatar-color, var(--ink-faint));
    flex: none;
}

.mock-name { font-size: 14px; font-weight: 600; }

.mock-state { font-size: 11px; color: var(--ink-dim); }

.mock-state b { font-weight: 700; }

.mock-tile.on .mock-state b    { color: var(--ok); }
.mock-tile.pause .mock-state b { color: var(--pause); }

.mock-dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--off); }

.mock-tile.on .mock-dot    { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mock-tile.pause .mock-dot { background: var(--pause); box-shadow: 0 0 8px var(--pause); }

/* ---------- Trust-Leiste (Standort & Datenschutz) ---------- */

.trust {
    background: var(--bg-raise);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(20px, 3vh, 30px) 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px clamp(20px, 3vw, 40px);
}

.trust-item { display: flex; align-items: center; gap: 13px; }

.trust-text b { white-space: nowrap; }

.trust-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    color: var(--brand);
    background: var(--card);
    border: 1px solid var(--card-edge);
}

.trust-text { display: flex; flex-direction: column; line-height: 1.3; }

.trust-text b { font-size: 14px; font-weight: 700; }

.trust-text span { font-size: 12.5px; color: var(--ink-dim); }

@media (max-width: 760px) {
    .trust-inner { justify-content: flex-start; gap: 14px 30px; }
}

/* ---------- Sektionen ---------- */

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(26px, 4vh, 48px) 24px;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

.section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 28px; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature {
    padding: 24px 22px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.feature .icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--card-edge);
    color: var(--brand);
}

.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.feature p { font-size: 14px; line-height: 1.55; color: var(--ink-dim); }

/* Showcase: echte Screenshots der Verwaltung in Fenster-Rahmen */

.showcase-head { margin-top: clamp(40px, 6vh, 72px); margin-bottom: clamp(24px, 4vh, 40px); }

.showcase-head h2 { margin-bottom: 12px; }

.showcase-intro { max-width: 62ch; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: var(--ink-dim); }

.showcase { display: grid; gap: clamp(28px, 5vh, 56px); }

.showcase-row {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: clamp(26px, 4vw, 54px);
    align-items: center;
}

.showcase-row.flip { grid-template-columns: 1fr 1.12fr; }
.showcase-row.flip .shot { order: 2; }
.showcase-row.flip .showcase-text { order: 1; }

.shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #12161b;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
    cursor: zoom-in;
    transition: transform .15s ease, box-shadow .15s ease;
}

.shot:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }

/* Lightbox: Screenshot groß über der Seite */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 5vh 5vw;
    background: rgba(8, 10, 13, .88);
    backdrop-filter: blur(4px);
}

.lightbox.open { display: grid; }

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid #2a313b;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
    cursor: default;
}

.lightbox-close {
    position: fixed;
    top: 22px;
    right: 26px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

:root[data-theme="light"] .shot { box-shadow: 0 20px 48px rgba(25, 30, 37, .22); }

.shot-bar {
    display: flex;
    gap: 7px;
    padding: 11px 15px;
    background: #1a2028;
    border-bottom: 1px solid #232a34;
}

.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #39414d; }

.shot img { display: block; width: 100%; height: auto; }

.showcase-text h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }

.showcase-text p { font-size: 15px; line-height: 1.65; color: var(--ink-dim); }

.tick-list { margin-top: 16px; display: grid; gap: 9px; }

.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }

.tick svg { color: var(--brand); flex: none; margin-top: 1px; }

/* So funktioniert's */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.step {
    position: relative;
    padding: 26px 22px 22px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.step .num {
    font-family: var(--font-num);
    font-size: 15px;
    color: var(--brand);
    margin-bottom: 12px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.step p { font-size: 14px; line-height: 1.55; color: var(--ink-dim); }

/* CTA-Band */

.cta-band {
    text-align: center;
    padding: clamp(40px, 7vh, 72px) 24px;
    background: var(--bg-raise);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; margin-bottom: 20px; }

/* ---------- Footer ---------- */

.site-footer { flex-shrink: 0; padding: 26px 24px; }

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-mark { font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }

.footer-by { margin-left: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }

.site-footer nav { display: flex; gap: 18px; }

.site-footer a { font-size: 13px; color: var(--ink-faint); text-decoration: none; }

.site-footer a:hover { color: var(--ink); }

/* ---------- Auth-Karten (Login / Registrieren) ---------- */

.auth-wrap {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.auth-card {
    width: min(420px, 100%);
    padding: 40px 36px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }

.auth-card .sub { font-size: 14px; color: var(--ink-dim); margin-bottom: 24px; }

.auth-card .field { margin-bottom: 16px; }

.auth-card .field-row { display: flex; gap: 12px; }
.auth-card .field-row .field { flex: 1; }
.auth-card .field-row .field.plz { flex: 0 0 96px; }

.auth-card label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-dim); margin-bottom: 6px; }

.auth-card input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    box-sizing: border-box;
}

.auth-card input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

.auth-card .consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-dim);
    cursor: pointer;
}

.auth-card .consent input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: none;
    accent-color: var(--brand-strong);
    cursor: pointer;
}

.auth-card .consent a { color: var(--brand); }

.auth-card .btn { width: 100%; text-align: center; margin-top: 6px; }

.auth-card .alt { margin-top: 20px; font-size: 13px; color: var(--ink-faint); text-align: center; }

.auth-card .alt a { color: var(--ink-dim); }

.msg {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    background: var(--ok-soft);
    border: 1px solid var(--ok);
}

.msg.error { background: rgba(229, 72, 77, .12); border-color: var(--danger); }

.msg.info { background: var(--pause-soft); border-color: var(--pause); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding-top: 40px; }
    .mock { max-width: 440px; margin-top: 0; }
    .showcase-row, .showcase-row.flip { grid-template-columns: 1fr; gap: 20px; }
    .showcase-row.flip .shot { order: 0; }
    .showcase-row.flip .showcase-text { order: 0; }
}

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(36px, 6vh, 64px) 24px 64px;
}

.legal h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 24px; }

.legal h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; }

.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink-dim); }

.legal ul { padding-left: 22px; margin: 10px 0; }

.legal strong { color: var(--ink); }

.legal a { color: var(--brand); }

@media (max-width: 560px) {
    /* Logo bleibt oben, die Aktionen rutschen in eine eigene Zeile darunter */
    .site-top { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .site-top .actions { width: 100%; margin-left: 0; justify-content: flex-end; gap: 8px; }
    .site-top .actions .btn { padding: 9px 13px; font-size: 13px; }
    .site-mark { font-size: 19px; }
}
