﻿/* -------------------------------------------------
       THEME - Narahea Premium Style
    --------------------------------------------------*/
:root {
    /* Typography */
    --font-sans: 'Roboto', sans-serif;
    --font-display: 'Roboto', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Colors */
    --color-primary-rgb: 240, 176, 54;
    --color-primary: rgb(var(--color-primary-rgb));
    --color-primary-strong: #e67e22;
    --color-primary-contrast: #fff;
    --color-black-rgb: 0, 0, 0;
    --color-white-rgb: 255, 255, 255;
    --color-danger-rgb: 231, 76, 60;
    --color-success-rgb: 46, 204, 113;
    --color-info-rgb: 0, 170, 255;
    --color-info-strong: #3498db;
    --color-info-strong-rgb: 52, 152, 219;
    --color-neutral-rgb: 150, 150, 150;
    --color-accent-warm-rgb: 255, 69, 0;
    --color-bg: #111111;
    --color-bg-rgb: 17, 17, 17;
    --color-bg-2: #0f0f0f;
    --color-bg-deep: #0a0a0a;
    --color-bg-deep-rgb: 10, 10, 10;
    --color-surface: #1f1f1f;
    --color-surface-strong-rgb: 15, 15, 15;
    --color-surface-dark-rgb: 20, 20, 20;
    --color-surface-mid-rgb: 30, 30, 30;
    --color-surface-2: #222;
    --color-surface-3: #2c2c2c;
    --color-surface-4: #3a3a3a;
    --color-surface-dark: #000;
    --color-text: #e0e0e0;
    --color-text-light: #dcdcdc;
    --color-text-muted: #aaaaaa;
    --color-text-soft: #ccc;
    --color-text-bright: #eee;
    --color-text-weak: #777;
    --color-text-dim: #888;
    --color-text-subtle: #999;
    --color-text-faint: #bbb;
    --color-border: #333333;
    --color-border-dark: #2a2a2a;
    --color-border-subtle-solid: #222;
    --color-border-mid: #444;
    --color-danger: #e74c3c;
    --color-success: #00ff00;
    --color-success-strong: #2ecc71;
    --color-danger-stronger: #c0392b;
    --color-accent-2: #a6886c;
    --color-tooltip-bg: #2a2a2a;
    --color-border-muted: #555;
    --color-primary-highlight: #ffe082;
    --color-text-inverse: #000;
    --color-info: #00aaff;
    --color-divider: #5a5e66;
    --color-accent-yellow: #ffed00;
    --color-accent-red: #ff0000;
    --color-olive-dark: #141a10;
    --color-olive-rgb: 12, 16, 9;
    --color-cream-light: #e5e5d0;
    --color-sand-light: #d9d7bf;
    --color-gold-soft: #ffeaa7;
    --color-gold-soft-rgb: 241, 210, 122;

    --color-border-strong: rgba(var(--color-primary-rgb), 0.3);
    --color-border-soft: rgba(var(--color-primary-rgb), 0.15);
    --color-primary-soft: rgba(var(--color-primary-rgb), 0.1);
    --color-primary-glow: rgba(var(--color-primary-rgb), 0.5);
    --color-border-subtle: rgba(255, 255, 255, 0.25);
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-surface-glow: rgba(255, 255, 255, 0.05);
    --color-bg-glass: rgba(15, 15, 15, 0.95);
    --color-bg-glass-strong: rgba(15, 15, 15, 0.98);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);

    /* Motion */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Z-index */
    --z-nav: 1000;
    --z-modal: 100;

    /* Legacy aliases */
    --gold: var(--color-primary);
    --gold-2: var(--color-primary-strong);
    --black: var(--color-bg);
    --ink: var(--color-surface);
    --smoke: var(--color-text-muted);
    --white: var(--color-text);
    --border: var(--color-border);
    --radius: var(--radius-sm);
    --shadow: var(--shadow-sm);
    --uncommon: var(--color-success);
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* -------------------------------------------------
       RESET / BASE
    --------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    cursor: url("../img/cursor/Kal_Cursor.png"), default;
    overflow-x: hidden; /* Verhindert horizontales Scrollen bei Animationen */
}

page-script {
    display: none;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-top: 0;
}

.gold {
    color: var(--color-primary);
}

h2.section-title {
    font-weight: 900;
    font-size: 1.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
    color: var(--color-text-strong);
    width: 100%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

    h2.section-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--gold), transparent);
    }

/* -------------------------------------------------
       NAVIGATION (Animiert & Dropdown)
    --------------------------------------------------*/
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    width: 100%;
}

.navbar {
    background-color: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-strong);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    
    gap: 80px;
    padding: 10px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .brand img {
        height: 50px;
        width: auto;
    }

    .brand .name {
        font-weight: 800;
        font-size: 1.6em;
        text-transform: uppercase;
        color: var(--color-text-strong);
        text-shadow: 0 0 10px var(--color-primary-glow);
    }

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav a {
    font-size: 1.0em;
    font-weight: 700;
    color: var(--color-text-soft);
    text-transform: uppercase;
    padding: 15px 0;
    position: relative;
}

    .nav a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 10px;
        left: 0;
        background-color: var(--gold);
        transition: width 0.3s ease-in-out;
    }

    .nav a:hover, .nav a.active {
        color: var(--gold);
    }

        .nav a:hover::after, .nav a.active::after {
            width: 100%;
        }

/* -------------------------------------------------
   DROPDOWN STYLES (Smooth Slide & Arrow)
--------------------------------------------------*/
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-bg-glass-strong);
    min-width: 200px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.9);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px; 
    text-align: left; 
    font-size: 0.9em;
    color: var(--color-text-soft);
    border-bottom: none;
    background: transparent;
    position: relative;
    
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    
    .dropdown-menu a::before {
        content: '›'; /* Ein eleganter Pfeil */
        position: absolute;
        left: 10px; 
        top: 50%;
        transform: translateY(-50%) translateX(-10px); 
        opacity: 0; /* Unsichtbar */
        color: var(--color-primary);
        font-weight: bold;
        font-size: 1.2em;
        line-height: 1;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    
    .dropdown-menu a:hover {
        color: var(--color-primary);
        background: rgba(255, 255, 255, 0.03); 
        transform: translateX(8px); 
    }

        
        .dropdown-menu a:hover::before {
            opacity: 1;
            transform: translateY(-50%) translateX(0); /* Pfeil gleitet an seinen Platz */
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        margin-top: 15px;
    }

    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* Alte Border-Linie im Dropdown sicherheitshalber entfernen */
.dropdown-menu a::after {
    display: none;
}

/* Buttons */
.btn,
.btn2 {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-strong));
    color: var(--color-primary-contrast);
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
    transition: var(--transition-fast);
}

    .btn:hover,
    .btn2:hover {
        transform: translateY(-3px);
        box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.7);
        color: var(--color-primary-contrast);
    }

.btn-outline,
.btn2-outline {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-primary);
    background: rgba(0,0,0,0.6);
    color: var(--color-text-strong);
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition-base);
}

    .btn-outline:hover,
    .btn2-outline:hover {
        background: var(--color-primary);
        transform: translateY(-3px);
    }

/* -------------------------------------------------
       HERO SECTION
    --------------------------------------------------*/
.hero {
    position: relative;
    
    background-color: var(--color-bg);
    background-size: cover;
    background-position: center;
    padding: 140px 0;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -80px 80px var(--color-bg);
}

    .hero .wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(var(--color-bg-rgb), 0.8);
        backdrop-filter: blur(8px);
        border: 1px solid var(--color-border-strong);
        border-radius: var(--radius-sm);
        box-shadow: 0 15px 50px rgba(0,0,0,0.9);
        padding: 50px;
        max-width: 800px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3.5rem;
        margin: 0 0 20px 0;
        color: var(--color-text-strong);
        letter-spacing: 2px;
        text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    }

        .hero h1 .gold {
            text-shadow: 0 0 25px var(--color-primary-glow);
        }

    .hero .lead {
        font-size: 1.25rem;
        color: var(--color-text-light);
        margin-bottom: 30px;
    }

    .hero .cta {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

.page-header {
    padding: 80px 0;
    text-align: center;
    
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -50px 50px var(--color-bg);
}

/* -------------------------------------------------
       PREMIUM CARDS (Features / News)
    --------------------------------------------------*/
.features, .news-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

.features {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card, .news-card {
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.6) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 25px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .feature-card:hover, .news-card:hover {
        transform: translateY(-5px);
        border-color: var(--color-primary);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(var(--color-primary-rgb), 0.05);
    }

    .feature-card h3, .news-card h3 {
        color: var(--color-primary);
        font-size: 1.3em;
        margin-bottom: 10px;
    }

.icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-surface-2), var(--color-surface-dark));
    border: 1px solid var(--color-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.1);
    margin-bottom: 15px;
    transition: 0.3s;
}

.feature-card:hover .icon {
    background: var(--color-primary);
    color: var(--color-surface-dark);
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.6);
}

.news-card time {
    color: var(--color-text-weak);
    font-size: 0.9em;
    margin-bottom: 10px;
    display: block;
}

.news-card p {
    color: var(--color-text-soft);
    flex-grow: 1;
    font-size: 0.95em;
}

.news-card a.more {
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-top: 15px;
    display: inline-block;
}

/* -------------------------------------------------
       COMMON UI & FOOTER
    --------------------------------------------------*/
.panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 20px;
}

footer {
    background-color: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
    padding: 40px 20px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 60px;
}

.pill {
    border: 1px solid var(--color-border);
    color: var(--color-text-weak);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    margin: 0 5px;
}

    .pill:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

/* Forms */
.input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-bottom: 2px solid var(--color-border-mid);
    color: var(--color-text-strong);
    border-radius: 2px 2px 0 0;
    padding: 12px 16px;
    transition: 0.3s;
}

    .input:focus {
        background: rgba(var(--color-primary-rgb), 0.05);
        border-bottom-color: var(--color-primary);
        outline: none;
    }

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-mid);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold);
        box-shadow: 0 0 10px var(--gold);
    }

/* Media Queries */
@media (max-width: 900px) {
    .navbar-inner {
        grid-template-columns: 1fr auto;
    }

    .nav {
        display: none;
    }
    
    .features, .news-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* -------------------------------------------------
       SHOUT ICON STYLING
    --------------------------------------------------*/
.shout-icon {
    height: 40px; 
    width: auto;
    
    mix-blend-mode: screen;
    
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    
    vertical-align: middle;
}

#shouts .section-title {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

/* --- ANIMIERTE TIMELINE ELEMENTE --- */

.timeline-ball {
    position: absolute;
    left: 140px; 
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%); 
    z-index: 10;
    box-shadow: 0 0 15px var(--gold), 0 0 30px var(--gold-2); /* Starker Glow */
    border: 2px solid var(--color-text-strong);
    
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-line-active {
    position: absolute;
    left: 140px;
    top: 0;
    width: 2px;
    height: 0; /* Wird per JS geändert */
    background: var(--gold);
    background: linear-gradient(to bottom, var(--gold) 0%, var(--gold-2) 100%);
    box-shadow: 0 0 10px rgba(240, 176, 54, 0.5);
    z-index: 5;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
    .timeline-ball, .timeline-line-active {
        left: 20px; 
    }
}

/* Logged-In Navbar Styles (Wiederverwendet) */
.actions.logged-in {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.user-profile-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.welcome-label {
    font-size: 0.65em;
    color: var(--color-text-dim);
    text-transform: uppercase;
}

.username-label {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--color-text-strong);
}

.user-controls {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: 0.2s;
}

    .btn-icon:hover {
        color: var(--color-text-strong);
        background: rgba(255, 255, 255, 0.15);
    }

    .btn-icon.logout {
        border-color: var(--color-danger);
        color: var(--color-danger);
    }

        .btn-icon.logout:hover {
            background: var(--color-danger);
            color: var(--color-text-strong);
        }

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: var(--z-modal);
}

    .modal:target {
        display: block;
    }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.modal-card {
    position: relative;
    width: min(820px, 94%);
    margin: 6vh auto;
    background: linear-gradient(180deg, var(--color-surface-glow), transparent 60%), var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--color-border-soft);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

    .modal-head h3 {
        margin: 0;
        font-family: var(--font-display);
        color: var(--color-primary);
    }

.modal-close {
    font-size: 22px;
    line-height: 1;
    padding: 6px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
}

.modal-body {
    display: grid;
    gap: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

/* -------------------------------------------------
       MOBILE TOGGLE
    --------------------------------------------------*/
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-text-strong);
    cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: '';
    position: relative;
    transition: 0.2s ease;
}

.burger span::before {
    position: absolute;
    top: -6px;
}

.burger span::after {
    position: absolute;
    top: 6px;
}

.nav-panel {
    display: contents;
}

.nav-overlay {
    display: none;
}

body.nav-open {
    overflow: hidden;
}

/* -------------------------------------------------
       MOBILE OVERRIDES
    --------------------------------------------------*/
@media (max-width: 900px) {
    .burger {
        display: inline-flex;
    }

    .nav-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        height: 100dvh;
        background: rgba(15, 15, 15, 0.98);
        border-right: 1px solid rgba(240, 176, 54, 0.3);
        padding: 80px 18px 20px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1100;
        overflow-y: auto;
        gap: 16px;
    }

    .nav-panel.open {
        transform: translateX(0);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: -1;
    }

    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

        .brand img {
            height: 40px;
        }

        .brand .name {
            font-size: 1.2em;
        }

    .actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .actions.logged-in {
        gap: 12px;
    }

    .user-profile-wrap {
        gap: 10px;
        flex-wrap: wrap;
    }

    .user-info,
    .user-text {
        min-width: 0;
    }

    .username-label {
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-controls {
        margin-left: 0;
    }

    .nav {
        order: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
    }

    .nav-item {
        height: auto;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav a {
        width: 100%;
        padding: 10px 0;
        font-size: 0.95em;
        letter-spacing: 0.08em;
    }

        .nav a::after {
            bottom: 4px;
        }

    .nav-item.has-dropdown > a {
        color: var(--color-text-faint);
        font-weight: 800;
        font-size: 0.9em;
    }

    .nav-item.has-dropdown > a::after {
        width: 100%;
        opacity: 0.4;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 8px 0 0;
    }

    .nav-item.has-dropdown .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu a {
        padding: 6px 0 6px 18px;
        font-size: 0.85em;
        text-transform: none;
        color: var(--color-text-faint);
    }

    .actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .actions .btn,
    .actions .btn-outline,
    .actions .btn2,
    .actions .btn2-outline {
        width: 100%;
        justify-content: center;
    }

    .guest-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .actions.logged-in {
        align-items: stretch;
    }

    .user-profile-wrap {
        width: 100%;
    }

    .features, .news-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 110px 0 70px;
    }

        .hero .wrap {
            padding: 32px;
        }

        .hero h1 {
            font-size: clamp(2rem, 6vw, 2.6rem);
        }

        .hero .cta {
            flex-wrap: wrap;
        }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 90px 0 60px;
        margin-bottom: 20px;
    }

        .hero .wrap {
            padding: 24px;
        }

        .hero .lead {
            font-size: 1rem;
        }

        .hero .cta {
            flex-direction: column;
            width: 100%;
        }

        .hero .cta .btn,
        .hero .cta .btn-outline,
        .hero .cta .btn2,
        .hero .cta .btn2-outline {
            width: 100%;
            justify-content: center;
        }

    .btn,
    .btn2,
    .btn-outline,
    .btn2-outline {
        min-height: 44px;
        padding: 12px 18px;
    }

    .panel {
        padding: 16px;
    }

    footer {
        padding: 30px 16px;
    }

    .modal-card {
        margin: 4vh auto;
        max-height: calc(100dvh - 8vh);
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .modal-body {
        max-height: calc(100dvh - 220px);
        overflow-y: auto;
    }

    .modal-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }
}
