/* ==========================================================
   CAPRI CLUB WESTERHOLT
   Homepage – Grundgerüst V1.0
========================================================== */

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

:root{

    --primary:#05019B;
    --primary-light:#1d7fc3;

    --headline:#243746;

    --background:#e9edf2;

    --white:#ffffff;

    --shadow:rgba(0,0,0,.15);

}


body{

    font-family:Arial, Helvetica, sans-serif;
    background:var(--background);
    color:#333;
    line-height:1.6;

}





/* ==========================
   HEADER
========================== */

header{

    background:var(--primary);

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 50px;

    min-height:90px;

    position:sticky;
    top:0;

    z-index:1000;

    box-shadow:0 4px 12px rgba(0,0,0,.20);

}

.logo img{

    width:185px;
    height:auto;
    display:block;

}


/* ==========================
   NAVIGATION
========================== */

nav ul{

    list-style:none;
    display:flex;
    gap:10px;

}

nav a{
    color:white;
    text-decoration:none;
    display:inline-block;

    padding:12px 12px;

    border-radius:8px;

    font-size:16px;
    font-weight:600;

    transition:.25s;
    white-space:nowrap;
}

nav a:hover{
    background:rgba(255,255,255,.40);
    color:white;
    transform:translateY(-3px);
}

nav a.active{

    background:var(--white);

    color:var(--primary);

    padding:10px 18px;

    border-radius:6px;

    font-weight:bold;

}

/* ==========================
   HERO
========================== */

.hero{
    height:220px;

    background-image:
        linear-gradient(rgba(8,46,73,.55),
                        rgba(8,46,73,.60)),
        url("../images/hero-capri.jpg");

    background-size: contain;
    background-repeat: no-repeat;
    background-position:center;

    background-color:white;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-overlay{

    color:white;

    max-width:900px;

    padding:20px;

}

.hero h1{

    font-size:46px;

    margin-bottom:8px;

    text-shadow:2px 2px 8px black;

}

.hero h2{

    font-size:26px;

    font-weight:300;

    margin-bottom:0;

    text-shadow:2px 2px 8px black;

}


/* ==========================
   STANDARD SEITENKOPF
========================== */

.page-header{

    max-width:1300px;

    margin:60px auto 50px;

    padding:0 20px;

    text-align:center;

}

.page-header h2{

    font-size:42px;

    color:var(--primary);

    margin-bottom:20px;

}

.page-header p{

    max-width:850px;

    margin:0 auto 15px;

    font-size:18px;

    line-height:1.7;

    color:#555;

}

.page-section{

    max-width:1300px;

    margin:0 auto 60px;

    padding:0 20px;

}

/* ==========================
   BUTTON
========================== */

.button{

    background:linear-gradient(
        to bottom,
        var(--primary-light),
        var(--primary)
    );

}

.button:hover{

    background:var(--primary-light);

    transform:translateY(-3px);

}

/* ==========================
   CONTAINER
========================== */

.container{

    width:1300px;
    max-width:95%;
    margin:auto;

}

/* ==========================
   WILLKOMMEN
========================== */

.welcome{
    background:var(--white);
    padding:12px 0 10px;
}

.welcome h2{
    color:var(--primary);
    text-align:center;
    font-size:30px;
    line-height:1.2;
    margin-bottom:8px;
}

.welcome p{
    max-width:1300px;
    margin:0 auto;
    text-align:center;
    font-size:16px;
    line-height:1.35;
}

/* ==========================
   INFO KARTEN
========================== */

.cards{

    max-width:1200px;
    margin:25px auto 40px;
    padding:0 20px;

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(320px,1fr));
    gap:30px;

}

.card-link{

    display:block;
    color:white;
    text-decoration:none;

}

.card{

    background:#fff;

    border-top:6px solid var(--primary);

    border-radius:14px;

    padding:25px;

    box-shadow:0 8px 22px rgba(0,0,0,.12);

    transition:.3s;

    display:flex;
    flex-direction:column;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(0,0,0,.18);

    border-top-color:var(--primary-light);

}

/* Standardbild für Bildkarten */

.card img{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    border-radius:10px;

    margin-bottom:20px;

}

.card h3{

    font-size:24px;

    line-height:1.25;

    margin-bottom:18px;

}

.card h4{

    font-size:18px;

    font-weight:600;

    color:#333;

    margin-bottom:12px;

}

.card p{

    color:#555;

    line-height:1.7;

    margin-bottom:15px;

}

.card ul{

    margin:20px 0;

    padding-left:40px;

}

.card li{

    margin-bottom:10px;

    line-height:1.6;

}

.icon{

    font-size:44px;

    margin-bottom:20px;

}

.more{

    margin-top:auto;

    padding-top:20px;

    color:var(--primary);

    font-weight:bold;

    font-size:16px;

}


/* ==========================
   BILDKARTEN
========================== */

.card-image h3{

    min-height:72px;

}

.card-image p{

    min-height:90px;

}


/* ==========================
   BREITE KARTEN
========================== */

.card-wide{

    max-width:900px;

    margin:0 auto;

    padding:30px 40px;

}

.card-wide h3{

    text-align:center;

    margin-bottom:20px;

}

.card-wide p{

    max-width:700px;

    margin:0 auto 14px;

    line-height:1.7;

    text-align:center;

}

.card-wide .mail{

    margin:20px 0;

    font-size:22px;

    font-weight:bold;

}

.card-wide .mail a{

    color:var(--primary);

    text-decoration:none;

}

.card-wide .mail a:hover{

    text-decoration:underline;

}


/* ==========================
   WISSENSDATENBANK
========================== */

.knowledge-layout{

    display:flex;

    align-items:center;

    gap:35px;

}

.knowledge-image{

    position:relative;

    display:block;

    overflow:hidden;

    border-radius:10px;

    flex-shrink:0;

}

.knowledge-image img{

    width:240px;

    height:160px;

    object-fit:cover;

    display:block;

    border-radius:10px;

    border:1px solid #d9d9d9;

    box-shadow:0 4px 12px rgba(0,0,0,.15);

    transition:all .3s ease;

    cursor:zoom-in;

}

.knowledge-image:hover img{

    transform:scale(1.03);

    box-shadow:0 8px 22px rgba(0,0,0,.28);

}


.knowledge-content{

    flex:1;

}

.knowledge-content h3{

    text-align:left;

    margin:0 0 18px 0;

}

.knowledge-content p{

    text-align:left;

    margin:0;

    max-width:none;

    line-height:1.7;

}


/* ==========================
   RESPONSIVE
========================== */

@media (max-width:768px){

    .knowledge-layout{

        flex-direction:column;

        align-items:center;

    }

    .knowledge-layout img{

        width:100%;

        max-width:360px;

        height:auto;

    }

    .knowledge-content h3{

        text-align:center;

    }

    .knowledge-content p{

        text-align:left;

    }

}

/* ==========================
   FOOTER
========================== */

footer{

    background:var(--primary);

    color:#fff;

    margin-top:80px;

    padding:15px 20px;

}

.footer-content{

    max-width:1300px;

    margin:0 auto;

    text-align:center;

}

.footer-content h3{

    margin-bottom:12px;

    font-size:16px;

    font-weight:600;

}

.footer-nav{

    margin-bottom:10px;

}

.footer-nav a{

    color:var(--white);

    text-decoration:none;

    margin:0 8px;

    font-size:15px;

}

.footer-nav a:hover{

    text-decoration:underline;

}

.footer-bottom{

    margin-top:10px;

    font-size:13px;

    color:#d9e2ea;

}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:1000px){

header{

    flex-direction:column;

    gap:20px;

}

nav ul{

    flex-wrap:wrap;

    justify-content:center;

}

.hero{

    height:220px;

}

.hero h1{

    font-size:40px;

}

.hero h2{

    font-size:24px;

}

}

@media(max-width:700px){

.logo img{

    width:180px;

}

nav ul{

    gap:12px;

}

nav a{

    font-size:15px;

}

.hero{

    height:200px;

}

.hero h1{

    font-size:32px;

}

.hero h2{

    font-size:20px;

}

.button{

    font-size:18px;

    padding:14px 26px;

}

.welcome h2{

    font-size:34px;

}

.welcome p{

    font-size:17px;

}

}
/* ==========================================================
   DOKUMENTENTABELLE
========================================================== */

.table-container{

    width:1300px;
    max-width:95%;

    margin:0 auto 80px auto;

}
#dokumente-tabelle{

    width:100%;

    border-collapse:collapse;

    background:white;

    box-shadow:0 6px 18px rgba(0,0,0,.10);

    border-radius:10px;

    overflow:hidden;

}
#dokumente-tabelle thead{

    background:var(--primary);

    color:white;

}

#dokumente-tabelle th{

    padding:16px;

    text-align:left;

    font-size:17px;

}
#dokumente-tabelle td{

    padding:14px 16px;

    border-bottom:1px solid #e6e6e6;

    vertical-align:top;

}

#dokumente-tabelle tbody tr:nth-child(even){

    background:#f8fafc;

}

#dokumente-tabelle tbody tr:hover{

    background:#eef6fc;

}
#dokumente-tabelle th:nth-child(1),
#dokumente-tabelle td:nth-child(1){

    width:22%;

}

#dokumente-tabelle th:nth-child(2),
#dokumente-tabelle td:nth-child(2){

    width:15%;

}

#dokumente-tabelle th:nth-child(3),
#dokumente-tabelle td:nth-child(3){

    width:48%;

}

#dokumente-tabelle th:nth-child(4),
#dokumente-tabelle td:nth-child(4){

    width:15%;

    text-align:center;

}

#dokumente-tabelle a{

    color:var(--primary);

    text-decoration:none;

    font-weight:bold;

}

#dokumente-tabelle a:hover{

    color:var(--primary-light);

}

/* ==========================================================
   Presseberichte – Thumbnail Hover
========================================================== */

#dokumente-tabelle .thumbnail {
    transition: transform 0.2s ease;
}

#dokumente-tabelle .thumbnail:hover {
    transform: scale(1.05);
}


/* ==========================
   KONTAKT
========================== */

.mail{

    text-align:center;

    font-size:24px;

    font-weight:bold;

    margin:20px 0;

}

.mail a{

    color:var(--primary);

    text-decoration:none;

}

.mail a:hover{

    text-decoration:underline;

}

/* ==========================================================
   Wissensdatenbank – Seitenhintergrund
========================================================== */

body.knowledge-page {
    background: var(--background);
}

body.knowledge-page .knowledge-content h3 {
    color: var(--headline);
}


/* ==========================================================
   CCW DROPDOWN-NAVIGATION
   ========================================================== */

header nav li {
    position: relative;
}

header nav li.has-submenu {
    display: flex;
    align-items: stretch;
}

.submenu-toggle {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 12px 18px;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
    white-space: nowrap;
}

.submenu-toggle:hover {
    background:rgba(255,255,255,.40);
    color:white;
    transform:translateY(-3px);
}

.submenu-toggle .arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    transition: transform .2s ease;
}

.has-submenu.submenu-open .submenu-toggle .arrow {
    transform: rotate(180deg);
}

header nav ul.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10002;
    min-width: 230px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

.has-submenu.submenu-open > ul.submenu {
    display: block;
}

header nav ul.submenu li {
    display: block;
    width: 100%;
}

header nav ul.submenu a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border-radius: 0;
    text-align: left;
    white-space: normal;
}

header nav ul.submenu a:hover {
    background: rgba(255,255,255,.15);
}

/* ==========================================================
   CCW – mobile Dropdowns
   ========================================================== */

@media (max-width:900px) {

    header nav li.has-submenu {
        display: block;
    }

    .submenu-toggle {
        display: block;
        width: 100%;
        min-height: 45px;
        padding: 11px 18px;
        box-sizing: border-box;
        text-align: left;
        font-size: 17px;
        line-height: 1.3;
        border-radius: 0;
        white-space: normal;
    }

    header nav ul.submenu {
        position: static;
        min-width: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0,0,0,.12);
    }

    header nav ul.submenu a {
        padding: 10px 18px 10px 34px;
        font-size: 16px;
    }
}

/* ==========================================================
   BILD DES MONATS
   ========================================================== */

.bild-des-monats{
    background:var(--white);
    padding:25px 0 45px;
}

.bild-des-monats-inhalt{
    position:relative;
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    background:none;
    border-radius:0;
    box-shadow:none;

    display:block;
    overflow:hidden;
}

.bild-des-monats-bild{
    width:100%;
    height:380px;
    overflow:hidden;
    border-radius:0;
}

.bild-des-monats-bild img{
    display:block;
    width:100%;
    height:100%;
    max-height:none;
    object-fit:cover;
    object-position:center;
    border-radius:0;
}

.bild-des-monats-text{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:32%;
    max-width:520px;
    padding:38px 42px 38px 50px;

    display:flex;
    flex-direction:column;
    justify-content:center;

    box-sizing:border-box;

    background:linear-gradient(
        to right,
        rgba(255,255,255,0.15),
        rgba(255,255,255,.65) 18%,
        rgba(255,255,255,.93) 48%,
        rgba(255,255,255,.99) 100%
    );

    border-radius:45px 0 0 45px;
}

.bild-des-monats-text::before{
    content:"BILD DES MONATS";
    display:block;
    margin-bottom:12px;

    color:var(--primary);
    font-size:13px;
    font-weight:bold;
    letter-spacing:4px;
}

.bild-des-monats-text h3{
    color:var(--headline);
    font-size:30px;
    line-height:1.15;
    margin-bottom:20px;
}

.bild-des-monats-text p{
    color:#243746;
    font-size:16px;
    line-height:1.6;
    margin-bottom:18px;
}

.bild-des-monats-text p:last-child{
    margin-bottom:0;
}


/* ==========================================================
   BILD DES MONATS – RESPONSIVE
   ========================================================== */

@media (max-width:1000px){

    .bild-des-monats{
        padding:20px 0 40px;
    }

    .bild-des-monats-bild{
        height:340px;
    }

    .bild-des-monats-text{
        width:38%;
        padding:28px 30px 28px 40px;
    }

    .bild-des-monats-text h3{
        font-size:30px;
    }

    .bild-des-monats-text p{
        font-size:17px;
    }
}

@media (max-width:700px){

    .bild-des-monats{
        padding:15px 0 35px;
    }

    .bild-des-monats-inhalt{
        overflow:visible;
    }

    .bild-des-monats-bild{
        height:auto;
    }

    .bild-des-monats-bild img{
        width:100%;
        height:auto;
        object-fit:contain;
    }

    .bild-des-monats-text{
        position:relative;
        top:auto;
        right:auto;
        bottom:auto;
        width:100%;
        max-width:none;
        padding:25px 20px;

        background:var(--white);
    }

    .bild-des-monats-text::before{
        font-size:11px;
        letter-spacing:3px;
    }

    .bild-des-monats-text h3{
        font-size:26px;
        margin-bottom:15px;
    }

    .bild-des-monats-text p{
        font-size:17px;
    }
}


/* ==========================================================
   BILD DES MONATS – VOLLBREITE
   Der umgebende .container darf diesen Bereich nicht begrenzen.
   ========================================================== */

.bild-des-monats{
    padding:0;
}

.bild-des-monats > .container{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
}

/* ==========================================================
   CCW KACHEL-DESIGN V2
   Gemeinsames Design für alle Seiten mit .card
   ========================================================== */

.card{
    background:linear-gradient(to bottom, #ffffff 0%, #fffefd 100%);
    border:1px solid #dfe5ec;
    border-top:4px solid var(--primary);
    border-radius:14px;
    padding:25px;
    box-shadow:
        0 5px 14px rgba(0,0,0,.08),
        0 1px 3px rgba(0,0,0,.05);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.card:hover{
    transform:translateY(-6px);
    border-top-color:var(--primary-light);
    box-shadow:
        0 14px 30px rgba(0,0,0,.14),
        0 3px 8px rgba(0,0,0,.06);
}

.card img{
    border:1px solid #e1e6eb;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.card h3{
    color:var(--headline);
}

.card .more{
    position:relative;
    display:inline-block;
}

.card .more::after{
    content:" →";
    transition:padding-left .2s ease;
}

.card:hover .more::after{
    padding-left:4px;
}

