/* ============================================
   Willkommen — Base Stylesheet
   Ausgelagerte, projektweite Styles
   ============================================ */

:root {
    --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

    --section-y-sm: clamp(4rem, 8vw, 6rem);
    --section-y-md: clamp(6rem, 10vw, 9rem);
    --section-y-lg: clamp(8rem, 12vw, 12rem);

    --container-x: clamp(1.5rem, 4vw, 2.5rem);

    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;

    --shadow-soft: 0 30px 120px -40px rgba(15, 23, 42, 0.2);
    --shadow-softer: 0 30px 120px -50px rgba(15, 23, 42, 0.2);
}

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
}

body {
    background-color: #fff;
    color: rgb(15 23 42);
}

.font-display {
    font-family: var(--font-serif);
    font-feature-settings: "ss01";
    letter-spacing: -0.015em;
}

.hairline {
    background: linear-gradient(
        to right,
        transparent,
        rgba(15, 23, 42, 0.12),
        transparent
    );
    height: 1px;
}

.section {
    padding-left: var(--container-x);
    padding-right: var(--container-x);
}
.section-sm {
    padding-top: var(--section-y-sm);
    padding-bottom: var(--section-y-sm);
}
.section-md {
    padding-top: var(--section-y-md);
    padding-bottom: var(--section-y-md);
}
.section-lg {
    padding-top: var(--section-y-lg);
    padding-bottom: var(--section-y-lg);
}

/* Header */
.site-header {
    transition:
        background-color 300ms ease,
        backdrop-filter 300ms ease,
        box-shadow 300ms ease,
        border-color 300ms ease;
}
.site-header[data-scrolled="true"] {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.06),
        0 20px 40px -30px rgba(15, 23, 42, 0.25);
    border-color: rgba(226, 232, 240, 0.9);
}

/* Nav */
.nav-link {
    position: relative;
}
.nav-link[aria-current="page"] {
    color: rgb(15 23 42);
}
.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: rgb(15 23 42);
    transform: translateX(-50%);
}

/* Mobile Nav Overlay */
.mobile-nav {
    animation: mobile-nav-in 250ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mobile-nav-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Page Fade */
@media (prefers-reduced-motion: no-preference) {
    .page-enter {
        animation: page-fade-in 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    @keyframes page-fade-in {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Error Pages */
.error-hero {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: var(--section-y-md) var(--container-x);
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 50%, rgba(251, 191, 36, 0.06), transparent 70%);
}

/* ... existing code ... */

/* Error Pages */
.error-hero {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: var(--section-y-md) var(--container-x);
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16, 185, 129, 0.08), transparent 70%),
        radial-gradient(ellipse 40% 30% at 80% 50%, rgba(251, 191, 36, 0.06), transparent 70%);
}

/* ============================================
   Motif Panels — hochwertige Platzhalter
   ============================================ */
.motif-panel__bg {
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 70%),
        linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(255,255,255,1) 100%);
}

.motif-panel__art {
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
    opacity: 0.95;
}

.motif-panel:hover .motif-panel__art {
    transform: translateY(-4px) scale(1.01);
}

/* Tones */
.motif-panel--emerald .motif-panel__bg {
    background:
        radial-gradient(80% 60% at 20% 0%, rgba(16,185,129,0.10), transparent 70%),
        radial-gradient(60% 50% at 100% 100%, rgba(251,191,36,0.06), transparent 70%),
        linear-gradient(180deg, rgba(236,253,245,0.6) 0%, rgba(255,255,255,1) 80%);
}
.motif-panel--amber .motif-panel__bg {
    background:
        radial-gradient(80% 60% at 80% 0%, rgba(251,191,36,0.12), transparent 70%),
        radial-gradient(60% 50% at 0% 100%, rgba(16,185,129,0.05), transparent 70%),
        linear-gradient(180deg, rgba(255,251,235,0.6) 0%, rgba(255,255,255,1) 80%);
}
.motif-panel--sky .motif-panel__bg {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(59,130,246,0.10), transparent 70%),
        radial-gradient(60% 50% at 100% 100%, rgba(15,23,42,0.04), transparent 70%),
        linear-gradient(180deg, rgba(239,246,255,0.6) 0%, rgba(255,255,255,1) 80%);
}
.motif-panel--slate .motif-panel__bg {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(15,23,42,0.06), transparent 70%),
        linear-gradient(180deg, rgba(248,250,252,0.8) 0%, rgba(255,255,255,1) 80%);
}

/* Hero-großes Panel — bekommt einen feinen oberen Lichtschein */
.motif-hero {
    position: relative;
}
.motif-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
    pointer-events: none;
}
/* ============================================
   Sprachumschalter
   ============================================
   Traeger ist <details>/<summary>, damit der Umschalter ohne JavaScript
   auf- und zuklappt und jede Sprache ein echter Submit-Knopf bleibt.
   Erscheint nur, wenn LANGUAGES mehr als einen Eintrag hat. */

.lang-switch {
    position: relative;
}

/* Der Marker-Pfeil des Browsers wird durch das eigene Chevron ersetzt. */
.lang-switch > summary {
    list-style: none;
}
.lang-switch > summary::-webkit-details-marker {
    display: none;
}

.lang-switch__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    border: 1px solid rgb(203 213 225);      /* slate-300 */
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgb(51 65 85);                     /* slate-700 — 8.6:1 auf Weiss */
    background-color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch__trigger:hover {
    border-color: rgb(148 163 184);           /* slate-400 */
    color: rgb(15 23 42);                     /* slate-900 */
}

/* Sichtbarer Fokusring — auch bei Tastaturbedienung ohne Maus. */
.lang-switch__trigger:focus-visible {
    outline: 2px solid rgb(15 23 42);
    outline-offset: 2px;
}

.lang-switch__chevron {
    transition: transform 0.2s ease;
}

/* Das Sprachkuerzel im Ausloeser -- etwas weiter gesperrt als der
   Fliesstext, damit zwei Grossbuchstaben nicht gedraengt wirken. */
.lang-switch__code {
    letter-spacing: 0.06em;
}

.lang-switch[open] .lang-switch__chevron {
    transform: rotate(180deg);
}

.lang-switch__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 50;
    min-width: 10rem;
    border: 1px solid rgb(226 232 240);       /* slate-200 */
    border-radius: 0.75rem;
    background-color: rgb(255 255 255);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 0.25rem;
}

.lang-switch__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-switch__option {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    width: 100%;
    cursor: pointer;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    color: rgb(51 65 85);                     /* slate-700 */
    transition: background-color 0.15s ease, color 0.15s ease;
}
.lang-switch__option:hover {
    background-color: rgb(248 250 252);       /* slate-50 */
    color: rgb(15 23 42);
}
.lang-switch__option:focus-visible {
    outline: 2px solid rgb(15 23 42);
    outline-offset: -2px;
}

/* Die aktuelle Sprache: markiert, aber nicht als Schaltflaeche betont. */
.lang-switch__option[aria-current="true"] {
    color: rgb(15 23 42);
    font-weight: 500;
}

.lang-switch__option-code {
    min-width: 1.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgb(100 116 139);                  /* slate-500 — 4.8:1 auf Weiss */
}
.lang-switch__option[aria-current="true"] .lang-switch__option-code {
    color: rgb(15 23 42);
}

/* --- Mobile Variante --------------------------------------------------
   In der Vollbild-Navigation gibt es keinen Platzmangel; das Panel
   klappt daher im Fluss auf statt zu ueberlagern. */
.lang-switch--mobile {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(241 245 249);   /* slate-100 */
}
.lang-switch--mobile .lang-switch__panel {
    position: static;
    margin-top: 0.75rem;
    min-width: 0;
    box-shadow: none;
}


/* --- Rechtstexte: noch auszufuellende Angaben ------------------------------
   Impressum und Datenschutz enthalten Stellen, die Michi vor der
   Veroeffentlichung durch echte Angaben ersetzt. Sie stehen im Text in
   eckigen Klammern und werden hier sanft hervorgehoben -- auffaellig
   genug, dass beim Durchlesen keine uebersehen wird, ruhig genug, dass
   die Seite nicht nach Baustelle aussieht. */
.platzhalter {
    background-color: rgb(254 243 199 / 0.7);  /* amber-100 */
    box-shadow: inset 0 -1px 0 rgb(251 191 36 / 0.5);  /* amber-400 */
    border-radius: 0.25rem;
    padding: 0.05em 0.3em;
    color: rgb(120 53 15);                     /* amber-900 — 8.6:1 auf dem Gelb */
    font-style: normal;
}
