/* ==========================================
   MANSCHUKO MANCHING
   style.css
========================================== */

/* ==========================================
   FARBEN
========================================== */

:root{

    --primary:#7A0F18;
    --secondary:#A31621;

    --gold:#bf2434;
    --gold-hover:#B71C2C;

    --white:#ffffff;
    --light:#F8F8F8;
    --gray:#d9d9d9;
    --text:#222222;

    --shadow:0 15px 35px rgba(122,15,24,.18);
    --radius:16px;
    --transition:.3s ease;
}

/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: "Poppins", Arial, sans-serif;
    color:var(--text);
    background:var(--light);
    animation:pageFadeIn .3s ease-out both;
}

.skip-link{
    position:fixed;
    right:1rem;
    bottom:1rem;
    z-index:10000;
    padding:12px 16px;
    color:var(--white);
    background:var(--primary);
    border-radius:4px;
    transform:translateY(calc(100% + 1rem));
}

.skip-link:focus{
    transform:translateY(0);
    outline:3px solid var(--gold);
    outline-offset:3px;
}

@keyframes pageFadeIn{
    from{opacity:.9;}
    to{opacity:1;}
}

@media (prefers-reduced-motion: reduce){
    body{
        animation:none;
    }
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================================
   CONTAINER
========================================== */

.container{
    width:min(1200px,90%);
    margin:auto;
}

/* ==========================================
   BUTTONS
========================================== */

.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    padding:15px 35px;
    border-radius:40px;
    background:white;
    color:var(--primary);
    font-weight:600;
    transition:var(--transition);
    text-align:center;
}

.btn:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.btn-gold{
    background:var(--gold);
    color:white;
}

.btn-gold:hover{
    background:var(--gold-hover);
}

/* ==========================================
   NAVIGATION
========================================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: transparent;
}

.navbar {
  width: 100%;
    height: 90px;
  min-height: 90px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
    background-color: var(--primary);
}

.logo{
    z-index: 2;
    position: absolute;
    left: 20px;
    margin-right: 0;
}

.logo img{
    height: 70px;
}

.mitglied-btn,
.mitglied-cta{
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.mitglied-cta:hover{
    transform: translateY(calc(-50% - 4px));
}

/* Links exakt mittig */
.nav-links{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:20px;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    width:max-content;
    padding: 10px 160px;
    max-width: calc(100% - 320px);
}

.nav-item {
    position:relative;
    white-space: nowrap;
}

.nav-item-row{
    display:flex;
    align-items:center;
    gap:4px;
}

.nav-submenu{
    display:none;
    margin:0;
    padding:0;
    list-style:none;
}

.nav-submenu-toggle{
    display:none;
}

.nav-links a{
    color:#fff;
    font-weight:500;
    position:relative;
    display:inline-flex;
    align-items:center;
    transition:.3s;
    text-align:center;
    line-height:1.2;
}

.nav-links a p{
    margin:0;
}

.nav-links a::after{
    content:"";
    position:absolute;
    bottom:-8px;
    left:0;
    width:0;
    height:2px;
    background:var(--text);
    transition:.3s;
}

.nav-links a:hover{
    color:var(--text);
}

.nav-links a:hover::after{
    width:100%;
}

.nav-links .active{
    color:var(--text);
}

.nav-links .active::after{
    width:100%;
}

/* Mitglied Button */
.mitglied-btn{
    background:var(--gold);
    color:white;
    padding:14px 28px;
    border-radius:40px;
    font-weight:600;
    transition:var(--transition);
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    margin-right:10px; /* Abstand nach rechts */
}

.mitglied-btn:hover{
    background:var(--gold-hover);
}

/* Hamburger */
.hamburger{
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    width:48px;
    height:48px;
    padding:10px;
    border:0;
    background:transparent;
    margin-right:10px;
    color:var(--text);
}

.hamburger span{
    width:30px;
    height:3px;
    background:rgb(255, 255, 255);
    transition:transform .2s ease;
}

.hamburger:focus-visible{
    outline:3px solid #fff;
    outline-offset:3px;
}

/* ==========================================
   NAV TITLE
========================================== */
.nav-title{
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 10px 0;
}

/* ==========================================
   home
========================================== */

.home{
    min-height:100vh;
    min-height:100svh;
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    background:
    linear-gradient(
        rgba(99,6,13,.82),
        rgba(46,6,9,.82)
    ),
    url(../images/home.jpg);
    background-size:cover;
    background-position:center;
}

.home-overlay{
    width:min(900px,90%);
}

.home h1{
    font-size:clamp(3rem,6vw,5.8rem);
    font-weight:800;
    margin-bottom:25px;
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp 1.2s forwards;
}

.home p{
    font-size:1.3rem;
    line-height:1.8;
    margin-bottom:45px;
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp 1.2s .3s forwards;
}

/* home Animation */
@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* home Overlay Effekt */
.home::after{
    content:"";
    position:absolute;
    inset:0;
    background:
    radial-gradient(
        circle,
        rgba(0,0,0,.15),
        rgba(0,0,0,.7)
    );
    z-index:0;
}

.home-overlay{
    position:relative;
    z-index:1;
}

/* ==========================================
   SEKTIONEN
========================================== */

section{
    padding:120px 0;
}

section h2{
    text-align:center;
    color:var(--primary);
    font-size:2.7rem;
    margin-bottom:30px;
}

section h3{
    text-align:center;
    color:var(--secondary);
    font-size:1.5rem;
    margin-bottom:30px;
}

.section{
    border:1px solid #f0e6d2;
    border-radius:var(--radius);
    background:white;
    box-shadow:var(--shadow);
    margin-bottom:24px;
    overflow:hidden;
}

.section summary{
    list-style:none;
    cursor:pointer;
    padding:22px 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:1.3rem;
    font-weight:700;
    color:var(--primary);
}

.section summary::-webkit-details-marker{
    display:none;
}

.section summary span{
    display:block;
}

.section summary::after{
    content:"";
    width:9px;
    height:9px;
    flex:none;
    border-right:2px solid var(--gold);
    border-bottom:2px solid var(--gold);
    transform:rotate(45deg);
    font-size:1rem;
    transition:transform .3s ease;
}

.section[open] > summary::after{
    transform:rotate(225deg);
}

.section .details-content{
    padding:0 28px 28px;
}

/* ==========================================
   PRE FOOTER
========================================== */

.footer-links{
    background:#651018;
    color:white;
    padding:70px 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:50px;
}

.footer-grid h3{
    margin-bottom:20px;
    color:white;
    font-size:1.2rem;
    position:relative;
    text-align:left;
}

.footer-grid h3::after{
    content:"";
    display:block;
    width:45px;
    height:3px;
    background:var(--gold);
    margin-top:8px;
}

.footer-grid a{
    display:block;
    color:rgba(255,255,255,.85);
    margin-bottom:12px;
    transition:.3s;
}

.footer-grid a:hover{
    color:white;
    transform:translateX(6px);
}

/* ==========================================
   FOOTER
========================================== */

footer{
    background:var(--primary);
    color:white;
    text-align:center;
    padding:60px 20px;
}

.footer-content{
    width:min(1200px,90%);
    margin:auto;
}

.footer-content h3{
    margin-bottom:15px;
    font-size:1.8rem;
}

.footer-content p{
    opacity:.85;
    margin:8px 0;
    line-height:1.6;
}

.footer-social {
  margin: 0.6rem 0;
  font-size: 0.95rem;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--gray);
  text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:1110px){

    .nav-links{
        display:none;
        position:fixed;
        top:98px;
        right:8px;
        left:auto;
        transform:none;
        width:min(300px, 82vw);
        max-width:none;
        max-height:calc(100vh - 98px);
        max-height:calc(100dvh - 98px);
        flex-direction:column;
        align-items:stretch;
        justify-content:flex-start;
        overflow-y:auto;
        overscroll-behavior:contain;
        background:var(--primary);
        padding:0;
        margin:0;
        gap:4px;
        z-index:1001;
        box-shadow:var(--shadow);
        border-radius:16px;
    }

    .nav-links.active{
        display:flex;
        padding:8px;
    }

    .nav-item{
        width:100%;
        white-space:normal;
    }

    .nav-item-row{
        width:100%;
        gap:4px;
    }

    .nav-item-row > a{
        flex:1;
        min-width:0;
        min-height:42px;
        padding:8px 10px;
        border-radius:6px;
        font-size:.95rem;
        text-align:left;
    }

    .nav-item-row > a::after{
        display:none;
    }

    .nav-item-row > a:hover,
    .nav-item-row > a:focus-visible{
        background:rgba(255,255,255,.12);
        color:var(--white);
    }

    .nav-submenu-toggle{
        display:grid;
        flex:0 0 44px;
        width:44px;
        height:44px;
        place-items:center;
        border:0;
        border-radius:6px;
        background:transparent;
        color:var(--white);
        cursor:pointer;
    }

    .nav-submenu-toggle:hover,
    .nav-submenu-toggle:focus-visible{
        background:rgba(255,255,255,.12);
    }

    .nav-submenu-toggle:focus-visible{
        outline:2px solid var(--white);
        outline-offset:1px;
    }

    .nav-submenu-toggle span{
        position:relative;
        width:14px;
        height:14px;
    }

    .nav-submenu-toggle span::before,
    .nav-submenu-toggle span::after{
        content:"";
        position:absolute;
        top:6px;
        left:2px;
        width:10px;
        height:2px;
        border-radius:2px;
        background:currentColor;
        transition:transform .2s ease;
    }

    .nav-submenu-toggle span::after{
        transform:rotate(90deg);
    }

    .nav-item.is-expanded .nav-submenu-toggle span::after{
        transform:rotate(0);
    }

    .nav-submenu{
        flex-direction:column;
        gap:2px;
        margin:0 0 5px 10px;
        padding:3px 0 3px 8px;
        border-left:1px solid rgba(255,255,255,.28);
    }

    .nav-item.is-expanded > .nav-submenu{
        display:flex;
    }

    .nav-submenu li{
        width:100%;
        white-space:normal;
    }

    .nav-submenu a{
        display:flex;
        min-height:40px;
        width:100%;
        padding:6px 8px;
        border-radius:5px;
        color:rgba(255,255,255,.9);
        font-size:.92rem;
        line-height:1.35;
        overflow-wrap:anywhere;
        justify-content:flex-start;
        text-align:left;
    }

    .nav-submenu a::after{
        display:none;
    }

    .nav-submenu a:hover,
    .nav-submenu a:focus-visible{
        background:rgba(255,255,255,.12);
        color:var(--white);
    }

    .hamburger{
        display:flex;
        position:absolute;
        right:20px;
        top:50%;
        transform:translateY(-50%);
    }

    .mitglied-btn{
        display:none;
    }

    .mitglied-cta{
        display:none;
    }

}

@media(max-width:900px){

    html{
        scroll-behavior:auto;
    }
    
    .navbar{
        height:90px;
        min-height:90px;
        padding:0 20px;
    }

    /* Navigation */
    .nav-links{
        display:none;
    }



    /* home */

    .home h1{
        font-size:3rem;
    }

    .home p{
        font-size:1.05rem;
    }

    section{
        padding:90px 0;
    }
}

@media(max-width:600px){
    section h2{
        font-size:2.1rem;
    }

    .home h1{
        font-size:2.5rem;
    }

    .btn{
        width:100%;
        max-width:300px;
    }
}

@media(max-width:450px){
    .logo img{
        height:55px;
    }

    .home{
        padding:120px 20px 80px;
    }

    .home h1{
        font-size:2.2rem;
    }

    .home p{
        font-size:1rem;
    }

}

/* ==========================================
   Impressum
========================================== */
.rückblick-container{
    max-width:1000px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:30px;
    align-items:center;
}

.back-button {
        position: fixed;
        top: 20px;
        left: 20px;

        width: 50px;
        height: 50px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(156, 0, 13, 0.7);
        border-radius: 50%;

        color: white;
        text-decoration: none;

        z-index: 1000;

        transition: transform 0.2s ease, background 0.2s ease;
    }

.back-button .arrow {
    display:block;
    width:24px;
    height:24px;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.08);
}

.back-button:active {
    transform: scale(0.95);
}

.back-button:focus-visible {
    outline: 3px solid rgba(156, 0, 13, 0.45);
    outline-offset: 3px;
}
