/* ==========================================================================
   EiS-App — Wartungsseite
   Farben und Typo abgeleitet aus dem Theme "EiS-APP Theme"
   (twentyseventeen-child, Büro Nitsche), Stand Backup 05.03.2026.

   Bewusst ohne externe Ressourcen: keine Google Fonts, kein CDN,
   keine Cookies, kein Tracking. Das Eltern-Theme hatte die Google Fonts
   ebenfalls ausdrücklich deaktiviert (functions.php: remove_google_fonts).

   Durchgehend helles Schema: dunkle Schrift auf hellem Grund, unabhängig von
   der System-Einstellung des Besuchers. `color-scheme: light` verhindert, dass
   Browser die Seite eigenmächtig abdunkeln. Es gibt bewusst KEINEN
   prefers-color-scheme-Dunkelmodus.
   ========================================================================== */

:root {
    /* Markenfarben aus dem Theme */
    --berry:       #ae2b5b;  /* Primärfarbe: Links, Buttons, Akzente */
    --berry-dark:  #8f2049;  /* Hover */
    --berry-muted: #a94f6b;  /* Tabellen-Erstspalte im Theme */
    --slate:       #5b6b73;  /* Überschriften — dunkler als im Theme, für AA */
    --slate-dark:  #4c5a61;  /* kleinere Überschriften */
    --pink-soft:   #f8b8cb;  /* "einfache Sprache"-Badge im Theme */
    --pink-pale:   #fbf4f6;  /* zarte Fläche */
    --gold:        #e8a33d;  /* Waffel aus dem Logo */

    --ink:         #1f2429;
    --ink-soft:    #56606a;
    --surface:     #ffffff;
    --page:        #fffcfd;
    --rule:        #f0e2e6;

    --measure:     34rem;    /* Lesebreite */
    --radius:      14px;

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.125rem;   /* 18px — wie im Theme (p { font-size: 18px }) */
    line-height: 1.65;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Sprungmarke ------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--berry);
    color: #fff;
    padding: 0.7em 1.2em;
    z-index: 10;
    text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Kopfbereich ------------------------------------------------------- */
/* Reproduziert die Theme-Signatur: Titel in Beere auf Weiß,
   Untertitel als weißer Text auf beerefarbenem Block. */

.site-header {
    background:
        radial-gradient(circle at 18% 0%,  rgba(248, 184, 203, 0.34) 0%, rgba(248, 184, 203, 0) 58%),
        radial-gradient(circle at 82% 8%,  rgba(232, 163,  61, 0.18) 0%, rgba(232, 163, 61, 0) 52%),
        var(--surface);
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

/* Kopfband: obere Reihe des bisherigen Header-Bildes. Das Seitenverhältnis
   bleibt erhalten (kein object-fit: cover), damit der blaue Balken am unteren
   Rand immer sichtbar ist — er dient als Trennlinie zum Markenblock. */
.site-band {
    display: block;
}
.site-band img {
    display: block;
    width: 100%;
    height: auto;
}

.site-branding {
    padding: 0 1.25rem 2.25rem;
}

/* Das Logo ist eine weiße Scheibe und überlappt den blauen Balken.
   Der Ring in Seitenhintergrundfarbe setzt es sauber gegen das Bild ab. */
.site-logo {
    width: clamp(72px, 13vw, 104px);
    height: auto;
    display: block;
    margin: clamp(-2.6rem, -6vw, -1.8rem) auto 1.1rem;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--surface);
}

.site-title {
    margin: 0;
    font-size: clamp(2rem, 6vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.site-title a,
.site-title span {
    color: var(--berry);
    text-decoration: none;
}
.site-title a:hover,
.site-title a:focus { color: var(--berry-dark); }

.site-description {
    display: inline-block;
    margin: 0.9rem 0 0;
    background: var(--berry);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25em 0.6em;
    letter-spacing: 0.01em;
}

/* --- Inhalt ------------------------------------------------------------ */

.site-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: calc(var(--measure) + 4rem);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: 0 1px 2px rgba(31, 36, 41, 0.04),
                0 8px 24px -16px rgba(174, 43, 91, 0.22);
}

h1, h2, h3 {
    font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.6rem, 4.5vw, 2rem);
    margin: 0 0 1rem;
}

h2 {
    font-size: 1.35rem;
    color: var(--slate-dark);
    margin: 2.25rem 0 0.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }

h3 {
    font-size: 1.1rem;
    color: var(--slate-dark);
    margin: 1.5rem 0 0.4rem;
}

p { margin: 0 0 0.9em; }

a {
    color: var(--berry);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
a:hover, a:focus {
    color: var(--berry-dark);
    text-decoration-thickness: 3px;
}

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

ul { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; list-style: circle; }

address {
    font-style: normal;
    background: var(--pink-pale);
    border-left: 4px solid var(--pink-soft);
    padding: 0.9rem 1.1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0 0 1.25em;
}

/* --- Wartungshinweis (Startseite) -------------------------------------- */

.notice-badge {
    display: inline-block;
    background: var(--pink-soft);
    color: #6d1937;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.3em 0.85em;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

/* Einfache Sprache: kurze Zeilen, klare Abstände, größere Schrift. */
.lead {
    font-size: 1.3rem;
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 1.1em;
}
.lead strong { font-weight: 600; color: var(--ink); }

/* Konto-Hinweis: der Kontobereich läuft weiter, das ist die wichtigste
   Handlungsmöglichkeit auf dieser Seite und deshalb hervorgehoben. */
.account-box {
    margin-top: 2rem;
    background: var(--pink-pale);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
}
.account-box h2 {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.account-box p:last-child { margin-bottom: 0; }

.button {
    display: inline-block;
    margin-top: 0.6rem;
    background: var(--berry);
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    text-decoration: none;
    padding: 0.7em 1.4em;
    border-radius: 999px;
}
.button:hover, .button:focus {
    background: var(--berry-dark);
    color: #fff;
    text-decoration: none;
}

.contact-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}
.contact-box p:last-child { margin-bottom: 0; }

/* --- Fußbereich -------------------------------------------------------- */

/* Im alten Theme war der Footer eine volle Beere-Fläche mit weißer Schrift.
   Hier hell gehalten, damit die Seite durchgehend dunkle Schrift auf hellem
   Grund zeigt. Die Beere bleibt als Oberkante und in den Links erhalten. */
.site-footer {
    flex: 0 0 auto;
    background: var(--pink-pale);
    color: var(--ink-soft);
    border-top: 3px solid var(--berry);
    padding: 1.75rem 1.25rem;
    font-size: 1rem;
}
.site-footer .wrap {
    max-width: calc(var(--measure) + 4rem);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: baseline;
    justify-content: space-between;
}
.site-footer p { margin: 0; color: var(--ink-soft); }
.site-footer a { color: var(--berry); font-weight: 500; }
.site-footer a:hover,
.site-footer a:focus { color: var(--berry-dark); }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.25em;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li { margin: 0; list-style: none; }

/* --- Rechtsseiten ------------------------------------------------------ */

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.legal small,
.source-note {
    display: block;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.updated {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

/* Vor dem Livegang zu ersetzen — absichtlich auffällig markiert,
   damit kein Platzhalter unbemerkt online geht. Siehe README.md. */
.todo {
    background: #fff3b0;
    color: #4a3a00;
    font-weight: 600;
    padding: 0.05em 0.35em;
    border-bottom: 2px dotted #b58900;
    border-radius: 3px;
}

/* --- Bewegung reduzieren ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Druck ------------------------------------------------------------- */

@media print {
    body { background: #fff; color: #000; font-size: 11pt; }
    .site-header { border-bottom: 1pt solid #999; }
    .site-footer { background: none; color: #000; border-top: 1pt solid #999; }
    .site-footer p, .site-footer a { color: #000; }
    .card { border: 0; box-shadow: none; padding: 0; }
    .skip-link, .back-link, .site-logo { display: none; }
    a { color: #000; }
}
