 
@font-face {
    font-family: 'GosmickSans';
    src: url("../fonts/GosmickSans/GosmickSansBoldOblique.woff2") format('woff2'),
        url("../fonts/GosmickSans/GosmickSansBoldOblique.woff") format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GosmickSans';
    src: url('../fonts/GosmickSans/GosmickSans.woff2') format('woff2'),
        url('../fonts/GosmickSans/GosmickSans.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GosmickSans';
    src: url('../fonts/GosmickSans/GosmickSansOblique.woff2') format('woff2'),
        url('../fonts/GosmickSans/GosmickSansOblique.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'GosmickSans';
    src: url('../fonts/GosmickSans/GosmickSansBold.woff2') format('woff2'),
        url('../fonts/GosmickSans/GosmickSansBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section:nth-child(odd) {
    background-color: #f5f7f6;
}

.section:nth-child(even) {
    background-color: #ffffff;
}


/* Header */

.site-header-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 0px;
}

.site-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    background: white;
    background-color: rgb(255, 255, 255);
    backdrop-filter: blur(6px); 
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    z-index: 1000;
    padding: 0 16px;
    border-radius: 8px;
    
}

.header-left {
    display: flex;
    align-items: center;
}
.header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 24px;
    z-index: 1001;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
}

/* mobile Navigation standardmäßig aus */
.mobile-nav,
.mobile-nav-overlay { 
    display: none;
}

/* Logo */
.header-logo {
    width: auto;
    height: auto;
    min-width: 120px;
    max-width: 120px;
}

/* Smartphone Navigation */
@media (max-width: 768px) {

    .header-logo {
        max-width: 220px;
        min-width: 120px;
        
    }

    .header-nav {
        display: none;
    }

    .burger {
        display: flex;         /* Mobile: sichtbar*/
        margin-left: auto;      /* ganz rechts */
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 2px;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.25);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 998;
    }

    .mobile-nav {
        position: fixed;
        top: 140px;
        right: -260px;
        width: min(80vw, 220px);
        height: calc(100vh - 220px);
        background: #2f6f4e;
        display: flex;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .mobile-nav a {
        padding: 16px 24px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        font-family: "GosmickSans", bold;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* Kleine Handys */
@media (max-width: 480px) {
    .header-logo {
        max-width: 220px;
        min-width: 120px;
    }
    .burger {
        width: 24px;
        height: 18px;
    }
}

/* Sehr kleine Handys */
@media (max-width: 360px) {
    .header-logo {
        max-width: 220px;
        min-width: 120px;
    }
    .burger {
        width: 20px;
        height: 16px;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .header-logo {
        max-width: 100px;
    }
    .burger {
        width: 26px;
        height: 18px;
    }
}

.header-nav a {

    text-decoration: none;
    color: #222;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: "GosmickSans", Bold;
    font-weight: 1000;
    font-size: 28px;
}

.header-nav a.active {
    opacity: 1;
    font-weight: 1600;
    border-bottom: 2px solid white;    
}

.header-right {
    width: 120px;
}

section {
    scroll-margin-top: 120px;
}

h1, h2, h3 {
    font-family: "GosmickSans", Bold;
    font-weight: 700;
    color: white;
    
}
p {
    font-family: "GosmickSans", regular;
    font-weight: 500;
    color: white;
}

#home {
    height: calc(100vh - 110px);
}

.home-vertical {
    height: 100%;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #bfa78a;
    padding: 6vw;
    flex-direction: column;
    justify-content: center;
}

.home-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    width: 100%;
}

.carousel {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.carousel-item.active {
    z-index: 2;
    transform: translateX(0);
    opacity: 1;
}

/* Vorschau rechts */
.carousel-item.preview {
    opacity: 0.8;
    z-index: 1;
    transform: translateX(120%);  /* startet außerhalb */
    cursor: pointer;
    filter: grayscale(70%) brightness(0.7);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Vorschau rückt ein */
.carousel-item.preview.entering {
  transform: translateX(25%); /* ragt 25% in den Bildschirm */
}

body { 
    
    margin: 0;
    padding-top: 110px;
    overflow-x: hidden;
}

.header-left::after {
    content: "";
    width: 120px;
}


/* Fade */
.fade-in {
    opacity: 0;
    transform: translate(20px);
    transition: opacity 0.6s ease, transform0.6s ease;
}

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