/* ===================================
   Designsystem & Variablen (v2)
   =================================== */

:root {
    /* Farbpalette - Deep Marine & Neon */
    --color-primary: #051937;
    /* Tiefes Marineblau */
    --color-primary-light: #004d7a;
    /* Helleres Marineblau für Abstufungen */
    --color-accent: #00E5FF;
    /* Neon-Türkis (Helles Wasser) */
    --color-accent-hover: #72FFFF;
    /* Hover für Akzent */

    --color-text-main: #FFFFFF;
    /* Weißer Text auf dunklem Grund */
    --color-text-dark: #051937;
    /* Dunkler Text auf hellem Grund */
    --color-text-muted: #576574;
    /* Dunklerer Text für besseren Kontrast (WCAG AA) */

    --color-bg-light: #F4F7FA;
    /* Sehr helles Blau-Grau für helle Sektionen */
    --color-bg-white: #FFFFFF;

    /* Typografie */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Generell */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 15px 35px rgba(5, 25, 55, 0.1);

    --container-width: 1200px;
}

/* ===================================
   Reset & Base
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
}

/* Fokus-Styles für Barrierefreiheit */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.mobile-toggle:focus-visible,
.close-button:focus-visible {
    outline: 2px solid var(--color-primary);
    border-radius: 4px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
    opacity: 0.8;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Komponenten (Buttons, etc.)
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

/* Kuli-Strich unter Headlines (optional) */
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    /* Über Hero-Image */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    /* Abstand verringert für kompakten Look */
}

.logo img {
    height: 5.5rem;
    /* Vergrößert für mehr Präsenz */
    width: auto;
    display: block;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    /* Kompakt */
    align-items: flex-start;
}

.logo-title {
    font-size: 2rem;
    font-weight: 800;
    /* Extra Fett */
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-light);
    /* Helles Marineblau */
    font-family: var(--font-body);
    text-transform: uppercase;
    /* GROSSBUCHSTABEN */
    letter-spacing: 0.05em;
    /* Leicht gesperrt für Lesbarkeit */
    margin-top: 0.2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
    /* Text bleibt dunkel */
    background-color: #E0F7FA;
    /* Sehr helles Türkis als Hintergrund (passend zum Wasser-Thema) */
    padding: 0.5rem 1rem;
    /* Etwas "Luft" um den Text */
    border-radius: 20px;
    /* Abgerundete "Pillen"-Form */
    text-decoration: none;
    /* Unterstreichung weg, da wir jetzt einen Hintergrund haben */
}

/* CTA Button im Menü */
.nav-menu .nav-cta {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    /* Force color to override default nav link color on hover */
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
    font-weight: 700;
    margin-left: 0.5rem;
    /* Little separation */
}

.nav-menu .nav-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    color: var(--color-primary) !important;
}

/* ===================================
   Modal Styles
   =================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    transition: color 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-blue);
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.mobile-toggle {
    display: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(5, 25, 55, 0.9) 0%, rgba(0, 77, 122, 0.8) 100%),
        url('images/hero_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-main);
    padding-top: 12rem;
    /* Mehr Platz oben, um Header auszugleichen */
    padding-bottom: 12rem;
    /* Wichtig: Viel Platz unten lassen, damit Buttons nicht in die Welle ragen */
    position: relative;
    /* Wichtig für die Welle */
}

/* Hero Content Styles */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.slogan-line {
    display: block;
    /* Macht jede Zeile eigenständig */
}

/* Treppen-Effekt */
.line-2 {
    margin-left: 2rem;
}

.line-3 {
    margin-left: 4rem;
}

/* Typografie-Variationen */
.fw-light {
    font-weight: 300;
    /* Dünnes "Gemeinsam" */
    opacity: 0.9;
}

.highlight {
    font-weight: 800;
    /* Fettes Schlagwort */
    color: var(--color-accent);
    /* Neon-Türkis */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.accent-phrase {
    font-style: italic;
    color: var(--color-accent);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Welle am Boden des Hero (Harmonischer Übergang) */
.hero-wave {
    position: absolute;
    bottom: -1px;
    /* -1px verhindert weiße Blitzer/Lücken */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 80px;
    /* Etwas höher für weicheren Look */
}

.hero-wave path {
    fill: var(--color-bg-white);
    /* Exakt die Farbe der nächsten Sektion */
}

/* ===================================
   Kurzvorstellung (About)
   =================================== */

.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-white);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content-left {
    flex: 1.2;
}

.about-image-right {
    flex: 0.8;
}

.about-image-right img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }
}

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

.about-card {
    text-align: center;
    padding: 2rem;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* ===================================
   Trainingsangebote
   =================================== */

.training {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.training-card {
    background: var(--color-bg-white);
    padding: 0;
    /* Kein Padding mehr, damit Bild randlos ist */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
    overflow: hidden;
    /* Damit Bild beim Zoomen nicht übersteht */
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-bottom-color: var(--color-accent);
}

.training-card:hover .card-image img {
    transform: scale(1.05);
    /* Leichter Zoom */
}

.card-image {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Füllt den restlichen Platz */
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Accordion Styles */
.training-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.training-card.expanded .training-details {
    max-height: 500px;
    /* Genug Platz für den Inhalt */
    opacity: 1;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
}

.training-card.expanded .card-footer {
    display: flex;
    margin-top: 1rem;
}

.training-details p {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.training-details ul {
    list-style: none;
    /* Standard-Bullets entfernen */
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.training-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.training-details li::before {
    content: '✔';
    /* Modernes Häkchen */
    color: var(--color-accent);
    /* In Neon-Türkis */
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.6;
    /* Passend zur Zeilenhöhe */
}

/* Clickable News Card */
.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.clickable-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.clickable-card .read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.clickable-card:hover .read-more {
    color: var(--color-accent);
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.training-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.training-time {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 229, 255, 0.05); /* Sehr dezenter Akzent-Hintergrund */
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.time-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .training-time {
        flex-direction: column;
        align-items: flex-start;
    }
}

.target-group {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.training-card[data-type="advanced"] .target-group {
    background-color: var(--color-primary-light);
}

/* ===================================
   Werte (Values)
   =================================== */

.values {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    text-align: center;
}

.values h2 {
    color: var(--color-text-main);
}

.values p {
    color: rgba(255, 255, 255, 0.8);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.value-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===================================
   Aktuelles (News)
   =================================== */

.news {
    padding: var(--spacing-xl) 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--color-accent);
    /* Neon-Farbe für Datum */
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===================================
   CTA / Mitglied werden
   =================================== */

.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: #030F21;
    /* Sehr dunkles Blau */
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

.ai-disclaimer {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

@media (max-width: 1050px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Mobile Logo Anpassung */
    .logo-text-container {
        display: none;
        /* Text ausblenden auf Handy */
    }

    .logo {
        padding-left: 0;
        min-height: auto;
    }

    .logo img {
        height: 3.5rem;
        /* Angenehme Größe im Header */
        width: auto;
        position: static;
        /* Kein Overhang, einfach sauber im Balken */
        top: 0;
        z-index: 1010;
    }
}