/* --- TEIL 1: BASIS & HEADER --- */

/* RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --kobaltblau: #0000a0;
    --accent: #00e5ff;
}

html {
    /* Platz für Scrollbalken erzwingen gegen Springen der Seite */
    overflow-y: scroll;
    height: 100%;
}

body { 
    width: 100%; 
    min-height: 100%;
    font-family: 'Arial Black', sans-serif; 
    background-color: #050505; 
    color: white;
    /* Verhindert den weißen Spalt rechts */
    overflow-x: hidden;
    text-align: center;
}

#canvas-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px; 
    z-index: 100;
    display: flex; 
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,160,0.6) 0%, rgba(0,0,0,0) 100%);
    border-top: 2px solid var(--accent);
}

.header-container { 
    width: 90%; 
    max-width: 1400px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.main-logo { 
    width: 60px; 
    height: auto; 
    transition: 0.3s; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

.nav-links li { 
    position: relative; 
}

.nav-links a { 
    text-decoration: none; 
    color: white; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: bold; 
    letter-spacing: 1.5px;
    padding-top: 10px; 
    display: inline-block;
    /* Schatten für bessere Sichtbarkeit vor hellem Himmel */
    text-shadow: 1px 1px 10px rgba(0,0,0,1);
}

.nav-links a::before {
    content: ''; 
    position: absolute; 
    top: -5px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 0; 
    height: 3px;
    background-color: var(--accent); 
    transition: width 0.3s ease;
}

.nav-links a:hover::before { 
    width: 25px; 
}

.nav-links a:hover { 
    color: var(--accent); 
}

.nav-toggle { 
    display: none; 
    flex-direction: column; 
    justify-content: space-between; 
    width: 30px; 
    height: 21px; 
    cursor: pointer; 
    z-index: 1001; 
}

.nav-toggle span { 
    display: block; 
    height: 3px; 
    width: 100%; 
    background: white; 
    border-radius: 3px; 
    transition: 0.3s; 
}
/* --- TEIL 2: CONTENT & EFFEKTE --- */

.overlay {
    position: relative; 
    z-index: 10; 
    min-height: 100vh; 
    width: 100%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    padding: 110px 20px 40px; 
    background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
}

.content-wrapper { 
    width: 100%; 
    max-width: 1000px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

h1 { 
    font-size: clamp(1.8rem, 4vw, 3.2rem); 
    text-transform: uppercase; 
    margin: 10px 0 20px;
    text-shadow: 0 0 15px rgba(0,0,160,1), 2px 2px 0px black; 
    -webkit-text-stroke: 1px black;
    color: white;
}

.sub-text { 
    width: 100%; 
    max-width: 850px; 
    margin-bottom: 35px; 
    background: transparent; 
}

.intro { 
    font-size: clamp(0.95rem, 1.8vw, 1.2rem); 
    color: var(--accent); 
    margin-bottom: 12px; 
    text-shadow: 1px 1px 8px black; 
    font-weight: bold; 
}

.invite { 
    font-size: clamp(0.85rem, 1.4vw, 1rem); 
    opacity: 0.95; 
    line-height: 1.6; 
    text-shadow: 1px 1px 8px black; 
}

.sub-text .highlight { 
    color: var(--accent); 
    font-weight: bold; 
    text-shadow: 0 0 10px rgba(0,229,255,0.4); 
}

.button-row { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-bottom: 45px; 
}

.btn {
    padding: 14px 40px; 
    background: var(--kobaltblau); 
    color: white; 
    border: 2px solid white;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s;
    pointer-events: auto; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 0 10px rgba(0,0,160,0.5);
}

.btn:hover { 
    background: var(--accent); 
    color: black; 
    transform: scale(1.05); 
    box-shadow: 0 0 30px var(--accent); 
}

/* --- KACHELN --- */
#action-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center; 
    width: 100%; 
    pointer-events: auto; 
}

.action-tile {
    width: 175px; 
    height: 110px; 
    border: 2px solid var(--kobaltblau); 
    border-radius: 12px;
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.7); 
    transition: 0.4s ease; 
    cursor: pointer;
}

.action-tile img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.8); 
    transition: 0.4s; 
}

/* Transparenter Desktop-Text */
.text-on-image {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    transition: 0.4s;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 5px var(--accent);
}

.action-tile span:not(.text-on-image) { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    background: rgba(0,0,160,0.9); 
    font-size: 0.75rem; 
    padding: 8px 0; 
    text-transform: uppercase; 
    z-index: 3;
}

.action-tile:hover { 
    transform: translateY(-12px); 
    border-color: var(--accent); 
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.6); 
}

.action-tile:hover img { 
    filter: brightness(1.1); 
}

.action-tile:hover .text-on-image { 
    color: var(--accent); 
    transform: translate(-50%, -50%) scale(1.1); 
}

/* --- LOGBUCH SPEZIFISCH --- */
.logbuch-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 20px 0 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    text-align: left;
}

.log-entry h2 { color: var(--accent); font-size: 1.5rem; margin: 10px 0; }
.log-date { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.log-divider { border: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); margin: 30px 0; }
.log-tags { margin-top: 15px; display: flex; gap: 10px; }
.tag { background: var(--kobaltblau); padding: 5px 12px; border-radius: 15px; font-size: 0.7rem; text-transform: uppercase; border: 1px solid var(--accent); }
.book-list { list-style: none; margin-top: 15px; }
.book-list li { margin-bottom: 10px; }
.book-list a { color: var(--accent); text-decoration: none; transition: 0.3s; }
.book-list a:hover { text-decoration: underline; }

.active-nav::before { width: 25px !important; }

/* --- ANIMATIONEN (FLICKERING FIX) --- */
.fly-top, .fly-bottom, .fly-bottom-delayed, .action-tile, .logbuch-card {
    opacity: 0;
}

@keyframes flyL { from { opacity: 0; transform: translateX(-120px); } to { opacity: 1; transform: translateX(0); } }
@keyframes flyR { from { opacity: 0; transform: translateX(120px); } to { opacity: 1; transform: translateX(0); } }
@keyframes flyT { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flyB { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }

.fly-top { animation: flyT 1.2s forwards; }
.fly-bottom { animation: flyB 1.2s forwards 0.4s; }
.fly-bottom-delayed { animation: flyB 1.2s forwards 0.8s; }
.from-left { animation: flyL 0.8s forwards 1.2s; }
.from-top { animation: flyT 0.8s forwards 1.4s; }
.from-bottom { animation: flyB 0.8s forwards 1.6s; }
.from-right { animation: flyR 0.8s forwards 1.8s; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0, 0, 160, 0.98); flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    }
    .nav-links.active { right: 0; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .action-tile { width: 45%; height: 90px; }
    
    /* FIX: KONTRAST-ERHÖHUNG FÜR MOBILGERÄTE */
    .text-on-image { 
        font-size: 1.1rem; 
        color: rgba(255, 255, 255, 0.95); /* Weisser gemacht */
        -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.9); /* Dickere schwarze Kontur */
        text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 5px var(--accent), 0 0 15px rgba(0, 0, 0, 0.9); /* Starker, breiter Schatten */
    }
    
    .logbuch-card { padding: 20px; }
}

.arrow-up {
    position: fixed; bottom: 25px; right: 25px; z-index: 110; width: 50px; height: 50px;
    background: var(--kobaltblau); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; opacity: 0; transition: 0.3s; pointer-events: auto;
}
.footer-credit { margin-top: 50px; font-size: 0.8rem; opacity: 0; text-decoration: none; color: white; pointer-events: auto; animation: flyB 1s forwards 2s; }

/* --- WAKEBOARD SEITE STYLES --- */

.glass-card {
    /* Deckkraft auf 0.3 reduziert für mehr Transparenz */
    background: rgba(0, 0, 20, 0.3); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    margin: 20px 0 40px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
    text-align: left;
    opacity: 0; /* Flickering Fix */
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* FIX: Hintergrund auf transparent gestellt, um schwarze Balken zu vermeiden */
    background: transparent; 
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--accent);
}

/* NEU: Sorgt dafür, dass das Video den Container ohne Ränder ausfüllt */
.wake-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Überschriften: Dezent eingerahmt */
.content-text h2 { 
    color: var(--accent); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    background: rgba(0, 229, 255, 0.08); 
    padding: 6px 14px;
    border-left: 4px solid var(--accent);
    display: inline-block;
}

.content-text h3 { 
    color: white; 
    margin: 25px 0 10px; 
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.content-text p { 
    line-height: 1.6; 
    margin-bottom: 15px; 
    color: #ffffff; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9); 
}

.divider { border: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent); margin: 30px 0; }

.sport-list { list-style: none; margin: 15px 0; padding-left: 20px; }
.sport-list li::before { content: "⚓ "; color: var(--accent); margin-right: 10px; }
.sport-list li { margin-bottom: 8px; font-weight: bold; }

.info-box, .inclusive-box {
    background: rgba(0, 229, 255, 0.06);
    border-left: 4px solid var(--accent);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.price-title { 
    margin-top: 40px; 
    text-align: center; 
    color: var(--accent);
    text-transform: uppercase;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.price-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item strong { display: block; color: var(--accent); margin-bottom: 10px; border-bottom: 1px solid rgba(0,229,255,0.2); padding-bottom: 5px; }
.price-item span { float: right; font-weight: bold; color: white; }

.important-note {
    margin-top: 40px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

/* RESERVIERUNG & LAYOUT */

.reservation-row {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.reservation-btn {
    background: var(--accent) !important;
    color: #000 !important;
    font-size: 1.1rem;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transition: 0.3s;
}

.reservation-btn:hover {
    background: white !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

.offer-item {
    margin-bottom: 25px;
}

.offer-item strong {
    color: var(--accent);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.equipment-note {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #fff;
    margin-top: 20px;
}

.price-item p {
    margin-bottom: 8px !important;
    font-size: 0.95rem;
}

.price-item span {
    color: var(--accent);
}

@media (max-width: 768px) {
    .price-item span { float: none; display: block; margin-top: 5px; }
    .glass-card { padding: 20px; }
    .reservation-btn { padding: 15px 30px; font-size: 1rem; }
}
/* --- PLAY-BUTTON OVERLAY --- */

.video-container {
    position: relative; /* Wichtig für die Positionierung des Pfeils */
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Leichte Abdunkelung am Ende */
    display: none; /* Erstmal unsichtbar */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}

.play-icon {
    font-size: 4rem;
    color: var(--accent);
    background: rgba(0, 0, 160, 0.8);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
    padding-left: 8px; /* Optische Korrektur, damit das Dreieck mittig wirkt */
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transition: 0.3s;
}

.play-icon:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: black;
}

@media (max-width: 768px) {
    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
}
/* --- DEZENTER REPLAY PFEIL --- */

.video-container {
    position: relative;
}

.video-replay-corner-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3); /* Sehr transparent */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* Startet unsichtbar */
    transition: 0.3s;
}

.video-replay-corner-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}
/* --- FORMULAR STYLES (SIGNALMAST) --- */

.reservation-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.reservation-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reservation-form input, 
.reservation-form select, 
.reservation-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.reservation-form input:focus, 
.reservation-form select:focus, 
.reservation-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.reservation-form select option {
    background: #050505; /* Dunkler Hintergrund für Dropdown-Optionen */
    color: white;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/* --- FORMULAR STYLES (THE GLASS FORM FIX) --- */

/* Der blaue Balken-Effekt für die Überschrift */
.nautical-header {
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    background-color: rgba(0, 229, 255, 0.08); /* Sehr dezenter blauer Hintergrund */
    padding-top: 5px; padding-bottom: 5px;
    display: inline-block;
    margin-bottom: 15px;
}

.reservation-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group.full-width {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.reservation-form label {
    display: block;
    margin-bottom: 6px;
    color: #e0e0e0; /* Fast weiss, dezent */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

/* FIX: Eingabefelder transparent & stylisch */
.reservation-form input, 
.reservation-form select, 
.reservation-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05); /* Transparentes Glass-Input */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

/* FIX: Cyan-Glow beim Anklicken (Focus State) */
.reservation-form input:focus, 
.reservation-form select:focus, 
.reservation-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Datepicker & Select Icon Accent */
.reservation-form input[type="date"]::-webkit-calendar-picker-indicator,
.reservation-form select {
    filter: invert(1) hue-rotate(180deg); /* Accent-Farbe auf Icons anwenden */
    cursor: pointer;
}

/* Textarea ohne weissen Hintergrund */
.reservation-form textarea {
    resize: none;
}

/* Dropdown-Optionen müssen dunkel sein für Lesbarkeit */
.reservation-form select option {
    background: #050505;
    color: white;
}

/* Den Button im Formular zentrieren und gross machen */
.reservation-form .reservation-row {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.reservation-form .reservation-btn {
    background: var(--accent) !important;
    color: #000 !important;
    font-size: 1.1rem;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.reservation-form .reservation-btn:hover {
    background: white !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/* --- AGB AKKORDEON & CHECKBOX --- */

.agb-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agb-details summary {
    color: var(--accent);
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    padding: 5px;
    outline: none;
}

.agb-details summary::-webkit-details-marker {
    display: none;
}

.agb-content {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ccc;
    padding: 15px 5px;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-size: 0.85rem;
    text-transform: none; /* Nicht alles in Grossbuchstaben */
    letter-spacing: 0;
    cursor: pointer;
}