/* ═════════════════════════════════════════════
   FRIESLANDMAHL – Stylesheet
   Farbpalette inspiriert von OHG-Jever (hellblau)
   Schrift: Playfair Display + Inter
   ═════════════════════════════════════════════ */

:root {
    /* Helle Blautöne als Hauptfarbe (OHG-Jever-inspiriert) */
    --blue-airy: #d6e4f0;
    --blue-sky: #b8cfe4;
    --blue-soft: #8daecb;
    --blue-mid: #5c83a8;
    --blue-deep: #385d7c;
    --blue-dark: #253f56;
    --blue-footer: #1b3042;

    /* Gold – warmer Akzent */
    --gold: #b49450;
    --gold-deep: #9a7d3a;
    --gold-light: #d9c48a;
    --gold-pale: #efe4cc;

    /* Neutral */
    --bg-primary: #faf8f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f2f4f8;
    --text-primary: #2d2d2d;
    --text-muted: #6e6e6e;
    --text-heading: #385d7c;

    /* Komponenten */
    --card-bg: #ffffff;
    --card-shadow: 0 1px 24px rgba(56, 93, 124, 0.06);
    --card-shadow-hover: 0 14px 44px rgba(56, 93, 124, 0.10);
    --nav-bg: rgba(255, 255, 255, 0.90);
    --nav-link: #5c83a8;
    --nav-logo: #ffffff;
    --nav-logo-scrolled: #385d7c;
    --nav-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
    --border-light: #d6e4f0;
    --partner-border: #d6e4f0;
    --partner-bg: #ffffff;
    --footer-text: rgba(255, 255, 255, 0.55);
    --carousel-fade: #ffffff;
    --speaker-card-bg: #ffffff;
    --map-bg: #e8eef5;
    --gallery-overlay: rgba(56, 93, 124, 0.50);
    --ease: cubic-bezier(0.33, 0.08, 0.19, 0.97);
    --ease-slow: cubic-bezier(0.16, 0.07, 0.16, 1);
}

body.dark {
    --bg-primary: #171e26;
    --bg-secondary: #1d2630;
    --bg-tertiary: #1a222c;
    --text-primary: #dce2e8;
    --text-muted: #95a1ae;
    --text-heading: #c8d8e8;
    --blue-airy: #253545;
    --blue-sky: #2d4055;
    --blue-soft: #4a6580;
    --blue-mid: #6e8ca8;
    --blue-deep: #8daecb;
    --blue-dark: #b8cfe4;
    --blue-footer: #101820;
    --gold: #c9a85a;
    --gold-deep: #d4b86a;
    --gold-light: #a08040;
    --gold-pale: #3a3224;
    --card-bg: #1d2630;
    --card-shadow: 0 1px 20px rgba(0, 0, 0, 0.22);
    --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.32);
    --nav-bg: rgba(23, 30, 38, 0.93);
    --nav-link: #8daecb;
    --nav-logo: #ffffff;
    --nav-logo-scrolled: #c9a85a;
    --nav-shadow: 0 1px 30px rgba(0, 0, 0, 0.30);
    --border-light: #2d4055;
    --partner-border: #2d4055;
    --partner-bg: #1d2630;
    --footer-text: rgba(255, 255, 255, 0.40);
    --carousel-fade: #1d2630;
    --speaker-card-bg: #1d2630;
    --map-bg: #253545;
    --gallery-overlay: rgba(23, 30, 38, 0.60);
}

/* Verfeinerte Editorial-Optik */
:root {
    --hairline: color-mix(in srgb, var(--gold) 28%, transparent);
    --luxury-shadow: 0 24px 70px rgba(30, 50, 66, .10);
}

/* ═════════════════════════════════════════════
   GLOBAL
   ═════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.no-scroll {
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: .7rem 1rem;
    border-radius: .6rem;
    background: var(--blue-dark);
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

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

h1, h2, h3, h4, .serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 500;
    color: var(--text-heading);
    transition: color 0.5s var(--ease);
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.08; letter-spacing: -0.005em; font-weight: 600; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.2; font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 500; }

.eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.7rem;
    display: block;
    transition: color 0.5s var(--ease);
}
.ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: 1.8rem 0;
    color: var(--gold);
    transition: color 0.5s var(--ease);
}
.ornament::before, .ornament::after {
    content: '';
    height: 1px;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--gold-light), transparent);
    transition: background 0.5s var(--ease);
}
.ornament span { font-size: 0.6rem; letter-spacing: 0.2em; }

section {
    padding: 7rem 2rem;
    transition: background 0.5s var(--ease);
}
.container { max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 5rem; }
.section-head h2 { letter-spacing: -.018em; }
.section-head p {
    max-width: 520px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    transition: color 0.5s var(--ease);
}

/* ═══════ Navigation ═══════ */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.4rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s var(--ease);
}
.nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.9rem 2.5rem;
    box-shadow: var(--nav-shadow);
    border-bottom: 1px solid var(--hairline);
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nav-logo);
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.5s var(--ease);
}
.nav.scrolled .nav-logo { color: var(--nav-logo-scrolled); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: color 0.4s;
    position: relative;
}
.nav.scrolled .nav-links a { color: var(--nav-link); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:hover::after { width: 100%; }

/* ═══════ Utility-Buttons ═══════ */
.nav-utils {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 1001;
}
.util-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.4s var(--ease);
    -webkit-tap-highlight-color: transparent;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
    text-decoration: none;
}
.nav.scrolled .util-btn { border-color: var(--border-light); color: var(--nav-link); }
.util-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: scale(1.06); }
.util-btn.lang-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 1.5px;
    background: #ffffff;
    transition: 0.4s var(--ease);
}
.nav.scrolled .hamburger span { background: var(--blue-mid); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--blue-mid); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); background: var(--blue-mid); }

/* ═══════ Hero ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(56, 93, 124, 0.48) 0%, rgba(56, 93, 124, 0.30) 40%, rgba(27, 48, 66, 0.50) 100%),
        url('/assets/img/defaults/hero.jpg') center/cover no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: #ffffff;
    padding: 2rem;
    isolation: isolate;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 20px;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: inset 0 0 80px rgba(0,0,0,.08);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(16,28,38,.28) 100%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 840px; padding: 3rem; animation: fadeUp 1.4s var(--ease-slow); }
.hero .eyebrow { color: var(--gold-light); letter-spacing: 0.32em; }
.hero h1 { color: #ffffff; margin-bottom: 0.25rem; text-shadow: 0 5px 42px rgba(0, 0, 0, 0.32); font-weight: 600; letter-spacing: -.025em; }
.hero .subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    color: var(--gold-pale);
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    font-weight: 400;
}
.hero .ornament-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}
.hero .ornament-hero::before, .hero .ornament-hero::after {
    content: '';
    height: 1px;
    width: 80px;
    background: rgba(217, 196, 138, 0.55);
}
.hero .ornament-hero span { font-size: 1.2rem; color: rgba(217, 196, 138, 0.85); }
.hero .date-line {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-block;
    padding: 1rem 3rem;
}
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2.4s ease-in-out infinite;
    opacity: 0.6;
    text-align: center;
    z-index: 2;
}
.scroll-hint .line { display: block; width: 1px; height: 36px; background: rgba(217, 196, 138, 0.85); margin: 0 auto 10px; }
.scroll-hint small { font-size: 0.6rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.55); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════ Philosophie ═══════ */
#about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap {
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--blue-airy);
    position: relative;
    z-index: 1;
    transition: background 0.5s var(--ease);
}
.about-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease-slow);
}
.about-img-wrap:hover img { transform: scale(1.05); }
.about-visual::after {
    content: '';
    position: absolute;
    top: 28px; left: -28px;
    width: 100%; height: 100%;
    border: 1px solid var(--gold-pale);
    z-index: 0;
    pointer-events: none;
    transition: border-color 0.5s var(--ease);
}
.about-text .highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--gold-deep);
    margin: 0.8rem 0 1.5rem;
    display: block;
    line-height: 1.5;
    transition: color 0.5s var(--ease);
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-weight: 300;
    transition: color 0.5s var(--ease);
}

/* ═══════ Menü ═══════ */
#menu { background: var(--bg-tertiary); }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.menu-card {
    background: var(--card-bg);
    padding: 2.8rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
}
.menu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .5s var(--ease), left .5s var(--ease);
}
.menu-card:hover { transform: translateY(-7px); border-color: var(--hairline); box-shadow: var(--luxury-shadow); }
.menu-card:hover::before { left: 15%; width: 70%; }
.menu-card .course-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--blue-sky);
    line-height: 1;
    margin-bottom: 0.3rem;
    transition: color 0.5s var(--ease);
    font-weight: 600;
}
.menu-card .course-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.5s var(--ease);
}
.menu-card h3 { margin-bottom: 0.5rem; }
.menu-card .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.6rem;
    transition: color 0.5s var(--ease);
}
.menu-card .pairing {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--blue-mid);
    transition: color 0.5s var(--ease);
}
.menu-card .divider {
    width: 28px; height: 1px;
    background: var(--gold-light);
    margin: 1.1rem auto;
    transition: background 0.5s var(--ease);
}

/* ═══════ Galerie ═══════ */
#gallery { background: var(--bg-secondary); }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    grid-template-rows: 320px 240px 340px;
    gap: 0.9rem;
    grid-template-areas:
        "img1 img2 img3"
        "img4 img2 img5"
        "img4 img6 img7";
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--blue-airy);
    transition: background 0.5s var(--ease);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-slow);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: var(--gallery-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    z-index: 1;
    pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay .gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    transform: translateY(8px);
    transition: transform 0.5s var(--ease);
    font-style: italic;
}
.gallery-item:hover .gallery-overlay .gallery-title { transform: translateY(0); }
.gallery-item .gallery-overlay .gallery-line {
    width: 24px; height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease) 0.1s;
}
.gallery-item:hover .gallery-overlay .gallery-line { transform: scaleX(1); }
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid transparent;
    transition: border-color 0.5s var(--ease);
    z-index: 2;
    pointer-events: none;
}
.gallery-item:hover::after { border-color: rgba(217, 196, 138, 0.45); }
.gallery-item:nth-child(1) { grid-area: img1; }
.gallery-item:nth-child(2) { grid-area: img2; }
.gallery-item:nth-child(3) { grid-area: img3; }
.gallery-item:nth-child(4) { grid-area: img4; }
.gallery-item:nth-child(5) { grid-area: img5; }
.gallery-item:nth-child(6) { grid-area: img6; }
.gallery-item:nth-child(7) { grid-area: img7; }

/* ═══════ Festredner ═══════ */
#speaker { background: var(--bg-tertiary); }
.speaker-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--speaker-card-bg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.speaker-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--blue-airy);
    transition: background 0.5s var(--ease);
}
.speaker-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease-slow);
}
.speaker-photo:hover img { transform: scale(1.04); }
.speaker-info { padding: 3rem 3rem 3rem 0; }
.speaker-info h2 { margin-bottom: 0.3rem; }
.speaker-info .speaker-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.3rem;
    display: block;
    transition: color 0.5s var(--ease);
}
.speaker-info .speaker-topic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--blue-mid);
    margin-bottom: 1.5rem;
    display: block;
    transition: color 0.5s var(--ease);
}
.speaker-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.8;
    transition: color 0.5s var(--ease);
}
.speaker-quote {
    border-left: 2px solid var(--gold-light);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--blue-mid);
    line-height: 1.6;
    transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* ═══════ Sponsoren ═══════ */
#partners { background: var(--bg-secondary); overflow: hidden; }
.carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
}
.carousel-wrap::before, .carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 70px;
    z-index: 2;
    pointer-events: none;
    transition: background 0.5s var(--ease);
}
.carousel-wrap::before { left: 0; background: linear-gradient(to right, var(--carousel-fade) 0%, transparent 100%); }
.carousel-wrap::after { right: 0; background: linear-gradient(to left, var(--carousel-fade) 0%, transparent 100%); }
.carousel-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: max-content;
    animation: scroll 40s linear infinite;
}
.carousel-track:not(.is-loop-ready) { width: 100%; justify-content: center; animation: none; flex-wrap: wrap; }
.carousel-wrap:hover .carousel-track { animation-play-state: paused; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.partner-card {
    flex-shrink: 0;
    width: 250px;
    min-height: 180px;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--partner-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: all 0.5s var(--ease);
    cursor: default;
    background: var(--partner-bg);
    box-shadow: 0 8px 30px rgba(37,63,86,.04);
    position: relative;
    color: inherit;
    text-decoration: none;
}
.partner-card-link { cursor: pointer; }
.partner-card-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.partner-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}
.partner-card .icon { font-size: 1.8rem; opacity: 0.85; }
.partner-card:hover .icon { opacity: 1; }
.partner-mark {
    display: block;
    width: 100%;
    height: 82px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}
.partner-card .name {
    font-family: 'Playfair Display', serif;
    font-size: 0.92rem;
    text-align: center;
    color: var(--text-heading);
    letter-spacing: 0.03em;
    transition: color 0.5s var(--ease);
}
.partner-card:hover .name { color: var(--gold-deep); }
.partner-card .description {
    max-width: 210px;
    font-size: 0.7rem;
    line-height: 1.35;
    text-align: center;
    color: var(--blue-soft);
    transition: color 0.5s var(--ease);
}

/* ═══════ Bekannt aus den Medien ═══════ */
#media { background: var(--bg-primary); }
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
}
.media-logo-wrap {
    width: 92px;
    height: 64px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    padding: 7px;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    margin-bottom: 1.2rem;
}
.media-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.media-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.65rem;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    box-shadow: var(--card-shadow);
    transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.media-card:hover,
.media-card:focus-visible {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--card-shadow-hover);
    outline: none;
}
.media-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background: var(--blue-airy);
    color: var(--blue-deep);
    font-size: 1.25rem;
}
.media-copy { display: grid; gap: .45rem; }
.media-copy strong {
    color: var(--text-heading);
    font: 600 1.2rem/1.25 'Playfair Display', serif;
}
.media-copy > span {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.65;
}
.media-action {
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--gold-deep);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.media-empty {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-light);
}

/* ═══════ Karte ═══════ */
#location { background: var(--bg-tertiary); }
.map-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr);
    gap: 0;
    background: var(--card-bg);
    box-shadow: 0 28px 75px rgba(26,49,67,.13);
    border: 1px solid var(--border-light);
    transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
    min-height: 500px;
    overflow: hidden;
    border-radius: 4px;
}
.map-container {
    width: 100%;
    min-height: 500px;
    background: var(--map-bg);
    transition: background 0.5s var(--ease);
    position: relative;
    z-index: 1;
}
.map-container.map-style-elegant .leaflet-tile-pane { filter: sepia(.18) saturate(.68) brightness(1.04) contrast(.94); }
.map-container.map-style-light .leaflet-tile-pane { filter: grayscale(.72) saturate(.55) brightness(1.08) contrast(.9); }
.map-container .leaflet-control-zoom a { color: var(--blue-deep); }
.map-container .leaflet-popup-content-wrapper { border-radius: 3px; box-shadow: 0 16px 42px rgba(28,48,63,.22); }
.map-container .leaflet-popup-content { font: .82rem/1.55 'Inter', sans-serif; color: var(--text-primary); }
.map-sidebar {
    padding: 3.2rem 2.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.5s var(--ease);
}
.map-sidebar::before { content: '✦'; color: var(--gold); font-size: 1.1rem; margin-bottom: 1.4rem; }
.map-sidebar .eyebrow { margin-bottom: 0.3rem; }
.map-sidebar h3 { margin-bottom: 1.5rem; }
.map-sidebar .address-block { margin-bottom: 2rem; }
.map-sidebar .address-block p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
    transition: color 0.5s var(--ease);
}
.map-directions {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: .9rem 1rem;
    border: 1px solid var(--blue-deep);
    color: var(--blue-deep);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    transition: .25s ease;
}
.map-directions:hover,.map-directions:focus-visible { background: var(--blue-deep); color: #fff; outline: 0; }
.map-hint {
    position: absolute;
    z-index: 500;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: .55rem .8rem;
    background: rgba(32,57,77,.86);
    color: #fff;
    font-size: .67rem;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.map-container:hover .map-hint { opacity: 1; }
.map-sidebar .poi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.map-sidebar .poi-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-light);
    cursor: default;
    transition: all 0.4s;
}
.map-sidebar .poi-list li:hover { border-color: var(--gold); color: var(--text-primary); }
.map-sidebar .poi-list .poi-icon { font-size: 1.2rem; flex-shrink: 0; }
.map-sidebar .poi-list .poi-dist {
    font-size: 0.7rem;
    color: var(--blue-soft);
    margin-left: auto;
    transition: color 0.5s var(--ease);
}
.custom-marker-inner {
    width: 32px; height: 32px;
    background: var(--gold-deep);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    transition: transform 0.3s;
    cursor: pointer;
}
.custom-marker-inner:hover { transform: scale(1.2); }

/* ═══════ Details ═══════ */
#details {
    background: var(--blue-dark);
    color: #ffffff;
    text-align: center;
    transition: background 0.5s var(--ease);
}
#details .eyebrow { color: var(--gold-light); }
#details h2 { color: #ffffff; }
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.detail-card {
    padding: 2rem 1.5rem;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}
.detail-card:hover,
.detail-card:focus {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    outline: none;
}
.detail-card .d-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; opacity: 0.9; }
.detail-card h3 { color: #ffffff; font-size: 1.1rem; margin-bottom: 0.9rem; }
.detail-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.9;
    font-weight: 300;
}
.detail-card .d-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gold-light);
    text-transform: uppercase;
    transition: transform 0.25s var(--ease), color 0.25s;
}
.detail-card:hover .d-link,
.detail-card:focus .d-link { color: #ffffff; transform: translateX(4px); }

/* ═══════ Footer ═══════ */
footer {
    background: var(--blue-footer);
    color: var(--footer-text);
    text-align: center;
    padding: 3.5rem 2rem 3rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
footer .f-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    display: block;
    letter-spacing: 0.08em;
    font-weight: 600;
}
footer a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover { color: #ffffff; }
.footer-imprint-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.5rem;
}
.imprint-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
    padding: 0.52rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.25s;
}
.imprint-button:hover {
    border-color: rgba(214, 193, 142, 0.55);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-light);
    transform: translateY(-1px);
}
.imprint-button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.footer-legal-actions .imprint-button {
    padding: 0.52rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.58);
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.09em;
    text-decoration: none;
}

/* ═══════ Impressum-Seite ═══════ */
.imprint-page { padding: 10rem 2rem 6rem; min-height: 80vh; }
.imprint-page-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.imprint-page-inner h1 { margin-bottom: 0.5rem; }
.imprint-page-inner .ornament { margin: 1.8rem auto 3rem; }
.imprint-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 3rem;
    transition: color 0.5s var(--ease);
}
.imprint-page-grid strong {
    color: var(--text-heading);
    font-weight: 500;
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: color 0.5s var(--ease);
}
.imprint-page-disclaimer {
    margin-top: 3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0.75;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    text-align: left;
    transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.imprint-back-link {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.7rem 2rem;
    border: 1px solid var(--border-light);
    color: var(--blue-mid);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.4s;
}
.imprint-back-link:hover { border-color: var(--gold); color: var(--gold-deep); }

+
/* ═══════ Datenschutz-Seite ═══════ */
.privacy-page {
    min-height: 80vh;
    padding: clamp(8rem, 12vw, 10.5rem) clamp(1.25rem, 4vw, 3rem) clamp(4.5rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 8% 6%, rgba(180, 148, 80, 0.11), transparent 27rem),
        var(--bg-primary);
}
.privacy-shell { width: min(1120px, 100%); margin: 0 auto; }
.privacy-hero { max-width: 780px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.privacy-hero h1 {
    margin: 0.7rem 0 1.15rem;
    color: var(--text-heading);
    font: 500 clamp(2.7rem, 7vw, 5.2rem)/1.02 'Playfair Display', Georgia, serif;
    letter-spacing: -0.035em;
}
.privacy-lead { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.75; }
.privacy-date { margin: 1.2rem 0 0; color: var(--gold-deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.privacy-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: 0 18px 55px rgba(37, 63, 86, 0.07);
}
.privacy-summary div { min-height: 145px; padding: 1.8rem 2rem; }
.privacy-summary div + div { border-left: 1px solid var(--border-light); }
.privacy-summary strong { display: block; margin-bottom: 0.6rem; color: var(--text-heading); font: 500 1.2rem/1.25 'Playfair Display', Georgia, serif; }
.privacy-summary span { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.privacy-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.privacy-index {
    position: sticky;
    top: 7rem;
    display: grid;
    gap: 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--border-light);
}
.privacy-index strong { margin-bottom: 0.75rem; color: var(--text-heading); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; }
.privacy-index a { padding: 0.55rem 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.35; text-decoration: none; transition: color 0.25s, transform 0.25s; }
.privacy-index a:hover { color: var(--gold-deep); transform: translateX(4px); }
.privacy-content { min-width: 0; }
.privacy-content section {
    position: relative;
    scroll-margin-top: 7.5rem;
    padding: 0 0 clamp(2.4rem, 5vw, 3.7rem) 4rem;
}
.privacy-content section + section { padding-top: clamp(2.4rem, 5vw, 3.7rem); border-top: 1px solid var(--border-light); }
.privacy-number { position: absolute; top: 0.35rem; left: 0; color: var(--gold-deep); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; }
.privacy-content section + section .privacy-number { top: calc(clamp(2.4rem, 5vw, 3.7rem) + 0.35rem); }
.privacy-content h2 { margin: 0 0 1rem; color: var(--text-heading); font: 500 clamp(1.65rem, 3.2vw, 2.3rem)/1.2 'Playfair Display', Georgia, serif; letter-spacing: -0.02em; }
.privacy-content p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.94rem; line-height: 1.85; }
.privacy-content p:last-child { margin-bottom: 0; }
.privacy-content a, .privacy-inline-button { color: var(--blue-mid); text-decoration: underline; text-decoration-color: rgba(180, 148, 80, 0.65); text-underline-offset: 4px; }
.privacy-inline-button { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.privacy-content code { padding: 0.15rem 0.35rem; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-heading); font-size: 0.86em; }

@media (max-width: 800px) {
    .privacy-summary { grid-template-columns: 1fr; }
    .privacy-summary div { min-height: 0; }
    .privacy-summary div + div { border-top: 1px solid var(--border-light); border-left: 0; }
    .privacy-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .privacy-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
    .privacy-index strong { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .privacy-page { padding-inline: 1rem; }
    .privacy-index { grid-template-columns: 1fr; }
    .privacy-content section, .privacy-content section + section { padding-left: 2.6rem; }
}

/* ═══════ Reveal ═══════ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s var(--ease-slow), transform 0.9s var(--ease-slow);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════ Responsive ═══════ */
@media (max-width: 1250px) and (min-width: 1025px) {
    .nav { padding-inline: 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: .69rem; letter-spacing: .06em; }
}

@media (max-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "img1 img2""img3 img4""img5 img6""img7 img7";
        gap: 0.7rem;
    }
    .gallery-item { aspect-ratio: 4/3; }
    .gallery-item:nth-child(7) { aspect-ratio: 16/7; }
    .speaker-card { grid-template-columns: 1fr; gap: 0; }
    .speaker-photo { aspect-ratio: 16/9; max-height: 400px; }
    .speaker-info { padding: 2.5rem; }
    .partner-card { width: 220px; min-height: 165px; }
    .carousel-track { gap: 2.2rem; }
    .map-wrapper { grid-template-columns: 1fr; }
    .map-container { min-height: 320px; }
    .map-sidebar { padding: 2.5rem 2rem; }
    .nav-links { gap: 1.25rem; }
    .imprint-page-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    section { padding: 4.5rem 1.5rem; }
    .hero::before { inset: 10px; }
    .hero-content { padding: 2rem 1rem; }
    .nav { padding: 1rem 1.5rem; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 72%; max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        gap: 2.2rem;
        transition: right 0.5s var(--ease);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.10);
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--nav-link) !important; }
    .hamburger { display: flex; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual::after { display: none; }
    .menu-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "img1 img2""img3 img4""img5 img6""img7 img7";
        gap: 0.5rem;
    }
    .gallery-item { aspect-ratio: 1; }
    .gallery-item:nth-child(7) { aspect-ratio: 2/1; }
    .details-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero { background-attachment: scroll; }
    .hero .date-line { padding: 0.7rem 1.5rem; font-size: 0.7rem; }
    .partner-card { width: 190px; min-height: 150px; }
    .partner-mark { height: 66px; }
    .carousel-track { gap: 1.8rem; animation: scroll 28s linear infinite; }
    .carousel-wrap::before, .carousel-wrap::after { width: 35px; }
    .speaker-info { padding: 2rem 1.8rem; }
    .map-container { min-height: 280px; }
    .nav-utils { gap: 0.4rem; }
    .util-btn { width: 32px; height: 32px; font-size: 0.85rem; }
    .util-btn.lang-btn { font-size: 0.6rem; }
    .imprint-page { padding: 8rem 1.5rem 4rem; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "img1""img2""img3""img4""img5""img6""img7";
    }
    .gallery-item { aspect-ratio: 3/2; }
    .partner-card { width: 170px; min-height: 140px; padding: .9rem; }
    .partner-mark { height: 58px; }
    .carousel-track { gap: 1.2rem; }
    .map-sidebar { padding: 1.8rem 1.3rem; }
}

/* ═══════════════ Login-Hero (komplett überarbeitet) ═══════════════ */

.login-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 5rem;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at top left, rgba(184, 207, 228, 0.25), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(217, 196, 138, 0.18), transparent 50%),
        linear-gradient(180deg, #faf8f4 0%, #f4f1ea 100%);
}
body.dark .login-hero {
    background:
        radial-gradient(ellipse at top left, rgba(92, 131, 168, 0.20), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(180, 148, 80, 0.12), transparent 50%),
        linear-gradient(180deg, #171e26 0%, #131920 100%);
}

/* Animierte Orbs im Hintergrund */
.login-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: orbFloat 18s ease-in-out infinite;
}
.login-orb-1 {
    width: 480px; height: 480px;
    top: -120px; left: -100px;
    background: radial-gradient(circle, #b8cfe4 0%, transparent 70%);
    animation-delay: 0s;
}
.login-orb-2 {
    width: 380px; height: 380px;
    top: 30%; right: -80px;
    background: radial-gradient(circle, #d9c48a 0%, transparent 70%);
    animation-delay: -6s;
    opacity: .45;
}
.login-orb-3 {
    width: 420px; height: 420px;
    bottom: -150px; left: 30%;
    background: radial-gradient(circle, #8daecb 0%, transparent 70%);
    animation-delay: -12s;
    opacity: .35;
}
body.dark .login-orb { opacity: .35; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.06); }
    66%      { transform: translate(-30px, 30px) scale(.96); }
}

.login-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1080px;
    position: relative;
    z-index: 1;
}

/* Monogramm / Brand über der Karte */
.login-brand {
    text-align: center;
    margin-bottom: 0.5rem;
    animation: brandFadeIn 1s var(--ease) both;
}
.login-monogram {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(180, 148, 80, 0.25));
    animation: monogramPulse 4s ease-in-out infinite;
}
.login-monogram svg { width: 100%; height: 100%; }
.login-brand-label {
    font-size: .72rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: #8daecb;
    font-weight: 600;
    margin: 0;
}
body.dark .login-brand-label { color: #6e8ca8; }

@keyframes brandFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes monogramPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* Login-Wrapper und Karte */
.login-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 24px;
    padding: 3rem 2.75rem 2.5rem;
    box-shadow:
        0 30px 60px -20px rgba(37, 63, 86, 0.25),
        0 12px 30px -12px rgba(37, 63, 86, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: cardEnter .8s var(--ease) both;
    animation-delay: .15s;
    opacity: 0;
}

/* Gradient-Border */
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg,
        rgba(184, 207, 228, 0.95) 0%,
        rgba(180, 148, 80, 0.75) 35%,
        rgba(141, 174, 203, 0.95) 70%,
        rgba(180, 148, 80, 0.65) 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: .95;
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

body.dark .login-card {
    background: rgba(29, 38, 48, 0.78);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 12px 30px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-head {
    text-align: center;
    margin-bottom: 1.75rem;
}
.login-card h1 {
    font-family: 'Playfair Display', serif;
    color: #253f56;
    margin: 0 0 .4rem;
    font-size: 1.85rem;
    letter-spacing: -.01em;
    font-weight: 600;
    line-height: 1.2;
}
.login-card .lead {
    color: #5a6f82;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0;
}
body.dark .login-card h1 { color: #e8eef4; }
body.dark .login-card .lead { color: #95a8ba; }
.login-card .eyebrow { text-align: center; }
.login-card .lead {
    text-align: center;
    color: #5a6f82;
    font-size: .95rem;
    line-height: 1.55;
    margin: .25rem 0 1.75rem;
}
body.dark .login-card .lead { color: #95a8ba; }

/* Form-Group: Floating Label */
.form-group {
    position: relative;
    margin: 1.5rem 0;
}
.form-group > label {
    position: absolute;
    top: 50%;
    left: 2.85rem;
    transform: translateY(-50%);
    font-size: .95rem;
    font-weight: 500;
    color: #6b8095;
    pointer-events: none;
    padding: 0 .25rem;
    background: transparent;
    transition: all .22s var(--ease);
    letter-spacing: .01em;
    transform-origin: left center;
}
.form-group > label::before {
    content: "";
    position: absolute;
    inset: 50% 0 50% 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: -1;
    transform: scaleY(0);
    transition: all .22s var(--ease);
    border-radius: 4px;
    width: calc(100% + .5rem);
    left: -.25rem;
}
.form-control {
    width: 100%;
    height: 3.25rem;
    padding: 0 1rem;
    font: inherit;
    font-size: .98rem;
    line-height: 1;
    color: #253f56;
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px solid rgba(141, 174, 203, 0.45);
    border-radius: 12px;
    transition: all .25s var(--ease);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-sizing: border-box;
    display: block;
}
.form-control::placeholder { color: transparent; }
.form-control:hover {
    border-color: rgba(92, 131, 168, 0.65);
    background: rgba(255, 255, 255, 0.72);
}
.form-control:focus {
    outline: none;
    border-color: #5c83a8;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 4px rgba(92, 131, 168, 0.12),
        0 4px 14px rgba(56, 93, 124, 0.08);
}
.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
    top: 0;
    left: 1.05rem;
    transform: translateY(-50%) scale(.88);
    transform-origin: left center;
    font-size: .82rem;
    font-weight: 600;
    color: #385d7c;
    letter-spacing: .04em;
}
.form-control:focus + label::before,
.form-control:not(:placeholder-shown) + label::before {
    transform: scaleY(1);
    inset: 0 -2px;
}

body.dark .form-control {
    background: rgba(14, 26, 36, 0.55);
    border-color: rgba(110, 142, 168, 0.35);
    color: #e8eef4;
}
body.dark .form-group > label {
    color: #8898a8;
}
body.dark .form-group > label::before {
    background: rgba(29, 38, 48, 0.95);
}
body.dark .form-control:hover {
    background: rgba(14, 26, 36, 0.7);
    border-color: rgba(141, 174, 203, 0.55);
}
body.dark .form-control:focus {
    border-color: #8daecb;
    background: rgba(14, 26, 36, 0.85);
    box-shadow:
        0 0 0 4px rgba(141, 174, 203, 0.14),
        0 4px 14px rgba(0, 0, 0, 0.25);
}
body.dark .form-control:focus + label,
body.dark .form-control:not(:placeholder-shown) + label {
    color: #8daecb;
}

/* Icon-Box für Inputs */
.form-group .input-icon {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #8daecb;
    pointer-events: none;
    transition: color .25s var(--ease);
    z-index: 1;
    flex-shrink: 0;
    display: block;
}
.form-group .input-icon.right:hover { opacity: 1; }
.form-group:focus-within .input-icon { color: #385d7c; }
body.dark .form-group:focus-within .input-icon { color: #b8cfe4; }
.form-group.has-icon .form-control { padding-left: 3rem; padding-right: 3rem; }
.form-group.has-toggle .form-control { padding-right: 3rem; }

/* Passwort-Toggle Button */
.pw-toggle {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #8daecb;
    transition: all .2s;
    z-index: 3;
}
.pw-toggle:hover { background: rgba(92, 131, 168, 0.10); color: #385d7c; }
.pw-toggle svg { width: 1.1rem; height: 1.1rem; }

/* Buttons: premium gradient + lift */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    font: inherit;
    font-weight: 600;
    font-size: .96rem;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
    position: relative;
    overflow: hidden;
    letter-spacing: .01em;
}
.btn-primary {
    background: linear-gradient(135deg, #253f56 0%, #385d7c 50%, #5c83a8 100%);
    color: #fff;
    box-shadow:
        0 6px 18px rgba(37, 63, 86, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: left .6s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 24px rgba(37, 63, 86, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    background: linear-gradient(135deg, #b49450 0%, #d9c48a 100%);
    color: #253f56;
    box-shadow: 0 4px 14px rgba(180, 148, 80, 0.30);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(180, 148, 80, 0.38); }
.btn-ghost {
    background: transparent;
    color: #253f56;
    border: 1.5px solid rgba(141, 174, 203, 0.55);
}
body.dark .btn-ghost { color: #cdd8e3; border-color: rgba(141, 174, 203, 0.30); }
.btn-ghost:hover { background: rgba(92, 131, 168, 0.08); border-color: #5c83a8; }
.btn-block { display: flex; width: 100%; text-align: center; }
.btn-small { padding: .5rem 1rem; font-size: .85rem; border-radius: 8px; }
.btn .btn-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }

/* Alert – moderner Look */
.alert {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .95rem 1.1rem;
    border-radius: 12px;
    margin: 0 0 1.25rem;
    font-size: .92rem;
    font-weight: 500;
    background: rgba(251, 229, 229, 0.85);
    color: #7a1f1f;
    border: 1px solid rgba(240, 184, 184, 0.7);
    backdrop-filter: blur(6px);
    animation: shakeX .45s var(--ease);
}
.alert-error::before {
    content: "";
    width: 1.1rem;
    height: 1.1rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
}
body.dark .alert {
    background: rgba(122, 31, 31, 0.25);
    color: #f3b8b8;
    border-color: rgba(240, 184, 184, 0.35);
}
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Form-Hint: dezenter Hinweis */
.form-hint {
    text-align: center;
    font-size: .85rem;
    color: #6b8095;
    margin-top: 1.25rem;
    margin-bottom: 0;
    line-height: 1.55;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}
.form-hint .hint-icon { width: 1rem; height: 1rem; opacity: .6; flex-shrink: 0; }
body.dark .form-hint { color: #8898a8; }

/* Lockout-Alert (rot/orange mit Live-Countdown) */
.alert-lockout {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.1rem 1.25rem;
    margin: 0 0 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(220, 38, 38, 0.10));
    color: #7a1f1f;
    border: 1.5px solid rgba(220, 38, 38, 0.35);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    animation: lockoutPulse 2.4s ease-in-out infinite;
    box-shadow: 0 8px 24px -8px rgba(220, 38, 38, 0.20);
}
.alert-lockout .alert-icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 50%;
    color: #7a1f1f;
}
.alert-lockout .alert-icon svg { width: 1.15rem; height: 1.15rem; }
.alert-lockout .alert-text { display: flex; flex-direction: column; gap: .2rem; font-size: .92rem; line-height: 1.45; flex: 1; }
.alert-lockout .alert-text strong { font-size: .98rem; color: #7a1f1f; }
.alert-lockout .alert-sub { color: rgba(122, 31, 31, 0.85); font-size: .88rem; }
.lockout-timer {
    display: inline-block;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #7a1f1f;
    background: rgba(255, 255, 255, 0.5);
    padding: .1rem .55rem;
    border-radius: 6px;
    margin-left: .25rem;
    letter-spacing: .04em;
}
body.dark .alert-lockout {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(220, 38, 38, 0.12));
    color: #ffb3a3;
    border-color: rgba(220, 38, 38, 0.4);
}
body.dark .alert-lockout .alert-icon { background: rgba(220, 38, 38, 0.25); color: #ffb3a3; }
body.dark .alert-lockout .alert-text strong { color: #ffb3a3; }
body.dark .alert-lockout .alert-sub { color: rgba(255, 179, 163, 0.85); }
body.dark .lockout-timer { background: rgba(0, 0, 0, 0.3); color: #ffd0c4; }
@keyframes lockoutPulse {
    0%, 100% { box-shadow: 0 8px 24px -8px rgba(220, 38, 38, 0.20); }
    50%      { box-shadow: 0 8px 30px -6px rgba(220, 38, 38, 0.35); }
}

/* Error-Alert mit Icon */
.alert-error {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.2rem;
    background: rgba(251, 229, 229, 0.85);
    color: #7a1f1f;
    border: 1px solid rgba(240, 184, 184, 0.7);
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 500;
    margin: 0 0 1.25rem;
    backdrop-filter: blur(6px);
    animation: shakeX .45s var(--ease);
}
.alert-error::before {
    content: "";
    width: 1.15rem;
    height: 1.15rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>") no-repeat center / contain;
    flex-shrink: 0;
}
.alert-error .alert-text { flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.alert-error .alert-meta { font-size: .8rem; color: rgba(122, 31, 31, 0.75); font-weight: 500; }
body.dark .alert-error { background: rgba(122, 31, 31, 0.25); color: #f3b8b8; border-color: rgba(240, 184, 184, 0.35); }
body.dark .alert-error .alert-meta { color: rgba(243, 184, 184, 0.75); }
@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

/* Sub-divider zwischen Hinweis und Demo-Logins */
.login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0 .5rem;
    color: #8daecb;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 600;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(141, 174, 203, 0.4), transparent);
}
body.dark .login-divider { color: #6e8ca8; }

/* Demo-User-Liste */
.demo-users {
    display: grid;
    gap: .55rem;
    margin: .5rem 0 0;
}
.demo-user-chip {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .6rem .85rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(141, 174, 203, 0.30);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all .25s var(--ease);
    backdrop-filter: blur(6px);
    font: inherit;
    width: 100%;
    color: inherit;
}
.demo-user-chip:hover {
    background: rgba(184, 207, 228, 0.45);
    border-color: rgba(92, 131, 168, 0.55);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(56, 93, 124, 0.10);
}
.demo-user-chip:active { transform: translateX(1px) scale(.99); }
.demo-user-chip:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.demo-user-chip .demo-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    background: linear-gradient(135deg, #385d7c, #5c83a8);
    box-shadow: 0 2px 8px rgba(56, 93, 124, 0.25);
    flex-shrink: 0;
}
.demo-user-chip .demo-info { flex: 1; display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.demo-user-chip .demo-name { font-weight: 600; color: #253f56; font-size: .9rem; }
.demo-user-chip .demo-meta { font-size: .72rem; color: #6b8095; letter-spacing: .02em; }
.demo-user-chip .demo-pw {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    color: #b49450;
    font-size: .76rem;
    font-weight: 600;
    background: rgba(180, 148, 80, 0.10);
    padding: .2rem .55rem;
    border-radius: 7px;
    flex-shrink: 0;
}
body.dark .demo-user-chip {
    background: rgba(14, 26, 36, 0.55);
    border-color: rgba(141, 174, 203, 0.18);
}
body.dark .demo-user-chip .demo-name { color: #e8eef4; }
body.dark .demo-user-chip .demo-meta { color: #8898a8; }
body.dark .demo-user-chip .demo-pw { color: #d9c48a; background: rgba(180, 148, 80, 0.18); }
body.dark .demo-user-chip:hover {
    background: rgba(56, 93, 124, 0.35);
    border-color: rgba(141, 174, 203, 0.40);
}
body.dark .demo-user-chip .demo-avatar {
    background: linear-gradient(135deg, #5c83a8, #8daecb);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Footer-Hinweis unter der Karte */
.login-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: .78rem;
    color: #6b8095;
    max-width: 380px;
    line-height: 1.5;
}
.login-footer-note svg { width: 1rem; height: 1rem; opacity: .65; flex-shrink: 0; }
body.dark .login-footer-note { color: #8898a8; }

/* Login-Sektion responsive */
@media (max-width: 640px) {
    .login-hero { min-height: auto; padding: 1.5rem 1rem 3rem; }
    .login-monogram { width: 64px; height: 64px; }
    .login-wrap { max-width: 100%; }
    .login-card { padding: 2.25rem 1.5rem 1.75rem; border-radius: 20px; }
    .login-card h1 { font-size: 1.6rem; }
    .demo-user-chip { padding: .55rem .75rem; }
    .demo-user-chip .demo-avatar { width: 34px; height: 34px; font-size: .75rem; }
    .demo-user-chip .demo-pw { font-size: .72rem; padding: .15rem .45rem; }
}
@media (max-width: 420px) {
    .demo-user-chip .demo-meta { display: none; }
}

/* Galerie */
.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    padding: 1.2rem 1.5rem;
    background: rgba(184, 207, 228, .15);
    border-radius: 12px;
}
.gallery-info { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.gallery-count { font-weight: 600; color: #253f56; }
.gallery-folder code { font-size: .85rem; background: rgba(37, 63, 86, .08); padding: .15em .5em; border-radius: 4px; }
.gallery-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 3rem;
}
.photo-card {
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(37, 63, 86, .08);
    border: 1px solid rgba(37, 63, 86, .08);
    transition: transform .2s, box-shadow .2s;
}
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37, 63, 86, .15); }
body.dark .photo-card { background: #1a2530; border-color: rgba(255,255,255,.06); }
.photo-thumb { display: block; aspect-ratio: 3/2; overflow: hidden; background: #eef3f8; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.photo-card:hover .photo-thumb img { transform: scale(1.05); }
.photo-meta { padding: .75rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.photo-name { font-size: .85rem; font-weight: 500; color: #253f56; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.dark .photo-name { color: #e8eef4; }
.photo-size { font-size: .75rem; color: #5a6f82; }
.photo-meta .btn { text-align: center; }
.photo-meta .btn svg { flex-shrink: 0; }
.photo-actions {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .3rem;
}
.photo-actions .btn { width: 100%; flex: 1 1 100%; justify-content: center; }
.btn-share,
.photo-share-link {
    background: #25a35a;
    border: 1px solid #1e8a4d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .45rem .7rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s;
    min-height: 42px;
    box-shadow: 0 4px 12px rgba(30, 138, 77, .2);
}
.btn-share:hover,
.btn-share:focus-visible,
.photo-share-link:hover,
.photo-share-link:focus-visible {
    background: #1d8a4c;
    border-color: #166b3b;
    color: #fff;
}
.btn-share:active,
.photo-share-link:active {
    transform: scale(.97);
}
body.dark .btn-share,
body.dark .photo-share-link {
    background: #1f8a4c;
    border-color: #1a703d;
    color: #fff;
}
body.dark .btn-share:hover,
body.dark .btn-share:focus-visible,
body.dark .photo-share-link:hover,
body.dark .photo-share-link:focus-visible {
    background: #25a35a;
    border-color: #1f8a4c;
    color: #fff;
}
.photo-share-feedback {
    margin: .15rem 0 0;
    font-size: .75rem;
    text-align: center;
    min-height: 1em;
}
.guest-code-requirement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -.7rem .15rem 1.15rem;
    color: #5a6f82;
    font-size: .78rem;
}
.guest-code-requirement output {
    min-width: 3.3rem;
    padding: .2rem .45rem;
    border-radius: 999px;
    background: rgba(37, 63, 86, .08);
    color: #253f56;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
body.dark .guest-code-requirement { color: #95a8ba; }
body.dark .guest-code-requirement output {
    background: rgba(255, 255, 255, .08);
    color: #e8eef4;
}
.empty-state { text-align: center; padding: 3rem 1.5rem; color: #5a6f82; }
.empty-hint { font-size: .9rem; opacity: .8; }
.empty-hint code { background: rgba(37, 63, 86, .08); padding: .15em .5em; border-radius: 4px; }

/* Setup- und Adminseiten */
.setup-wrap { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }
.setup-card {
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(37, 63, 86, 0.08);
    border: 1px solid #d8e3ed;
}
.setup-card h1 { color: #253f56; margin-top: 0; font-family: 'Playfair Display', serif; }
.alert-ok { background: #e3f1e6; color: #1d5235; border: 1px solid #b6dcc0; }

/* ═══════ Navigation 2026 – Editorial Glass ═══════ */
.nav {
    top: 18px;
    left: 50%;
    width: min(1180px, calc(100% - 36px));
    transform: translateX(-50%);
    padding: .62rem .7rem .62rem 1rem;
    gap: 1.2rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(22,38,51,.28);
    box-shadow: 0 14px 40px rgba(8,20,29,.12);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}
.nav.scrolled {
    top: 10px;
    width: min(1160px, calc(100% - 28px));
    padding: .52rem .62rem .52rem .85rem;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
    box-shadow: 0 16px 50px rgba(25,45,60,.13);
}
body:not([data-page="home"]) .nav {
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
    border-color: var(--hairline);
}
body:not([data-page="home"]) .nav-logo,
body:not([data-page="home"]) .nav-links > li > a,
body:not([data-page="home"]) .nav-more summary,
body:not([data-page="home"]) .util-btn { color: var(--nav-link); }
body:not([data-page="home"]) .nav-monogram { color:var(--gold-deep); background:var(--bg-primary); }
body:not([data-page="home"]) .hamburger span { background:var(--blue-mid); }
.nav-logo { display:flex; align-items:center; gap:.68rem; flex-shrink:0; }
.nav-monogram {
    width: 34px; height: 34px;
    display:grid; place-items:center;
    border:1px solid rgba(217,196,138,.65);
    border-radius:50%;
    color:var(--gold-light);
    font:600 1rem/1 'Playfair Display',serif;
    background:rgba(22,38,51,.2);
}
.nav.scrolled .nav-monogram { color:var(--gold-deep); background:var(--bg-primary); }
.nav-wordmark { font-size:1.14rem; letter-spacing:.045em; }
.nav-links { gap:.15rem; margin-left:auto; }
.nav-links > li > a,
.nav-more summary {
    display:flex; align-items:center; gap:.4rem;
    padding:.72rem .9rem;
    color:rgba(255,255,255,.9);
    border-radius:999px;
    font-size:.68rem;
    font-weight:600;
    letter-spacing:.09em;
    text-transform:uppercase;
    cursor:pointer;
    list-style:none;
    transition:background .25s,color .25s;
}
.nav-more summary::-webkit-details-marker { display:none; }
.nav.scrolled .nav-links > li > a,
.nav.scrolled .nav-more summary { color:var(--nav-link); }
.nav-links > li > a:hover,
.nav-more summary:hover,
.nav-more details[open] summary { color:#fff; background:rgba(255,255,255,.12); }
.nav.scrolled .nav-links > li > a:hover,
.nav.scrolled .nav-more summary:hover,
.nav.scrolled .nav-more details[open] summary { color:var(--gold-deep); background:var(--bg-tertiary); }
.nav-links > li > a::after { display:none; }
.nav-more { position:relative; }
.nav-dropdown {
    position:absolute;
    top:calc(100% + 16px); right:0;
    width:260px;
    padding:.55rem;
    display:grid;
    background:color-mix(in srgb, var(--bg-secondary) 96%, transparent);
    border:1px solid var(--hairline);
    box-shadow:0 24px 70px rgba(20,38,51,.2);
    border-radius:14px;
}
.nav-dropdown::before { content:''; position:absolute; top:-17px; left:0; right:0; height:17px; }
.nav-dropdown a {
    display:grid; grid-template-columns:28px 1fr; align-items:center;
    padding:.82rem .9rem;
    color:var(--text-primary)!important;
    text-decoration:none;
    border-radius:9px;
    font:500 .82rem/1.2 Inter,sans-serif;
    letter-spacing:.02em;
    text-transform:none;
}
.nav-dropdown a span { color:var(--gold-deep); font-size:.6rem; letter-spacing:.08em; }
.nav-dropdown a:hover { background:var(--bg-tertiary); color:var(--text-heading)!important; }
.nav-utils { gap:.42rem; }
.nav-photo-link {
    display:flex; align-items:center; gap:.55rem;
    margin-left:.25rem;
    padding:.68rem 1rem;
    border-radius:999px;
    background:var(--gold);
    color:#fff;
    text-decoration:none;
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    box-shadow:0 8px 22px rgba(122,91,32,.22);
    transition:transform .25s,box-shadow .25s,background .25s;
}
.nav-photo-link:hover { transform:translateY(-2px); background:var(--gold-deep); box-shadow:0 12px 28px rgba(122,91,32,.3); }
.mobile-photo-link { display:none; }

/* ═══════ FAQ ═══════ */
#faq { background:var(--bg-secondary); }
.faq-container { max-width:900px; }
.faq-list { border-top:1px solid var(--border-light); }
.faq-item { border-bottom:1px solid var(--border-light); }
.faq-item summary {
    display:grid;
    grid-template-columns:1fr 34px;
    gap:1.5rem;
    align-items:center;
    padding:1.55rem .2rem;
    color:var(--text-heading);
    cursor:pointer;
    list-style:none;
    font:500 clamp(1.05rem,2vw,1.28rem)/1.35 'Playfair Display',serif;
    transition:color .25s;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary:hover { color:var(--gold-deep); }
.faq-plus { width:30px;height:30px;border:1px solid var(--border-light);border-radius:50%;position:relative;transition:transform .3s,border-color .3s; }
.faq-plus::before,.faq-plus::after { content:'';position:absolute;left:8px;right:8px;top:14px;height:1px;background:var(--gold-deep); }
.faq-plus::after { transform:rotate(90deg);transition:transform .3s; }
.faq-item[open] .faq-plus { transform:rotate(180deg);border-color:var(--gold); }
.faq-item[open] .faq-plus::after { transform:rotate(0); }
.faq-answer { padding:0 4rem 1.6rem 0; }
.faq-answer p { color:var(--text-muted);line-height:1.8;font-size:.94rem; }

@media (min-width:769px) {
    .nav-more details:not([open]):hover .nav-dropdown { display:grid; }
}

@media (max-width:768px) {
    .nav { top:10px; width:calc(100% - 20px); padding:.55rem .65rem .55rem .75rem; border-radius:18px; }
    .nav.scrolled { top:8px; width:calc(100% - 16px); padding:.5rem .6rem; border-radius:16px; }
    .nav-wordmark { font-size:1rem; }
    .nav-monogram { width:32px; height:32px; }
    .nav-photo-link { display:none; }
    .nav-utils { margin-left:auto; }
    .nav-links {
        top:0; right:-105%;
        width:min(88%,360px); max-width:none;
        padding:6.5rem 1.4rem 2rem;
        justify-content:flex-start;
        align-items:stretch;
        gap:.35rem;
        overflow-y:auto;
        border-left:1px solid var(--hairline);
    }
    .nav-links > li > a,
    .nav-more summary { justify-content:space-between; padding:1rem; color:var(--text-heading)!important; border-radius:8px; font-size:.78rem; }
    .nav-more { width:100%; }
    .nav-dropdown { position:static; width:100%; margin:.2rem 0 .5rem; padding:.25rem; box-shadow:none; border:0; background:var(--bg-tertiary); border-radius:10px; }
    .nav-dropdown a { padding:.8rem; }
    .mobile-photo-link { display:block; margin-top:.5rem; border-top:1px solid var(--border-light); padding-top:.5rem; }
    .mobile-photo-link a { color:#fff!important; background:var(--gold); }
    .hamburger { margin-left:.15rem; }
    .faq-item summary { padding:1.25rem 0;gap:1rem; }
    .faq-answer { padding-right:0; }
}
