/*
 * Digitale Helfer – gemeinsame Basis für alle Seiten.
 * Vertrag: DESIGN.md im Projektwurzelverzeichnis. Neue Werte erst dort eintragen, dann hier.
 */

/* Barlow (SIL OFL 1.1), lokal eingebunden – kein Abruf bei Google */
@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow';
    src: url('../fonts/barlow-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Semi Condensed';
    src: url('../fonts/barlow-semi-condensed-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Semi Condensed';
    src: url('../fonts/barlow-semi-condensed-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

:root {
    --rot: #b0141b;          /* Verbandsrot aus dem Logo */
    --rot-dunkel: #8a0f15;
    --rot-hell: #f8e7e7;
    --gruen: #2f7d4f;        /* nur für Erfolgsmeldungen */
    --grau: #555454;         /* Schriftgrau aus dem Logo */
    --boden: #2b3035;        /* Anthrazit, bewusst kein Fast-Schwarz */
    --flaeche: #3a4046;      /* erhöhte dunkle Fläche */
    --flaeche-tief: #22262a; /* Eingabefelder, Code */
    --linie: rgba(255, 255, 255, 0.12);
    --hell: #eef0f2;
    --gedimmt: #b9bec3;
    --papier: #ffffff;

    --schrift: 'Barlow', 'Segoe UI', Arial, sans-serif;
    --schrift-titel: 'Barlow Semi Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-klein: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--schrift);
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--hell);
    background: var(--boden);
}

/* Links auf dunklem Grund: hell und unterstrichen; Rot bleibt den Knöpfen vorbehalten */
a {
    color: var(--hell);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--papier);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--papier);
    outline-offset: 3px;
}

/* Bewusst begrenzt: breitere Kacheln machen die Fotos zu plakativ */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 3rem);
}

/* Kopf: Logo auf weißem Feld, daneben der Verbandsname */
.kopf {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.75rem;
}

.kopf a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: var(--papier);
}

.kopf img {
    display: block;
    height: 56px;
    width: auto;
}

.kopf .verband {
    color: var(--gedimmt);
}

/* Unterseiten: Zurück-Link und Seitentitel */
.zurueck {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 0.9rem 0.5rem 0.7rem;
    border-radius: 999px;
    background: var(--flaeche);
    color: var(--hell);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.zurueck::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.zurueck:hover {
    background: #474e55;
}

.seitentitel {
    padding: 1.5rem 0 2rem;
}

.seitentitel h1 {
    font-family: var(--schrift-titel);
    font-weight: 700;
    font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.25rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.seitentitel p {
    max-width: 38rem;
    margin-top: 0.9rem;
    font-size: 1.1875rem;
    color: var(--gedimmt);
}

/* Fläche für Inhalte auf Unterseiten */
.feld {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--flaeche);
}

.feld h2,
.feld h3 {
    font-family: var(--schrift-titel);
    font-weight: 700;
    line-height: 1.1;
}

/* Knopf: die eine Hauptaktion einer Seite */
.knopf {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border: none;
    border-radius: var(--radius-klein);
    background: var(--rot);
    color: var(--papier);
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.knopf:hover:not(:disabled) {
    background: var(--rot-dunkel);
    color: var(--papier);
}

.knopf:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Fußzeile */
.footer {
    padding-bottom: 2.5rem;
    font-size: 0.95rem;
}

.footer a {
    color: var(--gedimmt);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }

    .feld {
        padding: 1.4rem 1.25rem;
    }
}

@media (max-width: 420px) {
    .kopf {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
