/* ==========================================
   GLOBAL STYLE
   Klar und offiziell, aber freundlich:
   Dunkelblaues Band oben, weiße Karten,
   ein gelber Akzent für die wichtigste Aktion.
========================================== */


/* ==========================================
   SCHRIFTEN
   Source Sans 3 → Überschriften und Text
                   (sehr gut lesbar, mit ă ș ț ğ ş und Kyrillisch)
   IBM Plex Mono → kleine Labels, Fristen, Quellen

   Die Schriften liegen auf unserem eigenen Server (/fonts/)
   und werden im <head> von base.njk geladen, nicht von Google.
========================================== */


/* ==========================================
   VARIABLES
========================================== */

:root {

    /* Flächen */
    --bg-main: #f3f6fa;
    --bg-card: #ffffff;
    --bg-soft: #f7f9fc;

    /* Text */
    --text-main: #0b1f33;
    --text-muted: #4a5d72;

    /* Markenfarbe */
    --primary: #0c447c;
    --primary-hover: #042c53;
    --primary-light: #e6f1fb;
    --on-primary: #ffffff;

    /* Gelber Akzent (Such-Button, Fokus) */
    --accent: #f2b705;
    --accent-hover: #ffc928;
    --on-accent: #042c53;

    /* Dunkelblaues Band (Hero, Footer) */
    --band-bg: #0c447c;
    --band-text: #ffffff;
    --band-muted: #d3e4f5;
    --band-line: rgb(255 255 255 / 0.22);

    /* Fristen / Warnungen */
    --urgent: #a3361a;
    --urgent-light: #fdece7;
    --on-urgent: #ffffff;

    /* Linien */
    --border-color: #d5e0eb;
    --border-strong: #0c447c;

    /* Schriften */
    --font-body: 'Source Sans 3 Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    /* Formen */
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;

    --shadow-card: 0 1px 2px rgb(11 31 51 / 0.06), 0 4px 16px -6px rgb(11 31 51 / 0.12);
    --shadow-hover: 0 2px 4px rgb(11 31 51 / 0.06), 0 12px 28px -10px rgb(11 31 51 / 0.22);

    --transition: 0.18s ease;
}


/* ==========================================
   DARK MODE (folgt der Einstellung des Geräts)
========================================== */

@media (prefers-color-scheme: dark) {

    :root {

        --bg-main: #08131f;
        --bg-card: #0f1e2e;
        --bg-soft: #0c1926;

        --text-main: #e4edf6;
        --text-muted: #9fb3c8;

        --primary: #85b7eb;
        --primary-hover: #b5d4f4;
        --primary-light: #13304d;
        --on-primary: #04213f;

        --band-bg: #0b2540;
        --band-muted: #b5cbe2;

        --urgent: #f29b80;
        --urgent-light: #3a1a12;
        --on-urgent: #2a0f08;

        --border-color: #22364b;
        --border-strong: #85b7eb;

        --shadow-card: none;
        --shadow-hover: none;

        color-scheme: dark;
    }
}


/* ==========================================
   RESET
========================================== */

* {

    box-sizing: border-box;

    margin: 0;
    padding: 0;
}


html {

    scroll-behavior: smooth;
}


body {

    background-color: var(--bg-main);

    color: var(--text-main);

    font-family: var(--font-body);

    font-size: 18px;

    line-height: 1.6;

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
}


button,
input {

    font: inherit;
}


img,
svg {

    max-width: 100%;
}


h1,
h2,
h3 {

    line-height: 1.2;

    text-wrap: balance;
}


a {

    color: var(--primary);

    text-underline-offset: 3px;
}


a:hover {

    color: var(--primary-hover);
}


:focus-visible {

    outline: 3px solid var(--accent);

    outline-offset: 2px;
}


/* Nur für Screenreader sichtbar */

.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


.hidden,
[hidden] {

    display: none !important;
}


/* ==========================================
   CONTAINER
========================================== */

.container {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;

    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}


/* ==========================================
   NAVBAR
========================================== */

.navbar {

    background: var(--bg-card);

    border-bottom: 1px solid var(--border-color);

    position: sticky;

    top: 0;

    z-index: 100;
}


.nav-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 16px;

    min-height: 64px;
}


.logo {

    font-size: 1.5rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    color: var(--primary);

    text-decoration: none;
}


.logo span {

    color: var(--accent);
}


.nav-links {

    display: flex;

    flex-wrap: wrap;

    list-style: none;

    gap: 8px 28px;
}


.nav-links a {

    color: var(--text-main);

    font-weight: 600;

    font-size: 1rem;

    text-decoration: none;
}


.nav-links a:hover {

    color: var(--primary);

    text-decoration: underline;
}


.nav-right {

    display: flex;

    align-items: center;

    gap: 24px;
}


/* Sprachauswahl: DE | RO */

.lang-switch {

    display: flex;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    overflow: hidden;
}


.lang-switch a {

    padding: 4px 10px;

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    color: var(--text-muted);

    text-decoration: none;
}


.lang-switch a + a {

    border-left: 1px solid var(--border-color);
}


.lang-switch a:hover {

    background: var(--primary-light);

    color: var(--primary);
}


.lang-switch a[aria-current="true"] {

    background: var(--primary);

    color: var(--on-primary);
}


/* ==========================================
   HOMEPAGE HERO
   Dunkelblaues Band, alles zentriert
========================================== */

.hero {

    background: var(--band-bg);

    color: var(--band-text);

    padding-block: 72px 56px;
}


.hero-inner {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.hero h1 {

    font-size: clamp(2.3rem, 5.5vw, 3.6rem);

    font-weight: 800;

    letter-spacing: -0.015em;

    margin-bottom: 14px;
}


.subtitle {

    max-width: 34em;

    margin-bottom: 36px;

    font-size: 1.2rem;

    color: var(--band-muted);
}


/* Drei Versprechen unter der Suche */

.hero-trust {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px 32px;

    margin-top: 40px;

    padding-top: 24px;

    border-top: 1px solid var(--band-line);

    list-style: none;

    font-size: 1rem;

    font-weight: 600;

    color: var(--band-muted);
}


.hero-trust li {

    display: flex;

    align-items: center;

    gap: 8px;
}


.hero-trust svg {

    width: 20px;
    height: 20px;

    fill: none;

    stroke: var(--accent);

    stroke-width: 2.5;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* ==========================================
   SEARCH
========================================== */

.search-section {

    width: 100%;

    max-width: 680px;

    text-align: left;
}


.search-label {

    display: block;

    font-size: 1.05rem;

    font-weight: 700;

    margin-bottom: 8px;
}


.search-box {

    display: flex;

    gap: 6px;

    padding: 6px;

    background: var(--bg-card);

    border-radius: var(--radius-lg);

    box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.35);
}


.search-box:focus-within {

    outline: 3px solid var(--accent);

    outline-offset: 2px;
}


.search-box input {

    flex: 1;

    min-width: 0;

    padding: 12px 14px;

    border: 0;

    background: transparent;

    color: var(--text-main);

    font-size: 1.1rem;

    outline: none;
}


.search-box input::placeholder {

    color: var(--text-muted);
}


.search-box button {

    background: var(--accent);

    color: var(--on-accent);

    border: 0;

    border-radius: var(--radius-md);

    padding: 12px 26px;

    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition: background var(--transition);
}


.search-box button:hover {

    background: var(--accent-hover);
}


/* Beispiele unter dem Suchfeld */

.search-examples {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 8px 10px;

    margin-top: 16px;
}


.search-examples p {

    font-size: 0.95rem;

    color: var(--band-muted);
}


/* Vorschläge (unter der Suche und wenn nichts gefunden wurde) */

.suggestions {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    list-style: none;
}


.suggestion {

    border: 1px solid var(--border-color);

    background: var(--bg-soft);

    color: var(--primary);

    border-radius: 999px;

    padding: 4px 14px;

    font-size: 0.95rem;

    cursor: pointer;

    transition: background var(--transition), border-color var(--transition);
}


.suggestion:hover {

    border-color: var(--primary);

    background: var(--primary-light);
}


/* Im blauen Band: helle Variante */

.search-examples .suggestion {

    background: rgb(255 255 255 / 0.08);

    border-color: var(--band-line);

    color: var(--band-text);
}


.search-examples .suggestion:hover {

    background: rgb(255 255 255 / 0.18);

    border-color: rgb(255 255 255 / 0.5);
}


/* ==========================================
   SEARCH RESULT
========================================== */

.result-box {

    margin-top: 20px;

    padding: 22px 24px;

    background: var(--bg-card);

    color: var(--text-main);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    text-align: left;

    animation: resultAppear 0.2s ease;
}


.result-box h3 {

    font-size: 1.35rem;

    font-weight: 700;

    margin-bottom: 8px;
}


.result-box p {

    margin-bottom: 12px;

    color: var(--text-muted);
}


.result-box strong {

    color: var(--text-main);
}


.result-box .suggestions {

    margin-top: 4px;
}


.result-box .result-note {

    font-size: 0.92rem;

    font-style: italic;
}


@keyframes resultAppear {

    from {

        transform: translateY(4px);
    }

    to {

        transform: none;
    }
}


/* ==========================================
   BUTTONS
========================================== */

.guide-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    background: var(--primary);

    color: var(--on-primary);

    text-decoration: none;

    border: 2px solid var(--primary);

    border-radius: var(--radius-md);

    font-size: 1rem;

    font-weight: 700;

    transition: background var(--transition), border-color var(--transition);

    margin-top: 8px;
}


.guide-button:hover {

    background: var(--primary-hover);

    border-color: var(--primary-hover);

    color: var(--on-primary);
}


/* Externer Link zu einer offiziellen Seite: ↗ statt → */

.guide-button--external {

    background: var(--bg-card);

    color: var(--primary);
}


.guide-button--external:hover {

    background: var(--primary-light);

    color: var(--primary-hover);
}


/* Mehrere Buttons nebeneinander */

.button-row {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.button-row .guide-button {

    margin-top: 0;
}


/* ==========================================
   SECTIONS
========================================== */

.categories {

    padding-block: 64px;
}


.section-heading {

    margin-bottom: 28px;
}


.section-heading h2 {

    font-size: clamp(1.7rem, 3.5vw, 2.1rem);

    font-weight: 700;

    color: var(--primary-hover);

    margin-bottom: 4px;
}


.section-heading p {

    color: var(--text-muted);
}


.section-more {

    margin-top: 24px;
}


.section-more a {

    font-weight: 700;
}


/* ==========================================
   CARDS
========================================== */

.grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));

    gap: 20px;
}


/* Startseite: bis zu 4 Karten nebeneinander */

.grid--cards {

    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}


.card {

    background: var(--bg-card);

    padding: 26px;

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    text-decoration: none;

    color: inherit;

    display: flex;

    flex-direction: column;

    transition: border-color var(--transition), box-shadow var(--transition);
}


.card:hover {

    border-color: var(--primary);

    box-shadow: var(--shadow-hover);
}


.card .icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: var(--radius-md);

    font-size: 1.5rem;

    line-height: 1;
}


.card .icon svg {

    width: 26px;
    height: 26px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.card h3 {

    font-size: 1.3rem;

    font-weight: 700;

    margin-bottom: 6px;
}


.card p {

    font-size: 1rem;

    color: var(--text-muted);

    margin-bottom: 18px;

    flex-grow: 1;
}


.card-link {

    color: var(--primary);

    font-weight: 700;

    font-size: 1rem;

    transition: transform var(--transition);
}


.card:hover .card-link {

    transform: translateX(3px);
}


/* Info-Karte ohne Link auf die ganze Karte (z.B. Themen in einem Guide) */

.card--info:hover {

    border-color: var(--border-color);

    box-shadow: var(--shadow-card);
}


.card--info .card-link {

    text-decoration: none;
}


.card--info .card-link:hover {

    text-decoration: underline;
}


/* Kurze Zusammenfassung als Liste */

.summary-list {

    display: grid;

    gap: 4px;

    margin: 4px 0 8px;

    padding-left: 1.2em;
}


/* Startseite: Kategorie mit Liste der Guides */

.category-card:hover {

    border-color: var(--border-color);

    box-shadow: var(--shadow-card);
}


.category-card p {

    flex-grow: 0;

    margin-bottom: 14px;
}


.category-guides {

    display: grid;

    gap: 2px;

    margin-bottom: 14px;

    list-style: none;

    flex-grow: 1;
}


.category-guides a {

    display: block;

    padding: 8px 10px;

    margin-inline: -10px;

    border-radius: var(--radius-sm);

    font-weight: 600;

    text-decoration: none;
}


.category-guides a::before {

    content: "→ ";

    color: var(--accent);
}


.category-guides a:hover {

    background: var(--primary-light);

    text-decoration: underline;
}


/* Kategorie noch nicht verfügbar */

.card--disabled,
.card[href="#"] {

    cursor: default;

    background: var(--bg-soft);

    box-shadow: none;
}


.card--disabled:hover,
.card[href="#"]:hover {

    border-color: var(--border-color);

    box-shadow: none;
}


.card--disabled .card-link,
.card[href="#"] .card-link {

    color: var(--text-muted);

    font-family: var(--font-mono);

    font-size: 0.75rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    transform: none;
}


.card--disabled .icon,
.card[href="#"] .icon {

    filter: grayscale(1);

    opacity: 0.6;
}


/* ==========================================
   DEMNÄCHST
========================================== */

.soon {

    margin-top: 40px;
}


.soon-title {

    font-size: 1rem;

    font-weight: 700;

    color: var(--text-muted);

    margin-bottom: 12px;
}


.soon-list {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    list-style: none;
}


.soon-list li {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    background: var(--bg-card);

    border: 1px dashed var(--border-color);

    border-radius: 999px;

    font-size: 0.95rem;

    color: var(--text-muted);
}


.soon-list svg {

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* ==========================================
   SO FUNKTIONIERT'S
========================================== */

.calculator-section,
.about-section {

    background: var(--bg-card);

    padding-block: 64px;

    border-top: 1px solid var(--border-color);
}


.calculator-section h2,
.about-section > .container > h2 {

    margin-bottom: 24px;

    font-size: clamp(1.7rem, 3.5vw, 2.1rem);

    font-weight: 700;

    color: var(--primary-hover);
}


.calc-box,
.about-box {

    max-width: 680px;

    font-size: 1.05rem;
}


.calc-box p,
.about-box p {

    color: var(--text-muted);

    margin-bottom: 14px;
}


.how-list {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;

    list-style: none;
}


.how-list li {

    display: grid;

    gap: 6px;

    align-content: start;
}


.how-number {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 8px;

    background: var(--primary);

    color: var(--on-primary);

    border-radius: 50%;

    font-weight: 700;
}


.how-list strong {

    font-size: 1.2rem;
}


.how-list p {

    color: var(--text-muted);

    font-size: 1rem;
}


/* Alte Klasse, falls noch irgendwo verwendet */

.trust-list {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 32px;

    list-style: none;
}


.trust-list strong {

    display: block;

    font-size: 1.1rem;

    margin-bottom: 4px;
}


.trust-list p {

    color: var(--text-muted);

    font-size: 1rem;
}


/* ==========================================
   ANZEIGEN / WERBEFLÄCHEN
   Feste Höhe, damit die Seite beim Laden nicht springt.
   Solange der Platz leer ist, steht "Werbefläche" darin.
   Zum Ausblenden: hidden-Attribut auf die section setzen.

   <div class="ad-slot ad-slot--banner"></div>
   <div class="ad-slot ad-slot--box"></div>
========================================== */

.ad-section {

    padding-block: 24px;
}


.ad-slot {

    position: relative;

    display: grid;

    place-items: center;

    width: 100%;

    margin-inline: auto;

    padding-top: 20px;

    background: var(--bg-soft);

    border: 1px dashed var(--border-color);

    border-radius: var(--radius-md);

    overflow: hidden;
}


/* Pflicht-Kennzeichnung */

.ad-slot::before {

    content: "Anzeige";

    position: absolute;

    top: 4px;
    left: 8px;

    font-family: var(--font-mono);

    font-size: 0.68rem;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--text-muted);
}


.ad-slot:empty::after {

    content: "Werbefläche";

    font-family: var(--font-mono);

    font-size: 0.75rem;

    color: var(--text-muted);
}


/* Banner: 728×90 auf dem Desktop, 320×100 auf dem Handy */

.ad-slot--banner {

    max-width: 748px;

    min-height: 110px;
}


/* Box: 300×250, z.B. in der Seitenleiste der Guides */

.ad-slot--box {

    max-width: 320px;

    min-height: 270px;
}


/* Partner-Tipp (Affiliate), klar als Anzeige gekennzeichnet */

.partner-tip {

    position: relative;

    display: grid;

    gap: 6px;

    padding: 28px 24px 20px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.partner-tip::before {

    content: "Anzeige · Partner-Tipp";

    position: absolute;

    top: 6px;
    left: 24px;

    font-family: var(--font-mono);

    font-size: 0.68rem;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    color: var(--text-muted);
}


.partner-tip h3 {

    font-size: 1.15rem;
}


.partner-tip p {

    color: var(--text-muted);

    font-size: 1rem;
}


/* ==========================================
   GUIDE LAYOUT MIT SEITENLEISTE (optional)
   <div class="container guide-layout">
       <div> ... Schritte ... </div>
       <aside class="guide-aside"> ... Anzeige ... </aside>
   </div>
========================================== */

.guide-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 320px;

    gap: 40px;

    align-items: start;
}


.guide-aside {

    position: sticky;

    top: 88px;

    display: grid;

    gap: 16px;
}


/* ==========================================
   GUIDE HERO
========================================== */

.guide-hero {

    padding-block: 56px 48px;

    background: var(--band-bg);

    color: var(--band-text);
}


.guide-badge {

    display: inline-block;

    background: rgb(255 255 255 / 0.12);

    color: var(--band-text);

    padding: 3px 12px;

    border-radius: 999px;

    font-family: var(--font-mono);

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    margin-bottom: 16px;
}


.guide-hero h1 {

    font-size: clamp(2rem, 5vw, 2.8rem);

    font-weight: 800;

    margin-bottom: 12px;
}


.guide-hero p {

    max-width: 40em;

    font-size: 1.2rem;

    color: var(--band-muted);
}


/* z.B. "Der Brief wird auf Deutsch erstellt" */

.guide-hero .hero-language-note {

    display: inline-block;

    margin-top: 16px;

    padding: 8px 14px;

    background: rgb(255 255 255 / 0.1);

    border-radius: var(--radius-md);

    font-size: 1rem;

    font-weight: 600;

    color: var(--band-text);
}


/* ==========================================
   GUIDE INTRO / INFO BOX
========================================== */

.guide-intro {

    padding-block: 32px 0;
}


.info-box {

    max-width: 850px;

    display: flex;

    gap: 16px;

    padding: 20px 24px;

    background: var(--primary-light);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.info-icon {

    font-size: 1.4rem;

    line-height: 1.3;

    flex-shrink: 0;
}


.info-box h2,
.info-box h3 {

    font-size: 1.15rem;

    margin-bottom: 6px;
}


.info-box p {

    margin-bottom: 8px;
}


.info-box p:last-child {

    margin-bottom: 0;
}


/* Dringende Variante, z.B. für wichtige Fristen:
   <div class="info-box info-box--urgent"> */

.info-box--urgent {

    background: var(--urgent-light);

    border-color: var(--urgent);
}


.info-box--urgent h2,
.info-box--urgent h3 {

    color: var(--urgent);
}


/* ==========================================
   GUIDE SECTION
========================================== */

.guide-section {

    padding-block: 48px;
}


.guide-header {

    max-width: 850px;

    margin-bottom: 32px;
}


.guide-header span {

    font-family: var(--font-mono);

    color: var(--text-muted);

    font-size: 0.78rem;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.guide-header h2 {

    font-size: clamp(1.6rem, 3.5vw, 2rem);

    font-weight: 700;

    color: var(--primary-hover);

    margin: 4px 0 8px;
}


.guide-header p {

    color: var(--text-muted);
}


/* ==========================================
   GUIDE STEP
   Schritt-für-Schritt-Liste mit Verbindungslinie
========================================== */

.guide-step {

    max-width: 850px;

    display: grid;

    grid-template-columns: 44px minmax(0, 1fr);

    gap: 20px;

    position: relative;

    padding-bottom: 36px;
}


/* Verbindungslinie zwischen den Schritten */

.guide-step::before {

    content: "";

    position: absolute;

    left: 21px;

    top: 44px;

    bottom: 0;

    width: 2px;

    background: var(--border-color);
}


.guide-step:last-of-type::before {

    display: none;
}


.step-number {

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: var(--on-primary);

    border-radius: 50%;

    font-weight: 700;

    font-size: 1rem;

    font-variant-numeric: tabular-nums;

    position: relative;

    z-index: 1;
}


.step-content {

    min-width: 0;

    padding: 22px 24px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}


.step-label {

    font-family: var(--font-mono);

    color: var(--text-muted);

    font-size: 0.75rem;

    letter-spacing: 0.08em;

    margin-bottom: 2px;
}


.step-content h3 {

    font-size: 1.4rem;

    font-weight: 700;

    margin-bottom: 8px;
}


.step-short {

    font-size: 1.05rem;

    margin-bottom: 16px;
}


.step-details {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 16px;
}


.detail-item {

    padding: 14px 16px;

    background: var(--bg-soft);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);
}


.detail-item strong {

    display: block;

    margin-bottom: 4px;

    font-size: 1rem;
}


.detail-item p {

    color: var(--text-muted);

    font-size: 0.98rem;
}


/* ==========================================
   FRISTEN (Deadlines)
   <span class="deadline">3 Tage</span>
   <span class="deadline deadline--urgent">3 Tage</span>
========================================== */

.deadline {

    display: inline-block;

    font-family: var(--font-mono);

    font-size: 0.8rem;

    font-variant-numeric: tabular-nums;

    background: var(--primary-light);

    color: var(--primary);

    border-radius: var(--radius-sm);

    padding: 1px 8px;
}


.deadline--urgent {

    background: var(--urgent-light);

    color: var(--urgent);
}


/* Liste der Fristen in einer Info-Box */

.deadline-list {

    display: grid;

    gap: 10px;

    margin-top: 6px;

    list-style: none;
}


.deadline-list li {

    display: grid;

    grid-template-columns: 6.5rem minmax(0, 1fr);

    gap: 12px;

    align-items: baseline;
}


.deadline-list .deadline {

    justify-self: start;

    background: var(--bg-card);
}


.deadline-list .deadline--urgent {

    background: var(--urgent);

    color: var(--on-urgent);
}


/* Tabelle in einem Guide (z.B. Anspruchsdauer) */

.table-wrap {

    overflow-x: auto;

    margin-bottom: 12px;
}


.data-table {

    width: 100%;

    border-collapse: collapse;

    background: var(--bg-card);

    font-size: 1rem;

    font-variant-numeric: tabular-nums;
}


.data-table caption {

    text-align: left;

    font-weight: 700;

    padding-bottom: 8px;
}


.data-table th,
.data-table td {

    padding: 8px 12px;

    text-align: left;

    border-bottom: 1px solid var(--border-color);
}


.data-table th {

    background: var(--primary-light);

    font-size: 0.92rem;
}


.step-note {

    color: var(--text-muted);

    font-size: 0.95rem;
}


/* Häufige Fragen zum Aufklappen */

.faq {

    max-width: 850px;

    display: grid;

    gap: 10px;
}


.faq details {

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    padding: 0 18px;
}


.faq summary {

    padding: 14px 0;

    font-weight: 700;

    cursor: pointer;
}


.faq details[open] summary {

    border-bottom: 1px solid var(--border-color);

    margin-bottom: 10px;
}


.faq details p {

    padding-bottom: 14px;

    color: var(--text-muted);
}


/* Quellenliste unter einem Guide */

.source-list {

    display: grid;

    gap: 4px;

    margin: 8px 0 0;

    padding-left: 1.2em;

    font-size: 0.95rem;
}


/* ==========================================
   SOURCE
========================================== */

.source-section {

    padding-block: 8px 64px;
}


.source-box {

    max-width: 850px;

    padding: 24px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.source-box h3 {

    font-size: 1.1rem;

    margin-bottom: 10px;
}


.source-box p {

    color: var(--text-muted);

    font-size: 1rem;

    margin-bottom: 10px;
}


.source-line {

    margin-top: 16px;

    padding-top: 14px;

    border-top: 1px solid var(--border-color);

    font-family: var(--font-mono);

    font-size: 0.78rem;

    color: var(--text-muted);
}


.source-line strong {

    color: var(--text-main);

    font-weight: 500;
}


.source-line span {

    margin: 0 8px;
}


.source-box .guide-button {

    margin-top: 16px;
}


/* ==========================================
   FOOTER
========================================== */

footer {

    background: var(--band-bg);

    color: var(--band-muted);

    padding-block: 40px 28px;

    font-size: 0.95rem;
}


footer .container {

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    gap: 20px 40px;

    align-items: start;
}


.footer-brand {

    display: grid;

    gap: 8px;

    max-width: 32em;
}


footer .logo {

    color: var(--band-text);
}


.footer-links {

    display: flex;

    gap: 24px;
}


.footer-links a {

    color: var(--band-text);
}


.footer-links a:hover {

    color: var(--band-muted);
}


.footer-copy {

    grid-column: 1 / -1;

    padding-top: 20px;

    border-top: 1px solid var(--band-line);

    font-size: 0.85rem;
}


/* ==========================================
   FEEDBACK „War diese Seite hilfreich?“
========================================== */

.feedback-section {

    padding-block: 8px 48px;
}


/* Weiterschicken unter Guides und Vorlagen */

.share-section {

    padding-block: 8px 24px;
}


.share-box {

    max-width: 850px;

    padding: 20px 24px;

    background: var(--primary-light);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.share-box h2 {

    font-size: 1.1rem;

    margin-bottom: 12px;
}


.share-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.share-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    padding: 8px 18px;

    background: var(--bg-card);

    color: var(--primary);

    border: 2px solid var(--primary);

    border-radius: var(--radius-md);

    font: inherit;

    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.share-button:hover {

    background: var(--primary);

    color: var(--on-primary);
}


.share-button--native,
.share-button--native:hover {

    background: var(--primary);

    color: var(--on-primary);
}


.share-button--whatsapp {

    background: #1d7a45;

    border-color: #1d7a45;

    color: #ffffff;
}


.share-button--whatsapp:hover {

    background: #155c34;

    border-color: #155c34;

    color: #ffffff;
}


.share-button[hidden] {

    display: none;
}


.share-status {

    margin-top: 10px;

    font-weight: 600;

    overflow-wrap: anywhere;
}


.share-status:empty {

    display: none;
}


/* Weitere Guides unter Guides und Vorlagen */

.related-section {

    padding-block: 0 56px;
}


.related-box {

    max-width: 850px;

    padding: 24px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.related-box h2 {

    font-size: 1.2rem;

    margin-bottom: 10px;
}


.related-list {

    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

    column-gap: 24px;

    margin-bottom: 0;
}


.feedback-box {

    max-width: 850px;

    display: grid;

    gap: 16px;

    padding: 24px 28px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);
}


.feedback-box h2 {

    font-size: 1.3rem;

    color: var(--primary-hover);
}


.feedback-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}


.feedback-vote {

    padding: 8px 20px;

    background: var(--bg-soft);

    color: var(--text-main);

    border: 1px solid var(--border-color);

    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;
}


.feedback-vote:hover {

    border-color: var(--primary);
}


.feedback-vote[aria-pressed="true"] {

    background: var(--primary);

    color: var(--on-primary);

    border-color: var(--primary);
}


.feedback-form {

    display: grid;

    gap: 14px;
}


.feedback-form .guide-button {

    justify-self: start;

    margin-top: 0;

    cursor: pointer;
}


.field textarea {

    width: 100%;

    padding: 10px 12px;

    background: var(--bg-card);

    color: var(--text-main);

    border: 1px solid #8fa3b8;

    border-radius: var(--radius-md);

    font: inherit;

    resize: vertical;
}


.field textarea:focus {

    outline: 3px solid var(--accent);

    outline-offset: 0;

    border-color: var(--primary);
}


/* Falle für Spam-Roboter, für Menschen unsichtbar */

.feedback-trap {

    position: absolute;

    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


.feedback-privacy {

    font-size: 0.9rem;

    color: var(--text-muted);
}


.feedback-status {

    font-weight: 600;

    color: var(--primary);
}


.feedback-status:empty {

    display: none;
}


/* Kontaktseite */

.contact-email {

    font-size: 1.3rem;

    font-weight: 700;
}


/* ==========================================
   RECHTLICHE SEITEN (Impressum, Datenschutz)
========================================== */

.legal {

    padding-block: 40px 72px;
}


/* Gleiche linke Kante wie die Überschrift, Text aber gut lesbar schmal */

.legal-inner > * {

    max-width: 800px;
}


.legal h2 {

    font-size: 1.3rem;

    font-weight: 700;

    color: var(--primary-hover);

    margin: 36px 0 10px;
}


.legal p,
.legal ul,
.legal address {

    margin-bottom: 12px;
}


.legal ul {

    padding-left: 1.3em;
}


.legal li {

    margin-bottom: 4px;
}


.legal-address {

    font-style: normal;
}


.legal-updated {

    margin-top: 40px;

    font-family: var(--font-mono);

    font-size: 0.8rem;

    color: var(--text-muted);
}


/* Noch auszufüllende Angaben */

.placeholder {

    background: var(--urgent-light);

    color: var(--urgent);

    font-weight: 600;
}


.placeholder-warning {

    margin-bottom: 8px;

    padding: 14px 18px;

    background: var(--urgent-light);

    border: 2px solid var(--urgent);

    border-radius: var(--radius-md);

    color: var(--text-main);
}


/* ==========================================
   STARTSEITE: HINWEIS AUF DAS KÜNDIGUNGS-WERKZEUG
========================================== */

.tool-teaser-section {

    padding-top: 48px;
}


.tool-teaser-list {

    display: grid;

    gap: 16px;
}


.tool-teaser {

    display: grid;

    grid-template-columns: auto minmax(0, 1fr) auto;

    gap: 24px;

    align-items: center;

    padding: 26px 28px;

    background: var(--bg-card);

    color: inherit;

    text-decoration: none;

    border: 2px solid var(--primary);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);

    transition: box-shadow var(--transition);
}


.tool-teaser:hover {

    box-shadow: var(--shadow-hover);

    color: inherit;
}


.tool-teaser-icon {

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: var(--on-primary);

    border-radius: var(--radius-md);
}


.tool-teaser-icon svg {

    width: 34px;
    height: 34px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.tool-teaser-badge {

    display: inline-block;

    margin-bottom: 6px;

    padding: 1px 10px;

    background: var(--accent);

    color: var(--on-accent);

    border-radius: 999px;

    font-size: 0.8rem;

    font-weight: 700;
}


.tool-teaser h2 {

    font-size: 1.4rem;

    color: var(--primary-hover);

    margin-bottom: 4px;
}


.tool-teaser p {

    color: var(--text-muted);

    font-size: 1rem;
}


.tool-teaser-cta {

    padding: 12px 20px;

    background: var(--primary);

    color: var(--on-primary);

    border-radius: var(--radius-md);

    font-weight: 700;

    white-space: nowrap;
}


.tool-teaser:hover .tool-teaser-cta {

    background: var(--primary-hover);
}


/* ==========================================
   WERKZEUG: KÜNDIGUNGSSCHREIBEN
   Formular links, Vorschau (Briefpapier) rechts
========================================== */

.tool-section {

    padding-block: 40px 24px;
}


.tool-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 32px;

    align-items: start;
}


.form-card {

    display: grid;

    gap: 28px;

    padding: 28px;

    background: var(--bg-card);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-card);
}


.privacy-note {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 14px;

    background: var(--primary-light);

    border-radius: var(--radius-md);

    font-size: 0.95rem;

    font-weight: 600;
}


.privacy-note svg {

    width: 20px;
    height: 20px;

    flex-shrink: 0;

    fill: none;

    stroke: var(--primary);

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.form-card fieldset {

    border: 0;

    display: grid;

    gap: 14px;
}


.form-card legend {

    font-size: 1.15rem;

    font-weight: 700;

    color: var(--primary-hover);

    margin-bottom: 14px;
}


.field {

    display: grid;

    gap: 6px;

    align-content: start;
}


.field label {

    font-weight: 600;

    font-size: 1rem;
}


.optional {

    font-weight: 400;

    font-size: 0.85rem;

    color: var(--text-muted);
}


.field input,
.field select {

    width: 100%;

    padding: 10px 12px;

    background: var(--bg-card);

    color: var(--text-main);

    border: 1px solid #8fa3b8;

    border-radius: var(--radius-md);

    font-size: 1rem;
}


.field input:focus,
.field select:focus {

    outline: 3px solid var(--accent);

    outline-offset: 0;

    border-color: var(--primary);
}


.field input[aria-invalid="true"] {

    border-color: var(--urgent);

    border-width: 2px;
}


.field-error {

    color: var(--urgent);

    font-size: 0.92rem;

    font-weight: 600;
}


.field-hint {

    color: var(--text-muted);

    font-size: 0.92rem;
}


.field-row {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


.field--indent {

    padding-left: 30px;
}


.choice {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    font-size: 1rem;

    cursor: pointer;
}


.choice input {

    width: 20px;
    height: 20px;

    margin-top: 3px;

    flex-shrink: 0;

    accent-color: var(--primary);
}


.pdf-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    padding: 14px 20px;

    background: var(--accent);

    color: var(--on-accent);

    border: 0;

    border-radius: var(--radius-md);

    font-size: 1.1rem;

    font-weight: 700;

    cursor: pointer;

    transition: background var(--transition);
}


.pdf-button:hover {

    background: var(--accent-hover);
}


.pdf-button svg {

    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.form-status {

    min-height: 1.6em;

    margin-top: -14px;

    font-weight: 600;

    color: var(--primary);
}


/* ==========================================
   WERKZEUG: BEWERBUNG
========================================== */

.cv-form {

    max-width: 860px;
}


.repeat-list {

    display: grid;

    gap: 16px;
}


.repeat-item {

    display: grid;

    gap: 12px;

    padding: 18px;

    background: var(--bg-soft);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);
}


.btn-secondary {

    justify-self: start;

    padding: 8px 16px;

    background: var(--bg-card);

    color: var(--primary);

    border: 1px dashed var(--primary);

    border-radius: var(--radius-md);

    font-weight: 700;

    cursor: pointer;
}


.btn-secondary:hover {

    background: var(--primary-light);
}


.link-button {

    justify-self: start;

    padding: 0;

    background: none;

    border: 0;

    color: var(--text-muted);

    font-size: 0.92rem;

    text-decoration: underline;

    cursor: pointer;
}


.link-button:hover {

    color: var(--urgent);
}


.choice--small {

    margin-top: 6px;

    font-size: 0.92rem;
}


.field input:disabled {

    opacity: 0.5;
}


.photo-preview {

    width: 90px;

    height: auto;

    border-radius: var(--radius-sm);

    border: 1px solid var(--border-color);
}


/* Textbausteine */

.phrases {

    display: grid;

    gap: 8px;
}


.phrases-title {

    font-size: 0.9rem;

    font-weight: 600;

    color: var(--text-muted);
}


.phrase-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.phrase-chip {

    display: grid;

    gap: 2px;

    max-width: 100%;

    padding: 6px 12px;

    background: var(--bg-card);

    color: var(--text-main);

    border: 1px solid var(--border-color);

    border-radius: var(--radius-md);

    text-align: left;

    font-size: 0.92rem;

    cursor: pointer;
}


.phrase-chip:hover {

    border-color: var(--primary);

    background: var(--primary-light);
}


.phrase-de {

    font-weight: 600;

    color: var(--primary);
}


.phrase-hint {

    font-size: 0.82rem;

    color: var(--text-muted);
}


.save-box {

    padding: 16px 18px;

    background: var(--bg-soft);

    border-radius: var(--radius-md);
}


.cv-buttons {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));

    gap: 12px;
}


.pdf-button--secondary {

    background: var(--primary);

    color: var(--on-primary);
}


.pdf-button--secondary:hover {

    background: var(--primary-hover);
}


.pdf-button[hidden] {

    display: none;
}


/* Vorschau: ein Blatt Papier im A4-Format */

.preview-column {

    position: sticky;

    top: 88px;
}


.preview-label {

    font-family: var(--font-mono);

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: var(--text-muted);

    margin-bottom: 8px;
}


.paper {

    aspect-ratio: 210 / 297;

    max-width: 100%;

    overflow: hidden;

    padding: 7% 8% 6% 11%;

    background: #ffffff;

    color: #1a1a1a;

    border: 1px solid var(--border-color);

    box-shadow: var(--shadow-card);

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(0.5rem, 1.05vw, 0.72rem);

    line-height: 1.45;

    display: flex;

    flex-direction: column;
}


.paper p {

    margin-bottom: 0.9em;
}


.paper-sender {

    margin-bottom: 1.6em;
}


.paper-return {

    font-size: 0.7em;

    color: #555555;

    border-bottom: 1px solid #999999;

    align-self: flex-start;

    margin-bottom: 0.6em;
}


.paper-recipient {

    margin-bottom: 2.2em;
}


.paper-date {

    align-self: flex-end;

    margin-bottom: 1.4em;
}


.paper-subject {

    font-weight: 700;

    margin-bottom: 1.6em;
}


.paper-details {

    margin-bottom: 0.9em;
}


.paper-regards {

    margin-bottom: 2.6em !important;
}


.paper-signature {

    align-self: flex-start;

    min-width: 45%;

    padding-top: 0.3em;

    border-top: 1px solid #555555;
}


.paper-credit {

    margin-top: auto;

    font-size: 0.65em;

    color: #8a8a8a;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 960px) {

    .guide-layout {

        grid-template-columns: minmax(0, 1fr);
    }


    .guide-aside {

        position: static;
    }


    .tool-layout {

        grid-template-columns: minmax(0, 1fr);
    }


    .preview-column {

        position: static;

        max-width: 520px;
    }


    .paper {

        font-size: clamp(0.45rem, 2.1vw, 0.72rem);
    }


    .how-list,
    .trust-list {

        grid-template-columns: minmax(0, 1fr);

        gap: 24px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    body {

        font-size: 17px;
    }


    .nav-container {

        min-height: 56px;
    }


    .logo {

        font-size: 1.3rem;
    }


    .nav-links {

        gap: 4px 16px;
    }


    .nav-links a {

        font-size: 0.92rem;
    }


    /* Auf dem Handy nur Logo und Sprachauswahl */

    .nav-right nav:not(.lang-switch) {

        display: none;
    }


    .hero {

        padding-block: 44px 36px;
    }


    .subtitle {

        font-size: 1.1rem;

        margin-bottom: 28px;
    }


    .search-box {

        flex-direction: column;
    }


    .search-box button {

        width: 100%;
    }


    .hero-trust {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        margin-top: 28px;
    }


    .categories,
    .about-section {

        padding-block: 44px;
    }


    .ad-slot--banner {

        max-width: 340px;

        min-height: 120px;
    }


    footer .container {

        grid-template-columns: minmax(0, 1fr);
    }


    .guide-hero {

        padding-block: 40px 36px;
    }


    .guide-section {

        padding-block: 36px;
    }


    .info-box {

        flex-direction: column;

        gap: 6px;

        padding: 18px 20px;
    }


    .guide-step {

        grid-template-columns: 36px minmax(0, 1fr);

        gap: 12px;

        padding-bottom: 24px;
    }


    .guide-step::before {

        left: 17px;

        top: 36px;
    }


    .step-number {

        width: 36px;
        height: 36px;

        font-size: 0.9rem;
    }


    .step-content {

        padding: 18px;
    }


    .step-content h3 {

        font-size: 1.25rem;
    }


    .step-details {

        grid-template-columns: minmax(0, 1fr);
    }


    .form-card {

        padding: 20px;
    }


    .tool-teaser {

        grid-template-columns: minmax(0, 1fr);

        gap: 14px;

        padding: 22px;
    }


    .tool-teaser-icon {

        width: 52px;
        height: 52px;
    }


    .tool-teaser-cta {

        text-align: center;
    }


    .field-row {

        grid-template-columns: minmax(0, 1fr);
    }


    .deadline-list li {

        grid-template-columns: minmax(0, 1fr);

        gap: 4px;
    }


    .guide-button {

        width: 100%;
    }


    .result-box {

        padding: 18px 20px;
    }
}


/* ==========================================
   WENIGER BEWEGUNG (Barrierefreiheit)
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation: none !important;

        transition: none !important;
    }
}
