@font-face {
    font-family: 'Play';
    src: url('../fonts/Play-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Flex';
    src: url('../fonts/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ======================= Farb- und Stilvariablen ======================= */
:root {
    /* Farben */
    --hauptfarbe-1: #111111;
    --hauptfarbe-2: #222222;
    --hauptfarbe-3: #575756;
    --hauptfarbe-4: #6a6965;
    --hauptfarbe-5: #bdb8b4;
    --akzentfarbe: rgb(212, 16, 49);
    --sekund-farbe-1: #d4a47c;
    --sekund-farbe-2: #e7cdaa;
    --hintergrundfarbe-1: #f2f2f2;
    --hintergrundfarbe-5: #e4e8e8;
    --weiss: #fff;


    /* Fonts */
    --font-headline: 'Play', sans-serif;
    --font-subline: 'Play', sans-serif;
    --font-body: 'Roboto Flex', sans-serif;
    --font-megamenu: 'Play', sans-serif;

    /* Font Sizes - Header & Navigation */
    --font-nav-link: 16px;
    --font-tab-button: 14px;

    /* Font Sizes - Mega Menu */
    --font-megamenu-title: 17.6px;
    --font-megamenu-subtitle: 13.6px;
    --font-megamenu-text: 13.6px;

    /* Font Sizes - Sections */
    --font-section-headline: 34.4px;
    --font-section-subline: 25.6px;
    --font-section-text: 16px;

    /* Font Sizes - Footer */
    --font-footer-heading: 14px;
    --font-footer-text: 14px;

    /* Spacings */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 25px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;

    /* Gaps */
    --gap-nav: 30px;
    --gap-megamenu: 25px;
    --gap-content: 20px;
}

/* ======================= Allgemeine Stile & Reset ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body), sans-serif;
    color: var(--hauptfarbe-2);
    background-color: var(--weiss);
    line-height: 1.6;
    font-weight: 300;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--hauptfarbe-1);
    font-family: var(--font-headline), sans-serif;
    font-weight: 500;
}

h4, h5 {
    color: var(--hauptfarbe-1);
    font-family: var(--font-subline), sans-serif;
    font-weight: 500;
}

section h2 {
    font-size: var(--font-section-headline);
    font-weight: 500;
    color: var(--hauptfarbe-1);
}

section p.subline {
    color: var(--hauptfarbe-4);
    font-size: var(--font-section-subline);
    font-family: var(--font-subline), sans-serif;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

section p {
    color: var(--hauptfarbe-3);
    line-height: 1.7;
    font-size: var(--font-section-text);
    font-family: var(--font-body), sans-serif;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 9px 63px;
    background-color: transparent;
    color: var(--akzentfarbe);
    font-weight: normal;
    font-size: var(--font-section-text);
    font-family: var(--font-body), sans-serif;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--akzentfarbe);
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--hauptfarbe-1);
    border-color: var(--hauptfarbe-1);
}

.btn.btn-accent {
    background-color: transparent;
    border-color: var(--akzentfarbe);
    color: var(--akzentfarbe);
}

.btn.btn-accent:hover {
    background-color: transparent;
    color: var(--hauptfarbe-1);
    border-color: var(--hauptfarbe-1);
}

/* ======================= Header & Navigation ======================= */
header {
    background-color: var(--weiss);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 35px 0;
    height: auto;
    min-height: 70px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--hauptfarbe-1);
    letter-spacing: 1px;
    font-family: var(--font-headline), sans-serif;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img,
.logo .custom-logo {
    max-height: 30px;
    width: auto;
    height: auto;
    object-fit: contain;
}

img.custom-logo {
    height: 40px;
    width: auto;
}

header .logo img {
    max-height: 50px !important;
    width: auto !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.desktop-nav {
    display: flex;
    gap: var(--gap-nav);
    align-items: center;
}

.desktop-nav > li > a {
    font-size: var(--font-nav-link);
    font-family: var(--font-body), sans-serif;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) 0;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.desktop-nav > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--akzentfarbe);
    transition: width 0.3s ease;
}

.desktop-nav > li:hover > a {
    color: var(--akzentfarbe);
}

.desktop-nav > li > a:hover::after,
.desktop-nav > li.active > a::after,
.desktop-nav > li.mega-menu-open > a::after {
    width: 100%;
}

header nav > ul > li {
    position: relative;
}

header nav > ul > li > a {
    font-weight: 600;
    font-size: var(--font-nav-link);
    font-family: var(--font-body), sans-serif;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) 0;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

header nav > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--akzentfarbe);
    transition: width 0.3s ease;
}

header nav > ul > li:hover > a {
    color: var(--akzentfarbe);
}

header nav > ul > li > a:hover::after,
header nav > ul > li.active > a::after,
header nav > ul > li.mega-menu-open > a::after {
    width: 100%;
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #575756;
    color: var(--weiss);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.search-icon:hover {
    background-color: var(--hauptfarbe-3);
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

.search-box {
    width: 0;
    opacity: 0;
    visibility: hidden;
    padding: var(--spacing-xs) 18px;
    margin-right: -20px;
    padding-right: 28px;
    transition: all 0.4s ease;
    font-family: var(--font-body), sans-serif;
    position: relative;
    z-index: 1;
    border: none;
    border-radius: 20px;
}

.search-box.active {
    width: 220px;
    opacity: 1;
    visibility: visible;
    margin-right: 10px;
    margin-left: 20px;
}

/* Entfernt den schwarzen Standard-Rahmen beim Reinklicken */
.search-box:focus,
.mobile-search-input:focus {
    outline: none !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    margin-left: var(--spacing-sm);
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--hauptfarbe-1);
    margin: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
    top: 12px;
}

.hamburger span:nth-child(2) {
    top: 19px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

/* Aktives X */
.hamburger.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.hamburger.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ======================= Mobile Navigation (3 Ebenen) ======================= */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--weiss);
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 999;
    padding-top: 125px;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-search {
    padding: var(--spacing-md) 30px;
    border-bottom: 1px solid var(--hintergrundfarbe-5);
}

.mobile-search-input {
    width: 100%;
    padding: 12px var(--spacing-md);
    border: 1px solid var(--hintergrundfarbe-5);
    border-radius: 4px;
    font-family: var(--font-body), sans-serif;
    font-size: var(--font-footer-text);
    background-color: var(--hintergrundfarbe-1);
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--akzentfarbe);
    background-color: var(--weiss);
}

.mobile-search-input::placeholder {
    color: var(--hauptfarbe-4);
}

.mobile-nav-content > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-content > ul > li {
    border-bottom: 1px solid var(--hintergrundfarbe-5);
}

.mobile-nav-content > ul > li:last-child {
    border-bottom: none;
}

.mobile-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 30px;
    color: var(--hauptfarbe-1);
    font-weight: 600;
    font-size: var(--font-nav-link);
    font-family: var(--font-body), sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.mobile-nav-item:hover {
    background-color: var(--hintergrundfarbe-1);
    color: var(--akzentfarbe);
}

.mobile-nav-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--akzentfarbe);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-toggle.active {
    transform: rotate(45deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: var(--hintergrundfarbe-1);
}

.mobile-submenu.active {
    max-height: 2000px;
}

/* Stile für Level 1 */
.mobile-submenu .mobile-nav-item.level-1 {
    padding: var(--spacing-sm) 30px var(--spacing-sm) 45px;
    font-size: calc(var(--font-nav-link) - 1px);
    background-color: var(--hintergrundfarbe-1);
    border-bottom: 1px solid var(--hintergrundfarbe-5);
}
.mobile-submenu .mobile-nav-item.level-1:last-child {
    border-bottom: none;
}
.mobile-submenu .mobile-nav-item.level-1.is-link {
    justify-content: flex-start;
}

/* Stile für Level 2  */
.mobile-submenu.level-2 {
    background-color: #fafafa;
}

.mobile-submenu.level-2 a {
    display: block;
    padding: var(--spacing-sm) 30px var(--spacing-sm) 60px;
    color: var(--hauptfarbe-3);
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    font-weight: normal;
    border-bottom: 1px solid var(--hintergrundfarbe-5);
    transition: all 0.3s ease;
}

.mobile-submenu.level-2 a:last-child {
    border-bottom: none;
}

.mobile-submenu.level-2 a:hover {
    color: var(--akzentfarbe);
    background-color: var(--weiss);
    padding-left: 65px;
}

/* ======================= Mega Menü ======================= */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background-color: #ffffff9e;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-md) var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
}

.has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-tabs {
    display: flex;
    margin-bottom: var(--spacing-md);
    gap: 35px;
}

.mega-menu-heading a {
    color: var(--akzentfarbe);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.mega-menu-heading a:hover {
    color: var(--hauptfarbe-1);
}

.mega-menu-heading a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--hauptfarbe-1);
    transition: width 0.3s ease;
    margin-top: 2px;
}

.mega-menu-heading a:hover::after {
    width: 100%;
}

/* ======================= Mega Menü Tabs - Hover-Effekt ======================= */

.tab-button {
    background: none;
    border: none;
    outline: none;
    position: relative;
    padding-bottom: 5px;
    cursor: pointer;
}

.tab-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--akzentfarbe);
    transition: width 0.3s ease;
}

/* Animiert den Strich beim Hovern */
.tab-button:hover::after {
    width: 100%;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.mega-menu-content {
    display: flex;
    gap: var(--gap-megamenu);
}

/* ======================= 5. Mega-Menü Layout ======================= */

/* Haupt-Container für den Inhalt (links + rechts) */
.mega-menu-content {
    display: flex;
    gap: 25px;
}

/* Linke Spalte (Bild + Text) und Rechte Spalte */
.mega-menu-left,
.mega-menu-right {
    flex: 1;
    min-width: 0;
}

/* Container innerhalb der linken Spalte */
.mega-menu-left {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.mega-menu-image-wrapper {
    flex: 0 0 45%;
    max-width: 300px;
    height: 250px;
    background-color: var(--hintergrundfarbe-1);
    overflow: hidden;
}

.mega-menu-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.mega-menu-image-wrapper:hover img {
    transform: scale(1.05);
}

.mega-menu-left h3 {
    margin-bottom: 10px;
    font-size: var(--font-megamenu-title);
    color: var(--akzentfarbe);
    font-family: var(--font-megamenu), sans-serif;
    font-weight: normal;
}

.mega-menu-left p {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: var(--font-megamenu-text);
    color: var(--hauptfarbe-3);
    line-height: 1.5;
    font-family: var(--font-body), sans-serif;
}

.separator {
    width: 1px;
    background-color: var(--hintergrundfarbe-5);
    margin: 0 10px;
}

.mega-menu-right {
    flex: 1;
}

/* Zwei Spalten Layout für Produkte */
.mega-menu-two-columns {
    display: flex;
    gap: var(--spacing-md);
}

.mega-menu-two-columns .product-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Bildergalerie Grid - 3 Spalten */
.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    margin-bottom: var(--spacing-xs);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.gallery-item h5 {
    font-size: var(--font-megamenu-subtitle);
    color: var(--akzentfarbe);
    margin: 0;
    text-align: center;
    font-family: var(--font-megamenu), sans-serif;
}

/* =================================================================== */
/* --- Mega-Menü: Feste, quadratische Boxen mit Titel darunter --- */
/* =================================================================== */

/* Der Flex-Container, der die Items umbricht */
.mega-menu-right .image-gallery-grid.model-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Der Wrapper für ein einzelnes Item (Bild + Text) */
.model-category-list .gallery-item {
    width: 110px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Der quadratische Bild-Container */
.model-category-list .gallery-item a {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    background: #f0f0f0;
}

/* Das Bild selbst */
.model-category-list .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Der Titel unter dem Bild */
.model-category-list .gallery-item h5 {
    font-size: 13px;
    color: var(--akzentfarbe);
    margin: 0;
}

.model-category-list .gallery-item:hover img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-list li,
.simple-list li {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 3px;
}

.product-list li:hover,
.simple-list li:hover {
    background-color: var(--hintergrundfarbe-1);
}

.product-list h5,
.simple-list h5 {
    font-size: var(--font-megamenu-title);
    font-weight: normal;
    color: var(--akzentfarbe);
    font-family: var(--font-megamenu), sans-serif;
}

.product-list p,
.simple-list p {
    margin: 0;
    font-size: var(--font-megamenu-subtitle);
    color: var(--hauptfarbe-4);
    font-family: var(--font-body), sans-serif;
}

/* ======================= Hero Section ======================= */
.hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--weiss);
    padding: var(--spacing-lg) var(--spacing-md);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--weiss);
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-headline), sans-serif;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 750px;
    color: var(--hintergrundfarbe-5);
    margin: 0 auto var(--spacing-md);
    line-height: 1.6;
    font-family: var(--font-body), sans-serif;
}

/* ======================= Carousel Section ======================= */
.carousel-section {
    background-color: var(--hintergrundfarbe-1);
    padding: var(--spacing-xxl) 0;
    overflow: visible;
    overflow-x: hidden;
}

.carousel-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--spacing-lg);
    position: relative;
}

.carousel-header {
    margin-bottom: var(--spacing-xl);
}

.carousel-header h2,
.carousel-header p {
    text-align: left;
    margin-left: 0;
    max-width: 100%;
}

.carousel {
    position: relative;
    clip-path: inset(0 -100% 0 0);
}

.carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: none;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 300px;
    text-align: left;
}

.carousel-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

.carousel-slide h4 {
    font-size: 22px;
    color: var(--hauptfarbe-1);
    font-family: var(--font-headline), sans-serif;
}

.carousel-slide .subline {
    font-size: var(--font-section-text);
    color: var(--hauptfarbe-4);
    margin-bottom: 10px;
    font-family: var(--font-subline), sans-serif;
}

.carousel-slide .description {
    font-size: var(--font-footer-text);
    color: var(--hauptfarbe-3);
    line-height: 1.5;
    font-family: var(--font-body), sans-serif;
}

.carousel-dots {
    text-align: left;
    margin-top: var(--spacing-xl);
}

.carousel-track.grabbing {
    cursor: grabbing;
}
.carousel-track {
    cursor: grab;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--hauptfarbe-5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dot:hover {
    background-color: var(--hauptfarbe-3);
}

.dot.active {
    background-color: var(--hauptfarbe-1);
    width: 40px;
    border-radius: 5px;
}

/* ======================= Two Column Section ======================= */
.two-column-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.two-column-section.alt-layout {
    background-color: var(--hintergrundfarbe-1);
}

.two-column-section .column img {
    max-width: 100%;
}

.two-column-section .column h3 {
    font-size: var(--font-section-headline);
    line-height: 1.3;
    color: var(--hauptfarbe-1);
    font-family: var(--font-headline), sans-serif;
}

.two-column-section .column .subline {
    color: var(--hauptfarbe-4);
    font-size: var(--font-section-subline);
    font-family: var(--font-subline), sans-serif;
    margin-bottom: var(--spacing-md);
}

.two-column-section .column p {
    margin: 0 0 var(--spacing-md) 0;
    max-width: 100%;
}

/* ======================= Product Grid Section ======================= */
.product-grid-section {
    background-color: var(--weiss);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.product-grid img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-grid img:hover {
    transform: scale(1.05);
}

.product-grid-section-text {
    text-align: center;
}

/* ======================= Footer ======================= */
footer {
    background-color: #f4f4f4;
    color: var(--hauptfarbe-1);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: 0.2fr 1.55fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--akzentfarbe);
    margin-bottom: 5px;
    font-size: var(--font-footer-heading);
    font-family: var(--font-subline), sans-serif;
    font-weight: 600;
}

.footer-column h4.footer-heading-accent {
    color: var(--akzentfarbe);
}

.footer-column .logo {
    color: var(--hauptfarbe-1);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-headline), sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* Footer Logo Bild */
.footer-column .logo img {
    max-height: 30px;
    width: auto;
    height: auto;
}

.footer-column p {
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    color: var(--hauptfarbe-3);
    width: 75%;
    margin-top: 10px;
}

/* Kontakt-Info Tabelle */
.footer-column .contact-info {
    display: table;
    width: 100%;
}

.footer-column .contact-row {
    display: table-row;
}

.footer-column .contact-label {
    display: table-cell;
    white-space: nowrap;
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    color: var(--hauptfarbe-3);
    font-weight: normal;
}

.footer-column .contact-value {
    display: table-cell;
    padding: 4px 30px 0 0;
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    color: var(--hauptfarbe-3);
}

/* Links im Footer - Kontakt */
.footer-column .contact-value a {
    color: var(--hauptfarbe-3);
    transition: all 0.3s ease;
    position: relative;
    display: inline;
    text-decoration: none;
}

.footer-column .contact-value a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--akzentfarbe);
    transition: width 0.3s ease;
}

.footer-column .contact-value a:hover {
    color: var(--akzentfarbe);
}

.footer-column .contact-value a:hover::after {
    width: 100%;
}

/* Footer Menü (Rechtliches) */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    line-height: 1.8;
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
}

.footer-column li a {
    color: var(--hauptfarbe-3);
    transition: all 0.3s ease;
    position: relative;
    display: inline;
    text-decoration: none;
}

.footer-column li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--akzentfarbe);
    transition: width 0.3s ease;
}

.footer-column li a:hover {
    color: var(--akzentfarbe);
}

.footer-column li a:hover::after {
    width: 100%;
}

/* Footer Bild Spalte */
.footer-image-column {
    display: flex;
    align-items: flex-start;
}

.footer-image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/*Vorübergehend eingefügt*/
.footer-picture {
    /*margin-top: 45px;*/
    margin-left: 37px;
}

/* Styling für das separate Footer Logo */
.footer-logo-custom {
    margin-bottom: 20px;
    display: block;
}

.footer-logo-custom img {
    max-height: none;
    max-width: 135px;
    width: auto;
    height: auto;
}

/* Falls das Fallback-Logo (custom_logo) genutzt wird, muss dessen Link-Klasse auch angepasst werden */
.footer-logo-custom .custom-logo-link img {
    max-height: none;
    width: auto;
}

/* ======================= Sub-Footer (bündig zur Haupt-Footer-Grid) ======================= */
.sub-footer {
    background-color: #3a3a3a;
    color: #ffffff;
    padding: 10px;
    overflow: visible;
}

.sub-footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    align-items: center;
    gap: var(--spacing-md);
}

.sub-footer .copyright {
    grid-column: 1;
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    color: #ffffff;
}

.footer-legal-links {
    grid-column: 3;
    justify-self: start;
}

.cookie-settings {
    grid-column: 4;
justify-self: start;
}

.footer-legal-links .legal-menu {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.footer-legal-links .legal-menu li {
    display: flex;
    align-items: center;
    line-height: 1;
}

.footer-legal-links .legal-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: var(--font-footer-text);
    font-family: var(--font-body), sans-serif;
    transition: color 0.3s ease;
    padding: 0 var(--spacing-sm);
}

.footer-legal-links .legal-menu li a:hover {
    color: var(--akzentfarbe);
}

.footer-legal-links .legal-menu li:not(:last-child)::after {
    content: '|';
    color: #ffffff;
    margin: 0;
}

/* ======================= Cookie-Einstellungen  ======================= */
.cookie-settings {
    grid-column: 4;
    justify-self: start;
    position: relative;
    height: 0;
    overflow: visible;
}

.cookie-settings a {
    position: absolute;
    left: 15px;
    bottom: -11px;
transform: translateY(10px);
z-index: 1;

    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #808080;
    color: #d1d1d1;
    text-decoration: none;
    padding: 14px 24px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.06);
    transition: background-color .3s ease, color .3s ease, transform .2s ease;
    padding-top: 20px;
}

.cookie-settings a,
.cookie-settings a .inner {
    white-space: nowrap;
}

.cookie-settings a:hover {
    background-color: var(--akzentfarbe);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.cookie-settings a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ======================= Social Media Icons ======================= */
.social-media-icons {
    display: flex;
    gap: 5px;
    margin-top: var(--spacing-sm);
}

.social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hauptfarbe-3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-media-icons a svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    transition: all 0.3s ease;
}

.social-media-icons a:hover {
    color: var(--akzentfarbe);
    transform: translateY(-3px);
}

.social-media-icons a:hover svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ======================= Responsive ======================= */
@media (max-width: 1200px) {
    .sub-footer-content {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
    .cookie-settings { grid-column: 3; }
}

@media (max-width: 992px) {
    .sub-footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
        justify-items: center;
    }
    .footer-legal-links { grid-column: auto; justify-self: center; }
    .cookie-settings { grid-column: auto; justify-self: center; }
    .footer-legal-links .legal-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cookie-settings {
        position: relative;
        right: auto;
        bottom: auto;
        justify-self: center;
        margin-bottom: var(--spacing-sm);
    }

    .cookie-settings a {
        position: relative;
        bottom: auto;
        left: auto;
        padding: 10px 14px;
        font-size: calc(var(--font-footer-text) * 0.95);
    }
}

/* ======================= Lightbox Global Hide ======================= */

.lightbox-overlay {
    display: none;
}

/* ======================= Two Column Section ======================= */
.fp-innovation-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #f0f0f0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}
.fp-innovation-content {
    padding: var(--spacing-xxl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fp-innovation-content h2 {
    font-size: var(--font-section-headline);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}
.fp-innovation-content p {
    max-width: 450px;
    margin-bottom: var(--spacing-lg);
}
.fp-innovation-image {
    background-size: cover;
    background-position: center;
    min-height: 600px;
}
.fp-innovation-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}
.fp-innovation-logo .line {
    height: 2px;
    width: 100px;
    background-color: var(--akzentfarbe);
    margin-right: 20px;
}
.fp-innovation-logo .text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINER DESKTOP (max-width: 1200px) --- */
/* =================================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .carousel-wrapper {
        padding-left: 30px;
    }

    .mega-menu {
        padding: var(--spacing-md) 30px;
    }

    .mega-menu-large {
        width: 95vw;
    }

    .mega-menu-two-columns {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        gap: var(--spacing-lg);
    }

    .sub-footer-content {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }

    .cookie-settings {
        grid-column: 3;
    }

    .cookie-settings a {
        bottom: 68px;
    }

    .mega-menu-image-wrapper {
        max-width: 250px;
        height: 220px;
    }

    .mega-menu-left {
        gap: 35px;
    }

    .desktop-nav {
        gap: 25px;
    }

    .model-category-list .gallery-item {
        width: 100px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE TABLETS (max-width: 992px) --- */
/* =================================================================== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mega-menu {
        max-width: 90vw;
        left: 5vw;
        right: 5vw;
    }

    .mega-menu-content {
        flex-direction: column;
    }

    .mega-menu-left {
        flex: 1;
        flex-direction: column;
        gap: 25px;
    }

    .mega-menu-image-wrapper {
        max-width: 100%;
        height: 200px;
    }

    .separator {
        width: 100%;
        height: 1px;
        margin: var(--spacing-md) 0;
    }

    .carousel-slide {
        flex: 0 0 280px;
    }

    .two-column-section .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sub-footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        text-align: center;
        justify-items: center;
    }

    .footer-legal-links {
        grid-column: auto;
        justify-self: center;
    }

    .cookie-settings {
        grid-column: auto;
        justify-self: center;
    }

    .cookie-settings a {
        bottom: 88px;
    }

    .footer-legal-links .legal-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fp-innovation-section {
        grid-template-columns: 1fr;
    }

    .fp-innovation-image {
        order: -1;
        min-height: 400px;
    }

    header {
        padding: 25px 0;
    }

    .logo img,
    .logo .custom-logo {
        max-height: 28px;
    }

    .mobile-nav {
        padding-top: 100px;
    }

    .mega-menu-tabs {
        gap: 25px;
    }

    .tab-button {
        font-size: 13px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - NORMALE TABLETS (max-width: 768px) --- */
/* =================================================================== */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }

    .carousel-wrapper {
        padding-left: var(--spacing-md);
    }

    .carousel-slide {
        flex: 0 0 calc(75vw - 30px);
    }

    .carousel-slide img {
        height: 220px;
    }

    .carousel-slide h4 {
        font-size: 18px;
    }

    .carousel-slide .subline {
        font-size: 14px;
    }

    .carousel-slide .description {
        font-size: 13px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-image-column {
        order: 2;
    }

    .mega-menu-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }

    .tab-button {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 12px;
    }

    .image-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 180px;
    }

    .search-icon {
        display: none;
    }

    .footer-column p {
        width: auto;
    }

    header {
        padding: 20px 0;
    }

    .logo img,
    .logo .custom-logo {
        max-height: 25px;
    }

    .mobile-nav {
        width: 90%;
        max-width: 350px;
        padding-top: 90px;
    }

    .mobile-nav-item {
        padding: var(--spacing-sm) 25px;
        font-size: 15px;
    }

    .mobile-search {
        padding: var(--spacing-sm) 25px;
    }

    .mobile-submenu .mobile-nav-item.level-1 {
        padding: var(--spacing-xs) 25px var(--spacing-xs) 40px;
    }

    .mobile-submenu.level-2 a {
        padding: var(--spacing-xs) 25px var(--spacing-xs) 55px;
    }

    .cookie-settings {
        position: relative;
        right: auto;
        bottom: 103px;
        justify-self: center;
        margin-bottom: var(--spacing-sm);
    }

    .cookie-settings a {
        position: relative;
        bottom: 0px;
        left: 100px;
        padding: 10px 14px;
        font-size: calc(var(--font-footer-text) * 0.95);
    }

    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-picture {
        margin-top: 30px;
        margin-left: 0;
    }

    .social-media-icons a svg {
        width: 35px;
        height: 35px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - GROSSE SMARTPHONES (max-width: 576px) --- */
/* =================================================================== */
@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    header {
        padding: 15px 0;
    }

    .logo img,
    .logo .custom-logo {
        max-height: 22px;
    }

    header .logo img {
        max-height: 40px !important;
    }

    .hamburger {
        width: 36px;
        height: 36px;
    }

    .hamburger span {
        width: 20px;
    }

    .mobile-nav {
        width: 100%;
        max-width: 100%;
        padding-top: 80px;
    }

    .mobile-nav-item {
        padding: var(--spacing-sm) 20px;
        font-size: 14px;
    }

    .mobile-search {
        padding: var(--spacing-sm) 20px;
    }

    .mobile-search-input {
        padding: 10px var(--spacing-sm);
        font-size: 14px;
    }

    .mobile-submenu .mobile-nav-item.level-1 {
        padding: var(--spacing-xs) 20px var(--spacing-xs) 35px;
        font-size: 14px;
    }

    .mobile-submenu.level-2 a {
        padding: var(--spacing-xs) 20px var(--spacing-xs) 50px;
        font-size: 13px;
    }

    .carousel-slide {
        flex: 0 0 calc(85vw - 20px);
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-slide h4 {
        font-size: 16px;
    }

    .carousel-slide .subline {
        font-size: 13px;
    }

    .carousel-slide .description {
        font-size: 12px;
    }

    .carousel-dots {
        margin-top: var(--spacing-lg);
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .dot.active {
        width: 30px;
    }

    .product-grid {
        gap: var(--spacing-xs);
    }

    .product-grid img {
        min-height: 150px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
        padding: var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn {
        padding: 8px 40px;
        font-size: 14px;
    }

    .footer-column h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .footer-column p,
    .footer-column .contact-label,
    .footer-column .contact-value,
    .footer-column li {
        font-size: 13px;
    }

    .footer-column .logo {
        font-size: 20px;
    }

    .social-media-icons {
        gap: 3px;
    }

    .social-media-icons a svg {
        width: 32px;
        height: 32px;
    }

    .sub-footer {
        padding: 8px;
    }

    .sub-footer .copyright {
        font-size: 12px;
    }

    .footer-legal-links .legal-menu li a {
        font-size: 12px;
        padding: 0 var(--spacing-xs);
    }

    .cookie-settings a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .cookie-settings a svg {
        width: 14px;
        height: 14px;
    }

    section h2 {
        font-size: 26px;
    }

    section p.subline {
        font-size: 20px;
    }

    section p {
        font-size: 14px;
    }
}

/* =================================================================== */
/* --- RESPONSIVE - KLEINE SMARTPHONES (max-width: 480px) --- */
/* =================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: var(--spacing-md) 0;
    }

    header {
        padding: 12px 0;
        min-height: 60px;
    }

    header nav {
        min-height: 40px;
    }

    .logo img,
    .logo .custom-logo {
        max-height: 20px;
    }

    header .logo img {
        max-height: 35px !important;
    }

    .hamburger {
        width: 32px;
        height: 32px;
        padding: 6px;
        margin-left: var(--spacing-xs);
    }

    .hamburger span {
        width: 18px;
        height: 2px;
    }

    .hamburger span:nth-child(1) {
        top: 10px;
    }

    .hamburger span:nth-child(2) {
        top: 15px;
    }

    .hamburger span:nth-child(3) {
        top: 20px;
    }

    .hamburger.active span:nth-child(1),
    .hamburger.active span:nth-child(3) {
        top: 15px;
    }

    .mobile-nav {
        padding-top: 70px;
    }

    .mobile-nav-item {
        padding: 12px 15px;
        font-size: 13px;
    }

    .mobile-nav-toggle {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }

    .mobile-search {
        padding: 12px 15px;
    }

    .mobile-search-input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .mobile-submenu .mobile-nav-item.level-1 {
        padding: 10px 15px 10px 30px;
        font-size: 13px;
    }

    .mobile-submenu.level-2 a {
        padding: 10px 15px 10px 45px;
        font-size: 12px;
    }

    .carousel-wrapper {
        padding-left: 15px;
    }

    .carousel-slide {
        flex: 0 0 calc(90vw - 15px);
    }

    .carousel-slide img {
        height: 180px;
        margin-bottom: var(--spacing-xs);
    }

    .carousel-slide h4 {
        font-size: 15px;
    }

    .carousel-slide .subline {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .carousel-slide .description {
        font-size: 11px;
    }

    .carousel-header {
        margin-bottom: var(--spacing-lg);
    }

    .carousel-dots {
        margin-top: var(--spacing-md);
    }

    .dot {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }

    .dot.active {
        width: 25px;
        border-radius: 4px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-grid img {
        min-height: 120px;
    }

    .hero {
        height: 55vh;
        min-height: 350px;
        padding: var(--spacing-sm);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-xs);
        letter-spacing: 0.5px;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }

    .btn {
        padding: 7px 30px;
        font-size: 13px;
    }

    .two-column-section .container {
        gap: var(--spacing-lg);
    }

    .two-column-section .column h3 {
        font-size: 24px;
    }

    .two-column-section .column .subline {
        font-size: 18px;
    }

    .two-column-section .column p {
        font-size: 14px;
        margin-bottom: var(--spacing-sm);
    }

    footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-container {
        gap: var(--spacing-md);
    }

    .footer-column h4 {
        font-size: 12px;
    }

    .footer-column p,
    .footer-column .contact-label,
    .footer-column .contact-value,
    .footer-column li {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-column .logo {
        font-size: 18px;
        margin-bottom: var(--spacing-sm);
    }

    .footer-column .logo img {
        max-height: 25px;
    }

    .footer-column .contact-row {
        display: block;
        margin-bottom: 8px;
    }

    .footer-column .contact-label,
    .footer-column .contact-value {
        display: inline;
        padding: 0;
    }

    .social-media-icons {
        margin-top: var(--spacing-xs);
        gap: 2px;
    }

    .social-media-icons a svg {
        width: 28px;
        height: 28px;
    }

    .footer-picture {
        margin-top: 20px;
    }

    .sub-footer {
        padding: 6px;
    }

    .sub-footer .copyright {
        font-size: 11px;
    }

    .footer-legal-links .legal-menu {
        gap: 0;
    }

    .footer-legal-links .legal-menu li a {
        font-size: 11px;
        padding: 0 6px;
    }

    .footer-legal-links .legal-menu li:not(:last-child)::after {
        font-size: 11px;
    }

    .cookie-settings a {
        padding: 7px 10px;
        font-size: 11px;
    }

    .cookie-settings a svg {
        width: 12px;
        height: 12px;
    }

    section h2 {
        font-size: 22px;
    }

    section p.subline {
        font-size: 18px;
        margin-bottom: var(--spacing-sm);
    }

    section p {
        font-size: 13px;
        line-height: 1.6;
    }

    .fp-innovation-section {
        grid-template-columns: 1fr;
    }

    .fp-innovation-image {
        min-height: 300px;
    }

    .fp-innovation-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .fp-innovation-content h2 {
        font-size: 22px;
    }

    .fp-innovation-content p {
        font-size: 14px;
    }

    .fp-innovation-logo .line {
        width: 60px;
        margin-right: 12px;
    }

    .fp-innovation-logo .text {
        font-size: 10px;
    }
}