/* ==========================================================================
   Ich bin Jochen – Stylesheet
   Farbwelt aus dem Logo: Sonnengelb, Orange, Ozeanblau, Türkis, Cocktail-Pink
   ========================================================================== */

:root {
    --sun: #ffc72c;
    --orange: #ff8a00;
    --ocean: #0a84ff;
    --ocean-deep: #0b3d91;
    --turquoise: #1fd1e6;
    --pink: #ff3d7f;
    --lime: #7ed957;
    --red: #ff4d4f;

    --bg: #070d22;
    --bg-2: #0c1636;
    --surface: #111c40;
    --surface-2: #17244f;
    --border: rgba(255, 255, 255, .10);
    --text: #f4f7ff;
    --muted: #a5b1d6;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
    --glow-sun: 0 0 60px rgba(255, 199, 44, .45);

    --grad-sun: linear-gradient(135deg, #ffe066 0%, #ffc72c 35%, #ff8a00 100%);
    --grad-ocean: linear-gradient(135deg, #1fd1e6 0%, #0a84ff 55%, #0b3d91 100%);
    --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(10, 132, 255, .35), transparent 60%),
                 radial-gradient(900px 500px at 0% 20%, rgba(255, 138, 0, .20), transparent 60%);

    --radius: 22px;
    --radius-sm: 14px;
    --header-h: 72px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-display: "Arial Rounded MT Bold", "Nunito", "Segoe UI Black", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #fff8ec;
    --bg-2: #fff1d6;
    --surface: #ffffff;
    --surface-2: #fff6e6;
    --border: rgba(11, 61, 145, .12);
    --text: #10224d;
    --muted: #5a6891;
    --shadow: 0 20px 45px -25px rgba(11, 61, 145, .35);
    --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(31, 209, 230, .35), transparent 60%),
                 radial-gradient(900px 500px at 0% 20%, rgba(255, 199, 44, .35), transparent 60%);
    color-scheme: light;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }
:root[data-theme="light"] a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; }
h3, .h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
::selection { background: var(--sun); color: #10224d; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center-row { justify-content: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; }
.pt-0 { padding-top: 0 !important; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--sun); color: #10224d; padding: .5rem 1rem; border-radius: 10px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.kicker {
    display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--sun); margin-bottom: .6rem;
}
:root[data-theme="light"] .kicker { color: var(--orange); }
.pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 61, 127, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, 0); } }

/* ---------- Buttons ---------- */
.btn {
    --b: var(--surface-2);
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .75rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.1; cursor: pointer;
    color: var(--text); background: var(--b); text-decoration: none !important;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--grad-sun); color: #10224d !important; box-shadow: 0 10px 25px -10px rgba(255, 138, 0, .8); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 138, 0, 1); filter: saturate(1.15); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text) !important; }
.btn-ghost:hover, .btn-ghost.is-active { border-color: var(--turquoise); background: rgba(31, 209, 230, .08); }
.btn-light { background: #fff; color: #10224d !important; }
.btn-danger { background: var(--red); color: #fff !important; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.08rem; }
.btn-sm { padding: .5rem .95rem; font-size: .9rem; }
.btn-xs { padding: .35rem .7rem; font-size: .8rem; border-width: 1px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.text-link { font-weight: 700; }
.inline-form { display: inline; margin: 0; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: rgba(7, 13, 34, .9); } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1440px, 100% - 32px); }
.nav-list a, .nav-drop-btn, .nav-actions .btn, .user-chip { white-space: nowrap; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--text) !important; text-decoration: none !important; font-weight: 900; flex-shrink: 0; }
.logo-img {
    height: 58px; width: auto; margin: 4px 0 -14px; /* ragt leicht über den Header – sieht aus wie ein Sticker */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35));
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.08); }
.logo-icon {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad-sun); color: #10224d; font-size: 1.2rem;
}
.logo-text { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.logo:hover .glitch::before, .hero-title .glitch::before { color: var(--turquoise); animation: glitch 4s infinite steps(1); }
.logo:hover .glitch::after, .hero-title .glitch::after { color: var(--pink); animation: glitch 4s infinite steps(1); animation-delay: -.15s; }
/* Glitch blitzt nur kurz auf, sonst bleibt die Schrift sauber */
@keyframes glitch {
    0%, 85%, 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(0, 0); }
    87% { opacity: .9; clip-path: inset(10% 0 60% 0); transform: translate(-5px, 1px); }
    91% { opacity: .9; clip-path: inset(55% 0 12% 0); transform: translate(5px, -1px); }
    95% { opacity: .9; clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); }
}

.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.nav-list { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
    display: block; padding: .5rem .85rem; border-radius: 999px; color: var(--text); font-weight: 700; text-decoration: none; position: relative;
}
.nav-list a:hover { background: var(--surface); }
.nav-list a.is-active { background: var(--surface-2); color: var(--sun); }
:root[data-theme="light"] .nav-list a.is-active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; transition: transform .4s;
}
.theme-toggle:hover { transform: rotate(25deg); }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: inline; }
:root[data-theme="light"] .icon-moon { display: none; }
.user-chip {
    display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .8rem .25rem .25rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 700; text-decoration: none !important;
}
.user-chip.is-active { border-color: var(--sun); }
.avatar {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad-ocean); font-size: 1.35rem; line-height: 1; vertical-align: middle;
}
.avatar-sm { width: 32px; height: 32px; font-size: 1rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 3.4rem; box-shadow: var(--glow-sun); border: 4px solid var(--sun); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--text); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 60; display: grid; gap: .6rem; width: min(420px, calc(100% - 32px)); }
.flash {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow); font-weight: 600; animation: slideIn .4s cubic-bezier(.3, 1.4, .5, 1);
    border-left: 5px solid var(--turquoise);
}
.flash-success { border-left-color: var(--lime); }
.flash-error { border-left-color: var(--red); }
.flash-info { border-left-color: var(--sun); }
.flash.is-hiding { opacity: 0; transform: translateX(30px); transition: .3s; }
.flash-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); background: var(--grad-hero); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; animation: blob 18s ease-in-out infinite alternate; }
.blob-1 { width: 420px; height: 420px; background: var(--ocean); top: -120px; right: -80px; }
.blob-2 { width: 320px; height: 320px; background: var(--orange); bottom: -80px; left: -60px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--pink); top: 35%; left: 45%; opacity: .25; animation-delay: -12s; }
:root[data-theme="light"] .blob { opacity: .28; }
@keyframes blob { to { transform: translate(40px, 30px) scale(1.15); } }
.float-emoji { position: absolute; left: var(--x); bottom: -60px; font-size: 2rem; animation: floatUp 14s linear infinite; animation-delay: var(--d); opacity: .8; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .8; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }

/* Hero erscheint sofort per CSS – unabhängig von JavaScript */
.hero-copy { animation: heroIn .8s cubic-bezier(.2, .8, .3, 1) both; }
.hero-logo, .hero-inner > .hero-phone { animation: heroIn .9s .15s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.js .hero-inner > .reveal { opacity: 1; transform: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 1; margin-bottom: 1.2rem; }
.hero-title .glitch {
    background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 0; filter: drop-shadow(0 4px 0 rgba(11, 61, 145, .55));
}
.hero-title .glitch::before, .hero-title .glitch::after { -webkit-text-fill-color: currentColor; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 36ch; margin-bottom: 1.8rem; }
.hero-proof { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; color: var(--muted); flex-wrap: wrap; }
.hero-proof strong { color: var(--text); }
.avatar-stack { display: flex; }
.avatar-stack span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 3px solid var(--bg); margin-left: -10px; font-size: 1.1rem; }
.avatar-stack span:first-child { margin-left: 0; }

/* Logo im Hero */
.hero-logo { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-logo .sun {
    position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 102, .95) 0%, rgba(255, 199, 44, .55) 35%, rgba(255, 138, 0, 0) 70%);
    animation: sunPulse 5s ease-in-out infinite;
}
.hero-ring {
    position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%;
    border: 3px dashed rgba(31, 209, 230, .45); animation: spin 40s linear infinite;
}
.hero-logo-img { position: relative; width: min(560px, 100%); filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .45)); }
.float-logo { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes sunPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
    position: absolute; z-index: 3; padding: .45rem .9rem; border-radius: 12px; font-weight: 900; font-family: var(--font-display);
    background: #fff; color: #10224d; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .5); animation: wobble 4s ease-in-out infinite;
}
.sticker-1 { top: 8%; left: 2%; transform: rotate(-10deg); background: var(--sun); }
.sticker-2 { bottom: 14%; right: 0; transform: rotate(8deg); background: var(--turquoise); animation-delay: -2s; }
.sticker-3 { bottom: 2%; left: 10%; transform: rotate(-4deg); background: var(--pink); color: #fff; animation-delay: -1s; }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg); }

/* Handy-Mockup */
.hero-phone { position: relative; display: grid; place-items: center; }
.phone {
    position: relative; width: 290px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
    background: linear-gradient(145deg, #2a3560, #0b1024); box-shadow: var(--shadow), 0 0 0 2px rgba(255, 255, 255, .08) inset;
    transform: rotate(4deg); transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.phone:hover { transform: rotate(0) scale(1.03); }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen {
    position: relative; height: 100%; border-radius: 34px; overflow: hidden; color: #fff; text-align: left;
    background: linear-gradient(180deg, #1fd1e6 0%, #0a84ff 45%, #0b3d91 100%);
}
.phone-top { position: absolute; top: 52px; left: 0; right: 0; display: flex; justify-content: center; gap: 1rem; font-size: .8rem; opacity: .9; z-index: 2; }
.phone-top strong { border-bottom: 2px solid #fff; }
.phone-star { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6.5rem; padding: 70px 50px 110px 14px; }
.phone-logo { width: 100%; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.phone-side { position: absolute; right: 10px; bottom: 110px; display: grid; gap: .9rem; text-align: center; z-index: 2; }
.ps-item { display: grid; justify-items: center; font-size: 1.5rem; }
.ps-item small { font-size: .65rem; font-weight: 700; }
.ps-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-sun); display: grid; place-items: center; border: 2px solid #fff; font-size: 1.3rem; }
.ps-avatar i { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--pink); font-style: normal; font-size: .8rem; font-weight: 900; display: grid; place-items: center; }
.heart-btn span { animation: beat 1.2s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
.phone-caption { position: absolute; left: 14px; right: 64px; bottom: 18px; font-size: .78rem; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.phone-caption p { margin: .2rem 0 .4rem; }
.phone-sound { display: flex; align-items: center; gap: .4rem; }
.spin { display: inline-block; animation: spin 3s linear infinite; }
.marquee-mini { overflow: hidden; white-space: nowrap; flex: 1; }
.marquee-mini span { display: inline-block; animation: ticker 8s linear infinite; }
.hearts { position: absolute; right: 22px; bottom: 170px; width: 30px; height: 200px; pointer-events: none; }
.hearts span { position: absolute; bottom: 0; left: 0; font-size: 1.1rem; opacity: 0; animation: heartUp 4s ease-in infinite; }
.hearts span:nth-child(2) { animation-delay: .8s; left: 8px; }
.hearts span:nth-child(3) { animation-delay: 1.6s; left: -6px; }
.hearts span:nth-child(4) { animation-delay: 2.4s; left: 4px; }
.hearts span:nth-child(5) { animation-delay: 3.2s; left: -2px; }
@keyframes heartUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-20px, -190px) scale(1.2); opacity: 0; } }

/* ---------- Laufband ---------- */
.ticker { background: var(--grad-sun); color: #10224d; overflow: hidden; padding: .9rem 0; transform: rotate(-1.2deg); margin: -.6rem -10px 0; box-shadow: 0 10px 30px -12px rgba(255, 138, 0, .7); position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: .04em; white-space: nowrap; }
.ticker-track span { padding-right: .5rem; }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { max-width: 55ch; margin-inline: auto; }
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem; background: var(--grad-hero); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 1.8rem); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.stack { display: grid; gap: 1.2rem; }
.empty { text-align: center; font-size: 3rem; padding: 3rem 1rem; color: var(--muted); }
.empty p { font-size: 1.05rem; margin-top: .5rem; }

/* Statistiken */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stats-sm { grid-template-columns: repeat(3, 1fr); }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center;
    display: grid; gap: .2rem; justify-items: center; position: relative; overflow: hidden; transition: transform .3s;
}
.stat:hover { transform: translateY(-5px) rotate(-1deg); }
.stat::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad-sun); }
.stat:nth-child(2n)::after { background: var(--grad-ocean); }
.stat-emoji { font-size: 2rem; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; line-height: 1.1; }
.stat > span:last-child { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* TikTok-Bereich */
.tiktok-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; font-weight: 700; }
.check-list li { background: var(--surface); border: 1px solid var(--border); padding: .7rem 1rem; border-radius: var(--radius-sm); }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-grid.single { grid-template-columns: minmax(0, 340px); }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(10, 132, 255, .6); }
.video-cover { position: relative; aspect-ratio: 9 / 11; display: grid; place-items: center; overflow: hidden; }
.video-cover.is-playing { aspect-ratio: 9 / 16; background: #000; }
.video-cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.grad-pink { background: linear-gradient(160deg, #ff7eb3, #ff3d7f 50%, #7b2ff7); }
.grad-cyan { background: linear-gradient(160deg, #6ff7ff, #1fd1e6 40%, #0a84ff); }
.grad-sunset { background: linear-gradient(160deg, #ffe066, #ff8a00 55%, #ff3d7f); }
.grad-lime { background: linear-gradient(160deg, #d4ff7a, #7ed957 50%, #1fa57a); }
.grad-fire { background: linear-gradient(160deg, #ffc72c, #ff5e1a 55%, #c3002f); }
.grad-night { background: linear-gradient(160deg, #3a4bb3, #0b3d91 50%, #070d22); }
.video-emoji { font-size: 5.5rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.video-card:hover .video-emoji { transform: scale(1.15) rotate(-8deg); }
.video-views, .video-badge { position: absolute; top: 12px; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); }
.video-views { left: 12px; }
.video-badge { right: 12px; background: var(--sun); color: #10224d; }
.play-btn {
    position: absolute; bottom: 14px; right: 14px; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    background: #fff; color: #10224d !important; font-size: 1.3rem; display: grid; place-items: center; text-decoration: none !important;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .6); transition: transform .2s;
}
.play-btn:hover { transform: scale(1.12); }
.embed-note { position: absolute; bottom: 20px; left: 14px; font-size: .7rem; color: #fff; opacity: .85; max-width: 55%; line-height: 1.3; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.video-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.video-body h3 { margin-bottom: .4rem; }
.video-body p { font-size: .95rem; }
.video-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.like-btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text) !important; font: inherit; font-weight: 800; text-decoration: none !important;
    transition: transform .2s, border-color .2s;
}
.like-btn:hover:not([disabled]) { transform: scale(1.06); border-color: var(--pink); }
.like-btn.is-liked { border-color: var(--pink); background: rgba(255, 61, 127, .12); }
.like-btn[disabled] { cursor: default; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip { padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 700; font-size: .92rem; text-decoration: none !important; }
.chip:hover { border-color: var(--turquoise); }
.chip.is-active { background: var(--grad-sun); color: #10224d !important; border-color: transparent; }

/* Vorschaubilder von TikTok */
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb { transform: scale(1.06); }
.video-cover.has-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
.video-cover.has-thumb > :not(img) { z-index: 1; }
.video-cover.is-playing::after { display: none; }
.video-emoji-mini { position: absolute; left: 12px; bottom: 12px; font-size: 1.8rem; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.video-cover.has-thumb .embed-note { left: 56px; }
.video-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ---------- Jochen-O-Mat ---------- */
.quote-machine {
    position: relative; text-align: center; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.2rem, 4vw, 3rem);
    border-radius: 32px; background: var(--grad-ocean); color: #fff; overflow: hidden; box-shadow: var(--shadow);
}
.quote-machine::before { content: "🌴"; position: absolute; font-size: 9rem; left: -20px; bottom: -40px; opacity: .18; transform: rotate(15deg); }
.quote-machine::after { content: "☀️"; position: absolute; font-size: 7rem; right: -10px; top: -30px; opacity: .25; }
.qm-label { display: inline-block; background: rgba(255, 255, 255, .15); padding: .4rem 1rem; border-radius: 999px; font-weight: 800; margin-bottom: 1.2rem; }
.qm-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 900; line-height: 1.25; margin: 0 auto 1.6rem; max-width: 26ch; min-height: 2.5em; }
.qm-quote.is-changing { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.quote-machine .muted { color: rgba(255, 255, 255, .8); margin-top: 1rem; }
@keyframes pop { 0% { transform: scale(.7) rotate(-3deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Gästebuch ---------- */
.gb-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gb-mini p { margin: .8rem 0 0; }
.gb-mini-head, .gb-head { display: flex; align-items: center; gap: .8rem; }
.gb-mini-head > div, .gb-meta { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.gb-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.gb-mood { font-size: 1.8rem; margin-left: auto; animation: wobble 3s ease-in-out infinite; }
.gb-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); }
.gb-list { display: grid; gap: 1.1rem; }
.gb-entry { position: relative; }
.gb-entry:nth-child(3n+1) { border-top: 4px solid var(--sun); }
.gb-entry:nth-child(3n+2) { border-top: 4px solid var(--turquoise); }
.gb-entry:nth-child(3n) { border-top: 4px solid var(--pink); }
.gb-text { margin: 1rem 0; overflow-wrap: anywhere; }
.gb-reply { background: var(--surface-2); border-left: 4px solid var(--sun); padding: .9rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1rem; }
.gb-reply p { margin: .3rem 0 0; }
.gb-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.posting-as { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--radius-sm); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.badge-pink { background: rgba(255, 61, 127, .15); color: var(--pink); border-color: rgba(255, 61, 127, .35); }
.badge-red { background: rgba(255, 77, 79, .15); color: var(--red); border-color: rgba(255, 77, 79, .35); }
.badge-green { background: rgba(126, 217, 87, .15); color: #4fb82a; border-color: rgba(126, 217, 87, .35); }
.badge-yellow { background: rgba(255, 199, 44, .18); color: #d99a00; border-color: rgba(255, 199, 44, .4); }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.page-link { min-width: 42px; height: 42px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 800; text-decoration: none !important; }
.page-link.is-active { background: var(--grad-sun); color: #10224d !important; border-color: transparent; }
.page-gap { align-self: center; color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-section { font-size: 1.05rem; margin: .8rem 0 0; color: var(--sun); }
input, textarea, select {
    width: 100%; font: inherit; font-weight: 500; color: var(--text); background: var(--bg-2); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: .75rem .95rem; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(31, 209, 230, .18); }
input[disabled] { opacity: .6; }
input[type="checkbox"], input[type="radio"] { width: auto; }
input[type="file"] { padding: .6rem; }
.input-emoji { font-size: 1.5rem; text-align: center; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; font-weight: 500 !important; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.char-counter { font-size: .78rem; color: var(--muted); text-align: right; font-weight: 600; margin-top: -.2rem; }
.char-counter.is-near { color: var(--orange); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.strength { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: -.4rem; }
.strength span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s, background .3s; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.mood-picker, .avatar-picker { display: flex; flex-wrap: wrap; gap: .45rem; }
.mood-picker legend, .avatar-picker legend { width: 100%; }
.mood-option, .avatar-option { position: relative; display: block !important; cursor: pointer; }
.mood-option input, .avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.mood-option span, .avatar-option span {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.45rem;
    background: var(--bg-2); border: 2px solid var(--border); transition: transform .2s, border-color .2s, background .2s;
}
.mood-option:hover span, .avatar-option:hover span { transform: translateY(-3px) rotate(-6deg); }
.mood-option input:checked + span, .avatar-option input:checked + span { border-color: var(--sun); background: rgba(255, 199, 44, .15); transform: scale(1.1); }
.mood-option input:focus-visible + span, .avatar-option input:focus-visible + span { outline: 3px solid var(--turquoise); }

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 1rem; border: 1px solid; }
.alert-error { background: rgba(255, 77, 79, .12); border-color: rgba(255, 77, 79, .4); }
.alert-success { background: rgba(126, 217, 87, .12); border-color: rgba(126, 217, 87, .4); }
.alert-info { background: rgba(31, 209, 230, .1); border-color: rgba(31, 209, 230, .35); }
.code-box { font-family: Consolas, monospace; font-size: .85rem; }

.switch { display: flex !important; align-items: center; gap: .8rem !important; cursor: pointer; font-weight: 600 !important; }
.switch input { position: absolute; opacity: 0; }
.switch-ui { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--border); position: relative; flex-shrink: 0; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.switch input:checked + .switch-ui { background: var(--grad-sun); border-color: transparent; }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--turquoise); outline-offset: 2px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 3rem 16px; background: var(--grad-hero); }
.auth-card { width: min(520px, 100%); }
.install-card { width: min(640px, 100%); }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-emoji { font-size: 3.4rem; margin-bottom: .4rem; animation: floaty 5s ease-in-out infinite; }
.auth-logo { width: 190px; margin: -1rem auto .6rem; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); }
.auth-switch { text-align: center; margin: 1.2rem 0 0; }
.install-checks { padding: .9rem 1.1rem; margin-bottom: 1.2rem; box-shadow: none; background: var(--bg-2); }
.install-checks summary { cursor: pointer; font-weight: 800; }
.install-checks .list-plain { margin-top: .6rem; }
.install-checks .list-plain li { font-size: .9rem; padding: .45rem 0; }
.install-steps { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.install-card .check small { display: block; }
.big-404 { font-family: var(--font-display); font-size: 5rem; font-weight: 900; }

/* ---------- Profil ---------- */
.profile-hero { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.profile-hero h1 { margin-bottom: .2rem; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.danger-zone summary { cursor: pointer; font-weight: 800; color: var(--red); }

/* ---------- Über mich ---------- */
.about-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-portrait { position: relative; display: grid; place-items: center; }
.portrait-logo { position: relative; width: 100%; max-width: 480px; }
.portrait-logo::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 199, 44, .8), rgba(255, 138, 0, 0) 70%); z-index: -1; }
.portrait-logo img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
.portrait-ring { width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 9rem; background: var(--grad-sun); box-shadow: var(--glow-sun); border: 8px solid var(--surface); }
.about-hero .lead p { margin: 0; }

/* Formatierter Text (Markdown) – z. B. „Meine Geschichte“ */
.about-story { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem); text-align: left; }
.about-story::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--sun), var(--orange), var(--pink), var(--turquoise), var(--ocean)); }
.md { font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 1.1em; }
.md strong { color: var(--text); font-weight: 800; }
.md em { color: var(--muted); }
.md a { font-weight: 700; }
.md .md-h { margin: 2.2rem 0 .9rem; }
.md h2.md-h { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--sun); }
:root[data-theme="light"] .md h2.md-h { color: var(--orange); }
.md h3.md-h { font-size: clamp(1.2rem, 2.4vw, 1.45rem); display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--border); }
.md-hr { border: 0; height: 2px; margin: 2rem 0; background: var(--border); }
.md-list { margin: 0 0 1.2em; padding-left: 1.3rem; }
.md-list li { margin-bottom: .4rem; }
.md-list li::marker { color: var(--sun); }
.md-emoji-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .7rem; }
.md-emoji-list li {
    display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border); line-height: 1.5; transition: transform .2s, border-color .2s;
}
.md-emoji-list li:hover { transform: translateY(-3px); border-color: var(--sun); }
.md-emo { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.md-highlight {
    padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); font-size: 1.15rem; text-align: center;
    background: var(--grad-sun); color: #10224d !important; box-shadow: 0 14px 30px -16px rgba(255, 138, 0, .9);
    transform: rotate(-1deg);
}
.md-highlight strong { color: #10224d; }
.md-sign { font-family: var(--font-display); font-size: 1.35rem; text-align: right; margin-top: 1.6rem !important; }
.md-sign strong { color: var(--sun); }
:root[data-theme="light"] .md-sign strong { color: var(--orange); }
.md-quote {
    position: relative; margin: 1.6rem 0 0; padding: 1.2rem 1.4rem 1.2rem 3.2rem; border-radius: var(--radius-sm);
    background: var(--bg-2); border-left: 5px solid var(--turquoise); font-size: 1.12rem;
}
.md-quote::before { content: "“"; position: absolute; left: .8rem; top: -.2rem; font-family: Georgia, serif; font-size: 3.6rem; line-height: 1; color: var(--turquoise); }
.md-quote p { margin: 0; }
.md-quote em { color: var(--text); font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.fact { text-align: center; transition: transform .3s; }
.fact strong { display: block; font-family: var(--font-display); font-size: 1.6rem; margin: .4rem 0; }
.fact p { margin: 0; font-size: .95rem; }
.fact-icon { font-size: 2.6rem; display: inline-block; }
.fact:hover .fact-icon { animation: pop .5s; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; display: grid; gap: 1.2rem; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(var(--sun), var(--orange), var(--turquoise), var(--ocean)); }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -2.4rem; top: 1.1rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-sun); color: #10224d; font-weight: 900; border: 4px solid var(--bg); }
.timeline h3 { margin-bottom: .3rem; }
.timeline p { margin: 0; }
.faq { display: grid; gap: .8rem; }
.faq-item summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--sun); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Kontakt / Prosa ---------- */
.contact-grid { grid-template-columns: 1.4fr 1fr; }
.fun-card { display: flex; gap: 1rem; align-items: center; }
.fun-card p { margin: 0; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta-box {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding: clamp(1.8rem, 4vw, 3rem); border-radius: 32px; background: var(--grad-sun); color: #10224d; box-shadow: 0 30px 60px -30px rgba(255, 138, 0, .9);
    position: relative; overflow: hidden;
}
.cta-box::after { content: "✈️"; position: absolute; font-size: 6rem; right: 20%; top: -30px; opacity: .2; transform: rotate(-20deg); }
.cta-box h2 { margin-bottom: .3rem; }
.cta-box p { margin: 0; max-width: 55ch; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; background: var(--bg-2); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text) !important; text-decoration: none !important; font-weight: 900; margin-bottom: .8rem; }
.footer-logo-img { width: 170px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); transition: transform .3s; }
.footer-logo:hover .footer-logo-img { transform: rotate(-4deg) scale(1.05); }
.footer-title { font-size: 1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--sun); }
.socials { display: flex; gap: .5rem; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; font-weight: 900; transition: transform .2s, background .2s; }
.social:hover { transform: translateY(-3px); background: var(--grad-sun); color: #10224d !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.to-top {
    display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 999px; background: var(--grad-sun);
    color: #10224d !important; font-weight: 900; font-size: 1rem; text-decoration: none !important; transition: transform .2s;
}
.to-top::after { content: "Nach oben"; font-size: .9rem; }
.to-top:hover { transform: translateY(-3px); }
.back-to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--grad-sun); color: #10224d; font-size: 1.5rem; font-weight: 900; box-shadow: 0 10px 25px -8px rgba(255, 138, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 1rem; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-nav { display: grid; gap: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; }
.admin-nav a { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 14px; color: var(--text); font-weight: 700; text-decoration: none; }
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a.is-active { background: var(--grad-sun); color: #10224d; }
.an-badge { margin-left: auto; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--pink); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.admin-main { min-width: 0; }
.admin-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-stat { display: grid; gap: .1rem; color: var(--text) !important; text-decoration: none !important; transition: transform .2s; }
.admin-stat:hover { transform: translateY(-4px); }
.admin-stat strong { font-family: var(--font-display); font-size: 2rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 1.5rem; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar { width: 100%; min-height: 4px; border-radius: 8px 8px 3px 3px; background: var(--grad-sun); transition: height .6s; }
.bar-val { font-size: .75rem; font-weight: 800; }
.bar-label { font-size: .65rem; color: var(--muted); white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.toolbar .chip-row { margin: 0; }
.toolbar input[type="search"] { width: auto; flex: 1; min-width: 180px; max-width: 360px; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.ta-right { text-align: right !important; }
.actions { white-space: nowrap; }
.actions > * { margin-left: .25rem; }
.inline-details { display: inline-block; position: relative; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }
.mini-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; gap: .4rem; background: var(--surface); padding: .6rem; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.mini-form input { width: 180px; padding: .45rem .7rem; }
.admin-entry.is-pending { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(255, 199, 44, .25); }
.admin-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.admin-entry p { overflow-wrap: anywhere; }
.mini-thumb { object-fit: cover; display: inline-block; }
.import-card { margin-bottom: 1.4rem; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-sun) border-box; }
.import-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.import-head h2 { margin-bottom: .2rem; }
.import-head p { margin: 0; }
.import-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--grad-sun); }
.import-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.import-form input { flex: 1; min-width: 220px; }
.mini-cover { display: inline-grid; place-items: center; width: 40px; height: 48px; border-radius: 10px; vertical-align: middle; margin-right: .4rem; font-size: 1.3rem; }
.message-row { display: flex; align-items: center; gap: 1rem; color: var(--text) !important; text-decoration: none !important; padding: 1rem 1.2rem; transition: transform .2s; }
.message-row:hover { transform: translateX(4px); }
.message-dot { width: 10px; height: 10px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.message-row.is-unread .message-dot { background: var(--turquoise); box-shadow: 0 0 10px var(--turquoise); }
.message-row.is-unread strong { color: var(--sun); }
.message-main { display: grid; flex: 1; min-width: 0; }
.message-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-body { background: var(--bg-2); border-radius: var(--radius-sm); padding: 1.2rem; overflow-wrap: anywhere; }
.settings-form { display: grid; gap: 1.2rem; }
.settings-group { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.settings-form .settings-group { margin-bottom: 0; }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.logo-admin { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; }
.logo-preview { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; padding: 1rem; text-align: center;
    background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--bg-2) 0% 50%) 50% / 24px 24px; }
.logo-preview img { max-height: 100%; object-fit: contain; }

/* ---------- Scroll-Reveal & Konfetti ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.confetti { position: fixed; top: -40px; z-index: 999; pointer-events: none; font-size: 1.6rem; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ==========================================================================
   v2: Neue Bereiche
   ========================================================================== */

/* ---------- Navigation: Aufklappmenüs ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
    display: flex; align-items: center; gap: .3rem; padding: .5rem .85rem; border-radius: 999px; border: 0; background: none;
    font: inherit; font-weight: 700; color: var(--text); cursor: pointer;
}
.nav-drop-btn:hover { background: var(--surface); }
.nav-drop-btn.is-active { background: var(--surface-2); color: var(--sun); }
.caret { font-size: .7rem; transition: transform .2s; }
.nav-drop.is-open .caret { transform: rotate(180deg); }
.nav-sub {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 220px; z-index: 60;
    list-style: none; margin: 0; padding: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-sub a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a.is-active { background: var(--surface-2); color: var(--sun); }
.nav-drop.is-open .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 981px) {
    .nav-drop:hover .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    .nav-drop:hover .caret { transform: rotate(180deg); }
}

/* ---------- Avatare mit Profilbild ---------- */
.avatar.has-img { overflow: hidden; background: var(--surface-2); padding: 0; }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }

/* ---------- Toast für Abzeichen ---------- */
.flash-badge { border-left-color: var(--sun); background: linear-gradient(90deg, rgba(255, 199, 44, .18), var(--surface) 60%); }

/* ---------- 😎 Urlaubsmodus ---------- */
.sunglasses-btn {
    position: fixed; left: 16px; bottom: 16px; z-index: 55; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
    font-size: 1.7rem; background: var(--surface); box-shadow: var(--shadow), 0 0 0 2px var(--border) inset;
    transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .3s;
}
.sunglasses-btn:hover { transform: scale(1.12) rotate(-10deg); }
.vacation .sunglasses-btn { background: var(--grad-sun); animation: wobble 2s ease-in-out infinite; }
.vacation body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
    background: radial-gradient(circle at 85% 0%, rgba(255, 199, 44, .35), transparent 45%), linear-gradient(180deg, rgba(255, 138, 0, .08), rgba(255, 61, 127, .06));
    mix-blend-mode: soft-light;
}
.vacation .avatar { position: relative; overflow: visible; }
.vacation .avatar::after {
    content: "😎"; position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font-size: .85em; line-height: 1; pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}
.vacation .avatar.has-img img { border-radius: 50%; }
.vacation .logo-img, .vacation .hero-logo-img { filter: saturate(1.3) drop-shadow(0 0 30px rgba(255, 199, 44, .6)); }
.vacation .hero-title .glitch { filter: drop-shadow(0 4px 0 rgba(255, 61, 127, .6)); }

/* ---------- Newsletter-Streifen ---------- */
.footer-newsletter { margin-top: 3rem; }
.newsletter-strip {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem 2.5rem; align-items: center;
    padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: var(--grad-ocean); color: #fff; box-shadow: var(--shadow);
}
.newsletter-strip h2 { margin-bottom: .3rem; }
.newsletter-strip .muted { color: rgba(255, 255, 255, .85); margin: 0; }
.newsletter-strip a { color: #fff; text-decoration: underline; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 200px; background: rgba(255, 255, 255, .95); color: #10224d; border-color: transparent; }
.newsletter-form small { width: 100%; }
.site-footer { margin-top: 2rem; }
.newsletter-card { display: grid; gap: 1.2rem; }
.newsletter-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; text-align: center; }
.newsletter-perks div { display: grid; gap: .2rem; padding: 1rem .5rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.newsletter-perks span { font-size: 2rem; }

/* ---------- Koffer-Countdown ---------- */
.countdown-section { padding-bottom: 0; }
.countdown-card {
    position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
    padding: clamp(1.3rem, 3vw, 2rem); border-radius: 28px; background: var(--surface); border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-sun) border-box; box-shadow: var(--shadow);
}
.countdown-suitcase { font-size: 4rem; animation: suitcase 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes suitcase { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-6px); } }
.countdown-info h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .2rem; }
.countdown-info .kicker { margin-bottom: .3rem; }
.countdown-info p { margin: 0; }
.countdown-clock { display: flex; gap: .6rem; }
.countdown-clock div { display: grid; justify-items: center; min-width: 68px; padding: .7rem .5rem; border-radius: var(--radius-sm); background: var(--bg-2); }
.countdown-clock strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.countdown-clock span { font-size: .75rem; color: var(--muted); font-weight: 700; margin-top: .3rem; }
.countdown-done { display: none; grid-column: 1 / -1; margin: 0; font-weight: 800; font-size: 1.2rem; }
.countdown-card.is-done .countdown-clock { display: none; }
.countdown-card.is-done .countdown-done { display: block; }

/* ---------- O-Mats nebeneinander ---------- */
.machines { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.machines > :only-child { grid-column: 1 / -1; }
.machines .quote-machine { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cocktail-machine {
    position: relative; text-align: center; padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2rem); border-radius: 32px; overflow: hidden;
    background: linear-gradient(160deg, #ff7eb3, #ff3d7f 45%, #ff8a00); color: #fff; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center;
}
.cocktail-machine::before { content: "🌴"; position: absolute; right: -20px; bottom: -40px; font-size: 9rem; opacity: .18; transform: rotate(-15deg); }
.cm-glass { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); margin-bottom: .8rem; }
.cm-emoji { font-size: 4rem; }
.cm-glass.is-shaking { animation: shake .7s ease-in-out; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-25deg) translateY(-8px); } 30% { transform: rotate(25deg) translateY(-12px); } 45% { transform: rotate(-20deg); } 60% { transform: rotate(18deg) translateY(-6px); } 80% { transform: rotate(-6deg); } }
.cm-name { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .2rem; }
.cm-rating { font-size: 1.2rem; margin-bottom: .6rem; min-height: 1.5em; }
.cm-ing { font-weight: 700; opacity: .95; margin-bottom: .4rem; }
.cm-text { font-style: italic; opacity: .9; min-height: 1.4em; }
.cocktail-machine .btn { margin-top: auto; }

/* ---------- Umfrage & Teaser ---------- */
.fun-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.fun-grid > .stack:only-child { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.poll-head { margin-bottom: 1rem; }
.poll-head h2 { margin: 0; }
.poll-form { display: grid; gap: .6rem; }
.poll-option {
    text-align: left; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg-2);
    color: var(--text); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .2s, transform .2s, background .2s;
}
.poll-option:hover { border-color: var(--sun); transform: translateX(4px); background: rgba(255, 199, 44, .08); }
.poll-results { display: grid; gap: .55rem; }
.poll-bar { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 2px solid transparent; }
.poll-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(31, 209, 230, .35), rgba(10, 132, 255, .35)); border-radius: inherit; transition: width 1s cubic-bezier(.2, .8, .3, 1); }
.poll-bar.is-leading .poll-bar-fill { background: linear-gradient(90deg, rgba(255, 224, 102, .55), rgba(255, 138, 0, .5)); }
.poll-bar.is-mine { border-color: var(--sun); }
.poll-bar-label, .poll-bar-value { position: relative; font-weight: 700; }
.poll-bar-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.poll-results.compact .poll-bar { padding: .5rem .8rem; font-size: .9rem; }
.poll-foot { margin: .8rem 0 .4rem; }
.poll-change { display: flex; flex-wrap: wrap; gap: .4rem; }
.poll-change .chip { cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; }
.teaser { display: flex; align-items: center; gap: 1rem; color: var(--text) !important; text-decoration: none !important; padding: 1.1rem 1.3rem; transition: transform .25s, border-color .25s; }
.teaser:hover { transform: translateX(6px); border-color: var(--sun); }
.teaser p { margin: .1rem 0 0; }
.teaser-emoji { font-size: 2.3rem; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); }
.teaser-map .teaser-emoji { background: var(--grad-ocean); }
.teaser-game .teaser-emoji { background: linear-gradient(135deg, #7b2ff7, #ff3d7f); }
.teaser-post .teaser-emoji { background: var(--grad-sun); }
.teaser-photo .teaser-emoji { background: linear-gradient(135deg, #7ed957, #1fd1e6); }
.teaser-arrow { margin-left: auto; font-size: 1.4rem; font-weight: 900; color: var(--sun); }

/* ---------- Weltkarte ---------- */
.map-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.map-stats .pill { margin: 0; }
.map-card { position: relative; padding: 0; overflow: hidden; min-height: 460px; }
.map-canvas { height: min(70vh, 560px); min-height: 420px; display: none; background: #a9d3f5; }
.map-card.is-loaded .map-canvas { display: block; }
.map-card.is-loaded .map-consent { display: none; }
.map-consent {
    min-height: 460px; display: grid; place-items: center; text-align: center; padding: 2rem;
    background: radial-gradient(circle at 30% 30%, rgba(31, 209, 230, .3), transparent 50%), radial-gradient(circle at 70% 70%, rgba(255, 199, 44, .25), transparent 50%),
                repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, .04) 38px 40px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .04) 38px 40px), var(--bg-2);
}
.map-consent-inner { max-width: 440px; display: grid; gap: .6rem; justify-items: center; }
.map-globe { font-size: 4.5rem; animation: floaty 5s ease-in-out infinite; }
.map-remember { justify-content: center; }
.map-pin { background: none; border: 0; }
.map-pin span {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); border: 3px solid var(--sun); font-size: 1.2rem;
}
.map-pin span i { display: block; transform: rotate(45deg); font-style: normal; line-height: 1; }
.map-pin.is-planned span { border-color: var(--turquoise); border-style: dashed; }
.map-popup { display: grid; gap: .25rem; max-width: 230px; font-family: var(--font); color: #10224d; }
.map-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: .3rem; }
.map-popup small { color: #5a6891; }
.map-popup p { margin: .3rem 0 0; }
.leaflet-container a.leaflet-popup-close-button { color: #10224d; }
.list-title { margin: 0 0 1rem; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.place-card { padding: 0; overflow: hidden; }
.place-card.is-planned { border-style: dashed; border-color: var(--turquoise); }
.place-photo { width: 100%; height: 170px; object-fit: cover; }
.place-body { padding: 1.1rem 1.2rem 1.2rem; }
.place-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.place-head h3 { margin: 0; }
.place-emoji { font-size: 2rem; }
.place-body p { font-size: .95rem; margin-bottom: .5rem; }

/* ---------- Cocktailkarte ---------- */
.cocktail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.cocktail-card { text-align: center; }
.cocktail-emoji { font-size: 3.4rem; display: block; margin-bottom: .4rem; }
.rating { font-size: 1.1rem; margin-bottom: .8rem; letter-spacing: .05em; }
.rating-off { opacity: .2; filter: grayscale(1); }
.ingredients { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.ingredients li { font-size: .82rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.cocktail-comment { font-style: italic; color: var(--muted); margin: 0; }

/* ---------- Postkarten ---------- */
.pc-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.motif-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.motif-picker legend { grid-column: 1 / -1; }
.motif-option { position: relative; display: block !important; cursor: pointer; }
.motif-option input { position: absolute; opacity: 0; pointer-events: none; }
.motif-option span { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; font-size: 1.4rem; border: 3px solid transparent; transition: transform .2s, border-color .2s; }
.motif-option input:checked + span { border-color: var(--sun); transform: scale(1.08); }
.motif-option input:focus-visible + span { outline: 3px solid var(--turquoise); }
.motif-strand { background: linear-gradient(180deg, #6ee7ff 0%, #1fd1e6 45%, #ffe7a8 46%, #ffd166 100%); }
.motif-schiff { background: linear-gradient(180deg, #8fe3ff 0%, #0a84ff 55%, #0b3d91 100%); }
.motif-palme { background: linear-gradient(160deg, #d4ff7a, #7ed957 45%, #1fa57a); }
.motif-berge { background: linear-gradient(180deg, #cfe9ff 0%, #9ec5f0 50%, #5b7bb5 100%); }
.motif-stadt { background: linear-gradient(180deg, #3a4bb3 0%, #7b2ff7 60%, #ff3d7f 100%); }
.motif-sunset { background: linear-gradient(180deg, #ffe066 0%, #ff8a00 50%, #ff3d7f 100%); }
.pinboard {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.4rem; padding: 1.6rem; border-radius: var(--radius);
    background: radial-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px) 0 0 / 14px 14px, #b98b5e; box-shadow: inset 0 0 0 10px #8a6239, var(--shadow);
}
:root[data-theme="light"] .pinboard { background: radial-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px) 0 0 / 14px 14px, #d7ad7f; }
.postcard {
    position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: none; cursor: pointer;
    perspective: 1000px; transform: rotate(var(--rot, 0deg)); transition: transform .3s; font: inherit; color: inherit; text-align: left;
}
.postcard:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.pin { position: absolute; top: -10px; left: 50%; z-index: 3; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8fb3, #ff3d7f 60%, #b3003c); box-shadow: 0 3px 5px rgba(0, 0, 0, .4); }
.postcard-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3, 1.2, .5, 1); transform-style: preserve-3d; }
.postcard.is-flipped .postcard-inner { transform: rotateY(180deg); }
.postcard-front, .postcard-back {
    position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
    backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 20px rgba(0, 0, 0, .35); border: 6px solid #fff;
}
.postcard-front { align-items: center; justify-content: center; }
.pc-big { font-size: 3.4rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.pc-greeting {
    position: absolute; left: 10px; right: 10px; bottom: 8px; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.3rem; font-weight: 700;
    color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); text-align: center; line-height: 1.1;
}
.postcard-back { transform: rotateY(180deg); background: repeating-linear-gradient(0deg, #fffdf6 0 22px, #e8e2d0 22px 23px); color: #10224d; padding: .7rem .9rem; }
.pc-stamp { position: absolute; top: 8px; right: 8px; width: 42px; height: 50px; display: grid; place-items: center; font-size: 1.5rem; background: #fff; border: 2px dashed #ff3d7f; }
.pc-message { display: block; padding-right: 48px; font-family: "Segoe Print", "Comic Sans MS", cursive; font-size: .88rem; line-height: 1.45; overflow: hidden; flex: 1; overflow-wrap: anywhere; }
.pc-from { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: #5a6891; }

/* ---------- Fan-Fotos ---------- */
.upload-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.upload-cta p { margin: 0; }
.upload-icon { font-size: 2.6rem; }
.upload-form { grid-template-columns: 240px 1fr; align-items: stretch; }
.file-drop { position: relative; display: block !important; cursor: pointer; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop-ui {
    height: 100%; min-height: 150px; display: grid; place-items: center; align-content: center; gap: .3rem; text-align: center; padding: 1rem;
    border: 3px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .2s;
}
.file-drop-ui > span { font-size: 2.2rem; }
.file-drop:hover .file-drop-ui, .file-drop input:focus-visible + .file-drop-ui { border-color: var(--sun); }
.photo-wall { columns: 3 280px; column-gap: 1.2rem; }
.photo-item { break-inside: avoid; margin: 0 0 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-open img { width: 100%; transition: transform .4s; }
.photo-item:hover .photo-open img { transform: scale(1.03); }
.photo-item figcaption { padding: .8rem 1rem 1rem; }
.photo-item figcaption p { margin: .5rem 0 0; font-size: .95rem; }
.photo-meta { display: flex; align-items: center; gap: .6rem; }
.photo-meta > div { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.photo-heart { margin-left: auto; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 8, 22, .88); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox-caption { color: #fff; text-align: center; margin: .8rem 0 0; font-weight: 600; }
.lightbox-close { position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad-sun); color: #10224d; font-size: 1.6rem; font-weight: 900; }

/* ---------- Reisetagebuch ---------- */
.blog-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; padding: 0; overflow: hidden; margin-bottom: 1.5rem; color: var(--text) !important; text-decoration: none !important; transition: transform .3s; }
.blog-featured:hover, .blog-card:hover { transform: translateY(-5px); }
.blog-featured .blog-cover { aspect-ratio: auto; min-height: 320px; }
.blog-featured .blog-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.blog-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-cover img, .blog-featured:hover .blog-cover img { transform: scale(1.05); }
.blog-cover-emoji { font-size: 5rem; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.blog-card { padding: 0; overflow: hidden; color: var(--text) !important; text-decoration: none !important; transition: transform .3s; display: flex; flex-direction: column; }
.blog-body { padding: 1.1rem 1.3rem 1.3rem; }
.blog-body h3 { margin: .4rem 0; }
.blog-body p { margin: 0; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.blog-hero.has-cover { position: relative; background: linear-gradient(180deg, rgba(7, 13, 34, .55), var(--bg) 96%), var(--cover) center / cover no-repeat; padding-top: clamp(5rem, 14vw, 9rem); }
.blog-hero.has-cover, .blog-hero.has-cover .muted, .blog-hero.has-cover small { color: #fff; }
.blog-hero.has-cover h1 { text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
:root[data-theme="light"] .blog-hero.has-cover { background: linear-gradient(180deg, rgba(7, 13, 34, .5), var(--bg) 96%), var(--cover) center / cover no-repeat; }
:root[data-theme="light"] .blog-hero.has-cover h1 { color: #fff; }
.blog-location { font-weight: 700; }
.blog-lead { font-size: 1.2rem; font-weight: 600; color: var(--text); border-left: 4px solid var(--sun); padding-left: 1rem; }
.blog-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.blog-gallery figure { margin: 0; }
.blog-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.blog-gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.blog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.blog-nav-link { display: grid; gap: .2rem; color: var(--text) !important; text-decoration: none !important; padding: 1rem 1.2rem; }
.blog-nav-link.is-next { text-align: right; grid-column: 2; }
.md-tiktok { max-width: 340px; margin: 1.5rem auto; display: grid; gap: .5rem; justify-items: center; }
.md-tiktok .video-cover { width: 100%; aspect-ratio: 9 / 14; border-radius: var(--radius); overflow: hidden; }
.md-tiktok .video-cover.is-playing { aspect-ratio: 9 / 16; }

/* ---------- Spiel ---------- */
.game-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.game-card { padding: clamp(.8rem, 2vw, 1.4rem); }
.game-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
#game { display: block; width: 100%; height: auto; background: #8fe3ff; cursor: pointer; }
.game-hud { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: .5rem; justify-content: flex-end; pointer-events: none; }
.game-hud span { padding: .3rem .7rem; border-radius: 999px; background: rgba(7, 13, 34, .7); color: #fff; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 13, 34, .55); backdrop-filter: blur(2px); transition: opacity .3s; }
.game-overlay.is-hidden { opacity: 0; pointer-events: none; }
.game-overlay-inner { text-align: center; color: #fff; padding: 1rem; display: grid; gap: .6rem; justify-items: center; }
.game-overlay-inner p { margin: 0; line-height: 1.5; }
.game-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); text-shadow: 0 4px 0 rgba(11, 61, 145, .7); color: var(--sun); }
.game-help { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: center; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
kbd { padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 3px; font-family: inherit; font-size: .82em; font-weight: 700; }
.leaderboard { position: sticky; top: calc(var(--header-h) + 20px); }
.leader-list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.leader-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 12px; background: var(--bg-2); }
.leader-list li.is-me { outline: 2px solid var(--sun); }
.leader-rank { width: 28px; text-align: center; font-weight: 900; }
.leader-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.leader-list strong { font-variant-numeric: tabular-nums; }

/* ---------- Abzeichen ---------- */
.badge-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.badge-head h2 { margin: 0; }
.badge-progress { flex: 1; max-width: 320px; height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.badge-progress span { display: block; height: 100%; background: var(--grad-sun); border-radius: inherit; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.badge-item { display: grid; justify-items: center; gap: .2rem; text-align: center; padding: 1rem .6rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 2px solid transparent; transition: transform .25s; }
.badge-item:hover { transform: translateY(-4px) rotate(-2deg); }
.badge-item.is-earned { border-color: var(--sun); background: linear-gradient(180deg, rgba(255, 199, 44, .14), var(--bg-2)); }
.badge-item.is-locked { opacity: .55; }
.badge-item.is-locked .badge-emoji { filter: grayscale(1); }
.badge-emoji { font-size: 2.3rem; }
.badge-item strong { font-size: .9rem; line-height: 1.2; }
.badge-item small { font-size: .72rem; color: var(--muted); line-height: 1.3; }

/* ---------- Admin: Ergänzungen ---------- */
.settings-jump { margin: 0 0 1.4rem; }
.settings-group { scroll-margin-top: calc(var(--header-h) + 20px); }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.radio-cards legend { grid-column: 1 / -1; }
.radio-card { position: relative; display: block !important; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: grid; gap: .25rem; height: 100%; padding: 1rem; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--bg-2); transition: border-color .2s; }
.radio-card input:checked + span { border-color: var(--sun); background: rgba(255, 199, 44, .08); }
.radio-card input:focus-visible + span { outline: 3px solid var(--turquoise); }
.smtp-fields { display: grid; gap: 1rem; padding: 1rem; border-radius: var(--radius-sm); border: 1px dashed var(--border); }
.mail-test { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; padding-top: 1rem; border-top: 1px dashed var(--border); }
.mail-test label { flex: 1; min-width: 220px; }
.send-box { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem; border-radius: var(--radius-sm); background: rgba(255, 138, 0, .08); border: 1px solid rgba(255, 138, 0, .35); }
.geo-search { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--border); }
.geo-search label { display: grid; gap: .35rem; font-weight: 700; }
.geo-row { display: flex; gap: .5rem; }
.geo-row input { flex: 1; }
.geo-results { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .3rem; }
.geo-results button { width: 100%; text-align: left; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.geo-results button:hover { border-color: var(--sun); }
.thumb-row { display: flex; align-items: center; gap: 1rem; }
.admin-thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.admin-cover { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.admin-gallery-item { display: grid; gap: .4rem; }
.admin-gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.admin-gallery-item input { padding: .4rem .6rem; font-size: .85rem; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.admin-photo { padding: 0; overflow: hidden; }
.admin-photo.is-pending { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(255, 199, 44, .25); }
.admin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.admin-photo-body { padding: .8rem 1rem 1rem; display: grid; gap: .3rem; }
.admin-photo-body p { margin: 0; }
.blog-edit { display: grid; gap: 1.2rem; }

/* ---------- Autogrammkarten ---------- */
.autograph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }
.autograph-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.autograph-card:hover { transform: translateY(-8px) rotate(-1deg); }
.autograph-frame {
    position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); border-bottom: 4px solid var(--sun);
}
.autograph-frame img { width: 100%; height: 100%; object-fit: cover; }
.autograph-placeholder { font-size: 5rem; }
.autograph-shine {
    position: absolute; inset: -40%; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
    transform: translateX(-60%);
}
.autograph-card:hover .autograph-shine { opacity: 1; animation: shine 1.1s ease forwards; }
@keyframes shine { to { transform: translateX(60%); } }
.autograph-format { position: absolute; top: 10px; right: 10px; padding: .25rem .6rem; border-radius: 999px; background: rgba(7, 13, 34, .75); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.autograph-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.autograph-body h2 { margin: 0; }
.autograph-body p { margin: 0; }
.autograph-body .btn-row { margin-top: auto; padding-top: .6rem; }
.autograph-meta { font-variant-numeric: tabular-nums; }
.autograph-admin-preview { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--bg-2); font-size: 3rem; overflow: hidden; }
.autograph-admin-preview img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
.autograph-admin-preview .badge { position: absolute; top: 8px; right: 8px; font-size: .7rem; }
.dedication-dialog { border: 0; padding: 0; background: transparent; width: min(920px, 94vw); max-height: 94vh; overflow: visible; color: var(--text); }
.dedication-dialog::backdrop { background: rgba(4, 8, 22, .85); backdrop-filter: blur(4px); }
.dedication-inner { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.8rem); max-height: 94vh; overflow-x: hidden; overflow-y: auto; box-shadow: var(--shadow); }
.dedication-inner .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.4rem; }
.dedication-inner h2 { padding-right: 3rem; }
.dedication-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.dedication-preview { display: grid; place-items: center; background: var(--bg-2); border-radius: var(--radius-sm); padding: .6rem; min-height: 240px; }
.dedication-preview canvas { max-width: 100%; max-height: 64vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.dedication-preview p { margin: 0; }

/* ---------- Wartungsmodus ---------- */
.maint-banner { position: sticky; top: var(--header-h); z-index: 45; background: repeating-linear-gradient(-45deg, #ffc72c 0 18px, #ffb300 18px 36px); color: #10224d; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.maint-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; padding: .55rem 0; font-size: .92rem; }
.maint-banner-inner span { background: rgba(255, 255, 255, .85); padding: .2rem .6rem; border-radius: 8px; }
.maint-switch { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-left: 6px solid var(--lime); }
.maint-switch.is-on { border-left-color: var(--sun); background: linear-gradient(90deg, rgba(255, 199, 44, .16), var(--surface) 55%); }
.maint-switch-icon { font-size: 2rem; }
.maint-switch-text { display: grid; flex: 1; min-width: 200px; }
.maint-switch-text strong { font-size: 1.1rem; }

.page-maintenance { min-height: 100vh; background: var(--grad-hero), var(--bg); }
.maint-wrap { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; place-items: center; padding: 2rem 16px 1rem; overflow: hidden; }
.maint-card {
    position: relative; z-index: 1; width: min(640px, 100%); text-align: center; padding: clamp(1.6rem, 5vw, 3rem);
    background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: 32px; box-shadow: var(--shadow);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .maint-card { background: var(--surface); } }
.maint-card h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: .4rem 0 .8rem; }
.maint-logo { position: relative; width: min(260px, 70%); margin: -.5rem auto .8rem; }
.maint-logo img { width: 100%; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45)); }
.maint-emoji { font-size: 6rem; display: block; animation: floaty 5s ease-in-out infinite; }
.maint-tools { position: absolute; right: -6px; bottom: 6px; font-size: 2.6rem; animation: wrench 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wrench { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
.maint-text { text-align: center; color: var(--muted); }
.maint-text strong { color: var(--text); }
.maint-progress { height: 12px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 1.4rem auto .6rem; max-width: 420px; }
.maint-progress span { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--grad-sun); animation: maintbar 2.2s ease-in-out infinite; }
@keyframes maintbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.maint-status { font-weight: 700; min-height: 1.6em; margin-bottom: 1.2rem; }
.maint-status.is-changing { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.maint-countdown { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: 0 0 1.4rem; padding: 1rem; }
.maint-countdown .countdown-info .kicker { margin: 0; }
.maint-countdown .countdown-info p { margin: .2rem 0 0; }
.maint-countdown.is-big .countdown-clock { gap: .7rem; }
.maint-countdown.is-big .countdown-clock div { min-width: 86px; padding: 1rem .6rem; background: var(--grad-ocean); }
.maint-countdown.is-big .countdown-clock strong { font-size: clamp(2rem, 6vw, 3rem); color: #fff; text-shadow: 0 3px 0 rgba(11, 61, 145, .6); }
.maint-countdown.is-big .countdown-clock span { color: rgba(255, 255, 255, .85); }
.maint-countdown.is-done .countdown-done { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.is-launch .maint-card { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-sun) border-box; }
.is-launch .maint-tools { animation: rocket 2.4s ease-in-out infinite; }
@keyframes rocket { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(6px, -14px) rotate(-8deg); } }
.maint-newsletter { display: grid; gap: .6rem; text-align: left; margin: 0 auto 1.4rem; max-width: 460px; padding: 1.1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.maint-nl-label { font-weight: 800; }
.maint-nl-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.maint-nl-row input { flex: 1 1 180px; min-width: 0; }
.maint-card .socials { justify-content: center; margin-top: 1.2rem; }
.maint-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; padding-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.maint-footer a { color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mittlere Breiten: Navigation kompakter, damit alles in eine Zeile passt */
@media (min-width: 1101px) {
    .main-nav { gap: .9rem; }
    .nav-list { gap: .1rem; }
    .nav-actions { gap: .4rem; }
}
@media (min-width: 1101px) and (max-width: 1500px) {
    .nav-btn-text { display: none; }
    .nav-actions .btn-sm { padding: .5rem .7rem; }
    .user-chip-name { display: none; }
    .user-chip { padding-right: .25rem; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
    .logo-text { display: none; }
    .nav-list a, .nav-drop-btn { padding: .45rem .6rem; font-size: .95rem; }
}
.nav-actions .btn .nav-btn-text { margin-left: .1rem; }

@media (max-width: 1100px) {
    /* Burger-Menü schon auf kleinen Laptops, weil die Navigation viele Punkte hat */
    .burger { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 16px 1.6rem;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-110%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .3, 1), visibility .35s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .nav-list { flex-direction: column; gap: .3rem; }
    .nav-list a { padding: .85rem 1rem; font-size: 1.1rem; background: var(--surface); border-radius: var(--radius-sm); }
    .nav-actions { flex-wrap: wrap; }
    .user-chip-name { display: inline; }
    .user-chip { padding-right: .8rem; }
    body.nav-open { overflow: hidden; }
    .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; margin: .3rem 0 .2rem; box-shadow: none; background: var(--bg-2); }
    .nav-drop.is-open .nav-sub { display: block; transform: none; }
    .nav-drop-btn { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.1rem; background: var(--surface); border-radius: var(--radius-sm); }
}

@media (max-width: 980px) {
    /* Tablet */
    .hero-inner, .tiktok-split, .about-hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-sub { margin-inline: auto; }
    .hero-copy .btn-row, .hero-proof, .tiktok-split .btn-row { justify-content: center; }
    .hero-logo { min-height: 0; max-width: 520px; margin: 0 auto; width: 100%; }
    .tiktok-split .hero-phone { order: 2; }
    .check-list { text-align: left; max-width: 440px; margin-inline: auto; margin-bottom: 1.6rem; }
    .about-hero .btn-row { justify-content: center; }
    .portrait-logo { max-width: 380px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .gb-preview { grid-template-columns: 1fr 1fr; }
    .gb-layout { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    /* Neue Bereiche (v2) */
    .newsletter-strip, .machines, .fun-grid, .pc-layout, .blog-featured, .game-layout { grid-template-columns: 1fr; }
    .countdown-card { grid-template-columns: auto 1fr; }
    .countdown-clock { grid-column: 1 / -1; justify-content: center; }
    .leaderboard { position: static; }
    .blog-featured .blog-cover { min-height: 240px; }
    .nav-sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; margin: .3rem 0 .2rem; box-shadow: none; background: var(--bg-2); }
    .nav-drop.is-open .nav-sub { display: block; transform: none; }
    .nav-drop-btn { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.1rem; background: var(--surface); border-radius: var(--radius-sm); }
    .nav-sub a { font-size: 1.05rem; }

    /* Mobile Navigation */
    .burger { display: flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 16px 1.6rem;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-110%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .3, 1), visibility .35s;
    }
    .main-nav.is-open { transform: none; visibility: visible; }
    .nav-list { flex-direction: column; gap: .3rem; }
    .nav-list a { padding: .85rem 1rem; font-size: 1.1rem; background: var(--surface); border-radius: var(--radius-sm); }
    .nav-actions { flex-wrap: wrap; }
    .user-chip-name { display: inline; }
    .user-chip { padding-right: .8rem; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
    /* Handy */
    :root { --header-h: 64px; }
    body { font-size: 1rem; }
    .logo-img { height: 48px; margin-bottom: -10px; }
    .logo-text { font-size: 1.05rem; }
    .hero-title { font-size: clamp(2.5rem, 13vw, 3.4rem); }
    .hero .btn-lg { width: 100%; }
    .sticker { font-size: .8rem; padding: .35rem .7rem; }
    .phone { width: 250px; }
    .ticker-track { font-size: 1rem; }
    .stats { gap: .8rem; }
    .stat { padding: 1.1rem .6rem; }
    .stats-sm { grid-template-columns: repeat(3, 1fr); }
    .stats-sm .stat strong { font-size: 1.4rem; }
    .stats-sm .stat > span:last-child { font-size: .8rem; }
    .grid-2, .grid-3, .gb-preview, .contact-grid, .form-grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .fact strong { font-size: 1.25rem; }
    .video-grid { grid-template-columns: 1fr; }
    .cta-box { text-align: center; justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
    .logo-admin { grid-template-columns: 1fr; }
    .logo-preview { max-width: 240px; }
    .profile-hero { flex-direction: column; text-align: center; }
    .auth-logo { width: 150px; }
    .mood-option span, .avatar-option span { width: 42px; height: 42px; font-size: 1.3rem; }

    /* Neue Bereiche (v2) */
    .countdown-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .countdown-suitcase { font-size: 3rem; }
    .countdown-clock div { min-width: 0; flex: 1; }
    .countdown-clock strong { font-size: 1.5rem; }
    .countdown-clock { width: 100%; gap: .4rem; }
    .maint-countdown.is-big .countdown-clock { gap: .35rem; }
    .maint-countdown.is-big .countdown-clock div { min-width: 0; padding: .7rem .2rem; }
    .maint-card { border-radius: 24px; }
    .maint-nl-row .btn { width: 100%; }
    .maint-card .btn { white-space: normal; text-align: center; }
    .autograph-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
    .autograph-body { padding: .8rem; }
    .autograph-body .btn { width: 100%; white-space: normal; }
    .dedication-layout { grid-template-columns: 1fr; }
    .dedication-preview canvas { max-height: 46vh; }
    .newsletter-perks, .radio-cards, .upload-form, .blog-nav { grid-template-columns: 1fr; }
    .blog-nav-link.is-next { grid-column: auto; }
    .motif-picker { grid-template-columns: repeat(3, 1fr); }
    .pinboard { padding: 1.2rem .9rem; grid-template-columns: 1fr; }
    .photo-wall { columns: 1; }
    .game-help { font-size: .8rem; }
    .game-overlay-inner { gap: .25rem; padding: .4rem; }
    .game-title { font-size: 1.15rem; text-shadow: 0 2px 0 rgba(11, 61, 145, .7); }
    .game-overlay-inner p { font-size: .75rem; line-height: 1.3; }
    .game-overlay .btn-lg { padding: .45rem 1rem; font-size: .88rem; }
    .game-hud { top: 6px; left: 6px; right: 6px; gap: .3rem; }
    .game-hud span { font-size: .78rem; padding: .2rem .55rem; }
    .sunglasses-btn { width: 46px; height: 46px; font-size: 1.4rem; left: 12px; bottom: 12px; }
    .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .map-canvas { height: 60vh; min-height: 340px; }
    .lightbox-close { top: 6px; right: 6px; }
    .avatar-upload { flex-direction: column; align-items: flex-start; }

    .flash-stack { right: 16px; left: 16px; width: auto; }
}

/* ==========================================================================
   Adminbereich auf Tablet & Handy
   ========================================================================== */
.admin-menu-toggle { display: none; }

@media (max-width: 980px) {
    .admin-wrap { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.2rem; }
    .admin-side { position: sticky; top: calc(var(--header-h) + 8px); z-index: 30; }

    /* Menü-Knopf mit aktuellem Bereich, klappt ein Kachel-Raster auf */
    .admin-menu-toggle {
        display: flex; align-items: center; gap: .6rem; width: 100%; padding: .8rem 1rem; cursor: pointer;
        border-radius: var(--radius-sm); border: 2px solid var(--sun); background: var(--surface); color: var(--text);
        font: inherit; font-weight: 800; box-shadow: var(--shadow);
    }
    .admin-menu-caret { margin-left: auto; font-size: .85rem; color: var(--sun); }
    .admin-menu-toggle .an-badge { margin-left: .2rem; }
    .admin-side .admin-nav {
        display: none; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .5rem; box-shadow: var(--shadow);
        max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto;
    }
    .admin-side.is-open .admin-nav { display: grid; }
    .admin-menu-caret i { display: inline-block; font-style: normal; transition: transform .2s; }
    .admin-side.is-open .admin-menu-caret i { transform: rotate(180deg); }
    .admin-nav a { flex-direction: column; justify-content: center; gap: .25rem; padding: .8rem .4rem; text-align: center; font-size: .85rem; position: relative; background: var(--bg-2); }
    .admin-nav .an-icon { font-size: 1.5rem; }
    .admin-nav .an-badge { position: absolute; top: 6px; right: 6px; margin: 0; }

    .admin-title { font-size: 1.6rem; margin-bottom: .4rem; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-main .grid-3 { grid-template-columns: 1fr; }

    /* Tabellen werden zu Karten */
    .table-wrap.card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { margin-bottom: .8rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
    .table td { border: 0; padding: .35rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: right; }
    .table td::before { content: attr(data-label); font-weight: 700; color: var(--muted); text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
    .table td:first-child { display: block; text-align: left; padding-bottom: .6rem; margin-bottom: .3rem; border-bottom: 1px dashed var(--border); }
    .table td:first-child::before { display: none; }
    .table td[colspan] { justify-content: center; text-align: center; }
    .table td[colspan]::before { display: none; }
    .table td.actions { flex-wrap: wrap; justify-content: flex-start; white-space: normal; gap: .4rem; padding-top: .7rem; margin-top: .3rem; border-top: 1px dashed var(--border); }
    .table td.actions::before { display: none; }
    .table td.actions > * { margin: 0; }
    .table .btn-xs { padding: .5rem .8rem; font-size: .85rem; }
    .mini-form { position: static; margin-top: .4rem; flex-wrap: wrap; }
    .mini-form input { width: 100%; }
    .inline-details { display: inline-block; }
    .inline-details[open] { flex-basis: 100%; }
    .inline-details summary { display: inline-flex; }

    .toolbar { gap: .6rem; }
    .toolbar input[type="search"] { max-width: none; width: 100%; flex-basis: 100%; }
    .toolbar .chip-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .2rem; scrollbar-width: none; }
    .toolbar .chip-row::-webkit-scrollbar { display: none; }
    .toolbar .chip { flex-shrink: 0; }

    /* Diagramm: nur jedes zweite Datum zeigen */
    .bar-chart { gap: 3px; height: 170px; }
    .bar-col:nth-child(even) .bar-label { visibility: hidden; }
    .bar-label { font-size: .6rem; }

    .admin-entry .btn-row, .admin-photo-body .btn-row { gap: .4rem; }
    .admin-entry .btn-xs, .admin-photo .btn-xs { padding: .5rem .8rem; font-size: .85rem; }
    .settings-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
    .settings-jump::-webkit-scrollbar { display: none; }
    .settings-jump .chip { flex-shrink: 0; }
    .sticky-save { bottom: 10px; }
    .sticky-save .btn { width: 100%; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); }
    .video-edit .video-grid.single { grid-template-columns: minmax(0, 320px); justify-content: center; }
}

@media (max-width: 640px) {
    .admin-side .admin-nav { grid-template-columns: repeat(3, 1fr); }
    .admin-nav a { font-size: .75rem; padding: .7rem .2rem; }
    .admin-stats { gap: .6rem; }
    .admin-stat { padding: .9rem; }
    .admin-stat strong { font-size: 1.5rem; }
    .admin-stat .muted { font-size: .8rem; }
    .import-head { flex-direction: column; }
    .import-form .btn, .send-box .btn, .mail-test .btn { width: 100%; }
    .geo-row { flex-direction: column; }
    .logo-admin { grid-template-columns: 1fr; }
    .admin-gallery { grid-template-columns: repeat(2, 1fr); }
    .message-row { flex-wrap: wrap; }
    .message-row > small { width: 100%; padding-left: 26px; }
}

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