/* ========================================================== */
/* 0. FARBPALETTE & DESIGN-TOKENS                             */
/* Frische "Studio"-Palette: Porzellan, Immergrün, Aprikose   */
/* ========================================================== */
:root {
    /* Flächen */
    --paper: #f3f7f5;
    --paper-tint: #e8f1ed;
    --surface: #ffffff;
    --surface-sunk: #f0f6f3;

    /* Schrift */
    --ink: #14231f;
    --ink-soft: #3a4a45;
    --ink-muted: #6a7b75;

    /* Akzente */
    --accent: #10786e;
    --accent-deep: #0b5c55;
    --accent-tint: #e0f0ed;
    --sun: #ef9f52;
    --sun-tint: #fdeedd;
    --sage: #4a8f66;

    /* Linien & Schatten */
    --line: #dde8e4;
    --line-soft: #edf4f1;
    --shadow-sm: 0 2px 8px rgba(18, 52, 46, 0.06);
    --shadow-md: 0 12px 32px -14px rgba(18, 52, 46, 0.26);
    --shadow-lg: 0 24px 60px -24px rgba(18, 52, 46, 0.36);

    /* Form */
    --radius: 14px;
    --radius-sm: 8px;

    /* Typografie */
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========================================================== */
/* 1. GRUNDSTYLING (Allgemein / Mobile-First) */
/* ========================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Sprungziele bleiben unter der klebenden Navigation sichtbar */
    scroll-padding-top: 84px;
    font-family: var(--font-body);
    line-height: 1.65;
    background-color: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--paper);
    /* Sanfte Lichtstimmung statt flächigem Grau */
    background-image:
        radial-gradient(60rem 30rem at 85% -10%, rgba(16, 120, 110, 0.12), transparent 60%),
        radial-gradient(45rem 28rem at -10% 12%, rgba(239, 159, 82, 0.1), transparent 65%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
}

a {
    color: var(--accent-deep);
}

::selection {
    background: var(--sun-tint);
    color: var(--ink);
}

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

.skip-link {
    position: fixed;
    top: 10px;
    left: 14px;
    z-index: 2000;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--sun);
    color: #17251f;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transform: translateY(-160%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================== */
/* 2. HEADER & HERO (Tiefes Immergrün mit Morgenlicht) */
/* ========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #0f2723;
    background-image:
        radial-gradient(38rem 22rem at 78% 8%, rgba(239, 159, 82, 0.28), transparent 62%),
        radial-gradient(34rem 24rem at 8% 92%, rgba(45, 190, 170, 0.34), transparent 60%),
        linear-gradient(165deg, #123a33 0%, #0f2b26 55%, #0c211e 100%);
    color: #eefaf5;
    padding: 74px 0 96px;
    text-align: center;
}

/* Weicher Papierrand zum Inhalt hin */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 60px;
    background: radial-gradient(120% 100% at 50% 100%, var(--paper) 60%, transparent 61%);
    /* Rein dekorativ – darf keine Klicks auf die Buttons abfangen. */
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 4rem);
    margin-bottom: 14px;
    color: #f6fdfa;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.92;
}

.hero .btn {
    box-shadow: 0 12px 28px -12px rgba(6, 26, 22, 0.75);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

/* Zweitrangiger Einstieg: öffnet die Chat-Assistenz */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid rgba(238, 250, 245, 0.38);
    background: rgba(238, 250, 245, 0.08);
    color: #eefaf5;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn-ghost:hover {
    background: rgba(238, 250, 245, 0.17);
    border-color: var(--sun);
    transform: translateY(-2px);
}

.btn-ghost svg {
    width: 19px;
    height: 19px;
}

/* Die Haupt-Buttons (Immergrün) */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 32px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* ========================================================== */
/* 3. CARD DESIGN & GRID LAYOUT */
/* ========================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: -40px;
    padding-bottom: 50px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin: 10px 0;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.card h3 {
    color: var(--ink);
    margin-bottom: 15px;
    font-size: 1.45rem;
}

/* Kleine Icon-Plakette für Karten-Überschriften */
.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent-tint);
    color: var(--accent-deep);
    margin-bottom: 10px;
}

.tile-icon svg {
    width: 20px;
    height: 20px;
}

/* Kompetenz-Kacheln in der Leistungssektion */
.skill-tile {
    background: var(--surface-sunk);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.skill-tile:hover {
    transform: translateY(-3px);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.skill-tile h4 {
    font-size: 1.12rem;
}

.widget-placeholder {
    margin-top: 15px;
}

/* ========================================================== */
/* 4. TRANSLATOR SPEZIFISCHE STILE */
/* ========================================================== */
#translate-input {
    width: 100%;
    height: 150px;
    margin: 15px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-sunk);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}

#translate-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(16, 120, 110, 0.14);
}

#translate-input::placeholder {
    color: var(--ink-muted);
}

.translator-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: center;
}

.btn-secondary {
    background: var(--ink);
    color: #eefaf5;
    border: none;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
}

.file-btn {
    padding: 6px;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 0.9rem;
}

.file-btn::file-selector-button {
    background: var(--sun-tint);
    color: var(--accent-deep);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

.file-btn::file-selector-button:hover {
    background: #fbe0c4;
}

/* ========================================================== */
/* 4b. DATEI-ÜBERSETZUNG (Upload, Erkennung, Ergebnis)        */
/* ========================================================== */
.dt-card {
    text-align: left;
    border-top: 4px solid var(--accent);
}

/* Klassen mit eigener display-Regel dürfen [hidden] nicht aushebeln */
.dt-card [hidden] {
    display: none !important;
}

.dt-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.dt-pair {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 11px;
}

.dt-lead {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Ablagefläche für Drag & Drop */
.dt-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 34px 20px;
    text-align: center;
    background: var(--surface-sunk);
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.dt-dropzone:hover {
    border-color: var(--accent);
    background: var(--accent-tint);
}

.dt-dropzone.is-dragover {
    border-color: var(--accent);
    background: var(--accent-tint);
    transform: scale(1.01);
}

.dt-dropzone-icon {
    width: 30px;
    height: 30px;
    color: var(--accent-deep);
}

.dt-dropzone-title {
    font-weight: 700;
    color: var(--ink);
}

.dt-dropzone-hint {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Das Dateifeld bleibt im Layout und damit bedienbar – es ist nur unsichtbar.
   Mit display:none oder [hidden] öffnet sich in einigen mobilen Browsern und
   In-App-Ansichten zwar der Dialog, die gewählte Datei kommt aber nie an. */
.dt-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Tastaturbedienung: Die Ablagefläche zeigt den Fokus des Dateifelds. */
.dt-file-input:focus-visible + .dt-dropzone,
.dt-dropzone:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Angaben zur gewählten Datei */
.dt-file-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--sun-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.dt-file-icon {
    display: inline-flex;
    color: var(--accent-deep);
}

.dt-file-icon svg {
    width: 20px;
    height: 20px;
}

.dt-file-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.dt-file-text strong {
    color: var(--ink);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-file-text small {
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.dt-clear {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dt-clear:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Bearbeitbare Vorschau */
.dt-label {
    display: block;
    margin: 20px 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
}

.dt-source {
    width: 100%;
    height: 170px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-sunk);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.97rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s, background 0.2s;
}

.dt-source:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(16, 120, 110, 0.14);
}

.dt-counter {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-align: right;
}

.dt-counter.is-over {
    color: var(--accent-deep);
    font-weight: 700;
}

/* Sprachanzeige */
.dt-langbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 18px;
    padding: 14px 16px;
    background: var(--surface-sunk);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}

.dt-lang {
    display: flex;
    flex-direction: column;
    min-width: 92px;
}

.dt-lang small,
.dt-lang label {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.dt-lang label {
    margin-bottom: 2px;
    cursor: pointer;
}

.dt-lang-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-muted);
}

/* Auswahlfelder für Ausgangs- und Zielsprache */
.dt-lang-select {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    padding: 4px 26px 4px 8px;
    margin-left: -8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.dt-lang-select:hover {
    border-color: var(--line);
    background-color: var(--surface);
}

.dt-lang-select:focus-visible {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(16, 120, 110, 0.16);
}

.dt-lang-select.is-manual {
    border-color: var(--line);
    background-color: var(--surface);
}

.dt-langhint {
    margin: -10px 0 18px;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.dt-lang-value.is-known {
    color: var(--accent-deep);
}

.dt-arrow {
    width: 22px;
    height: 22px;
    color: var(--sun);
    flex-shrink: 0;
}

.dt-swap {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dt-swap:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #eefaf5;
}

.dt-swap:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dt-swap:disabled:hover {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-soft);
}

.dt-translate {
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.dt-translate:disabled {
    background: var(--line);
    color: var(--ink-muted);
    cursor: not-allowed;
    transform: none;
}

/* Erklärt den grauen Knopf, damit er nicht defekt wirkt */
.dt-translate-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.dt-translate-hint[hidden] {
    display: none;
}

.dt-translate.is-loading {
    position: relative;
    padding-left: 46px;
}

.dt-translate.is-loading::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dt-spin 0.7s linear infinite;
}

@keyframes dt-spin {
    to { transform: rotate(360deg); }
}

/* Statusmeldungen */
.dt-status {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--line);
    background: var(--surface-sunk);
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.dt-status.is-ok {
    border-left-color: var(--sage);
    background: #e7f4ed;
}

.dt-status.is-warn,
.dt-status.is-busy {
    border-left-color: var(--sun);
    background: var(--sun-tint);
}

.dt-status.is-error {
    border-left-color: var(--accent);
    background: var(--accent-tint);
    color: var(--accent-deep);
}

/* Tagesguthaben. Steht unter der Statuszeile und bleibt bewusst leise -
   erst wenn es knapp wird, tritt der Hinweis auf die persoenliche
   Uebersetzung sichtbar hervor. */
.dt-quota {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.dt-quota.is-empty {
    color: var(--accent-deep);
}

.dt-quota-link {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.dt-quota-link:hover,
.dt-quota-link:focus-visible {
    text-decoration-thickness: 2px;
}

/* Ergebnis */
.dt-result {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.dt-result-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    background: var(--paper-tint);
    border-bottom: 1px solid var(--line);
}

.dt-result-head h4 {
    font-size: 1.1rem;
    margin-right: auto;
}

.dt-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-result-actions .btn-secondary {
    font-size: 0.82rem;
    padding: 8px 15px;
}

.dt-output {
    padding: 18px;
    max-height: 420px;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--ink);
}

.dt-footnote {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.translator-disclaimer {
    background-color: var(--sun-tint);
    border-left: 4px solid var(--sun);
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: left;
    color: var(--ink-soft);
}

.translator-disclaimer .highlight {
    color: var(--accent-deep);
    font-weight: 700;
}

/* Flexibles Raster für die Sprach-Buttons */
.translation-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.text-translate-counter {
    margin: -8px 0 10px;
    text-align: right;
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.btn-lang {
    background-color: var(--surface);
    color: var(--accent-deep);
    border: 1px solid var(--line);
    padding: 9px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    min-width: 95px;
}

.btn-lang:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-lang:active {
    transform: scale(0.95);
}

.btn-lang:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.btn-lang.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.text-translate-status {
    margin-top: 16px;
    padding: 11px 14px;
    border-left: 4px solid var(--sun);
    border-radius: var(--radius-sm);
    background: var(--sun-tint);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.text-translate-status.is-error {
    border-left-color: var(--accent);
    background: var(--accent-tint);
    color: var(--accent-deep);
}

.text-translate-result {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.text-translate-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-tint);
}

.text-translate-output {
    max-height: 420px;
    overflow-y: auto;
    padding: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}

/* ========================================================== */
/* 5. MODERNE NAVIGATION (Sticky Navbar & Mobile Drawer) */
/* ========================================================== */
.navbar {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(239, 159, 82, 0.3);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Hintergrund und Weichzeichner liegen auf einer eigenen Ebene. Stünde
   "backdrop-filter" auf .navbar selbst, würde die Leiste zum Bezugsrahmen
   für alle fixierten Kinder – der Navigations-Vorhang bekäme dadurch die
   Höhe 0 und das Sprachmenü würde am 60px hohen Leistenrand abgeschnitten. */
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(13, 33, 29, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color 0.22s ease;
    pointer-events: none;
}

.navbar.is-scrolled::before {
    background-color: rgba(10, 29, 25, 0.96);
}

.navbar.is-scrolled {
    border-bottom-color: rgba(239, 159, 82, 0.42);
    box-shadow: 0 14px 34px -26px rgba(4, 20, 16, 0.9);
}

.nav-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.flag-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.nav-logo {
    position: relative;
    flex: 0 0 auto;
    color: #eefaf5;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: grid;
    place-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: rgba(238, 250, 245, 0.06);
    border: 1px solid rgba(215, 235, 228, 0.18);
    border-radius: 50%;
    padding: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    background: rgba(238, 250, 245, 0.13);
    border-color: rgba(239, 159, 82, 0.52);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-picker {
    position: relative;
    z-index: 4;
}

.language-trigger,
.language-option {
    font-family: var(--font-body);
}

.language-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 7px 10px;
    border: 1px solid rgba(215, 235, 228, 0.28);
    border-radius: 999px;
    background: rgba(238, 250, 245, 0.08);
    color: #eefaf5;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
    border-color: rgba(239, 159, 82, 0.7);
    background: rgba(238, 250, 245, 0.14);
}

.language-trigger:active {
    transform: translateY(1px);
}

.language-trigger:disabled {
    cursor: wait;
    opacity: 0.72;
}

.language-flag {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 15px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(11, 33, 28, 0.18);
}

.language-chevron {
    width: 12px;
    height: 8px;
    margin-left: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    /* dvh statt vh: auf Telefonen zählt vh die Fläche hinter den
       Browserleisten mit, wodurch die letzten Sprachen unerreichbar waren. */
    max-height: min(430px, calc(100vh - 90px));
    max-height: min(430px, calc(100dvh - 90px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.language-option:hover,
.language-option:focus-visible {
    background: var(--paper-tint);
    color: var(--accent-deep);
}

.language-option.is-selected {
    background: var(--accent-tint);
    color: var(--accent-deep);
}

.language-option.is-selected::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--sun);
}

.language-status {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fff8ee;
    color: var(--ink-soft);
    box-shadow: var(--shadow-md);
    font-size: 0.78rem;
    line-height: 1.35;
    pointer-events: none;
}

.language-status:empty {
    display: none;
}

.language-status.is-error {
    color: #8c2e2e;
    background: #fff0f0;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.18s ease;
    background: #eefaf5;
}

.nav-menu {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: auto;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s;
    background:
        radial-gradient(22rem 12rem at 90% 0%, rgba(239, 159, 82, 0.13), transparent 62%),
        rgba(13, 33, 29, 0.985);
    list-style: none;
    padding: 12px;
    border: 1px solid rgba(239, 159, 82, 0.3);
    border-radius: 18px;
    box-shadow: 0 26px 70px -28px rgba(2, 16, 12, 0.92);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-links {
    position: relative;
    color: #d7ebe4;
    text-decoration: none;
    padding: 0.92rem 1rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 11px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.nav-links:hover,
.nav-links[aria-current="location"] {
    color: var(--sun);
    background: rgba(238, 250, 245, 0.08);
}

.nav-links:hover {
    transform: translateX(3px);
}

.nav-links::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sun);
    opacity: 0;
    transform: scale(0.45);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-links[aria-current="location"]::after {
    opacity: 1;
    transform: scale(1);
}

.nav-backdrop {
    position: fixed;
    inset: 60px 0 0;
    z-index: 1;
    border: 0;
    background: rgba(4, 18, 14, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease, visibility 0.2s;
}

.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hamburger Animationen zum "X" */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ========================================================== */
/* 6. FOOTER */
/* ========================================================== */
footer {
    background: #0f2723;
    color: #b3cdc5;
    text-align: center;
    padding: 26px 20px;
    font-size: 0.92rem;
}

/* ========================================================== */
/* 7. RESPONSIVE MEDIA QUERIES (Breite Navigation ab 960px) */
/* ========================================================== */
@media screen and (min-width: 960px) {
    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 2px;
        width: auto;
        max-height: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-links {
        padding: 0.5rem 0.66rem;
        width: auto;
        justify-content: center;
        font-size: 0.94rem;
        font-weight: 500;
    }

    .nav-links:hover {
        transform: translateY(-1px);
    }

    .nav-links::after {
        right: 50%;
        bottom: 1px;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        transform: translateX(50%) scaleX(0.35);
    }

    .nav-links[aria-current="location"]::after {
        transform: translateX(50%) scaleX(1);
    }

    .nav-backdrop {
        display: none;
    }
}

@media screen and (max-width: 959px) {
    body.nav-open {
        overflow: hidden;
    }
}

@media screen and (max-width: 420px) {
    .nav-container {
        padding: 0 12px;
    }

    .language-trigger {
        min-width: 42px;
        padding-inline: 9px;
    }

    .language-trigger > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .language-chevron {
        margin-left: 0;
    }
}

/* ---------------------------------------------------------------- */
/* Sprachauswahl auf Telefonen                                      */
/* Das Menü hing zuvor am rechten Rand des Umschalters – also rund  */
/* 60px vom Bildschirmrand entfernt, weil das Burger-Menü daneben   */
/* steht. Auf schmalen Geräten lief es dadurch aus dem Bild und     */
/* überlagerte den geöffneten Navigations-Vorhang. Hier wird es zu  */
/* einer am Viewport ausgerichteten Ebene mit großen Tippzielen.    */
/* ---------------------------------------------------------------- */
@media screen and (max-width: 767px) {
    .language-menu {
        position: fixed;
        top: 68px;
        right: 12px;
        left: auto;
        width: min(340px, calc(100vw - 24px));
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        padding: 8px;
        border-radius: 16px;
    }

    .language-option {
        min-height: 46px;
        padding: 11px 12px;
        border-radius: 11px;
        font-size: 1rem;
    }

    .language-flag {
        width: 26px;
        height: 18px;
    }

    .language-status {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        padding: 9px 12px;
        font-size: 0.82rem;
        text-align: center;
    }
}

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

/* ========================================================== */
/* 8. ANFRAGEN, VERTRAUEN & DATENSCHUTZ */
/* ========================================================== */
.eyebrow { margin: 0 0 10px; color: var(--accent-deep); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.text-link, .link-button { border: 0; padding: 0; background: none; color: var(--accent-deep); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(16, 120, 110, 0.35); text-underline-offset: 4px; cursor: pointer; }
.text-link { margin-top: 16px; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 4px; transition: transform 0.18s ease; }
.text-link:hover span { transform: translateX(4px); }
.inquiry-section { display: grid; gap: 28px; margin: 38px 0; scroll-margin-top: 84px; }
.inquiry-intro { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 54px); border-radius: 22px; background: var(--accent-deep); color: #f6fbf8; }
.inquiry-intro::after { content: "EN / DE"; position: absolute; right: -14px; bottom: -24px; color: rgba(255,255,255,0.07); font-family: 'Fraunces', serif; font-size: clamp(4.5rem, 13vw, 9rem); line-height: 1; white-space: nowrap; }
.inquiry-intro > * { position: relative; z-index: 1; }
.inquiry-intro .eyebrow { color: var(--sun-tint); }
.inquiry-intro h2 { max-width: 620px; color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); }
.inquiry-intro > p:not(.eyebrow) { max-width: 650px; color: #d7ebe4; font-size: 1.08rem; }
.response-promise { display: flex; align-items: center; gap: 12px; max-width: 530px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); color: #edf8f4; }
.response-promise svg { width: 26px; flex: none; color: var(--sun); }
.inquiry-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 24px 70px rgba(37, 62, 56, 0.12); }
.inquiry-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-sunk); border-bottom: 1px solid var(--line); }
.inquiry-tab { border: 0; border-bottom: 3px solid transparent; padding: 18px 20px 15px; background: transparent; color: var(--ink-muted); font: inherit; font-weight: 700; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.inquiry-tab span { margin-right: 8px; color: var(--accent); font-size: 0.76rem; letter-spacing: 0.08em; }
.inquiry-tab:hover { color: var(--ink); background: rgba(255,255,255,0.55); }
.inquiry-tab.is-active { border-color: var(--sun); background: var(--paper); color: var(--accent-deep); }
.inquiry-panel { padding: clamp(24px, 5vw, 48px); }
.inquiry-panel[hidden], .form-step[hidden] { display: none; }
.honeypot { position: absolute; left: -10000px; }
.form-progress { display: flex; align-items: center; gap: 0; margin-bottom: 30px; color: var(--ink-muted); font-size: 0.82rem; font-weight: 700; }
.form-progress span { display: flex; align-items: center; flex: 1; }
.form-progress span::before { content: ""; width: 10px; height: 10px; margin-right: 8px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); }
.form-progress span:first-child::after { content: ""; height: 1px; flex: 1; margin: 0 12px; background: var(--line); }
.form-progress span.is-active { color: var(--accent-deep); }
.form-progress span.is-active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(16,120,110,0.12); }
.form-step > label, .field-grid > label { display: grid; gap: 7px; margin-bottom: 18px; color: var(--ink); font-weight: 700; }
.field-grid { display: grid; gap: 0 18px; }
.field-note { color: var(--ink-muted); font-size: 0.78rem; font-weight: 400; }
.inquiry-panel input, .inquiry-panel select, .inquiry-panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fbfdfc; color: var(--ink); font: inherit; font-weight: 400; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.inquiry-panel input:focus, .inquiry-panel select:focus, .inquiry-panel textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(16,120,110,0.12); }
.inquiry-panel input[type="file"] { padding: 9px; background: var(--surface-sunk); }
.inquiry-panel textarea { resize: vertical; min-height: 112px; }
.price-estimate { position: relative; overflow: hidden; margin: 6px 0 22px; border: 1px solid rgba(16,120,110,0.24); border-radius: 16px; padding: 19px 20px 17px; background: linear-gradient(135deg, #e5f3ee 0%, #f8fbf9 62%, #fdf1e4 100%); color: var(--accent-deep); }
.price-estimate::after { content: ""; position: absolute; width: 130px; height: 130px; right: -56px; bottom: -78px; border: 20px solid rgba(239,159,82,0.13); border-radius: 50%; pointer-events: none; }
.price-estimate__heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.price-estimate__heading > div { display: grid; gap: 5px; }
.price-estimate__heading svg { width: 31px; flex: 0 0 31px; color: var(--accent); }
.price-estimate__eyebrow { color: var(--ink-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.price-estimate__heading strong { font-family: 'Fraunces', serif; font-size: clamp(1.25rem, 3vw, 1.7rem); line-height: 1.15; }
/* Ein sichtbarer Zwischenstand: Solange Angaben fehlen, benennt das
   Kästchen sie; die Hinweiszeile trägt die Fehlmeldung zur Wortzahl.
   is-live setzt inquiries.js, sobald ein echter Preisrahmen steht. */
.price-estimate__hint { position: relative; z-index: 1; margin: 11px 0 0; color: #a53d32; font-size: 0.8rem; font-weight: 700; line-height: 1.45; }
.price-estimate__hint[hidden] { display: none; }
.price-estimate.is-live { border-color: rgba(16,120,110,0.46); box-shadow: 0 12px 30px -20px rgba(16,120,110,0.6); }
.price-estimate__details { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(16,120,110,0.17); color: var(--ink-soft); font-size: 0.82rem; }
.price-estimate__details[hidden] { display: none; }
.price-estimate__details b { color: var(--accent-deep); }
.price-estimate__minimum { position: relative; z-index: 1; margin: 12px 0 0; color: var(--accent-deep); font-size: 0.78rem; font-weight: 700; }
.price-estimate__note { position: relative; z-index: 1; margin: 12px 0 0; color: var(--ink-muted); font-size: 0.75rem; line-height: 1.5; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; color: var(--ink-soft) !important; font-size: 0.88rem; font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.form-actions--between { justify-content: space-between; }
.form-status { min-height: 24px; margin-top: 16px; font-size: 0.92rem; font-weight: 700; }
.form-status.is-error, .field-error { color: #a53d32; }
.form-status.is-success { padding: 18px; border-radius: 10px; background: #e8f5ef; color: #176148; }
.field-error { min-height: 20px; margin: -9px 0 10px; font-size: 0.82rem; }
.inquiry-panel.is-submitting { opacity: 0.72; pointer-events: none; }
.trust-section { margin: 52px 0 38px; scroll-margin-top: 90px; }
.trust-heading { max-width: 820px; margin-bottom: 34px; }
.trust-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
.trust-heading > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.process-layout { display: grid; gap: 18px; align-items: start; }
.process-list { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.process-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: clamp(24px, 4vw, 38px); }
.process-step + .process-step { border-top: 1px solid var(--line); }
.process-number { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(16,120,110,0.24); border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.process-kicker { margin: 1px 0 5px; color: var(--sun); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.process-step h3 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.process-step p:not(.process-kicker) { max-width: 650px; color: var(--ink-soft); }
.process-result { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--accent-deep); font-size: 0.88rem; font-weight: 700; }
.process-result::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--sun); }
.route-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 36px); border-radius: 22px; background: var(--ink); color: #edf7f3; box-shadow: var(--shadow-lg); }
.route-card::after { content: "Aa"; position: absolute; right: -12px; top: -34px; color: rgba(255,255,255,0.045); font-family: var(--font-display); font-size: 9rem; line-height: 1; pointer-events: none; }
.route-card > * { position: relative; z-index: 1; }
.route-card .eyebrow { color: #8fd2c4; }
.route-card h3 { max-width: 420px; margin: 7px 0 24px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.route-option { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.route-option p { margin: 7px 0 13px; color: #c9ddd6; }
.route-label { color: #fff; font-weight: 700; }
.route-option .text-link { color: #ffd1a6; }
.route-option .text-link:hover { color: #fff; }
.route-option--personal .btn { width: 100%; margin-top: 3px; background: var(--sun); color: var(--ink); box-shadow: none; }
.route-option--personal .btn:hover { background: #f5b270; }
.route-note { margin: 18px 0 8px; color: #c9ddd6; font-size: 0.88rem; }
.route-chat { border: 0; padding: 3px 0; background: transparent; color: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 4px; cursor: pointer; }
.route-chat:hover { text-decoration-color: var(--sun); }
.route-chat:focus-visible { outline: 2px solid var(--sun); outline-offset: 5px; border-radius: 2px; }
.privacy-note { display: grid; gap: 24px; margin-top: 18px; padding: clamp(26px, 5vw, 46px); border-radius: 18px; background: #f0ebe1; scroll-margin-top: 90px; }
.privacy-note h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.privacy-copy p { color: var(--ink-soft); }
.privacy-copy details { margin-top: 18px; border-top: 1px solid rgba(57,77,70,0.2); padding-top: 16px; }
.privacy-copy summary { color: var(--accent-deep); font-weight: 700; cursor: pointer; }
footer a { color: inherit; }

/* ========================================================== */
/* 9. VERSTECKTE NEBENSEITE */
/* ========================================================== */
.extras-page { min-height: 100vh; display: flex; flex-direction: column; }
/* Nicht klebend, aber relativ: die Hintergrund-Ebene (.navbar::before)
   braucht die Leiste als Bezugsrahmen, sonst deckt sie die ganze Seite ab. */
.extras-page .navbar { position: relative; }
.extras-back { color: #d7ebe4; font-weight: 700; text-decoration: none; }
.extras-back span { display: inline-block; margin-left: 5px; transition: transform 0.18s ease; }
.extras-back:hover { color: var(--sun); }
.extras-back:hover span { transform: translateX(4px); }
.extras-main { width: 100%; flex: 1; padding-top: clamp(70px, 10vw, 120px); padding-bottom: clamp(70px, 10vw, 120px); }
.extras-intro { max-width: 720px; margin-bottom: clamp(36px, 7vw, 72px); }
.extras-intro h1 { max-width: 650px; margin-bottom: 18px; font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 0.98; }
.extras-intro > p:last-child { max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; }
.extras-grid { display: grid; gap: 18px; }
.applet-card { position: relative; overflow: hidden; min-height: 330px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.applet-card::after { position: absolute; right: -18px; bottom: -52px; color: rgba(57, 77, 70, 0.06); font-family: var(--font-display); font-size: 11rem; line-height: 1; pointer-events: none; }
.applet-card--weather::after { content: "°"; }
.applet-card--boinc::after { content: "∞"; }
.applet-card h2 { max-width: 390px; margin: 4px 0 20px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.applet-card > p { position: relative; z-index: 1; max-width: 480px; }
.applet-label { color: var(--accent-deep); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.weather-loading { margin-top: 30px; color: var(--ink-muted); font-style: italic; }
.weather-display { margin-top: 30px; }
.weather-location { margin: 0; color: var(--accent-deep); font-weight: 700; }
.weather-temp { margin: 2px 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(3.8rem, 9vw, 6.6rem); line-height: 1; }
.weather-desc { color: var(--ink-muted); }
.boinc-link { position: relative; z-index: 1; display: inline-block; margin-top: 30px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.boinc-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.boinc-link img { display: block; max-width: 100%; border-radius: 4px; }

@media screen and (min-width: 769px) {
    .extras-grid { grid-template-columns: 1.08fr 0.92fr; align-items: stretch; }
}

@media (max-width: 520px) {
    .extras-back { font-size: 0.88rem; }
    .extras-main { padding-top: 54px; }
    .applet-card { min-height: 290px; }
}
@media screen and (min-width: 769px) {
    .inquiry-section { grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr); align-items: start; }
    .inquiry-intro { position: sticky; top: 90px; min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
    .field-grid--split { grid-template-columns: 1fr 1fr; }
    .process-layout { grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr); }
    .route-card { position: sticky; top: 92px; }
    .privacy-note { grid-template-columns: 0.7fr 1.3fr; }
}
@media (max-width: 520px) {
    .inquiry-tab { padding-inline: 10px; font-size: 0.9rem; }
    .inquiry-panel { padding-inline: 20px; }
    .form-actions, .form-actions--between { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .btn, .form-actions .btn-secondary { width: 100%; }
    .process-step { grid-template-columns: 1fr; gap: 14px; }
    .process-number { width: 40px; height: 40px; }
}

/* ==========================================================
   RECHTLICHES (Impressum)
   ----------------------------------------------------------
   Eigene, ruhige Typografie: Pflichtangaben sollen sich gut
   lesen lassen, ohne mit der Startseite um Aufmerksamkeit zu
   konkurrieren.
   ========================================================== */
.legal-main { max-width: 820px; }
.legal-section { margin-bottom: clamp(30px, 5vw, 52px); }
.legal-section h2 { margin-bottom: 14px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; }
.legal-section h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.legal-section p { margin-bottom: 14px; color: var(--ink-soft); line-height: 1.7; }
.legal-section a { color: var(--accent-deep); }
.legal-address { font-style: normal; line-height: 1.9; }
.legal-hint {
    padding: 14px 16px;
    border-left: 3px solid var(--line);
    background: var(--surface-sunk);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-muted) !important;
    font-size: 0.92rem;
}
.legal-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin-bottom: 14px; }
.legal-list dt { color: var(--ink-muted); font-weight: 700; font-size: 0.9rem; }
.legal-list dd { margin: 0; color: var(--ink-soft); }
.legal-divider { margin: clamp(40px, 7vw, 72px) 0; border: 0; border-top: 1px solid var(--line); }
.legal-todo {
    margin-bottom: clamp(30px, 5vw, 48px);
    padding: 18px 20px;
    border: 1px dashed var(--sun);
    border-radius: var(--radius);
    background: var(--sun-tint);
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
}
.legal-todo code { padding: 1px 5px; border-radius: 4px; background: rgba(20, 35, 31, 0.08); font-size: 0.9em; }
.footer-support { margin-top: 10px; font-size: 0.92rem; }

@media (max-width: 560px) {
    .legal-list { grid-template-columns: 1fr; gap: 2px 0; }
    .legal-list dd { margin-bottom: 10px; }
}

/* ==========================================================
   MITGLIEDSKONTO (mitglied.html, member-page.js)
   ----------------------------------------------------------
   Zwei Karten stellen die beiden kostenlosen Wege nebeneinander:
   ohne Konto mit Werbung, mit Konto ohne. Die hervorgehobene
   Karte ist die werbefreie - sie ist das Angebot dieser Seite.
   ========================================================== */
.member-main { padding-bottom: clamp(50px, 8vw, 90px); }
.member-compare { margin-bottom: clamp(36px, 6vw, 64px); }
.member-compare__title { margin-bottom: 22px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.member-compare__grid { display: grid; gap: 18px; }
.member-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.member-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.member-card__tag { margin: 0; color: var(--accent-deep); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.member-card h3 { margin: 6px 0 18px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.member-card__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.member-card__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.member-card__list li::before { position: absolute; left: 0; top: 0; content: "—"; color: var(--accent); font-weight: 700; }
.member-card--featured .member-card__list li::before { content: "✓"; }
.member-card__list li:empty { display: none; }
.member-card__note { margin: 20px 0 0; color: var(--ink-muted); font-size: 0.88rem; }

/* Hinweiszeile über den Bereichen: erst "ich sehe nach", später die
   Rückmeldung zu Bestätigung, Anmeldung oder Abmeldung. */
.member-loading { margin: 0 0 26px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink-muted); font-size: 0.94rem; }
.member-loading--ok { border-color: var(--accent); background: rgba(16, 120, 110, 0.08); color: var(--accent-deep); }
.member-loading--error { border-color: var(--sun); background: var(--sun-tint); color: var(--ink); }

.member-panels { display: grid; gap: 18px; }
.member-panel { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.member-panel h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.member-panel__lead { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.98rem; }
.member-panel--solo { max-width: 640px; }

.member-form { display: grid; gap: 16px; }
.member-form h3 { margin: 6px 0 0; font-size: 1.1rem; }
.member-field { display: grid; gap: 6px; }
.member-field label { color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.member-field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fbfdfc; color: var(--ink); font: inherit; font-weight: 400; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.member-field input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(16,120,110,0.12); }
.member-field__hint { margin: 0; color: var(--ink-muted); font-size: 0.84rem; font-weight: 400; }

/* Einwilligungen: Kästchen und Beschriftung gleich gut lesbar. Ein
   klein gedrucktes Häkchen wäre keine informierte Einwilligung. */
.member-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.member-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.member-check label { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }

.member-button { justify-self: start; padding: 13px 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter 0.18s ease; }
.member-button--primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.member-button:hover { filter: brightness(0.96); }
.member-button[disabled] { opacity: 0.6; cursor: progress; }
.member-link-button { border: 0; padding: 0; background: none; color: var(--ink-muted); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.member-link-button:hover { color: var(--ink); }

.member-message { margin: 0; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface-sunk); color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.member-message--ok { background: rgba(16, 120, 110, 0.1); color: var(--accent-deep); }
.member-message--error, .member-message--warn { background: var(--sun-tint); color: var(--ink); }
.member-form__legal { margin: 0; color: var(--ink-muted); font-size: 0.84rem; line-height: 1.55; }
.member-recover { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.member-recover summary { color: var(--accent-deep); font-weight: 700; cursor: pointer; }
.member-recover .member-form { margin-top: 18px; }

.member-status { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(16, 120, 110, 0.08); color: var(--accent-deep); font-weight: 700; }
.member-benefits { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; }
.member-benefits li { color: var(--ink-soft); font-size: 0.96rem; }
.member-benefits li:empty { display: none; }
.member-form--settings.is-disabled { opacity: 0.6; }
.member-area__foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }

.member-faq { margin-top: clamp(40px, 7vw, 72px); max-width: 720px; }
.member-faq h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 3vw, 2rem); }
.member-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.member-faq summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.member-faq details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; }

@media screen and (min-width: 769px) {
    .member-compare__grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .member-panels { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

/* ----------------------------------------------------------
   Hinweiskasten auf der Startseite
   ---------------------------------------------------------- */
.member-promo { display: grid; gap: 22px; margin: clamp(34px, 6vw, 60px) 0; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--accent); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md); }
.member-promo h2 { margin: 6px 0 14px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.member-promo > div > p { max-width: 560px; color: var(--ink-soft); }
.member-promo__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.member-promo__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.member-promo__list li::before { position: absolute; left: 0; top: 0; content: "✓"; color: var(--accent); font-weight: 700; }
.member-promo__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.member-promo__note { margin: 14px 0 0; color: var(--ink-muted); font-size: 0.86rem; }

@media screen and (min-width: 769px) {
    .member-promo { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}
