/* Startseite von kueck.xyz.
 *
 * Dieselben Farben wie beim Punktezettel, damit der Wechsel zwischen
 * Startseite und Dienst nicht wie ein Wechsel zwischen zwei Anlagen wirkt.
 * Gebaut wie alles hier: zuerst fuer das Telefon.
 */

:root {
    color-scheme: light;
    --flaeche:    #fcfcfb;
    --seite:      #f9f9f7;
    --text:       #0b0b0b;
    --text-zweit: #52514e;
    --text-leise: #898781;
    --rahmen:     rgba(11, 11, 11, 0.10);
    --akzent:     #15682f;
    --akzent-text:#ffffff;
    --gut:        #0ca30c;
    --weg:        #d03b3b;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --flaeche:    #1a1a19;
        --seite:      #0d0d0d;
        --text:       #ffffff;
        --text-zweit: #c3c2b7;
        --text-leise: #898781;
        --rahmen:     rgba(255, 255, 255, 0.10);
        --akzent:     #3fbf6b;
        --akzent-text:#0b0b0b;
        --weg:        #e66767;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--text);
    background: var(--seite);
    -webkit-tap-highlight-color: transparent;
}

header {
    background: var(--akzent);
    color: var(--akzent-text);
    padding: calc(env(safe-area-inset-top) + 26px) 18px 22px;
}

header h1 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
header .unter { margin: 2px 0 0; font-size: 15px; opacity: 0.85; }

main {
    padding: 18px 14px;
    max-width: 720px;
    margin: 0 auto;
}

.dienste { list-style: none; margin: 0; padding: 0; }

.dienste a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    margin-bottom: 10px;
    /* 64 px: bequem mit dem Daumen zu treffen, auch im Gehen. */
    min-height: 64px;
    background: var(--flaeche);
    border: 1px solid var(--rahmen);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.dienste a:active { filter: brightness(0.96); }

.zeichen {
    font-size: 26px;
    line-height: 1;
    width: 34px;
    text-align: center;
    flex: none;
}

.haupt { flex: 1; min-width: 0; }
.haupt .name { font-weight: 650; font-size: 17px; }
.haupt .was  { font-size: 13px; color: var(--text-leise); }

/* Erreichbarkeit. Nicht nur ein Farbpunkt: Wer Farben schlecht
 * unterscheidet, liest den Text daneben. */
.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-leise);
    flex: none;
}

.punkt {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--text-leise);
    flex: none;
}
.status.da   .punkt { background: var(--gut); }
.status.weg  .punkt { background: var(--weg); }
.status.weg        { color: var(--weg); }

.marke {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid var(--rahmen);
    color: var(--text-leise);
    margin-left: 6px;
    white-space: nowrap;
}

.hinweis {
    color: var(--text-leise);
    font-size: 14px;
    text-align: center;
    padding: 10px 6px;
}
.hinweis[hidden] { display: none; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: var(--flaeche);
    border: 1px solid var(--rahmen);
    border-radius: 5px;
    padding: 1px 5px;
}

footer { padding: 0 14px calc(env(safe-area-inset-bottom) + 20px); }
