/* ======================================================================
   Automobil-Club Bergischer Löwe e.V.
   style.css
====================================================================== */

/* ======================================================================
   RESET
====================================================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    font-size:16px;
    line-height:1.7;
    color:#333;
    background:#faf8f3;
}

/* ======================================================================
   FARBEN
====================================================================== */

:root{
    --green:#A61A22;
    --green-dark:#7A0709;
    --green-light:#D85A63;
    --beige:#ece5d7;
    --beige-light:#f7f3ea;
    --white:#ffffff;
    --text:#333333;
    --text-light:#666666;
    --border:#d8d8d8;
    --shadow:0 8px 24px rgba(0,0,0,.08);
    --radius:12px;
    --transition:.30s ease;
}

/* ======================================================================
   TYPOGRAFIE
====================================================================== */

h1,h2,h3,h4{
    font-family:"Cormorant Garamond",serif;
    color:var(--green-dark);
    line-height:1.2;
    margin-bottom:20px;
}

h1{
    font-size:54px;
}

h2{
    font-size:40px;
}

h3{
    font-size:28px;
}

p{
    margin-bottom:18px;
    color:var(--text);
}

a{
    text-decoration:none;
    color:var(--green);
    transition:var(--transition);
}

a:hover{
    color:var(--green-dark);
}

img{
    display:block;
    width:100%;
    height:auto;
}

/* ======================================================================
   LAYOUT
====================================================================== */

.container{
    width:min(1200px,92%);
    margin:auto;
}

.section-light{
    background:var(--white);
    padding:40px 0;
}

.section-beige{
    background:var(--beige-light);
    padding:40px 0;
}

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

.page-header{
    background:linear-gradient(
        rgba(122,7,9,.90),
        rgba(122,7,9,.90)
    ),
    url("../images/hero/header.jpg") center/cover;
    color:white;
    padding:130px 0 25px;
}

.page-header h1{
    color:white;
}

.page-header p{
    color:white;
    max-width:700px;
}

/* ======================================================================
   GRID
====================================================================== */

.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:50px;
    align-items:center;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.grid-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

/* ======================================================================
   BUTTONS
====================================================================== */

.btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:50px;
    font-weight:600;
    transition:var(--transition);
}

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

.btn-primary:hover{
    background:var(--green-dark);
}

.btn-secondary{
    border:2px solid var(--green);
    color:var(--green);
    background:white;
}

.btn-secondary:hover{
    background:var(--green);
    color:white;
}

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

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(255,252,214,.97);
    backdrop-filter:blur(10px);
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    transition:var(--transition);
}

header.sticky{
    box-shadow:var(--shadow);
}

.header-inner{
    width:min(1200px,92%);
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:90px;
}

/* ======================================================================
   LOGO
====================================================================== */

.logo{
    display:flex;
    align-items:center;
    gap:18px;
    color:inherit;
}

.logo img{
    width:72px;
    height:72px;
    object-fit:contain;
}

.logo-text{
    display:flex;
    flex-direction:column;
}

.logo-title{
    font-family:"Cormorant Garamond",serif;
    font-size:34px;
    font-weight:700;
    color:var(--green-dark);
    line-height:1;
}

.logo-subtitle{
    font-size:14px;
    color:var(--text-light);
    margin-top:4px;
}

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

.main-nav ul{
    list-style:none;
    display:flex;
    align-items:center;
    gap:8px;
}

.main-nav li{
    position:relative;
}

.main-nav a{
    display:block;
    padding:14px 18px;
    border-radius:8px;
    font-weight:600;
    color:var(--text);
}

.main-nav a:hover,.main-nav a.active{
    background:var(--green);
    color:white;
}

/* ======================================================================
   DROPDOWN
====================================================================== */

.dropdown{
    position:absolute;
    top:100%;
    left:0;
    min-width:250px;
    background:white;
    border-radius:10px;
    box-shadow:var(--shadow);
    display:none;
    flex-direction:column;
    padding:8px 0;
}

.dropdown.show{
    display:flex;
}

.dropdown li{
    width:100%;
}

.dropdown a{
    border-radius:0;
    padding:12px 18px;
    color:var(--text);
    background:none;
}

.dropdown a:hover{
    background:var(--beige);
    color:var(--green-dark);
}

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

.mobile-toggle{
    display:none;
    background:none;
    border:none;
    font-size:34px;
    cursor:pointer;
    color:var(--green-dark);
}

/* ======================================================================
   BREADCRUMB
====================================================================== */

.breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
    font-size:15px;
}

.breadcrumb a{
    color:rgba(255,255,255,.9);
}

.breadcrumb span{
    color:rgba(255,255,255,.65);
}

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

footer{
    background:var(--green-dark);
    color:white;
    padding:60px 0 30px;
}

.footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    margin-bottom:40px;
}

.footer-links{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
}

.footer-links a{
    color:white;
}

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

.footer-copy{
    text-align:center;
    border-top:1px solid rgba(255,255,255,.15);
    padding-top:25px;
    font-size:14px;
    color:rgba(255,255,255,.75);
}

/* ======================================================================
   CARDS
====================================================================== */

.card{
    background:var(--white);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(0,0,0,.15);
}

.card-image{
    overflow:hidden;
}

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

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

.card-body{
    padding:30px;
}

.card-body h3{
    margin-bottom:15px;
}

.card-body p{
    color:var(--text-light);
    margin-bottom:25px;
}

/* ======================================================================
   ACTIVITIES
====================================================================== */

.activity-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

.activity-card .card-body{
    display:flex;
    flex-direction:column;
    flex:1;
}

.activity-card .btn{
    margin-top:auto;
}

/* ======================================================================
   EVENTS
====================================================================== */

.event-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.event-card{
    display:flex;
    background:var(--white);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.event-card:hover{
    transform:translateY(-6px);
}

.event-date{
    width:120px;
    background:var(--green);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-weight:700;
    padding:20px;
    line-height:1.4;
}

.event-content{
    padding:25px;
    flex:1;
}

.event-category{
    display:inline-block;
    background:var(--beige);
    color:var(--green-dark);
    padding:5px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}

.event-content h3{
    margin-bottom:10px;
}

.event-content p{
    margin-bottom:20px;
}

/* ======================================================================
   NEWS
====================================================================== */

.news-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

.news-card .card-body{
    display:flex;
    flex-direction:column;
    flex:1;
}

.news-date{
    font-size:14px;
    color:var(--green);
    font-weight:600;
    margin-bottom:15px;
}

.news-card .btn{
    margin-top:auto;
}


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

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    background:
        linear-gradient(
            rgba(72,103,74,.75),
            rgba(72,103,74,.75)
        ),
        url("../images/hero/startseite.jpg")
        center/cover;
    color:white;
}

.hero-content{
    max-width:720px;
}

.hero h1{
    color:white;
    font-size:64px;
    margin-bottom:25px;
}

.hero p{
    color:white;
    font-size:20px;
    margin-bottom:40px;
}



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

.page-header-content{
    max-width:760px;
}

.page-header-content h1{
    margin-bottom:20px;
}

.page-header-content p{
    font-size:19px;
}

/* ======================================================================
   BILDER
====================================================================== */

.grid-2 img,.gallery-grid img,.card img{
    border-radius:var(--radius);
}

figure{
    margin:0;
}

figcaption{
    text-align:center;
    font-size:14px;
    color:var(--text-light);
    margin-top:10px;
}

/* ======================================================================
   GALERIE
====================================================================== */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.gallery-grid img{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:var(--radius);
    cursor:pointer;
    transition:var(--transition);
    box-shadow:var(--shadow);
}

.gallery-grid img:hover{
    transform:scale(1.03);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

/* ======================================================================
   DETAILSEITE
====================================================================== */

.detail-header{
    margin-bottom:50px;
}

.detail-header img{
    width:100%;
    max-height:550px;
    object-fit:cover;
    border-radius:var(--radius);
    margin-bottom:35px;
}

.detail-meta{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:20px;
    font-size:15px;
    color:var(--green);
    font-weight:600;
}

.detail-content{
    max-width:900px;
    margin:auto;
}

.detail-content h2{
    margin-top:50px;
}

.detail-content img{
    margin:35px 0;
    border-radius:var(--radius);
}

.detail-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:50px;
}

.detail-gallery img{
    height:220px;
    object-fit:cover;
    border-radius:var(--radius);
}

/* ======================================================================
   TABELLEN
====================================================================== */

table{
    width:100%;
    border-collapse:collapse;
    margin:40px 0;
    background:white;
    box-shadow:var(--shadow);
}

th{
    background:var(--green);
    color:white;
    padding:16px;
    text-align:left;
}

td{
    padding:16px;
    border-bottom:1px solid var(--border);
}

tr:nth-child(even){
    background:#fafafa;
}

/* ======================================================================
   FORMULARE
====================================================================== */

form{
    display:grid;
    gap:20px;
}

label{
    display:block;
    font-weight:600;
    margin-bottom:8px;
    color:var(--green-dark);
}

input,textarea,select{
    width:100%;
    padding:14px 18px;
    border:1px solid var(--border);
    border-radius:8px;
    font:inherit;
    transition:var(--transition);
}

textarea{
    resize:vertical;
    min-height:180px;
}

input:focus,textarea:focus,select:focus{
    outline:none;
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(72,103,74,.15);
}

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

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.contact-card{
    background:white;
    padding:35px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.contact-card h3{
    margin-bottom:20px;
}

.contact-card p{
    margin-bottom:12px;
}

/* ======================================================================
   PARTNER
====================================================================== */

.partner-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.partner-card{
    background:white;
    border-radius:var(--radius);
    padding:30px;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:170px;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.partner-card:hover{
    transform:translateY(-6px);
}

.partner-card img{
    max-width:180px;
    max-height:50px;
    object-fit:contain;
}

.partner-logo{
	height:50px;
	width:auto;
	margin:auto;
	margin-bottom:10px;
}

.partner-slider{
    overflow:hidden;
    width:100%;
}

.partner-track{
    display:flex;
    align-items:center;
    gap:60px;
    width:max-content;
    animation:
    partner-scroll 25s linear infinite;
}

.partner-logo img{
    max-width:100%;
    max-height:70px;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.75;
    transition:.3s;
}

@keyframes partner-scroll{
    from{transform:translateX(0);}
    to{transform:translateX(-50%);}
}

/* ======================================================================
   HINWEISBOXEN
====================================================================== */

.notice{
    background:var(--beige);
    border-left:5px solid var(--green);
    padding:25px 30px;
    border-radius:var(--radius);
    margin:40px 0;
}

.notice h3{
    margin-bottom:12px;
}

.notice p:last-child{
    margin-bottom:0;
}

/* ======================================================================
   ANIMATIONEN
====================================================================== */

.fade-up{
    opacity:0;
    transform:translateY(40px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.fade-up.visible{
    opacity:1;
    transform:translateY(0);
}

/* ======================================================================
   SCROLL TO TOP
====================================================================== */

#scrollTop{
    position:fixed;
    right:30px;
    bottom:30px;
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:var(--green);
    color:white;
    font-size:24px;
    cursor:pointer;
    box-shadow:var(--shadow);
    opacity:0;
    visibility:hidden;
    transition:var(--transition);
    z-index:999;
}

#scrollTop:hover{
    background:var(--green-dark);
}

#scrollTop.show{
    opacity:1;
    visibility:visible;
}

/* ======================================================================
   HILFSKLASSEN
====================================================================== */

.text-center{
    text-align:center;
}

.text-left{
    text-align:left;
}

.text-right{
    text-align:right;
}

.hidden{
    display:none !important;
}

.w-100{
    width:100%;
}

.h-100{
    height:100%;
}

.rounded{
    border-radius:var(--radius);
}

.shadow{
    box-shadow:var(--shadow);
}

.bg-white{
    background:var(--white);
}

.bg-beige{
    background:var(--beige-light);
}

.bg-green{
    background:var(--green);
    color:white;
}

/* ======================================================================
   ABSTÄNDE
====================================================================== */

.mt-0{margin-top:0;}
.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}
.mt-5{margin-top:60px;}
.mt-6{margin-top:80px;}

.mb-0{margin-bottom:0;}
.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}
.mb-5{margin-bottom:60px;}
.mb-6{margin-bottom:80px;}

.pt-0{padding-top:0;}
.pt-1{padding-top:10px;}
.pt-2{padding-top:20px;}
.pt-3{padding-top:30px;}
.pt-4{padding-top:40px;}
.pt-5{padding-top:60px;}
.pt-6{padding-top:80px;}

.pb-0{padding-bottom:0;}
.pb-1{padding-bottom:10px;}
.pb-2{padding-bottom:20px;}
.pb-3{padding-bottom:30px;}
.pb-4{padding-bottom:40px;}
.pb-5{padding-bottom:60px;}
.pb-6{padding-bottom:80px;}

/* ======================================================================
   LISTEN
====================================================================== */

ul.clean{
    list-style:none;
    padding:0;
    margin:0;
}

ul.check{
    padding-left:20px;
}

ul.check li{
    margin-bottom:10px;
}

/* ======================================================================
   ZITATE
====================================================================== */

blockquote{
    border-left:5px solid var(--green);
    padding:20px 30px;
    background:var(--beige-light);
    margin:40px 0;
    font-style:italic;
}

/* ======================================================================
   TRENNLINIEN
====================================================================== */

hr{
    border:none;
    border-top:1px solid var(--border);
    margin:60px 0;
}

/* ======================================================================
   BILDER
====================================================================== */

img{
    max-width:100%;
}

.img-cover{
    object-fit:cover;
}

.img-contain{
    object-fit:contain;
}

/* ======================================================================
   SELECTION
====================================================================== */

::selection{
    background:var(--green);
    color:white;
}

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

@media (max-width:1100px){
    h1{
        font-size:48px;
    }
    h2{
        font-size:36px;
    }
    .grid-4{
        grid-template-columns:repeat(2,1fr);
    }
    .partner-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:900px){
    .grid-2,.grid-3,.grid-4,.gallery-grid,.detail-gallery,.partner-grid,.event-grid,.contact-grid{
        grid-template-columns:1fr;
    }
    .hero{
        min-height:80vh;
        text-align:center;
    }
    .hero-content{
        margin:auto;
    }
    .hero h1{
        font-size:46px;
    }
    .hero p{
        font-size:18px;
    }
    .page-header{
        padding:120px 0 80px;
    }
    .footer-inner{
        flex-direction:column;
        gap:25px;
    }
    .footer-links{
        justify-content:flex-start;
    }
}

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

@media (max-width:900px){
    .mobile-toggle{
        display:block;
    }
    .main-nav{
        position:absolute;
        top:90px;
        left:0;
        width:100%;
        background:white;
        display:none;
        box-shadow:var(--shadow);
    }
    .main-nav.open{
        display:block;
    }
    .main-nav ul{
        flex-direction:column;
        align-items:stretch;
        gap:0;
    }
    .main-nav li{
        width:100%;
    }
    .main-nav a{
        padding:18px 24px;
        border-radius:0;
    }
    .dropdown{
        position:static;
        display:none;
        box-shadow:none;
        border-radius:0;
        background:#f6f6f6;
        padding:0;
    }
    .dropdown.show{
        display:block;
    }
    .dropdown a{
        padding-left:45px;
    }
}

/* ======================================================================
   SMARTPHONE
====================================================================== */

@media (max-width:600px){
    body{
        font-size:15px;
    }
    h1{
        font-size:38px;
    }
    h2{
        font-size:30px;
    }
    h3{
        font-size:24px;
    }
    .container{
        width:94%;
    }
    .section-light,.section-beige{
        padding:70px 0;
    }
    .header-inner{
        min-height:80px;
    }
    .logo img{
        width:56px;
        height:56px;
    }
    .logo-title{
        font-size:28px;
    }
    .logo-subtitle{
        display:none;
    }
    .hero{
        min-height:70vh;
    }
    .hero h1{
        font-size:36px;
    }
    .hero p{
        font-size:17px;
    }
    .page-header{
        padding:110px 0 70px;
    }
    .card-body{
        padding:24px;
    }
    .event-card{
        flex-direction:column;
    }
    .event-date{
        width:100%;
        padding:15px;
    }
    .gallery-grid img,.detail-gallery img{
        height:220px;
    }
    .btn{
        width:100%;
        text-align:center;
    }
    #scrollTop{
        width:48px;
        height:48px;
        right:20px;
        bottom:20px;
    }
}

/* ======================================================================
   DRUCKANSICHT
====================================================================== */

@media print{
    header,footer,.mobile-toggle,.btn,#scrollTop{
        display:none !important;
    }
    body{
        background:white;
        color:black;
    }
    .section-light,.section-beige{
        padding:20px 0;
        background:white;
    }
    a{
        color:black;
        text-decoration:none;
    }
}

/* ======================================================================
   ENDE DER DATEI
====================================================================== */

/* Optimierungen */
.past-event{opacity:.25 !important;filter:grayscale(1);transform:scale(.98);}
.past-event:hover{opacity:.45 !important;}
@media(max-width:900px){.main-nav.open{max-height:calc(100vh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch;}}

/* Final fixes */
@media(min-width:901px){
.main-nav li:hover > .dropdown{display:flex;}
.main-nav .dropdown.show{display:flex;}
}
@media(max-width:900px){
.main-nav.open{max-height:calc(100vh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch;}
}

/* v3 improvements */
.past-event{opacity:.28!important;filter:grayscale(1);transform:scale(.98);}
@media(min-width:901px){.has-dropdown:hover>.dropdown{display:flex}.has-dropdown>.dropdown{display:none}}
@media(max-width:900px){.main-nav.open{max-height:calc(100vh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch}}

/* Optimierungen v4 */
.past-event{opacity:.25!important;filter:grayscale(1);transform:scale(.98);}
@media (min-width:901px){
.main-nav .has-dropdown:hover .dropdown{display:flex;}
.main-nav .dropdown{display:none;}
}
@media(max-width:900px){
.main-nav.open{max-height:calc(100vh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch;}
}

/* Final fixes */
@media (min-width:901px){
  .main-nav .dropdown{
    display:none;
    position:absolute;
  }
  .main-nav li.has-dropdown:hover > .dropdown{
    display:flex;
  }
}
.past-event{
 opacity:.25 !important;
 filter:grayscale(100%) !important;
 transform:scale(.98);
}