/* Werkzettel – Website. Corporate Identity RaDigSol, Farben wie in der App (app.css). */

/* Raleway als variable Schrift, lokal ausgeliefert (kein Abruf bei Google), Lizenz SIL OFL 1.1 */
@font-face {
    font-family: Raleway;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/Raleway-Variable.woff2") format("woff2");
}

:root {
    color-scheme: light dark;
    --wz-azure: #005077;
    --wz-azure-dark: #003d5c;
    --wz-fiber-green: #95c11f;
    --wz-cobalt: #00223e;
    --wz-text: #1b1b1b;
    --wz-muted: #5a5a5a;
    --wz-background: #f4f6f8;
    --wz-surface: #ffffff;
    --wz-border: #c9d1d8;
    --wz-link: #005077;
    --wz-heading: #00223e;
    --wz-placeholder-bg: #fff4e0;
    --wz-placeholder: #b26a00;
    --radius: 12px;
    --max: 72rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --wz-azure: #2a8fc0;
        --wz-azure-dark: #1f759f;
        --wz-text: #e8edf2;
        --wz-muted: #a7b1bb;
        --wz-background: #0f1720;
        --wz-surface: #182230;
        --wz-border: #2e3d4d;
        --wz-link: #7cc3e6;
        --wz-heading: #ffffff;
        --wz-placeholder-bg: #3a2a10;
        --wz-placeholder: #ffb74d;
    }
}

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

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

body {
    margin: 0;
    font-family: Raleway, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--wz-text);
    background: var(--wz-background);
}

a { color: var(--wz-link); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--wz-fiber-green); outline-offset: 3px; }

h1, h2, h3 { color: var(--wz-heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--wz-surface); padding: .5rem 1rem; }

/* Kopf */
.site-header { background: var(--wz-cobalt); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.site-nav a:hover { text-decoration: underline; }
@media (max-width: 40rem) { .site-nav .optional { display: none; } }

/* Knöpfe: mindestens 44 px hoch, wie in der App */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: .6rem 1.25rem;
    border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--wz-fiber-green); color: var(--wz-cobalt); }
.button.primary:hover { filter: brightness(1.05); }
.button.ghost { border-color: currentColor; color: inherit; }
.site-nav .button { min-height: 40px; padding: .4rem 1rem; }

/* Einstieg */
.hero { background: var(--wz-cobalt); color: #e8edf2; padding: 3rem 0 4rem; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .accent { color: var(--wz-fiber-green); }

/* Abschnitte */
section { padding: 3.5rem 0; }
section.alt { background: var(--wz-surface); }
.section-lead { max-width: 60ch; color: var(--wz-muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
.card {
    background: var(--wz-surface); border: 1px solid var(--wz-border); border-radius: var(--radius);
    padding: 1.25rem 1.25rem .5rem;
}
section.alt .card { background: var(--wz-background); }
.card h3::before {
    content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em;
    border-radius: 2px; background: var(--wz-fiber-green); vertical-align: .05em;
}

.two-col { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.75rem; position: relative; margin-bottom: .6rem; }
.checks li::before {
    content: ""; position: absolute; left: .2rem; top: .45em; width: .9rem; height: .5rem;
    border-left: 3px solid var(--wz-fiber-green); border-bottom: 3px solid var(--wz-fiber-green);
    transform: rotate(-45deg);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; background: var(--wz-surface); border: 1px solid var(--wz-border);
    border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem;
    border-radius: 50%; background: var(--wz-azure); color: #fff; font-weight: 800; margin-bottom: .5rem; }

.cta { background: var(--wz-azure); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 50ch; margin-left: auto; margin-right: auto; }

/* Textseiten (Impressum, Datenschutz) */
.prose { max-width: 48rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
.prose dt { font-weight: 700; }
.prose dd { margin: 0; }
@media (max-width: 30rem) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: .5rem; } }

/* Stellen, die vor dem Livegang auszufüllen sind. scripts/check.sh sperrt das Deployment, solange es sie gibt. */
.todo { background: var(--wz-placeholder-bg); color: var(--wz-placeholder); font-weight: 700; padding: 0 .25em; border-radius: 4px; }

/* Fuß */
.site-footer { background: var(--wz-cobalt); color: #a7b1bb; padding: 2rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Seite "Wir sind bald für euch da" (Startseite bis zum Start, Entwurf der vollen Seite: entwurf/startseite.html) */
body.soon { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--wz-cobalt); }
.soon-main { flex: 1; display: grid; place-items: center; padding: 3rem 1rem; }
.soon-card { max-width: 40rem; text-align: center; color: #e8edf2; }
.soon-logo { width: 6rem; height: 6rem; }
.soon-brand { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; margin: .75rem 0 2rem; }
.soon h1 { color: #fff; font-size: clamp(2.25rem, 7vw, 3.75rem); }
.soon .accent { color: var(--wz-fiber-green); }
.soon .lead { font-size: 1.15rem; }
.soon .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin: 2rem 0 1.5rem; }
.soon .button.ghost { color: #fff; }
.soon-login { color: #a7b1bb; }
.soon-login a, .soon .lead a { color: #fff; }
.soon .site-footer { border-top: 1px solid #1d3a55; }
