/* ==========================================================================
   EINSTELLUNGS-BEREICH
   ========================================================================== */
:root {
    --menu-top-distance: 10px; 
    --intro-bottom-height: 18vh;
    --intro-top-height: 82vh;
}

/* ==========================================================================
   0. SCHRIFTART ENTWICKLUNG (Chivo Font-Face Integration)
   ========================================================================== */

@font-face {
  font-display: swap;
  font-family: 'Chivo';
  font-style: normal;
  font-weight: 400;
  src: url('font/chivo-v21-latin-regular.woff2') format('woff2'),
       url('font/chivo-v21-latin-regular.ttf') format('truetype');
}

/* ==========================================================================
   1. CORE SYSTEM & SCROLL SNAP
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    background-color: #1b1b1b;
}

.kursiv {font-style: italic; font-weight: 600;}

h1, h2, .content.box h2, #intro .intro-bottom h2 {
    font-family: 'Chivo', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: normal;
    letter-spacing: 1px;
}

section.main {
    width: 100%;
    height: 100vh;
	height: 100dvh;
    min-height: 100vh;
	min-height: 100dvh;
    max-height: 100vh;
	max-height: 100dvh;
    display: flex;
    position: relative;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (DESKTOP)
   ========================================================================== */
#header {
    position: fixed;
    top: 0 !important; 
    left: 0;
    width: 100%;
    height: 150px; 
    z-index: 1000;
    display: flex;
    align-items: flex-start; 
    justify-content: space-between;
    padding: var(--menu-top-distance) 50px 0 50px !important; 
    box-sizing: border-box;
    background: transparent !important;
}

#header a {
    border: none;
    text-decoration: none;
}

#header a img {
    display: block;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 16px 12px 12px 12px;
    border-radius: 4px;
}

#header nav {
    font-family: 'Chivo', 'Helvetica Neue', Arial, sans-serif !important;
    margin-top: 15px !important;
    background-color: rgba(255, 255, 255, 0.0) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 8px 15px;
    border-radius: 4px;
}

#header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

#header nav ul li a {
    color: #2f4f4f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

#header nav ul li a:hover {
    color: #8c624d;
}

.hamburger-icon {
    display: none;
}

/* ==========================================================================
   FARBWECHSEL FÜR SEKTION 2 & 3 & 6 VIA CSS
   ========================================================================== */

/* Wenn die dunkle Sektion aktiv ist, schalten die Menülinks auf Weiss um */
#header.dark-bg-active nav ul li a {
    color: #ffffff !important;
}

/* Der Hover-Effekt bleibt voll aktiv und überschreibt die weisse Farbe beim Drüberfahren */
#header.dark-bg-active nav ul li a:hover {
    color: #2f4f4f !important;
}

/* ==========================================================================
   3. INTRO ABSCHNITT
   ========================================================================== */
#intro {
    flex-direction: column;
    background: #ffffff;
}

#intro .intro-top {
    flex: 0 0 var(--intro-top-height) !important;
    height: var(--intro-top-height) !important;
    width: 100%;
    background-image: url('images/intro.jpg');
    background-size: cover;
    background-position: center;
}

#intro .intro-bottom {
    flex: 0 0 var(--intro-bottom-height) !important;
    height: var(--intro-bottom-height) !important;
    width: 100%;
    background-color: rgba(229, 211, 192, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 10px 0;
    box-sizing: border-box;
}

#intro .intro-bottom .content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

#intro .intro-bottom h2 {
    font-size: 30px;
    color: #2f4f4f; 
    margin: 5px 0 5px 0;
}

#intro .intro-bottom p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

/* ==========================================================================
   4. STANDARD INHALTS-ABSCHNITTE & SEITLICHER HINEINFAHR-EFFEKT
   ========================================================================== */
#one   { background-image: url('images/one.jpg'); }
#two   { background-image: url('images/two.jpg'); }
#three { background-image: url('images/three.jpg'); }
#four  { background-image: url('images/four.jpg'); }
#five  { background-image: url('images/five.jpg'); }
#six   { background-image: url('images/six.jpg'); }

section.main { 
    justify-content: center !important; 
    align-items: center !important; 
}

.content.box {
    background-color: rgba(229, 211, 192, 0.94);
    padding: 40px 50px 30px 50px;
    margin: 0 100px;
    max-width: 750px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #333333;
    z-index: 5;
    opacity: 0;
    transition: transform 1s cubic-bezier(0.1, 1, 0.3, 1.1), opacity 0.8s ease-in-out;

    /* ==========================================================================
       NEU: DESKTOP-HOEHLENBEGRENZUNG GEGEN ÜBERLAPPUNG (HEADER & PFEIL)
       ========================================================================== */
    
    /* 1. Verschiebt die gesamte Box auf dem Desktop mathematisch unter das Logo */
    margin-top: 140px !important; 
    
    /* 2. Begrenzt die Höhe (100vh abzüglich 260px Platz für Header oben und Pfeil unten) */
    max-height: calc(100vh - 260px) !important; 
    box-sizing: border-box !important;
    
    /* 3. Aktiviert den dezenten Scrollbalken, falls der Text für den Screen zu lang ist */
    overflow-y: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
	
	/* Deaktiviert die Scrollbalken für Chrome, Safari, Opera und alle neuen Edge-Browser [1, 2] */
	.content.box::-webkit-scrollbar {
	    display: none !important;
	    width: 0 !important;
	    height: 0 !important;
	    background: transparent !important;
	}
    
    /* 4. Schützt den Abstand zum Navigationspfeil am Sektionsboden */
    margin-bottom: 90px !important; 
}

section.main .content.box { 
    transform: translateX(250px); 
}

.content.box.is-visible {
    opacity: 1;
    transform: translateX(0) !important;
}

.content.box h2 {
    font-size: 24px;
    margin-top: 0;
    color: #1b1b1b;
    text-transform: uppercase;
    border-bottom: 2px solid #8c624d;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.content.box p {
    font-size: 15px;
    line-height: 1.5;
    color: #555555;
}

.content.box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.content.box ul li {
    font-size: 15px;
    padding: 5px 0;
    color: #444444;
    font-weight: 500;
}

.content.box a {
    color: #934520;
    text-decoration: underline;
}

#one > div > h2{border-bottom: 1px solid #2f4f4f; color:#2f4f4f;}
#one > div > p{color:#2f4f4f;}
#two > div > h2{border-bottom: 1px solid #934520; color:#934520;}
#two > div > p{color:#934520;}
#three > div > h2{border-bottom: 1px solid #2f4f4f; color:#2f4f4f;}
#three > div > p{color:#2f4f4f;}
#four > div > h2{border-bottom: 1px solid #934520; color:#934520;}
#four > div > p{color:#934520;}
#five > div > h2{border-bottom: 1px solid #2f4f4f; color:#2f4f4f;}
#five > div > p{color:#2f4f4f;}
#six > div > h2{border-bottom: 1px solid #934520; color:#934520;}
#six > div > p{color:#934520;}


/* ==========================================================================
   5. INTERAKTIVES ACCORDION
   ========================================================================== */
details.accordion-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

details.accordion-item summary {
    font-size: 16px;
    font-weight: 600;
    color: #8c624d;
    cursor: pointer;
    outline: none;
    list-style: none;
    position: relative;
    padding-right: 20px;
}

details.accordion-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 18px;
}

details[open].accordion-item summary::after {
    content: '−';
}

details.accordion-item p {
    margin-top: 10px !important;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. EXAKTE ORIGINAL-PFEILE
   ========================================================================== */
.button.style2.down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50%;
    border: 1px solid rgba(47, 79, 79, 0.6);
    background-color: transparent;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    z-index: 20;
}

.button.style2.down::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 16px;
    background-color: #333333;
    top: 17px;
    transition: background-color 0.3s;
}

.button.style2.down::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    transform: rotate(45deg);
    top: 25px;
    transition: border-color 0.3s;
}

.button.style2.down.anchored {
    position: absolute;
    bottom: 40px;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.button.style2.down.anchored::before { background-color: #ffffff; }
.button.style2.down.anchored::after { border-right: 1px solid #ffffff; border-bottom: 1px solid #ffffff; }

.button.style2.down:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #8c624d !important; }
.button.style2.down:hover::before { background-color: #8c624d !important; }
.button.style2.down:hover::after { border-color: #8c624d !important; }

.custom-bounce { animation: arrowBounce 2.5s infinite; }
@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-6px) translateX(-50%); }
    60% { transform: translateY(-3px) translateX(-50%); }
}

#intro .custom-bounce { animation: introBounce 2.5s infinite; }
@keyframes introBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

.badge-container {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   7. SITE FOOTER
   ========================================================================== */
#footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    z-index: 10;
}

#footer a { color: #ffffff; text-decoration: none; }
#footer ul { list-style: none; padding: 0; margin: 5px 0; display: flex; justify-content: center; gap: 15px; }

/* ===========================
   8. RESPONSIVE MEDIA QUERIES
   =========================== */

@media (max-width: 1200px) {
    #header { 
        top: 0px !important;
        height: 120px !important; 
        padding: 10px 30px 0 30px !important;
        position: fixed !important;
        align-items: center; 
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
    
    #header img {
        width: 108px !important;  
        height: 100px !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
    }

    #header nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 260px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.75) !important; 
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        padding-top: 130px;
        transition: right 0.4s cubic-bezier(0.1, 1, 0.1, 1);
        z-index: 999;
        display: block !important;
        margin-top: 0 !important;
    }

    #header nav.is-open {
        right: 0 !important;
    }

	#header.dark-bg-active nav.is-open ul li a {
	        color: #333333 !important;
	    }

	    #header.dark-bg-active nav.is-open ul li a:hover {
	        color: #8c624d !important;
	    }
		
    #header nav ul {
        flex-direction: column !important;
        gap: 25px !important;
        align-items: center;
    }

    #header nav ul li a {
        font-size: 16px !important;
        color: #333333 !important;
    }

    .hamburger-icon {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 1001; 
        position: relative;
    }

    .hamburger-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333333;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

	/* ==========================================================================
	   HAMBURGER-FARBWECHSEL FÜR SEKTION 2 & 3 & 6
	   ========================================================================== */

	/* Wenn Sektion 2, 3 oder 6 aktiv ist, werden die drei Striche des Hamburgers weiss */
	#header.dark-bg-active .hamburger-icon span {
	    background-color: #ffffff !important;
	}

	#header.dark-bg-active .hamburger-icon.is-active span {
	    background-color: #333333 !important;
	}

    .hamburger-icon.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-icon.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-icon.is-active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}

@media (max-width: 768px) {
    #intro {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
    }

    #intro .intro-top { 
        flex: 1 1 auto !important; 
        height: auto !important; 
        width: 100% !important;
        background-image: url('images/intro.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    #intro .intro-bottom { 
        flex: 0 0 auto !important; 
        height: auto !important; 
        width: 100% !important;
        background-color: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; 
        padding: 20px 0 15px 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    #intro .intro-bottom h2 { 
        font-size: 20px !important; 
        margin: 0 0 8px 0 !important;
        padding: 0 15px !important;
    }
    
    #intro .intro-bottom p {
        font-size: 14px !important;
        padding: 0 15px !important;
        margin-bottom: 75px !important;
    }
    
    #intro .intro-bottom footer {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: auto !important;
    }

    #intro .intro-bottom footer .button.style2.down {
        width: 54px !important;
        height: 54px !important;
        transform: none !important;
        animation: introBounce 2.5s infinite !important;
    }
    
    #intro .intro-bottom footer .button.style2.down::before {
        height: 16px !important;
        top: 16px !important;
    }
    #intro .intro-bottom footer .button.style2.down::after {
        top: 25px !important;
        width: 8px !important;
        height: 8px !important;
    }
    
    section.main { 
        justify-content: center !important; 
        align-items: center !important; 
    }
    
    .content.box { 
        margin: 10px !important; 
        max-width: calc(100% - 20px) !important; 
        opacity: 1 !important; 
        transform: none !important; 
        transition: none !important; 
        padding: 25px !important; 
        margin-top: 115px !important; 
        max-height: calc(100vh - 190px) !important; 
        max-height: calc(100dvh - 190px) !important; 
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important; 
        margin-bottom: 75px !important; 
    }
	
	/* Mobil-Ergänzung für Chrome/Safari auf Smartphones [1] */
	  .content.box::-webkit-scrollbar {
	      display: none !important;
	    }


    #one .content.box h2 { border-bottom: 1px solid #2f4f4f !important; }
    #two .content.box h2 { border-bottom: 1px solid #934520 !important; }
    #three .content.box h2 { border-bottom: 1px solid #934520 !important; }
    #four .content.box h2 { border-bottom: 1px solid #2f4f4f !important; }
    #five .content.box h2 { border-bottom: 1px solid #934520 !important; }
    #six .content.box h2 { border-bottom: 1px solid #934520 !important; }

    .button.style2.down.anchored { 
        display: flex !important; 
        position: absolute !important;
        left: 50% !important;
        bottom: 12px !important;
        width: 54px !important; 
        height: 54px !important;
        z-index: 99 !important;
        animation: mobileArrowBounce 2.5s infinite !important;
    }
    
    .button.style2.down.anchored::before { height: 16px; top: 16px; }
    .button.style2.down.anchored::after { top: 25px; width: 8px; height: 8px; }

    @keyframes mobileArrowBounce {
        0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
        40% { transform: translate(-50%, -6px); }
        60% { transform: translate(-50%, -3px); }
    }
    
    /* ==========================================================================
       FINALE KORREKTUR FÜR ABSCHNITT 5 & MOBIL-FOOTER
       ========================================================================== */
    #five { 
        height: 100vh !important; 
        height: 100dvh !important; 
        min-height: 100vh !important; 
        min-height: 100dvh !important; 
        max-height: 100vh !important; 
        max-height: 100dvh !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    #five .content.box {
        margin: 15px !important;
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
    }
    #five #footer { 
        position: absolute !important; 
        bottom: 15px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }
    
    #five #footer .menu li {
        color: rgba(51, 51, 51, 0.6) !important; 
        font-size: 11px !important;
    }

    #five #footer .menu li a {
        color: #8c624d !important; 
        text-decoration: none !important;
    }
}
