/* =========================================
   1. GRUNDLAGEN (Variablen, Reset, Body, Container)
   ========================================= */

@import url('fonts.css');
@import url('header.css');
@import url('sidebar.css');
@import url('main.css');
@import url('footer.css');
@import url('modules.css');
@import url('dark.css');
@import url('mobile.css');
@import url('cookie.css');
:root {
    --primary-blue: #0047cc;
    --dark-blue: #001b5e;
    --accent: #ffcc00;
    --text-main: #333333;
    --text-light: #555555;
    --bg-color: #f4f5f8;
    --menu-bg: #1a1a1a;
    --live-red: #e60000;
    --success-green: #28a745;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-display: 'Orbitron', 'Outfit', sans-serif;
    --text-xs:   0.72rem;
    --text-sm:   0.875rem;
    --text-base: 0.95rem;
    --text-lg:   1.05rem;
    --text-xl:   1.2rem;
    --text-2xl:  1.6rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: rgba(0, 71, 204, 0.06); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-blue); }

/* Scroll-Reveal Animationen */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.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; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Sektion-Trennlinie ── */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-blue) 18%,
        #ffcc00 50%,
        var(--primary-blue) 82%,
        transparent 100%);
    margin: 30px auto 30px auto;
    max-width: 800px;
    border-radius: 2px;
}
body.dark-mode .section-divider {
    background: linear-gradient(90deg,
        transparent 0%,
        #4285F4 18%,
        rgba(255, 204, 0, 0.8) 50%,
        #4285F4 82%,
        transparent 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
    color: var(--text-main);
    background-color: #edf0f8;
    background-image: radial-gradient(circle, rgba(0, 71, 204, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    padding: 0 10px 10px 10px;
    overflow-x: hidden;
    font-size: var(--text-base);
    scrollbar-color: var(--primary-blue) rgba(0, 71, 204, 0.06);
    scrollbar-width: thin;
}

/* Dark Mode Transitions (aktiviert erst nach erstem Render) */
body.transitions-ready,
body.transitions-ready .container,
body.transitions-ready main,
body.transitions-ready .news-card,
body.transitions-ready .trainer-card,
body.transitions-ready .faq-item,
body.transitions-ready .info-card,
body.transitions-ready .price-box,
body.transitions-ready .milestone-box,
body.transitions-ready .table-container,
body.transitions-ready .location-box {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease;
}

.container {
    max-width: 85vw;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    border: 1px solid rgba(0, 71, 204, 0.08);
}

/* =========================================
   2. KONTAKT, FORMULAR & ERFOLGSBOXEN
   ========================================= */

.contact-form { 
    display: flex; 
    flex-direction: column; 
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
    width: 100%;
}

.contact-form label { 
    margin-top: 15px; 
    font-weight: 600; 
    color: var(--text-main);
}

.contact-form input, 
.contact-form textarea { 
    padding: 12px; 
    margin-top: 5px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
    font-family: inherit; 
    background: #fafafa;
    color: #333;
}

.contact-form button { 
    margin-top: 25px; 
    padding: 12px; 
    background-color: var(--primary-blue); 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: var(--text-lg);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover:not(:disabled) { 
    background-color: var(--dark-blue); 
    transform: translateY(-2px);
}

.contact-form button:disabled {
    background-color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Focus-Glow (#1) */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12);
    background: #fff;
}

/* Floating Labels (#2) */
.form-field {
    position: relative;
    margin-top: 22px;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
    padding: 20px 12px 7px 12px;
    margin-top: 0;
    width: 100%;
    border: 1.5px solid #d0d0d0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form .form-field input:focus,
.contact-form .form-field textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12);
    background: #fff;
}

.contact-form .form-field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    pointer-events: none;
    transition: all 0.18s ease;
    margin: 0;
    padding: 0 2px;
    background: transparent;
}

.form-field.field-textarea label {
    top: 16px;
    transform: none;
}

.contact-form .form-field input:focus ~ label,
.contact-form .form-field input:not(:placeholder-shown) ~ label {
    top: 7px;
    transform: none;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.3px;
}

.contact-form .form-field textarea:focus ~ label,
.contact-form .form-field textarea:not(:placeholder-shown) ~ label {
    top: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 0.3px;
}

/* =========================================
   Contact Two-Column Layout (#7)
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0;
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-sidebar {
    background: linear-gradient(160deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 40px 35px;
    color: #fff;
}

.contact-sidebar h2 {
    color: #fff !important;
    font-size: var(--text-xl);
    margin-top: 0 !important;
    margin-bottom: 8px;
}

.contact-sidebar > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.ci-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--accent);
    transition: background 0.2s ease;
}

.contact-info-item:hover .ci-icon {
    background: rgba(255, 255, 255, 0.22);
}

.ci-text strong {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    font-weight: 600;
}

.ci-text span {
    font-size: 0.92rem;
    color: #fff;
    line-height: 1.5;
}

.ci-text a {
    font-size: 0.92rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.ci-text a:hover {
    color: var(--accent);
    text-decoration: none;
}

.contact-main {
    background: #fff;
    padding: 40px;
}

.contact-main .contact-form {
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.contact-main h2 {
    margin-top: 0 !important;
    margin-bottom: 20px;
    font-size: var(--text-xl);
}

.success-box {
    display: none;
    background: #e8f5e9; 
    padding: 40px 30px; 
    border-radius: 12px; 
    border-top: 4px solid #4CAF50; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

.success-box h2 { color: #2e7d32; margin-top: 15px; margin-bottom: 10px; }
.success-box p { color: #333; line-height: 1.6; }

.success-btn {
    margin-top: 25px;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
}

.success-btn:hover { background: #388e3c; transform: scale(1.05); }

.close-success-btn {
    margin-top: 10px;
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Social Links in Kontakt-Sidebar */
.contact-social-links {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-social-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px !important;
    font-weight: 600;
}

.ci-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ci-social-btn i {
    font-size: var(--text-xl);
    color: var(--accent);
}

.ci-social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   3. PREISBOXEN, MITGLIEDSCHAFT, IMPRESSUM, DOWNLOADS
   ========================================= */

.price-box,
.impressum-box,
.chart-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
    margin-bottom: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.price-box:hover,
.chart-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.impressum-box { 
    border-top: none; 
    border-left: 4px solid var(--primary-blue); 
}

.price-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid #eee; 
}

.price-row:last-child { border-bottom: none; }

.price-title { font-weight: 600; color: var(--text-main); }
.price-value { font-weight: bold; color: var(--primary-blue); font-family: var(--font-display); letter-spacing: 0.03em; }

.note-box { 
    background: #fffbe6; 
    padding: 15px; 
    border-radius: 8px; 
    border-left: 4px solid #ffcc00; 
    margin-bottom: 25px; 
    font-size: 0.9rem;
    line-height: 1.4;
}

.philosophy-box {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.download-section {
    text-align: center; 
    margin-top: 50px; 
    padding: 40px; 
    border: 2px dashed #ccc; 
    border-radius: 12px;
    background: rgba(0,0,0,0.02);
}

/* =========================================
   4. STATISTIKEN, MEILENSTEINE, FAQ, GESCHICHTE, SKILL-BARS
   ========================================= */

.milestone-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin: 30px 0 50px 0; 
    justify-content: center; 
}

.milestone-box { 
    background: #fff; 
    padding: 30px 20px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center; 
    flex: 1; 
    min-width: 150px; 
    border-bottom: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.milestone-box:hover { transform: translateY(-5px); }

.milestone-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: block;
    font-family: var(--font-display);
    letter-spacing: 0.03em;
}

.milestone-text { 
    font-size: 1.1rem; 
    color: var(--text-main); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-left-color: var(--accent);
}

.faq-question { 
    padding: 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    font-weight: 600; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    padding: 0 20px; 
    background: #fafafa; 
}

.faq-item.active .faq-answer { 
    max-height: 500px; 
    padding: 20px; 
    border-top: 1px solid #eee; 
}

.history-section {
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 25px;
    position: relative;
}

.history-section h2 {
    margin-top: 0;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.history-img-frame {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    margin: 25px auto;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    display: block;
    max-width: 650px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.history-img-frame:hover {
    transform: translateY(-3px) rotate(1deg);
}

.history-img-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.history-img-frame figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding-top: 12px;
    font-style: italic;
    line-height: 1.4;
}

.history-img-frame.placeholder-frame {
    border: 2px dashed #ff9800;
    background: #fffbe6;
}

.history-img-frame.placeholder-frame figcaption {
    color: #856404;
    font-weight: 600;
}

.event-list {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-blue);
}

.event-list ul { 
    list-style-type: none; 
    padding-left: 0; 
    margin: 0; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px; 
}

.event-list li { 
    padding-left: 30px; 
    position: relative; 
    font-weight: 500; 
    color: var(--text-main); 
}

.event-list li::before { 
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    color: var(--primary-blue); 
    position: absolute; 
    left: 0; 
    font-size: 1.1rem; 
}

.skill-wrapper {
    margin-bottom: 15px;
}

.skill-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.skill-title span:last-child {
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.skill-bar-bg {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

body.dark-mode .skill-bar-bg {
    background-color: #333;
}

.countdown-msg {
    display: none;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-display);
    color: #ffcc00;
    text-align: center;
    margin: 20px 0;
}

.countdown-pdf-btn {
    display: none;
    max-width: 300px;
    margin: 0 auto;
    background: #fff;
    color: var(--primary-blue);
}

.skill-fill {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 0.9s ease;
}

/* Kontakt-Layout: 2 Spalten erst ab Tablet (überschreibt den Import-Reihenfolge-Bug) */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   LIGHT MODE ENHANCEMENTS
   ========================================= */

/* Hintergrund: Diagonal-Gradient + stärkere Dots */
body:not(.dark-mode) {
    background-color: #dde4f5;
    background-image: radial-gradient(circle, rgba(0, 71, 204, 0.11) 1px, transparent 1px),
                      linear-gradient(135deg, #d8e0f3 0%, #e8ecf8 50%, #eef1fa 100%);
    background-size: 28px 28px, 100% 100%;
}

/* Karten: Gradient statt Reinweiß + blauer Schatten */
body:not(.dark-mode) .news-card,
body:not(.dark-mode) .trainer-card,
body:not(.dark-mode) .info-card,
body:not(.dark-mode) .price-box,
body:not(.dark-mode) .chart-box,
body:not(.dark-mode) .milestone-box,
body:not(.dark-mode) .event-list,
body:not(.dark-mode) .location-box,
body:not(.dark-mode) .result-item,
body:not(.dark-mode) .faq-item,
body:not(.dark-mode) .impressum-box {
    background: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 4px 15px rgba(0, 71, 204, 0.1);
}

/* Archive-Summary: blauer Tint statt Reinweiß */
body:not(.dark-mode) .archive-year summary,
body:not(.dark-mode) .archive-year summary:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f4f6ff 100%) !important;
}

/* FAQ-Antwort: ganz leichter Blau-Tint */
body:not(.dark-mode) .faq-answer {
    background: #f8f9ff;
}

/* Archiv-Links: blauer Tint */
body:not(.dark-mode) .archive-content ul li a {
    background: #f0f4ff;
}

/* Hover: blauer Glow auf Cards */
body:not(.dark-mode) .news-card:hover {
    box-shadow: 0 10px 28px rgba(0, 71, 204, 0.22);
}

body:not(.dark-mode) .info-card:hover,
body:not(.dark-mode) .price-box:hover,
body:not(.dark-mode) .chart-box:hover {
    box-shadow: 0 12px 32px rgba(0, 71, 204, 0.22);
}

body:not(.dark-mode) .milestone-box:hover {
    box-shadow: 0 10px 28px rgba(0, 71, 204, 0.22);
}

body:not(.dark-mode) .record-box:hover {
    box-shadow: 0 8px 24px rgba(0, 71, 204, 0.2);
}

/* Container: blauer Schatten */
body:not(.dark-mode) .container {
    box-shadow: 0 10px 30px rgba(0, 71, 204, 0.14);
}

/* Unterseiten main: Sichtbarer Gradient + Border */
body:not(.dark-mode):not(.page-home) main {
    background: linear-gradient(180deg, #e8eeff 0%, #f4f7ff 35%, #ffffff 100%) !important;
    box-shadow: 0 6px 24px rgba(0, 71, 204, 0.1);
    border-left: 1px solid rgba(0, 71, 204, 0.1);
    border-right: 1px solid rgba(0, 71, 204, 0.1);
    border-bottom: 1px solid rgba(0, 71, 204, 0.08);
}

/* Unterseiten body: mehr Seitenabstand → Hintergrund sichtbar */
body:not(.dark-mode):not(.page-home) {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
}

/* H2-Trennlinie sichtbarer */
body:not(.dark-mode) main h2 {
    border-bottom-color: rgba(0, 71, 204, 0.15);
}

/* Meilenstein-Zahlen: Blau + Gold-Glow */
body:not(.dark-mode) .milestone-number {
    text-shadow: 0 2px 12px rgba(0, 71, 204, 0.3), 0 0 24px rgba(255, 204, 0, 0.18);
}

/* Tabellen-Hover: blauer Tint */
body:not(.dark-mode) table.stats-table tr:hover td {
    background-color: #f0f4ff;
}

/* Text-Selektion: Markenfarbe */
body:not(.dark-mode) ::selection {
    background: rgba(0, 71, 204, 0.18);
    color: #001b5e;
}

/* H1 auf Unterseiten: Farbverlauf */
body:not(.dark-mode) main h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2a5fd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient NICHT auf weiße Hero-Überschriften */
body:not(.dark-mode) .page-hero h1,
body:not(.dark-mode) .hero-text-overlay h1 {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fff;
    background-clip: unset;
}

/* Karten: blauer Border beim Hover */
body:not(.dark-mode) .news-card:hover,
body:not(.dark-mode) .info-card:hover,
body:not(.dark-mode) .price-box:hover,
body:not(.dark-mode) .chart-box:hover,
body:not(.dark-mode) .milestone-box:hover {
    outline: 1.5px solid rgba(0, 71, 204, 0.22);
}

/* Tabellenheader: Gradient statt Flachblau */
body:not(.dark-mode) table.stats-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a5ce8 100%);
}

/* Links im Fließtext: schönere Unterstrich-Animation */
body:not(.dark-mode) main a {
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(0, 71, 204, 0.4);
}

body:not(.dark-mode) main a:hover {
    text-decoration-color: var(--primary-blue);
}

/* Quick-Nav: stärkerer Glaseffekt + blauer Border */
body:not(.dark-mode) .quick-nav {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 71, 204, 0.13);
    box-shadow: 0 4px 20px rgba(0, 71, 204, 0.1);
}

/* Welcome-Section: stärkerer Glaseffekt + blauer Border */
body:not(.dark-mode) .welcome-section {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(0, 71, 204, 0.1);
    box-shadow: 0 8px 32px rgba(0, 71, 204, 0.13), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* =========================================
   OFFLINE BANNER
   ========================================= */
#offline-banner {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #b91c1c;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: top 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#offline-banner.visible {
    top: 0;
}

#offline-banner.back-online {
    background: #15803d;
}

/* =========================================
   MOBILE: Konsistenter Header Homepage ↔ Unterseiten
   ========================================= */
@media (max-width: 768px) {
    /* Container auf Homepage: volle Breite statt auto-zentriert
       → behebt den horizontalen Versatz des Headers gegenüber Unterseiten */
    .container {
        max-width: 100%;
    }

    /* Unterseiten-Padding: auf Mobile gleich wie Homepage (10 px) */
    body:not(.dark-mode):not(.page-home) {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }
}

/* Unterseiten h1 in Orbitron */
body:not(.page-home) main h1 {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    font-size: var(--text-2xl);
}

/* =========================================
   SKELETON LOADING
   ========================================= */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.img-skeleton {
    background: linear-gradient(90deg, #e4e4e4 25%, #f2f2f2 50%, #e4e4e4 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.5s ease-in-out infinite !important;
    color: transparent !important;
}

body.dark-mode .img-skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3c3c3c 50%, #2a2a2a 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-shimmer 1.5s ease-in-out infinite !important;
}
