/**
 * thedens.org - High-End Maritime CSS Theme
 * Deep Sea Blue, Amber Lighthouse Glow, Sea Salt Whites
 */

:root {
    --bg-ocean-deep: #050d18;
    --bg-ocean-card: #0c1a2c;
    --bg-ocean-elevated: #13253b;
    --border-sea: rgba(56, 189, 248, 0.15);
    --border-sea-hover: rgba(56, 189, 248, 0.4);
    --accent-amber: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-cyan: #38bdf8;
    --accent-seafoam: #2dd4bf;
    --text-pure: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-deep: 0 20px 40px -15px rgba(2, 6, 23, 0.7);
    --glow-amber: 0 0 25px rgba(245, 158, 11, 0.25);
    --glow-cyan: 0 0 25px rgba(56, 189, 248, 0.25);
}

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

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

body.maritime-theme {
    background-color: var(--bg-ocean-deep);
    color: var(--text-pure);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Leuchtturm Lichtstrahl-Effekt */
.lighthouse-beam {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(245, 158, 11, 0.04) 25%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: beaconSweep 20s ease-in-out infinite alternate;
}

@keyframes beaconSweep {
    0% { transform: rotate(-10deg) scale(0.95); }
    100% { transform: rotate(10deg) scale(1.05); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(5, 13, 24, 0.75);
    border-bottom: 1px solid var(--border-sea);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-sea);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-pure);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid var(--border-sea-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    overflow: hidden;
}

.logo-mark img,
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.footer-logo .logo-img {
    width: 24px;
    height: 24px;
}

.brand-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-amber);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-pure);
}

.nav-btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-amber);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn-admin:hover {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: var(--glow-amber);
    transform: translateY(-1px);
}

/* Hero Section mit Video-Background */
.hero-section {
    position: relative;
    padding-top: 170px;
    padding-bottom: 110px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(1.3) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 13, 24, 0.7) 0%, rgba(5, 13, 24, 0.92) 80%, var(--bg-ocean-deep) 100%);
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--border-sea-hover);
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--glow-cyan);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
    color: #031322;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-ocean-elevated);
    border: 1px solid var(--border-sea);
    color: var(--text-pure);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--border-sea-hover);
    background: rgba(19, 37, 59, 0.9);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    color: var(--accent-amber);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Programme Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 32px;
}

.program-card {
    background: var(--bg-ocean-card);
    border: 1px solid var(--border-sea);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-deep);
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-sea-hover);
    box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.9), var(--glow-cyan);
}

.program-img-wrap {
    height: 200px;
    background: var(--bg-ocean-elevated);
    position: relative;
    overflow: hidden;
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img {
    transform: scale(1.05);
}

.program-badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(5, 13, 24, 0.85);
    border: 1px solid var(--border-sea);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.program-badge-ver {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(245, 158, 11, 0.9);
    color: #031322;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.program-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-title a {
    color: var(--text-pure);
    text-decoration: none;
    transition: color 0.2s;
}

.program-title a:hover {
    color: var(--accent-cyan);
}

.program-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.program-features {
    list-style: none;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-features li {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-features li::before {
    content: "⚓";
    font-size: 0.75rem;
    color: var(--accent-amber);
}

.program-detail-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.program-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.link-details {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.link-details:hover {
    gap: 10px;
}

/* Über uns & Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.feature-box {
    background: var(--bg-ocean-card);
    border: 1px solid var(--border-sea);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--border-sea-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--border-sea-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: #02070f;
    border-top: 1px solid var(--border-sea);
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.waves-decor {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    overflow: hidden;
    color: #02070f;
}

.wave-svg {
    width: 100%;
    height: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 360px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--text-pure);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--accent-amber);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.beacon-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-seafoam);
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-seafoam);
    box-shadow: 0 0 10px var(--accent-seafoam);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .header-inner {
        height: 70px;
    }
    .main-nav {
        gap: 16px;
    }
    .program-detail-body {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 24px;
        right: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: rgba(5, 13, 24, 0.98);
        border: 1px solid var(--border-sea);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-deep);
        z-index: 200;
    }
    .main-nav.is-open {
        display: flex;
    }
    .nav-btn-admin {
        justify-content: center;
        margin-top: 8px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .hero-section {
        padding-top: 130px;
        min-height: auto;
    }
}
