/* CityFever-Portal - eigenstaendiges Stylesheet, keine fremden Quellen.
   Der Zwischenspeicher wird ueber ?v=<filemtime> umgangen, siehe portal.php. */

:root {
    --grund:        #f4f5f7;
    --flaeche:      #ffffff;
    --rand:         #dfe3e8;
    --text:         #1c2430;
    --text-leise:   #5d6875;
    --akzent:       #d4472a;
    --akzent-dunkel:#b13a21;
    --blau:         #2563eb;
    --schatten:     0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
    --rund:         14px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --grund:      #14181e;
        --flaeche:    #1c222b;
        --rand:       #2c3542;
        --text:       #e8ecf1;
        --text-leise: #9aa6b4;
        --schatten:   0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--grund);
    color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* ---------------- Kopfzeile ---------------- */

.kopfzeile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: var(--flaeche);
    border-bottom: 1px solid var(--rand);
    position: sticky;
    top: 0;
    z-index: 10;
}

.kopfzeile .heim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    flex: none;
}
.kopfzeile .heim:hover  { background: var(--grund); }
.kopfzeile .heim svg    { width: 22px; height: 22px; fill: currentColor; }

.kopfzeile .marke {
    font-weight: 650;
    letter-spacing: .2px;
    margin-right: auto;
}

.abmeldung { margin: 0; }
.abmeldung button {
    font: inherit;
    font-size: 15px;
    color: var(--text-leise);
    background: none;
    border: 1px solid var(--rand);
    border-radius: 9px;
    padding: 7px 14px;
    cursor: pointer;
}
.abmeldung button:hover { color: var(--text); border-color: var(--text-leise); }

/* ---------------- Rahmen ---------------- */

.mitte {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
}

.inhalt {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.ueberschrift {
    font-size: 26px;
    font-weight: 650;
    margin: 4px 0 22px;
}

/* ---------------- Karte ---------------- */

.karte {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--rund);
    box-shadow: var(--schatten);
    padding: 34px 30px 30px;
}

.karte h1 {
    font-size: 21px;
    font-weight: 650;
    margin: 0 0 12px;
}

.anmeldekarte { text-align: center; }
.anmeldekarte form { text-align: left; }

.marke-gross {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.4px;
}
.marke-city  { color: var(--text); }
.marke-fever { color: var(--akzent); }

.unterzeile {
    color: var(--text-leise);
    font-size: 14px;
    margin: 4px 0 24px;
}

.lauftext  { color: var(--text-leise); margin: 0 0 20px; }
.klein     { font-size: 14px; color: var(--text-leise); }
.mittig    { text-align: center; margin-top: 26px; }
.klein a   { color: var(--text-leise); }

/* ---------------- Formular ---------------- */

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 6px;
}

input[type="password"],
input[type="text"]:not(.versteckt) {
    width: 100%;
    font: inherit;
    padding: 12px 14px;
    color: var(--text);
    background: var(--grund);
    border: 1px solid var(--rand);
    border-radius: 10px;
}
input:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 1px;
    border-color: transparent;
}

/* Nur fuer Passwortverwaltungen da, nicht fuer Augen. */
.versteckt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
}

.knopf {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: var(--akzent);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.knopf:hover     { background: var(--akzent-dunkel); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- Meldungen ---------------- */

.meldung {
    font-size: 14.5px;
    text-align: left;
    padding: 11px 14px;
    border-radius: 10px;
    margin: 0 0 6px;
}
.fehler {
    color: #8c2412;
    background: #fdecea;
    border: 1px solid #f6cfc8;
}
.hinweis {
    color: var(--text-leise);
    background: var(--grund);
    border: 1px solid var(--rand);
}
@media (prefers-color-scheme: dark) {
    .fehler { color: #ffb4a4; background: #3a1c16; border-color: #5c2a20; }
}

/* ---------------- Kacheln ---------------- */

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

.kachel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 168px;
    padding: 22px;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--rund);
    box-shadow: var(--schatten);
    color: var(--text);
    text-decoration: none;
    transition: transform .12s ease, border-color .12s ease;
}
a.kachel:hover {
    transform: translateY(-2px);
    border-color: var(--akzent);
}

.kachel-bild {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--grund);
}
.kachel-bild svg { width: 26px; height: 26px; fill: currentColor; }

.kachel.blau .kachel-bild { color: var(--blau); }
.kachel.grau .kachel-bild { color: var(--text-leise); }

.kachel-name { font-size: 18px; font-weight: 650; }
.kachel-text { font-size: 14.5px; color: var(--text-leise); }

.kachel.ruht {
    border-style: dashed;
    box-shadow: none;
    background: transparent;
}
.kachel.ruht .kachel-name { color: var(--text-leise); }
