/* ══════════════════════════════════════════════════════════════════════
   hallenmonitoring.de — Informationsseite
   ══════════════════════════════════════════════════════════════════════
   Eigenstaendig und ohne fremde Ressourcen (keine Web-Fonts, keine CDNs):
   die Seite liegt im DocumentRoot des Apache, nicht im Stack, und soll
   ohne jeden Aussenbezug ausgeliefert werden koennen.

   Farben absichtlich dieselben wie in der Anwendung
   (hallenbelegung/web/public/style.css): --brand-bar-bg #4a5568,
   Akzent #0E8CC7. So sieht die Vorfuehrung nicht aus wie ein fremdes
   Produkt, wenn der Besucher von hier dorthin wechselt. */

:root {
    color-scheme: light dark;

    --bg:            #f4f6f8;
    --surface:       #ffffff;
    --surface-alt:   #f7fcff;
    --border:        #d9dee3;
    --text:          #333a41;
    --text-muted:    #5f6a73;
    --brand:         #4a5568;
    --accent:        #0E8CC7;
    --accent-hover:  #005b79;
    --accent-soft:   #D6EEF8;
    --good:          #1d7a45;
    --good-soft:     #eaf6ef;
    --radius:        8px;
    --measure:       64rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:           #15191d;
        --surface:      #1e2429;
        --surface-alt:  #222a30;
        --border:       #39424a;
        --text:         #dde3e8;
        --text-muted:   #a3aeb7;
        --brand:        #2b323b;
        --accent:       #4bb4e6;
        --accent-hover: #8fd3f4;
        --accent-soft:  #123847;
        --good:         #6ddb9c;
        --good-soft:    #17301f;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

/* Sprungmarke: sichtbar erst bei Tastaturfokus (BITV 2.0 / WCAG 2.4.1). */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 10;
}
.skip-link:focus { left: 0; }

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-hover); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ── Kopfleiste ────────────────────────────────────────────────────── */

.brand-bar {
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
}
.brand-bar img { width: 30px; height: 30px; display: block; }
.brand-bar .name { font-weight: 600; letter-spacing: 0.02em; }
.brand-bar .vendor { margin-left: auto; font-size: 0.85rem; opacity: 0.85; }
.brand-bar .vendor a { color: #fff; text-decoration: none; }
.brand-bar .vendor a:hover { text-decoration: underline; }
.brand-stripe { height: 4px; background: var(--accent); }

/* ── Grundraster ───────────────────────────────────────────────────── */

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1.2rem;
}

section { padding: 2.6rem 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.45rem; margin: 0 0 0.4rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }

.lead { font-size: 1.12rem; color: var(--text-muted); margin: 0 0 1.2rem; }
.sub  { color: var(--text-muted); margin: 0 0 1.6rem; max-width: 46rem; }

/* ── Aufmacher ─────────────────────────────────────────────────────── */

.hero { padding: 3.2rem 0 2.8rem; }
.hero h1 { max-width: 24em; }
.hero .claim { font-size: 1.2rem; max-width: 40rem; margin: 0 0 1.8rem; }

.cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius);
}
.cta:hover, .cta:focus { background: var(--accent-hover); color: #fff; }
.cta-note { display: block; margin-top: 0.6rem; color: var(--text-muted); font-size: 0.92rem; }

/* ── Karten ────────────────────────────────────────────────────────── */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.card p:last-child { margin-bottom: 0; }

/* Die vier Bausteine sollen 2x2 stehen, nicht 3+1: eine einzelne Karte in
   der zweiten Reihe sieht aus wie ein Versehen.
   min(24rem, 100%) statt 24rem ist Absicht: eine Spur von 24rem waere auf
   einem 390 px breiten Telefon breiter als der Bildschirm, und grid laesst
   sie dann trotzdem so breit -- die GANZE Seite liefe waagerecht ueber.
   Nachgemessen ist das nicht: Chrome legt auch im headless-Betrieb keine
   Fensterbreite unter 500 px an (am 2026-09-14 geprueft, document.clientWidth
   blieb bei 500). Bei 500 px ist die Seite ueberlauffrei; das min() sichert
   das Stueck darunter ab. Aus demselben Grund steht es bei allen drei
   Rastern. */
.cards.zwei { grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr)); }
.card .num {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

/* Merkmalsliste: zweispaltig, Beschreibung unter dem Namen. */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: 0.2rem 2rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}
.features li { padding: 0.65rem 0; border-top: 1px solid var(--border); }
.features b { display: block; }
.features span { color: var(--text-muted); font-size: 0.95rem; }

/* Fragenliste. Bewusst <dl> und nicht <details>: Der Leser dieser Seite soll
   die Antworten SEHEN, nicht erst danach klicken -- wer eine Entscheidung
   vorbereitet, ueberfliegt lieber, als zu bedienen. */
.faq { margin: 1.4rem 0 0; }
.faq dt {
    font-weight: 600;
    font-size: 1.02rem;
    margin: 0;
    padding: 0.9rem 0 0.25rem;
    border-top: 1px solid var(--border);
}
.faq dd {
    margin: 0 0 0.2rem;
    color: var(--text-muted);
    max-width: 48rem;
}

/* Hervorgehobener Kasten (Datenschutz-Kernaussage, Demo-Hinweis). */
.box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    margin: 1.4rem 0 0;
}
.box.good { border-left-color: var(--good); background: var(--good-soft); }
.box + .box { margin-top: 1rem; }
.box > :first-child { margin-top: 0; }
.box > :last-child  { margin-bottom: 0; }

.checks { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.35rem; }
.checks li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--good);
    font-weight: 700;
}

/* ── Demo-Abschnitt ────────────────────────────────────────────────── */

.demo { background: var(--surface-alt); }
.demo .wrap { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.demo-url {
    font-size: 1.15rem;
    font-weight: 600;
    word-break: break-all;
}

/* ── Fusszeile ─────────────────────────────────────────────────────── */

footer {
    background: var(--brand);
    color: #e6eaee;
    padding: 1.6rem 0;
    font-size: 0.93rem;
}
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: baseline; }
footer .sep { margin-left: auto; }

/* ── Rechtsseiten ──────────────────────────────────────────────────── */

/* NUR oben/unten setzen: die Kurzform "padding: 2.4rem 0 3rem" wuerde das
   seitliche Polster von .wrap ueberschreiben -- der Text klebte dann am
   linken Bildschirmrand (am 2026-09-14 im Pruefstand gesehen). */
.legal { padding-top: 2.4rem; padding-bottom: 3rem; }
.legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.legal h2:first-of-type { margin-top: 1rem; }
.legal .stand { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1.4rem; }
.legal .contact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    margin: 0.6rem 0 1rem;
}
.legal ul { padding-left: 1.3rem; }

@media (max-width: 40rem) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    .brand-bar .vendor { display: none; }
}
