@font-face {
    font-family: 'Roboto';
    src: url('../public/fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../public/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../public/fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../public/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --text-main: #333333;
    --text-light: #555555;
    --white: #FFFFFF;

    /* Button & Highlight Colors */
    --color-blue: #1a4f8b;
    --color-light-green: #8cc63f;
    --color-brown: #8c5e40;
    --color-dark-green: #2d7a3e;

    /* Background Colors */
    --bg-light-blue: #e8ecf1;
    --bg-beige: #f2ebd9;
    --bg-footer: #2b6495;

    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light-blue);
}

.page-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 3px;
    margin-top: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    filter: brightness(1.1);
}

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

.btn-brown {
    background-color: var(--color-brown);
}

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

/* Header & Nav */
#main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 180px;
    transition: height 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

.logo {
    /*position: absolute;
    left: 0;
    top: 0;*/
    height: 100%;
}

.logo a {
    display: block;
    height: 100%;
}

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

.desktop-nav {
    width: calc(85% - 450px);
    margin: 0 auto;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--color-blue);
    font-weight: 500;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 5px;
    text-transform: uppercase;
}

/* Default underline (hidden initially) */
.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--hover-color, var(--color-blue));
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

/* The hover colors will be applied via JS reading data-color */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-blue);
}

.mobile-nav {
    display: none;
    background-color: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--color-blue);
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a:focus {
    text-decoration: underline;
}

.mobile-nav a.active {
    font-weight: 800;
}

/* Hero Section */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-overlay h1,
.hero-overlay h2 {
    font-size: 3rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-image-full {
    width: 100%;
    height: auto;
}

/* Quality Section */
.quality-section {
    display: flex;
    background-color: var(--bg-light-blue);
    align-items: stretch;
}

.quality-text-area {
    flex: 1;
    padding: 4rem 2rem 4rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quality-images-area {
    flex: 1;
    display: flex;
}

.quality-images-area .img-wrapper {
    flex: 1 0.2 848px;
}

.quality-images-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brand Sections (Allgäu & Alpen) */
.brand-section {
    padding: 4rem 0;
}

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

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

.brand-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.brand-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.brand-logo img {
    max-width: 300px;
    height: auto;
}

.brand-text {
    flex: 2;
}

.brand-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 1.5rem;
    width: 100%;
}

.brand-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Partner Section */
.partner-section {
    padding: 3rem 0;
    background-color: var(--white);
}

.partner-section h3 {
    text-align: left;
    margin-bottom: 2rem;
    text-transform: none;
    font-weight: 500;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: calc(200px * 104);
    /* based on 52 images duped */
    animation: scroll 55s linear infinite;
    align-items: center;
}

.marquee-track-produkte {
    display: flex;
    width: calc(200px * 22);
    /* based on 11 images duped */
    animation: scroll-produkte 45s linear infinite;
    align-items: center;
}

.marquee-track img,
.marquee-track-produkte img {
    width: 160px;
    margin: 0 20px;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 52 + 100vw));
    }
}

@keyframes scroll-produkte {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 22 + 100vw));
    }
}

/* Image Gallery Section */
.image-gallery-section {
    display: flex;
    width: 100%;
}

.gallery-img {
    flex: 1;
    height: 300px;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Sidebar */
.contact-sidebar {
    position: fixed;
    right: 0;
    top: 200px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: var(--color-blue);
    color: var(--white);
    text-decoration: none;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    /* Move 100% to the right, but pull back by 60px (icon width + padding) */
    transform: translateX(calc(100% - 60px));
    transition: transform 0.4s ease;
    width: 280px;
}

.contact-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    min-width: 40px;
}

.contact-item .icon img {
    height: 35px;
    width: auto;
    border-radius: 50%;
}

.contact-item .text {
    white-space: nowrap;
    font-weight: 500;
}

.contact-item:hover,
.contact-item:focus-visible,
.contact-item:focus-within {
    transform: translateX(0);
}

/* Footer */
#main-footer {
    background-color: var(--bg-footer);
    color: var(--white);
    padding: 0 0 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1420px) {
    .desktop-nav {
        width: calc(90% - 450px);
    }
}

@media (max-width: 1340px) {
    .desktop-nav {
        width: calc(95% - 450px);
    }

    .desktop-nav a {
        font-size: 1.05rem;
    }
}

@media (max-width: 1280px) {
    #main-header {
        height: 110px;
    }

    .desktop-nav {
        width: calc(90% - 275px);
    }

    .desktop-nav ul {
        gap: 1rem;
    }

    .desktop-nav a {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        margin-right: 40px;
    }

    .quality-section {
        flex-direction: column;
    }

    .quality-text-area {
        padding: 3rem 2rem;
    }

    .brand-container {
        flex-direction: column;
        text-align: center;
    }

    .brand-logo {
        justify-content: center;
    }

    .quality-images-area .img-wrapper {
        flex: 1;
    }

}

@media (max-width: 768px) {

    .hero-overlay h2 {
        font-size: 2rem;
    }

    .image-gallery-section {
        flex-wrap: wrap;
    }

    .gallery-img {
        flex: 50%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        align-items: center;
    }

    .brand-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ========================================= */
/* Reusable Utility Classes & Component Styles */
/* ========================================= */

.text-center { text-align: center; }
.nav-link-multiline { display: inline-block; line-height: 1.2; }
.section-padding { padding: 4rem 0; }
.section-title { font-size: 2.5rem; color: var(--text-main); font-weight: 500; margin-bottom: 2rem; }
.section-title-large-margin { font-size: 2.5rem; color: var(--text-main); font-weight: 500; margin-bottom: 3rem; }
.section-title-top-margin { font-size: 2.5rem; color: var(--text-main); font-weight: 500; margin-top: 4rem; margin-bottom: 3rem; }
.hero-image-full { width: 100%; height: auto; display: block; object-fit: cover; }
.list-unstyled-large { list-style: none; padding-left: 0; font-size: 1.1rem; line-height: 2; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; text-align: center; }
.img-fluid { max-width: 100%; height: auto; }
.intro-text { font-size: 1.1rem; line-height: 1.6; color: var(--text-main); margin-bottom: 2rem; }
.intro-text-no-margin { font-size: 1.1rem; line-height: 1.6; color: var(--text-main); margin-bottom: 0; }
.btn-primary { background-color: #1a4f8b; color: white; padding: 10px 20px; text-decoration: none; display: inline-block; border-radius: 5px; }

/* Sortiment Styles */
.sortiment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.sortiment-item { position: relative; border: 1px solid #eee; border-radius: 5px; overflow: hidden; aspect-ratio: 4/2; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.sortiment-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.sortiment-icon, .sortiment-photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.sortiment-icon { opacity: 0; }
.sortiment-item:hover .sortiment-icon { opacity: 1; }
.sortiment-item:hover .sortiment-photo { opacity: 0; }

.hero-slider { position: relative; width: 100%; overflow: hidden; }
.hero-slider-inner { display: flex; transition: transform 0.5s ease-in-out; }
.hero-slider-item { min-width: 100%; box-sizing: border-box; }
.hero-slider-item img { width: 100%; display: block; object-fit: cover; }
.slider-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); cursor: pointer; border: none; padding: 0; }
.slider-dot.active { background-color: white; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.4); color: white; border: none; padding: 15px 20px; cursor: pointer; font-size: 24px; transition: background 0.3s ease; }
.slider-btn:hover { background: rgba(0, 0, 0, 0.7); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.filter-section { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn { padding: 0.6rem 1.5rem; border: 1px solid #ddd; background: white; border-radius: 30px; cursor: pointer; font-weight: 500; color: var(--text-main); transition: var(--transition); }
.filter-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.filter-btn.active { background-color: var(--color-blue); color: white; border-color: var(--color-blue); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: white; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-img-wrapper { height: 200px; width: 100%; overflow: hidden; border-bottom: 1px solid #eee; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; background: #fff; }
.product-info { padding: 1.5rem; }
.product-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.product-desc { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1rem; line-height: 1.5; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.icon-tag { width: 40px; height: 40px; object-fit: contain; }

/* Timeline & Team (from ueber-uns.html) */
.timeline { display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem 2rem; margin-top: 2rem; }
.timeline-year { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.timeline-text { font-size: 1.1rem; line-height: 1.6; margin-bottom: 0; }
.afmo-media-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}
.afmo-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}
.afmo-audio-box {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.afmo-audio-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.afmo-audio-player {
    height: 34px;
    max-width: 260px;
    outline: none;
}
.about-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #000;
}
.about-video-player {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2rem; }
.team-member { text-align: center; }
.team-member img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1rem; }
.team-member-name { font-weight: 700; margin: 0; }
.team-member-role { color: var(--text-light); margin: 0; }

/* Additional Utilities */
.flex-center-gap { display: flex; gap: 2rem; justify-content: center; margin-top: 2rem; }
.grid-2col-gap2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-2col-gap3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.obj-fit-cover { object-fit: cover; }
.link-list-header { color: #eab626; border-bottom: 2px solid #eab626; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.list-unstyled { list-style-type: none; padding: 0; }
.list-item-spacing { margin-bottom: 10px; }
.link-primary-dark { color: var(--text-main); text-decoration: none; font-weight: 500; }
.section-padding-top { padding: 4rem 0 0 0; }
.section-white-no-bottom { background-color: var(--white); padding-bottom: 0; }
.mt-2rem { margin-top: 2rem; }
.flex-center-padding { display: flex; gap: 2rem; justify-content: center; padding: 2rem 0; }

/* ========================================= */
/* Legal Pages (Impressum & Datenschutz)     */
/* ========================================= */
.legal-page {
    padding: 3rem 0 5rem 0;
    background-color: var(--white);
}

.legal-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.legal-title {
    font-size: 2.3rem;
    color: var(--color-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--bg-beige);
}

.legal-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.legal-section-title {
    font-size: 1.35rem;
    color: var(--color-blue);
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-subsection-title {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}

.legal-subsubsection-title {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.legal-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--color-blue);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

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

.legal-card strong {
    color: var(--color-blue);
}

.legal-notice {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-left: 4px solid #eab308;
    border-radius: 6px;
    padding: 1.15rem 1.35rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-highlight-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #475569;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.legal-list {
    margin: 0.75rem 0 1.25rem 1.5rem;
    line-height: 1.7;
}

.legal-list li {
    margin-bottom: 0.35rem;
}

.legal-source {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.88rem;
    color: var(--text-light);
}

.legal-source a {
    color: var(--color-blue);
    text-decoration: underline;
}

/* Barrierefreiheit: Bewegung reduzieren (prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
    .marquee-track,
    .marquee-track-produkte {
        animation: none !important;
    }
    * {
        scroll-behavior: auto !important;
    }
}


