/* =========================================
   YACHTING4EVER – GLOBAL CSS (FINAL 2026)
========================================= */

/* =========================================
   1. RESET & BASE
========================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }

/* =========================================
   2. PAGE BACKGROUNDS
========================================= */
body.home { background: url("/1080_sundown.webp") center/cover fixed no-repeat; }
body.angebote { background: url("/1080_cavtat.webp") center/cover fixed no-repeat; }
body.akteure { background: url("/1080_netzwerk.webp") center/cover fixed no-repeat; }
body.kontakt { background: url("/1080_kontakt.webp") center/cover fixed no-repeat; }
body.senioren { background: url("/zlatnirat.webp") center/cover fixed no-repeat; }

/* =========================================
   3. NAVIGATION
========================================= */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);
    padding: 15px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    z-index: 1000;
}
nav a { font-size: 14px; letter-spacing: 1px; transition: transform .3s ease, background .3s ease; }
nav a:hover { opacity: .7; }
nav a.active { border-bottom: 1px solid #ffffff; padding-bottom: 4px; }
.lang-switch { position: absolute; right: 40px; top: 15px; font-size: 13px; letter-spacing: 1px; }

/* =========================================
   4. HERO
========================================= */
.hero, .hero-akteure { text-align: center; margin-top: 140px; color: #ffffff; }
.hero img { max-width: 180px; margin-bottom: 20px; }
.hero h1, .hero-akteure h1 { font-size: 42px; letter-spacing: 4px; margin: 0; }
.portal-title, .hero-akteure p, .hero p { font-size: 18px; letter-spacing: 2px; margin-top: 10px; font-weight: 400; }

.hero, .hero-senioren { text-align: center; margin-top: 140px; color: #ffffff; }
.hero img { max-width: 180px; margin-bottom: 20px; }
.hero h1, .hero-senioren h1 { font-size: 42px; letter-spacing: 4px; margin: 0; }
.portal-title, .hero-senioren p, .hero p { font-size: 18px; letter-spacing: 2px; margin-top: 10px; font-weight: 400; }



/* =========================================
   5. ALLGEMEINE BOXEN / GRID / CARDS
========================================= */
.info-box {
    background: rgba(0,0,0,.75);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
    margin: 40px auto;
    max-width: 900px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(420px,1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.card {
    background: rgba(0,0,0,.65);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transition: transform .4s ease, background .4s ease, box-shadow .4s ease;
    overflow: hidden;
}

@media (hover:hover) {
    .card:hover {
        transform: translateY(-6px);
        background: rgba(0,0,0,.75);
        box-shadow: 0 20px 40px rgba(0,0,0,.6);
    }
}

.card summary { list-style: none; cursor: pointer; padding: 40px; }
.card summary::-webkit-details-marker { display: none; }
.card h2 { margin: 0; font-size: 21px; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; }

.chevron { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .3s ease; margin-left: 15px; }
details[open] .chevron { transform: rotate(-135deg); }

.card-preview { max-height: 85px; overflow: hidden; position: relative; padding: 0 40px 20px 40px; }
.card-preview::after { content: ""; position: absolute; bottom: 0; left: 40px; right: 40px; height: 30px; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; transition: opacity .4s ease; }
details[open] .card-preview::after { opacity: 0; }

.card-extra { padding: 0 40px 40px 40px; animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from {opacity: 0; transform: translateY(-10px);} to {opacity: 1; transform: translateY(0);} }
.card p { line-height: 1.6; margin: 0 0 14px; }
.external-link { display: inline-block; margin-top: 10px; text-decoration: underline; font-weight: 600; transition: opacity .3s ease; }
.external-link:hover { opacity: .8; }

/* =========================================
   6. KONTAKT / FORM
========================================= */
.form-box { max-width: 600px; margin: 80px auto 100px; background: rgba(0,0,0,.75); padding: 40px; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.form-box h1 { text-align: center; letter-spacing: 3px; margin-bottom: 30px; }
.form-box input, .form-box textarea { width: 100%; margin: 15px 0; padding: 14px; border: none; border-radius: 8px; font-size: 14px; }
.btn-primary { width: 100%; padding: 16px; border: none; border-radius: 50px; background: #ffffff; color: #000; font-weight: bold; letter-spacing: 2px; cursor: pointer; transition: transform .3s ease; }
.btn-primary:hover { transform: scale(1.05); }
.error-box { background: #a00000; color: #fff; padding: 15px; margin-bottom: 20px; border-radius: 8px; text-align: center; font-weight: bold; }
.hidden-field { display: none !important; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0; font-size: 14px; line-height: 1.5; }
.checkbox input[type="checkbox"] { width: 18px; margin: 4px 0 0 0; flex-shrink: 0; }

/* =========================================
   7. FOOTER
========================================= */
footer { background: rgba(0,0,0,.6); padding: 40px; text-align: center; font-weight: bold; line-height: 1.8; }
footer a { margin: 0 10px; }

/* =========================================
   8. akteure-SEITE MASTERMINDS / BOXEN
========================================= */
body.akteure .container-akteure {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 95%;
    max-width: 1200px;
    margin: 80px auto;
}

/* Jede senioren-Box */
body.akteure .akteur-box {
    display: flex;
    background: rgba(0,0,0,.75);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
    padding: 20px 30px;
    gap: 20px;
    align-items: flex-start;
}

/* Bild */
body.akteure .akteure-image img {
    width: 160px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* Text – NICHT sticky mehr */
body.akteure .akteure-text { flex: 1; }
body.akteure .akteure-text h3 { margin-top: 0; }

/* FOTO-POOL + DATEINAME CAPTION */
body.akteure #photo-pool { max-width: 95%; margin: 160px auto; padding: 0 40px; }
/* → Zweispaltiges Grid Desktop */
body.akteure #photo-pool .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Wrapper für Bild + Caption */
.pool-photo-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 18px;
}
.pool-photo-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}
.pool-photo-wrapper:hover img { transform: scale(1.04); }

/* Caption / Dateiname */
.pool-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* =========================================
   9. Senioren-SEITE MASTERMINDS / BOXEN
========================================= */
body.senioren .container-senioren {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 95%;
    max-width: 1000px;
    margin: 80px auto;
}

/* Jede senioren-Box */
body.senioren .senioren-box {
    display: flex;
    background: rgba(0,0,0,.75);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
    padding: 20px 30px;
    gap: 20px;
    align-items: flex-start;
}

/* Bild */
body.senioren .senioren-image img {
    width: 160px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* Text – NICHT sticky mehr */
body.senioren .senioren-text { flex: 1; }
body.senioren .senioren-text h3 { margin-top: 0; }

/* FOTO-POOL + DATEINAME CAPTION */
body.senioren #photo-pool { max-width: 95%; margin: 160px auto; padding: 0 40px; }
/* → Zweispaltiges Grid Desktop */
body.senioren #photo-pool .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Wrapper für Bild + Caption */
.pool-photo-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 18px;
}
.pool-photo-wrapper img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}
.pool-photo-wrapper:hover img { transform: scale(1.04); }

/* Caption / Dateiname */
.pool-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 10px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}




/* =========================================
   10. MOBILE OPTIMIERUNG
========================================= */
@media (max-width: 900px) {
    nav { flex-direction: column; gap: 8px; padding: 15px 20px; }
    nav a { display: block; font-size: 18px; font-weight: 600; padding: 14px 10px; border-radius: 8px; }
    nav a.active { border-bottom: none; background: rgba(255,255,255,.15); }

    .grid { grid-template-columns: 1fr; margin-top: 80px; }
    .menu { flex-direction: column; gap: 20px; }

    .form-box { margin: 60px 20px 80px; padding: 25px; }
    footer { padding: 30px 20px; font-size: 14px; }

    .card-preview { max-height: 70px; }
    .card summary { padding: 25px; }
    .card-preview, .card-extra { padding-left: 25px; padding-right: 25px; }

    /* senioren MOBILE */
    body.senioren .senioren-box {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }
    body.senioren .senioren-image img { width: 140px; margin: 0 auto; }
    body.senioren .senioren-text { position: relative; top: 0; margin-top: 15px; }
    body.senioren #photo-pool .photo-grid { grid-template-columns: 1fr; }
}
