/* ============================================
   MALLORIFFA GMBH — GLOBAL STYLESHEET
   Pink/Magenta · modern, energisch, lesbar
   ============================================ */

:root {
    /* ── Helles Design: Rosé-Hintergrund, Pink→Violett-Buttons, Magenta-Akzent ── */
    --color-bg: #fbeef4;            /* sehr helles Rosé (Grundfarbe) */
    --color-bg-soft: #f6e2ee;       /* leicht abgesetzt (Sektionen) */
    --color-bg-elevated: #fdf3f8;   /* heller (abgesetzte Flächen) */
    --color-bg-card: #ffffff;       /* Karten: Weiß, hebt sich klar ab */
    --color-surface: #ffffff;
    --color-border: rgba(142, 26, 99, 0.14);       /* magenta getönte Rahmen */
    --color-border-strong: rgba(142, 26, 99, 0.26);

    --color-text: #2a1622;          /* dunkles Aubergine (Haupttext) */
    --color-text-muted: #55384a;    /* gedämpft, guter Kontrast auf Rosé */
    --color-text-dim: #7a5c6c;

    /* Akzentfarbe = Magenta (Links, Eyebrows, Überschriften-Akzent).
       Die Variablennamen bleiben --color-gold* (historisch), tragen jetzt aber
       Magenta — so ziehen alle bestehenden Akzent-Stellen automatisch nach. */
    --color-gold: #c81d77;          /* kräftiges Magenta */
    --color-gold-light: #d63b8f;
    --color-gold-bright: #e0218a;
    --color-gold-dark: #a1145f;
    --color-gold-deep: #6f0e42;

    /* CTA-/Button-Farbe = Pink */
    --color-cta: #d61f82;
    --color-cta-dark: #a1145f;
    --color-cta-rgb: 214, 31, 130;

    /* Icons = dunkles Aubergine */
    --color-icon: #3a1e2c;

    /* Buttons/Verläufe: --gradient-gold trägt jetzt Pink→Violett (Buttons nutzen es). */
    --gradient-gold: linear-gradient(135deg, #e0218a 0%, #c81d77 50%, #8e1a63 100%);
    --gradient-gold-soft: linear-gradient(135deg, rgba(214, 31, 130, 0.14) 0%, rgba(214, 31, 130, 0.04) 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(200, 29, 119, 0.12) 0%, rgba(251, 238, 244, 0) 55%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);

    --shadow-sm: 0 2px 12px rgba(142, 26, 99, 0.10);
    --shadow-md: 0 8px 30px rgba(142, 26, 99, 0.12);
    --shadow-lg: 0 20px 60px rgba(142, 26, 99, 0.16);
    --shadow-glow: 0 0 60px rgba(214, 31, 130, 0.22);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --radius-full: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --container-wide: 1400px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.55;
    overflow-x: hidden;
    font-feature-settings: "cv11", "ss03", "calt";
    font-optical-sizing: auto;
}

::selection {
    background: var(--color-gold);
    color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--color-text);
}

.display {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.subheadline {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.lead {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 400;
    max-width: 720px;
}

.text-gold { color: var(--color-gold); }
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: clamp(70px, 10vw, 140px) 0;
    position: relative;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
    margin: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(253, 243, 248, 0.82);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.nav.scrolled {
    background: rgba(253, 243, 248, 0.95);
    border-bottom-color: var(--color-border);
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo .logo-mark {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 8px 18px !important;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(214, 31, 130, 0.4);
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition: 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(251, 238, 244, 0.98);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--color-border);
        padding: 24px;
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.05rem;
    }
    .nav-cta {
        margin-top: 12px;
        text-align: center;
        width: 100%;
        padding: 14px !important;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    will-change: transform;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 6px 24px rgba(214, 31, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(214, 31, 130, 0.45);
}

.btn-secondary {
    background: rgba(142, 26, 99, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(142, 26, 99, 0.09);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-gold);
    padding: 8px 0;
    border-radius: 0;
}

.btn-ghost::after {
    content: ' →';
    transition: transform 0.25s var(--ease);
    display: inline-block;
}

.btn-ghost:hover::after { transform: translateX(4px); }

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(214, 31, 130, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-inner .lead {
    margin: 24px auto 0;
}

.hero-meta {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-meta-item {
    text-align: center;
}

.hero-meta-num {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.hero-meta-label {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll .line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--color-gold));
    animation: scrollLine 2s infinite var(--ease);
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
}

.section-header .lead {
    margin: 16px auto 0;
}

/* ============================================
   CARDS / FEATURES
   ============================================ */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 31, 130, 0.3);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-gold-soft);
    border: 1px solid rgba(214, 31, 130, 0.25);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: var(--color-gold);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--color-gold);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: gap 0.25s var(--ease);
}

.card-link:hover { gap: 10px; }

/* ============================================
   FEATURE STRIP (BIG PRODUCT BLOCKS)
   ============================================ */

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block:last-child { margin-bottom: 0; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-block-content h2 {
    margin-bottom: 20px;
}

.feature-block-content .lead { margin-bottom: 24px; }

.feature-list {
    margin-top: 28px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 1rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: '✓';
    color: var(--color-gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-visual {
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(214, 31, 130, 0.25) 0%, transparent 60%);
}

@media (max-width: 880px) {
    .feature-block, .feature-block.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
}

/* ============================================
   STATS BAND
   ============================================ */

.stats-band {
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 880px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-num {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
    background: linear-gradient(135deg, rgba(214, 31, 130, 0.12), rgba(214, 31, 130, 0.02));
    border: 1px solid rgba(214, 31, 130, 0.18);
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(214, 31, 130, 0.2), transparent 70%);
    pointer-events: none;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner .lead { margin: 0 auto 32px; }

/* ============================================
   APP SHOWCASE
   ============================================ */

.app-showcase {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 60px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s var(--ease);
}

.app-showcase:hover {
    border-color: rgba(214, 31, 130, 0.3);
}

.app-showcase-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.app-showcase.reverse .app-showcase-inner {
    grid-template-columns: 1fr 1.1fr;
}

.app-showcase.reverse .app-showcase-info { order: 2; }
.app-showcase.reverse .app-showcase-visual { order: 1; }

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(214, 31, 130, 0.1);
    border: 1px solid rgba(214, 31, 130, 0.25);
    color: var(--color-gold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.app-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
}

.app-showcase h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    margin-bottom: 16px;
}

.app-showcase-visual {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    background: var(--color-bg);
}

/* DocumentDiary mock */
.mock-dd {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1208 0%, #0d0a05 100%);
    padding: 28px;
    position: relative;
}

.mock-dd::before {
    content: 'DocumentDiary';
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.mock-dd-doc {
    position: absolute;
    background: rgba(142, 26, 99, 0.05);
    border: 1px solid rgba(214, 31, 130, 0.15);
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(8px);
}

.mock-dd-doc::before {
    content: '';
    display: block;
    width: 60%;
    height: 8px;
    border-radius: 4px;
    background: rgba(214, 31, 130, 0.4);
    margin-bottom: 8px;
}

.mock-dd-doc::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(142, 26, 99, 0.13);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.12), 0 16px 0 rgba(255, 255, 255, 0.08);
}

/* ============================================
   APP CAROUSEL (feature-visual)
   ============================================ */
.app-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0a05 0%, #1a1208 100%);
    border-radius: inherit;
    overflow: hidden;
    padding: 28px 20px 20px;
    box-sizing: border-box;
    gap: 0;
}

.app-carousel-track {
    width: 100%;
    flex: 1;
    position: relative;
}

.app-carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    text-align: center;
    padding: 12px;
}

.app-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.app-carousel-icon {
    width: 140px;
    height: 140px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.app-carousel-icon--placeholder {
    width: 140px;
    height: 140px;
    border-radius: 22px;
    background: linear-gradient(135deg, #e38700 0%, #b36900 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.app-carousel-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.app-carousel-tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 210px;
    line-height: 1.45;
}

.app-carousel-slide .app-badge {
    margin-bottom: 0;
    font-size: 0.72rem;
}

.app-carousel-dots {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    flex-shrink: 0;
}

.app-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(142, 26, 99, 0.16);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.app-carousel-dot.active {
    background: var(--color-gold);
    transform: scale(1.3);
}

/* Strong Country mock */
.mock-scc {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0d0d 100%);
    display: grid;
    place-items: center;
    position: relative;
    padding: 28px;
}

.mock-scc-flag {
    width: 100%;
    max-width: 240px;
    aspect-ratio: 3/2;
    background: linear-gradient(180deg, #ed2939 50%, #ffffff 50%);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.mock-scc-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.95rem;
}

.mock-scc-medal {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px rgba(214, 31, 130, 0.4);
}

@media (max-width: 880px) {
    .app-showcase { padding: 36px; }
    .app-showcase-inner,
    .app-showcase.reverse .app-showcase-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .app-showcase.reverse .app-showcase-info { order: 1; }
    .app-showcase.reverse .app-showcase-visual { order: 2; }
}

/* App-Icon im Apple-Style — clean, zentriert, mit dezentem Glow */
.app-icon-stage {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    background: radial-gradient(circle at 50% 45%, rgba(142, 26, 99, 0.04) 0%, transparent 65%);
}

.app-icon-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214, 31, 130, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.app-icon-tile {
    width: clamp(200px, 78%, 300px);
    aspect-ratio: 1;
    border-radius: 22.5%;
    overflow: hidden;
    background: var(--color-bg);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
    position: relative;
    z-index: 1;
}

.app-icon-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    pointer-events: none;
}

.app-icon-tile img,
.app-icon-tile svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.app-icon-tile--documentdiary { background: #3d6770; }
.app-icon-tile--strong-country { background: #13263a; }

.app-showcase:hover .app-icon-tile {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 36px 80px rgba(0, 0, 0, 0.6),
        0 12px 26px rgba(0, 0, 0, 0.4);
}

/* ============================================
   PROCESS / TIMELINE
   ============================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

@media (max-width: 880px) {
    .process-grid { grid-template-columns: 1fr; }
}

.process-step {
    text-align: left;
}

.process-num {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

/* ============================================
   PRICING
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 980px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 31, 130, 0.3);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(214, 31, 130, 0.08), rgba(214, 31, 130, 0.01));
    border-color: rgba(214, 31, 130, 0.35);
    box-shadow: var(--shadow-glow);
}

.pricing-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.pricing-card .price {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 16px 0;
    line-height: 1;
}

.pricing-card .price small {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-card .desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pricing-card ul {
    flex-grow: 1;
    margin-bottom: 28px;
}

.pricing-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.96rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--color-gold);
    font-weight: 700;
}

.pricing-card ul li:last-child { border-bottom: none; }

.pricing-card .btn { width: 100%; }

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: color 0.25s var(--ease);
}

.faq-q:hover { color: var(--color-gold); }

.faq-q .icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    display: grid;
    place-items: center;
    color: var(--color-gold);
    font-size: 1rem;
    transition: transform 0.35s var(--ease), background 0.25s var(--ease);
}

.faq-item.open .faq-q .icon {
    transform: rotate(45deg);
    background: rgba(214, 31, 130, 0.12);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-a-inner {
    padding-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 760px;
}

.faq-item.open .faq-a {
    max-height: 600px;
}

/* ============================================
   TEAM
   ============================================ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 920px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .team-grid { grid-template-columns: 1fr; }
}

.team-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 31, 130, 0.3);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-gold);
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-glow);
}

.team-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.team-card .role {
    color: var(--color-gold);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.team-card p {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.team-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dim);
    font-size: 0.84rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: var(--color-text);
}

.contact-info-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-item:first-of-type { padding-top: 0; }

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(214, 31, 130, 0.1);
    border: 1px solid rgba(214, 31, 130, 0.2);
    display: grid;
    place-items: center;
    color: var(--color-gold);
    flex-shrink: 0;
    font-size: 1.05rem;
}

.contact-info-item .label {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-info-item .value {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-info-item .value a:hover { color: var(--color-gold); }

.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-field label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(214, 31, 130, 0.04);
    box-shadow: 0 0 0 4px rgba(214, 31, 130, 0.1);
}

.form-field textarea { min-height: 140px; }

.form-field select option {
    background: #ffffff;
    color: var(--color-text);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-gold);
    flex-shrink: 0;
}

.form-success {
    background: rgba(214, 31, 130, 0.1);
    border: 1px solid rgba(214, 31, 130, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 18px;
    display: none;
}

.form-success.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer h4 {
    font-size: 0.84rem;
    color: var(--color-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.25s var(--ease);
}

.footer ul li a:hover { color: var(--color-gold); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--color-text-dim);
    font-size: 0.88rem;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--color-text-dim);
}
.footer-bottom-links a:hover { color: var(--color-gold); }

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */

.page-header {
    padding-top: 180px;
    padding-bottom: 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Kräftige Pink→Violett-Kachel als Blickfang (angelehnt an Referenz) */
    background: linear-gradient(135deg, #d61f82 0%, #c81d77 48%, #8e1a63 100%);
}

/* Dezenter Lichtschein oben rechts — gibt der Fläche Tiefe */
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 78% 12%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}

.page-header > * { position: relative; z-index: 1; }
.page-header .lead { margin: 16px auto 0; }

/* Schrift auf der Verlaufskachel: weiß, hoher Kontrast (WCAG AA) */
.page-header .eyebrow { color: #fff; opacity: 0.9; }
.page-header h1,
.page-header .display { color: #fff; }
.page-header .lead { color: rgba(255, 255, 255, 0.92); }

/* Sekundär-Button auf der Kachel: heller Rahmen statt dunkler */
.page-header .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.page-header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
}
/* Primär-Button auf der Kachel: weiße Fläche, Magenta-Text — kräftiger Kontrast */
.page-header .btn-primary {
    background: #fff;
    color: var(--color-gold-deep);
    box-shadow: 0 8px 28px rgba(111, 14, 66, 0.35);
}
.page-header .btn-primary:hover {
    background: #fff;
    box-shadow: 0 12px 36px rgba(111, 14, 66, 0.45);
}

/* ============================================
   IMPRESSUM / LEGAL TEXT
   ============================================ */

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.6rem;
    margin: 48px 0 16px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-content ul { padding-left: 22px; list-style: disc; margin-bottom: 18px; }
.legal-content ul li { padding-left: 6px; }

.legal-content a { color: var(--color-gold); }
.legal-content a:hover { text-decoration: underline; }

.legal-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 32px 0;
}

.legal-info-card dl {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 14px 24px;
}

@media (max-width: 640px) {
    .legal-info-card dl { grid-template-columns: 1fr; gap: 4px 0; }
    .legal-info-card dt { margin-top: 14px; }
}

.legal-info-card dt {
    color: var(--color-text-dim);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.legal-info-card dd {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.55;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

.divider-dot {
    color: var(--color-gold);
    margin: 0 8px;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(214, 31, 130, 0.3);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 520px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    transition: transform 0.5s var(--ease);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 16px;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
}

.cookie-banner-actions .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* ===== Etappen-Karten: Pink-Akzentstreifen oben (greift Kachel-Verlauf auf) ===== */
#evStages .card {
    position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #e0218a 0%, #c81d77 50%, #8e1a63 100%) 1;
}
/* Etappen-Überschrift in Magenta — setzt einen klaren Akzent pro Karte */
#evStages .card > h3 {
    color: var(--color-gold);
}

/* ===== Etappen-Streckenkarte (event.html) ===== */
/* Karte + Höhenprofil nebeneinander (Desktop), gestapelt auf schmalen Screens. */
.stage-media {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
    align-items: stretch;
}
.stage-map {
    flex: 1 1 30%;
    min-width: 260px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-soft);
    z-index: 0;
}
.stage-map .leaflet-container {
    background: var(--color-bg-soft);
}
.stage-map .leaflet-popup-content { margin: 8px 12px; }

/* Höhenprofil-Panel neben der Karte. */
.stage-elev {
    flex: 1 1 30%;
    min-width: 240px;
    height: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #ffffff;   /* Diagramm auf Weiß -> beste Lesbarkeit der Kurve */
    padding: 10px 12px;
}
/* Info-Spalte: Streckenbeschreibung + Start/Ziel-Koordinaten. */
.stage-info {
    flex: 1 1 30%;
    min-width: 240px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    padding: 12px 14px;
    overflow: auto;
}
.stage-info-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
}
.stage-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}
.stage-desc p { margin: 0 0 8px; }
.stage-coords {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stage-coord {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
}
.stage-coord-lbl { font-weight: 700; color: var(--color-text-muted); }
.stage-coord a { color: #c81d77; font-weight: 600; text-decoration: none; }
.stage-coord a:hover { text-decoration: underline; }
.tts-elev-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}
.tts-elev-title span {
    font-weight: 500;
    color: var(--color-text-muted);
    margin-left: 6px;
}
.tts-elev-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    cursor: crosshair;
}
.tts-elev-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.tts-elev-lbl {
    font-size: 9px;
    fill: var(--color-text-dim);
    font-family: var(--font-sans);
}
.tts-elev-tip {
    position: absolute;
    top: 4px;
    left: 0;
    background: #c81d77;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
}

/* Schmale Screens: Karte + Profil + Info untereinander. */
@media (max-width: 900px) {
    .stage-map, .stage-elev, .stage-info { flex-basis: 100%; }
    .stage-elev { height: 220px; }
    .stage-info { min-height: 0; }
}

/* ===== Etappen-Status-Badge ===== */
.stage-window {
    display: inline-block;
    margin: 6px 0 2px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
}
/* Offen (läuft gerade) — Türkis */
.stage-window--open {
    background: rgba(214, 31, 130, 0.18);
    border-color: rgba(214, 31, 130, 0.45);
    color: #8e1a63;
}
/* Beendet — grau/dezent */
.stage-window--ended {
    background: rgba(142, 26, 99, 0.08);
    border-color: rgba(142, 26, 99, 0.16);
    color: var(--color-text-muted);
}
/* Kommt bald — Marineblau */
.stage-window--upcoming {
    background: rgba(142, 26, 99, 0.12);
    border-color: rgba(142, 26, 99, 0.3);
    color: var(--color-gold);
}
.stage-window--pending {
    background: rgba(142, 26, 99, 0.06);
    border-color: rgba(142, 26, 99, 0.16);
    color: var(--color-text-dim);
    font-weight: 600;
}

/* ===== Scrollleiste dunkel/sichtbar (Änderung 4) ===== */
html {
    scrollbar-color: #c81d77 rgba(142, 26, 99, 0.12); /* Firefox: Daumen / Track */
    scrollbar-width: thin;
}
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: rgba(142, 26, 99, 0.10);
}
::-webkit-scrollbar-thumb {
    background: #c81d77;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1145f;
    background-clip: content-box;
}

/* ===== Rangliste: Filter, Tabelle, Status, Urkunde-Suche ===== */
.lb-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}
.lb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
select.lb-filter, input.lb-filter {
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 150px;
}
input.lb-filter:focus, select.lb-filter:focus {
    outline: none;
    border-color: #d61f82;
    box-shadow: 0 0 0 3px rgba(214, 31, 130, 0.18);
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.lb-table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border-strong);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--color-text-muted);
}
.lb-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--color-border);
}
.lb-rank { text-align: center; font-weight: 700; }
.lb-points { text-align: right; font-weight: 700; }
.lb-empty {
    padding: 24px;
    text-align: center;
    color: var(--color-text-dim);
}
.lb-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--color-text-dim);
}
/* Zwischenstand-Hinweis über der Gesamtwertung. */
.lb-progress {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(214, 31, 130, 0.1);
    color: var(--color-gold-deep);
    font-weight: 700;
    font-size: 0.9rem;
}
/* „Im Ziel"-Liste (laufende Etappe): Hinweiszeile + Magenta-Häkchen-Badge. */
.lb-finish-note {
    margin: 4px 0 10px;
    color: var(--color-gold-deep);
    font-weight: 600;
    font-size: 0.9rem;
}
.lb-finish-cell { text-align: right; }
.lb-finish-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    background: rgba(214, 31, 130, 0.14);
    color: var(--color-cta);
    font-weight: 700;
    font-size: 0.84rem;
}

/* Status-Badge (Event-Kacheln + Hero) */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 10px;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.status--running  { background: rgba(214, 31, 130, 0.2);  color: #8e1a63; }
.status--upcoming { background: rgba(142, 26, 99, 0.12);   color: var(--color-gold); }
.status--finished { background: rgba(142, 26, 99, 0.08);   color: var(--color-text-muted); }
.event-period {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Urkunde-Namenssuche */
.cert-box {
    margin-top: 16px;
    max-width: 520px;
}
.cert-results {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cert-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.cert-result span { font-weight: 600; }
.cert-btn { padding: 8px 16px; }
.cert-empty {
    padding: 8px 12px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* ── Live-Countdowns (Etappe / Event / Rangliste) ───────────────── */
.tts-countdown {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(214, 31, 130, 0.14);
    color: var(--color-cta-dark);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.stage-countdown-row { margin: 4px 0 8px; }
/* Rangliste-Sperr-Hinweis mit Countdown: klar sichtbar, Marken-Ton. */
.lb-countdown {
    color: var(--color-gold-deep);
    font-weight: 600;
    font-size: 1rem;
}
.lb-countdown .tts-countdown { margin: 0 2px; }

/* ── Event-Übersichtskacheln: Pink/Magenta-Verlauf statt Weiß ────
   Gezielt auf die Event-Karten gescopet (NICHT global .card), Text/Badges
   auf hellen Kontrast. */
#ttsEventList .card,
#ttsCurrentEvent .card {
    background: var(--gradient-gold);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
#ttsEventList .card:hover,
#ttsCurrentEvent .card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(142, 26, 99, 0.35);
}
#ttsEventList .card .eyebrow,
#ttsCurrentEvent .card .eyebrow,
#ttsEventList .card h3,
#ttsCurrentEvent .card h3,
#ttsEventList .card p,
#ttsCurrentEvent .card p {
    color: #fff;
}
/* Status-/Zeitraum-Chips auf dem dunklen Grund: hell/transluzent.
   .event-period ist im Standard ein eckiges Inline-Element ohne Padding — hier
   auf die gleiche ovale Chip-Form wie Status-Badge/Countdown bringen. */
#ttsEventList .card .status-badge,
#ttsCurrentEvent .card .status-badge,
#ttsEventList .card .event-period,
#ttsCurrentEvent .card .event-period {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-cta-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}
/* Event-Countdown-Chip auf der Kachel: heller Grund, Marken-Text. */
.event-countdown-chip {
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--color-cta-dark) !important;
}

/* ── Aktuelle Event-Hero-Karte: klar strukturiert & luftig ────────────
   Vertikale Rhythmik über flex-column + gap statt gedrängter Chip-Reihe. */
#ttsCurrentEvent .event-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px 32px;
}
#ttsCurrentEvent .event-hero-card .eyebrow {
    margin: 0;
    opacity: 0.85;
    letter-spacing: 0.14em;
}
#ttsCurrentEvent .event-hero-title {
    font-size: 2rem;
    margin: 0;
    line-height: 1.15;
    text-wrap: balance;
}
/* Statuszeile: Status-Badge + Countdown als ruhige, zentrierte Chip-Gruppe. */
#ttsCurrentEvent .event-hero-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
}
/* Datum als eigene, leise Zeile unter der Statuszeile (nicht mehr eingereiht). */
#ttsCurrentEvent .event-hero-period {
    margin: 0;
}
#ttsCurrentEvent .event-hero-period .event-period {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
#ttsCurrentEvent .event-hero-desc {
    margin: 0;
    max-width: 46ch;
    color: #fff;
    opacity: 0.95;
}
#ttsCurrentEvent .event-hero-actions {
    margin-top: 6px;
    flex-wrap: wrap;
}
/* App-Button auf dem Magenta-Grund sichtbar machen: weiß gefüllt, Magenta-Text.
   NUR im Magenta-Kontext gescopet — der globale .btn-secondary (heller Grund
   auf anderen Seiten) bleibt unverändert. */
#ttsCurrentEvent .event-hero-card .btn-secondary {
    background: #fff;
    color: var(--color-cta-dark);
    border-color: #fff;
    backdrop-filter: none;
    box-shadow: 0 6px 20px rgba(111, 14, 66, 0.25);
}
#ttsCurrentEvent .event-hero-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}
/* „Zum Event" (Primär) auf dem Magenta-Verlauf klar abheben: tiefer Magenta-Ton
   statt gleichem Verlauf wie der Karten-Grund, damit beide Buttons lesbar sind. */
#ttsCurrentEvent .event-hero-card .btn-primary {
    background: var(--color-gold-deep);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
#ttsCurrentEvent .event-hero-card .btn-primary:hover {
    background: var(--color-gold-dark);
}

/* ── Regeln-Kurzfassung + FAQ-Kurz: gleiche Magenta-Karten wie die Events ──
   Gezielt auf diese beiden Startseiten-Abschnitte gescopet (NICHT global .card). */
#regeln-kurz #ttsRulesShort .card,
#faq-kurz .grid .card {
    background: var(--gradient-gold);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
#regeln-kurz #ttsRulesShort .card:hover,
#faq-kurz .grid .card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(142, 26, 99, 0.35);
}
#regeln-kurz #ttsRulesShort .card h3,
#regeln-kurz #ttsRulesShort .card p,
#faq-kurz .grid .card h3,
#faq-kurz .grid .card p {
    color: #fff;
}

/* ── „In vier Schritten dabei": Magenta-Karten mit großer Schritt-Nummer ──
   Karten auf Magenta-Verlauf; Fließtext bewusst in REINEM Weiß (nicht
   transluzent), damit der längere Text auf dem Grund klar lesbar bleibt. */
#schritte .schritt-card {
    background: var(--gradient-gold);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#schritte .schritt-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(142, 26, 99, 0.35);
}
#schritte .schritt-card h3 { color: #fff; margin: 0; }
#schritte .schritt-card p  { color: #fff; margin: 0; }
/* Schritt-Nummer als klarer Sequenz-Marker: weiße Kreis-Badge mit Magenta-Ziffer. */
#schritte .schritt-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-cta-dark);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
