/* ==========================================================================
   STARTSEITEN TEMPLATE - STYLESHEET
   Struktur: Base > Layout > Globale Komponenten > Sections (1-8)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. VARIABLEN & BASIS
   -------------------------------------------------------------------------- */
:root {
    --col-green: #9CA91D;
    --col-darkgreen: #678829; 
    --col-lightgreen: #f4faed;
    --col-lightblue: #eaf4f8;
    --col-blue: #3498db;
    --col-beige: #f8f4ef;
    --col-white: #ffffff;
    --col-black: #58514E;
    --col-text: #58514E;

    --radius: 12px;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 7rem;
}

.hp-main {
    font-family: inherit;
    color: var(--col-text);
}

.hp-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hp-container--narrow {
    max-width: 800px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   B. GLOBALE TYPOGRAFIE
   -------------------------------------------------------------------------- */
.hp-title {
    margin-bottom: 0.5rem;
    font-weight: 700;
    /* Einheitliches Clamp für alle H2/Haupttitel */
    font-size: clamp(1.8rem, 2vw, 2.2rem) !important;
}

.hp-subtitle {
    /* Einheitliches Clamp für alle Sublines */
    font-size: clamp(1.2rem, 1.5vw, 1.6rem) !important;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.hp-title--green { color: var(--col-green) !important; }
.hp-title--black { color: var(--col-black) !important; }
.hp-title--white { color: var(--col-white) !important; }

/* Neue Klasse für die kleine H1 im Hero */
.hp-hero__title-small {
    color: var(--col-white);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    margin: 0 0 0.5rem 0;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Zwingt weiße Texte dazu, auch wirklich weiß zu bleiben (Repariert Section 4) */
.hp-text--white {
    color: var(--col-white) !important;
}

/* Mehr vertikaler Abstand im Hero-Bereich */
.hp-hero__title-small {
    color: var(--col-white);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    margin: 0 0 1rem 0; /* Abstand nach unten vergrößert */
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hp-hero__title {
    margin-bottom: 0.5rem; /* Abstand zwischen großem Text und Subline */
    line-height: 1.1;
}

/* --------------------------------------------------------------------------
   C. GLOBALE BUTTONS
   -------------------------------------------------------------------------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Der neue Lift-Effekt für ALLE Buttons auf der Startseite */
.hp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Der Anfahrt-Button (Grün) - Wird BLAU (#a0bcc8) beim Hovern */
.hp-btn--primary {
    background: var(--col-green);
    color: var(--col-white);
    border: 1px solid var(--col-green);
}
.hp-btn--primary:hover {
    background-color: #a0bcc8;
    border-color: #a0bcc8;
    color: var(--col-white);
}

/* Der "Auf Karte"-Button (Transparenter Rand) - Wird GRÜN beim Hovern */
.hp-btn--outline {
    border: 2px solid var(--col-green);
    color: var(--col-green);
    background: transparent;
}
.hp-btn--outline:hover {
    background: var(--col-green);
    color: var(--col-white);
}

/* Der Standard-Button (Hellblau) - Wird GRÜN beim Hovern */
.hp-btn--pill-blue {
    background-color: #a0bcc8;
    color: var(--col-white);
    border: 1px solid #a0bcc8;
}
.hp-btn--pill-blue:hover {
    background-color: var(--col-green);
    border-color: var(--col-green);
    color: var(--col-white);
}

.hp-btn--small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.hp-btn--mt-auto {
    margin-top: auto; /* Drückt den Button in Flex-Cards immer nach unten */
    align-self: flex-start;
}

/* --------------------------------------------------------------------------
   D. GLOBALE GRID-SYSTEME
   -------------------------------------------------------------------------- */
.hp-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    /* Tablet Ansicht (Mittelgroß) */
    .hp-grid--1col { grid-template-columns: 1fr; }
    .hp-grid--2col { grid-template-columns: 1fr 1fr; }
    .hp-grid--3col { grid-template-columns: repeat(3, 1fr); }
    .hp-grid--4col { grid-template-columns: repeat(2, 1fr); } /* 4 Items = 2x2 auf dem Tablet */
    .hp-grid--5col { grid-template-columns: repeat(3, 1fr); } /* 5 Items brechen auf Tablet um */
    .hp-grid--6col { grid-template-columns: repeat(3, 1fr); }

    .hp-grid--75-25 { grid-template-columns: 2fr 1fr; }
    .hp-grid--25-75 { grid-template-columns: 1fr 2fr; }
    .hp-grid--25-75 .hp-col--large { order: 2; }
    .hp-grid--25-75 .hp-col--small { order: 1; }
}

@media (min-width: 1024px) {
    /* Desktop Ansicht (Groß) - Alles nebeneinander */
    .hp-grid--4col { grid-template-columns: repeat(4, 1fr); }
    .hp-grid--5col { grid-template-columns: repeat(5, 1fr); }
    .hp-grid--6col { grid-template-columns: repeat(6, 1fr); }
}

.hp-grid--align-center {
    align-items: center;
}

.hp-grid > * {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   E. GLOBALE SECTIONS & HELPER
   -------------------------------------------------------------------------- */
.hp-section {
    padding: var(--spacing-md) 0;
}
@media (min-width: 768px) {
    .hp-section { padding: var(--spacing-lg) 0; }
}

.hp-section--white { background-color: var(--col-white); }
.hp-section--beige { background-color: var(--col-beige); }
.hp-section--lightblue { background-color: var(--col-lightblue); }
.hp-section--lightgreen { background-color: var(--col-lightgreen); }
.hp-section--thin { padding: 0 !important; }

.hp-section__header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}
.hp-section__header--left {
    text-align: left;
}

.hp-img-responsive {
    width: 100%;
    height: auto;
    display: block;
}
.hp-img-radius {
    border-radius: var(--radius);
}


/* ==========================================================================
   1. HERO SECTION (SLIDER) - MODERN PICTURE STACKING
   ========================================================================== */
#hp-section-1.hp-hero {
    position: relative;
    width: 100%;
    height: auto; /* WICHTIG: Keine feste Höhe mehr! Das Bild bestimmt die Höhe. */
    display: grid; /* Erlaubt das Schichten der Slides ohne Zusammenfallen der Höhe */
    padding-bottom: 0;
    overflow: hidden;
    background-color: var(--col-beige);
}

/* Die einzelnen Slides übereinanderlegen */
.hp-hero__slide {
    grid-area: 1 / 1; /* Alle Slides liegen in exakt derselben Grid-Zelle übereinander */
    display: grid;
    grid-template-areas: "hero-stack"; /* Hier drin schichten wir Bild und Text */
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hp-hero__slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* Das Picture-Element (unser Bild) */
.hp-hero__picture {
    grid-area: hero-stack; /* Legt das Bild in die Schicht */
    width: 100%;
    display: block;
}

.hp-hero__img {
    display: block;
    width: 100%;
    height: auto; /* Skaliert perfekt proportional! */
    object-fit: contain;
}

/* Der Text-Container liegt EXAKT über dem Bild */
#hp-section-1 .hp-hero__inner {
    grid-area: hero-stack; /* Legt den Text in dieselbe Schicht ÜBER das Bild */
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Drückt den Text nach unten */
    align-items: center; /* Zentriert den Text horizontal */
    text-align: center;
    padding-bottom: 5rem; /* Abstand vom unteren Bildrand */
}

#hp-section-1 .hp-hero__title {
    color: var(--col-white);
    font-size: clamp(1rem, 4vw, 3rem);
    margin: 0;
    text-transform: uppercase;
}

#hp-section-1 .hp-hero__subline {
    color: var(--col-white);
    font-size: clamp(2.1rem, 3vw, 3.5rem);
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- HERO PFEILE & DOTS --- */
.hp-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--col-white);
    border: 2px solid transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.hp-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--col-green);
    transform: translateY(-50%) scale(1.1);
}
.hp-hero-arrow--prev { left: 2rem; }
.hp-hero-arrow--next { right: 2rem; }

.hp-hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.hp-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.hp-hero-dot.is-active, .hp-hero-dot:hover {
    background: var(--col-white);
    transform: scale(1.2);
}


/* ==========================================================================
   2. SECTION: AKTIONEN & NEUHEITEN
   ========================================================================== */
#hp-section-2 {
    padding: 2rem 0 3rem 0;
}
#hp-section-2 .hp-s2-title {
    margin-bottom: 1rem;
    font-size: 1.3rem !important;
    font-weight: 400;
    color: var(--col-black) !important;
}
#hp-section-2 .hp-card--slim {
    background: var(--col-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: block;
}

/* --- Aktions-Karte (Links) --- */
#hp-section-2 .hp-card--action {
    transition: box-shadow 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#hp-section-2 .hp-card--action:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Bild in der Aktions-Karte: kein Beschneiden, echtes Seitenverhältnis */
#hp-section-2 .hp-card__img {
    width: 100%;
    height: auto;                      /* fixe Höhe entfernt */
    aspect-ratio: 880 / 250;           /* 3,52:1 */
    display: block;
    object-fit: fill;                  /* damit es den Container voll ausfüllt (kein Beschnitt) */
    will-change: auto;                 /* will-change entfernt, da kein Zoom mehr nötig */
}

/* ==========================================================================
   NEUHEITEN SLIDER
   ========================================================================== */
.hp-col--news {
    position: relative;
    display: flex;
    flex-direction: column;
}

.hp-news-slider-wrapper {
    position: relative;
    width: 100%;
}

.hp-news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 0;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.hp-news-slider::-webkit-scrollbar { display: none; }

.hp-news-slider.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.hp-card--news-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: block;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    user-select: none;
}

/* Bild im Slider: unbeschnitten mit Seitenverhältnis 1,76:1 */
.hp-card__img--news {
    width: 100%;
    height: auto;
    aspect-ratio: 440 / 250 !important;           /* 1,76:1 */
    display: block;
    object-fit: fill;
}

/* Hover-Effekte – nur noch leichter Schatten & Filter, keine Bewegung der Bilder mehr */
#hp-section-2 .hp-card--action,
.hp-card--news-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

#hp-section-2 .hp-card--action:hover,
.hp-card--news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

#hp-section-2 .hp-card--action:hover .hp-card__img,
.hp-card--news-item:hover .hp-card__img--news {
    filter: contrast(1.04) saturate(1.05);
}

/* Text-Overlay im Slider (bleibt unverändert) */
.hp-news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    padding: 3rem 1.5rem 0.5rem 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.hp-news-title {
    color: #fff !important;
    font-size: 2rem !important;
    margin-bottom: 0.3rem !important;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hp-news-subtext {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    font-weight: bold;
}

.hp-news-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--col-lightgreen);
}

.hp-news-price del {
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    font-size: 0.85rem;
    margin-right: 8px;
}

/* --- PFEILE – jetzt immer perfekt vertikal zentriert --- */
.hp-slider-arrows {
    position: absolute;
    top: 50%;                         /* Mitte des Wrappers */
    left: 10px;
    right: 10px;
    transform: translateY(-50%);      /* exakte Zentrierung */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.hp-arrow-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--col-black);
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hp-arrow-btn:hover {
    background: var(--col-white);
    color: var(--col-green);
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* ==========================================================================
   PREMIUM INTERACTIVITY INDICATOR (SECTION 2)
   ========================================================================== */
#hp-section-2 .hp-card--slim {
    position: relative; /* Wichtig für die absolute Positionierung des Punktes */
}

/* Der grüne Indikator-Punkt */
#hp-section-2 .hp-card--slim::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px; /* Kleiner und eleganter */
    height: 8px;
    background-color: #9CA91D; /* Das dormiente-Grün */
    border-radius: 50%;
    z-index: 50; /* Zwingt den Punkt über alle Bilder und Texte */
    pointer-events: none; /* Keine Blockade für Mausklicks */

    /* Hochwertige, weiche Puls-Animation */
    animation: premiumRadarPulse 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

/* Die softe Pulse-Animation (verblasst sanft nach außen) */
@keyframes premiumRadarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(156, 169, 29, 0.7);
        transform: scale(0.95);
    }
    60% {
        box-shadow: 0 0 0 12px rgba(156, 169, 29, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(156, 169, 29, 0);
        transform: scale(0.95);
    }
}


/* ==========================================================================
   3. SECTION: SERVICES / KATEGORIEN (Beige)
   ========================================================================== */
#hp-section-3 .hp-s3-title {
    font-size: clamp(1.8rem, 2vw, 2.5rem) !important;
    margin-bottom: 0.2rem;
}

section#hp-section-3 {
    padding-top: 5rem !important;
}

#hp-section-3 .hp-s3-subtitle {
    font-size: 1.8rem; /* HIER anpassen */
    font-weight: 700;
    margin-top: 0;
    color: #58514E;
}

#hp-section-3 .hp-category-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
#hp-section-3 .hp-category-item__img-link {
    display: block;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Wichtig, damit das Bild beim Zoomen im Radius bleibt */
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: box-shadow 0.4s ease;
}

#hp-section-3 .hp-category-item__img-link:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

#hp-section-3 .hp-category-item__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#hp-section-3 .hp-category-item__img-link:hover .hp-category-item__img {
    transform: scale(1.04);
}
#hp-section-3 .hp-category-item__img--placeholder {
    background: #e2e2e2;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}
#hp-section-3 .hp-category-item__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}
#hp-section-3 .hp-category-item__title {
    font-size: 1.4rem !important; /* Vorgabe: 1.4rem */
    color: var(--col-black) !important;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    font-weight: 700;
}
#hp-section-3 .hp-category-item__sub {
    font-size: 1.1rem; /* Vorgabe: 1.1rem */
    font-weight: 700;
    color: #58514E;
    margin-top: 0;
    margin-bottom: 0;
}

#hp-section-3 .hp-btn {
    padding: 0.45rem 1rem;
    font-weight: normal;
    font-size: 1.2rem;

    width: 100%;
    max-width: 230px; /* optional */
    justify-content: center;
    display: inline-flex;
}

#hp-section-3 .hp-category-item__text {
    color: var(--col-text);
    font-size: 1.2rem;
    line-height: 1.3; /* Vorgabe: 1.3 */
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   4. SECTION: FULLWIDTH BILD (STATIC)
   ========================================================================== */
#hp-section-4.hp-section--fullwidth-static {
    background-image: var(--fw-bg);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

h2#s5-heading {
    font-size: 2.7rem !important;
}

#hp-section-4.hp-section--fullwidth-static::before {
    content: '';
    position: absolute;
    inset: 0;
}
#hp-section-4 .hp-container {
    position: relative;
    z-index: 1;
}
#hp-section-4 .hp-s4-title {
    margin-bottom: 1.5rem;
}
#hp-section-4 .hp-s4-text {
    font-size: 1.6rem;
}


/* ==========================================================================
   5. SECTION: BLOG (Hellblau)
   ========================================================================== */
h2#s5-heading {
    font-size: 2.7rem !important;
}

#hp-section-5 .hp-s5-subline {
    margin-top: 0;
    font-size: 2rem;
    color: #58514E;
    font-weight: 700;
}
#hp-section-5 .hp-card--blog {
    background: var(--col-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
#hp-section-5 .hp-card--blog {
    /* (Deine bestehenden Werte wie background, border-radius etc. bleiben erhalten) */
    background: var(--col-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#hp-section-5 .hp-card--blog:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

#hp-section-5 .hp-card__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 285px;
    max-height: 280px;
    transition: transform 0.8s ease;
}

#hp-section-5 .hp-card--blog:hover .hp-card__img {
    transform: scale(1.03);
}
#hp-section-5 .hp-card__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 285px;
}
#hp-section-5 .hp-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
#hp-section-5 .hp-card__meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #afc7d3;
}
#hp-section-5 .hp-card__title {
    margin-bottom: 0.5rem;
    text-transform: none !important;
}


/* ==========================================================================
   6. SECTION: WER WIR SIND (Breakout)
   ========================================================================== */

/* Zwingt die komplette Sektion auf Desktop UND Mobile auf Weiß */
#hp-section-6.hp-section,
#hp-section-6 .hp-grid-breakout,
#hp-section-6 .hp-grid-breakout__text-inner {
    background-color: #ffffff !important;
}

#hp-section-6 .hp-grid-breakout {
    display: grid;
    grid-template-columns: 1fr;
}
#hp-section-6 .hp-grid-breakout__img-col {
    position: relative;
    overflow: hidden;
    height: 300px;
}
#hp-section-6 .hp-img-breakout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    /* Luxuriöse, weiche Animation für das Bild */
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Wenn die Maus über den gesamten Breakout-Bereich fährt, zoomt das Bild */
#hp-section-6 .hp-grid-breakout:hover .hp-img-breakout {
    transform: scale(1.04);
}
#hp-section-6 .hp-grid-breakout__text-inner {
    padding: 3rem 1.5rem;
}
#hp-section-6 .hp-s6-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem) !important;
    margin-bottom: 1rem;
    width: 500px;
}

.hp-text {
    font-size: 1.5rem;
    line-height: 1.3;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

@media (min-width: 768px) {
    #hp-section-6 .hp-grid-breakout {
        grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 600px) minmax(0, 600px) minmax(1.5rem, 1fr);
        height: 400px; /* INDIVIDUELLE HÖHE FÜR SECTION 6 */
    }
    #hp-section-6 .hp-grid-breakout__img-col {
        grid-column: 1 / 3;
        height: 100%;
    }
    #hp-section-6 .hp-grid-breakout__text-col {
        grid-column: 3 / 4;
        display: flex;
        align-items: center;
        height: 100%;
    }
    #hp-section-6 .hp-grid-breakout__text-inner {
        padding: 0 0 0 10rem;
    }
}


#hp-section-6 .hp-btn {
    height: 50px;
    min-width: 250px;
    font-size: 1.3rem; /* Vorgabe: 1.3rem */
    font-weight: 400;
}


/* ==========================================================================
   7. SECTION: STORE LOCATOR (Hellgrün)
   ========================================================================== */

/* --- 1. Symmetrisches Layout & Abstände --- */
#hp-section-7 .hp-grid {
    align-items: center; /* Zwingt Bild und Text exakt auf eine Höhe (mittig symmetrisch) */
    gap: 2rem;
}

section#hp-section-7 {
    padding: 3rem 0 2rem 0;
}

h2#s7-heading {
    font-size: 2.7rem !important;
}

#hp-section-7 .hp-subtitle {
    font-size: 2rem;
    margin: 0;
    padding-top: 0;
    color: #58514E;
    font-weight: 700;
}

@media (min-width: 768px) {
    #hp-section-7 .hp-grid {
        gap: 4rem; /* Deutlich mehr Abstand zwischen Bild und Text */
    }
}

@media (min-width: 1024px) {
    #hp-section-7 .hp-grid {
        gap: 6rem; /* Extremer Freiraum auf großen Bildschirmen */
    }
}

/* --- 2. Linke Spalte: Bild (flacher/schmaler) --- */
#hp-section-7 .hp-img-static-s7 {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Macht das Bild flach wie ein Panorama (deutlich schmaler in der Höhe) */
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- 3. Rechte Spalte: Header --- */
#hp-section-7 .hp-store-status {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

#hp-section-7 .hp-separator {
    width: 90px;
    height: 2px;
    background-color: var(--col-green);
    border: none;
    margin: 1.5rem 0;
}

/* --- 4. Der Slider (Unsichtbarer Rahmen) --- */
#hp-section-7 .hp-store-slider-container {
    position: relative;
    margin-top: 1rem;
}

#hp-section-7 .hp-store-slider--single {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
}
#hp-section-7 .hp-store-slider--single::-webkit-scrollbar {
    display: none;
}

/* --- 5. Die Händler-Karte (Transparent) --- */
#hp-section-7 .hp-store-card--transparent {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

#hp-section-7 .hp-store-card__details {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    margin-left: 0.5rem;
}

/* --- 6. SVG Icons & Kontakt --- */
#hp-section-7 .hp-store-card__icon-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    cursor: default; /* Optional, damit die Reihe interaktiv wirkt */
}

#hp-section-7 .hp-svg-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    display: inline-block;
}

#hp-section-7 .hp-svg-icon svg {
    width: 100%;
    height: 100%;
    fill: #888;
    /* Weiche Premium-Animation für Farbe und Bewegung */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}

#hp-section-7 .hp-svg-icon--green svg {
    fill: var(--col-green);
}

#hp-section-7 .hp-store-card__icon-row p {
    font-size: 0.95rem;
    color: var(--col-text);
    margin: 0;
    line-height: 1.5;
}

#hp-section-7 .hp-store-card__icon-row p a {
    text-decoration: none;
    color: inherit;
    /* Die gleiche weiche Kurve für den Text */
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. Icon wird grün, wächst minimal (15%) und hebt sich 2px an */
#hp-section-7 .hp-store-card__icon-row:hover .hp-svg-icon svg {
    fill: var(--col-green);
    transform: scale(1.15) translateY(-2px);
}

/* 2. Text (falls es ein Link ist) wird synchron grün */
#hp-section-7 .hp-store-card__icon-row:hover p a {
    color: var(--col-green);
}

/* --- 7. Buttons & Entfernung --- */
#hp-section-7 .hp-store-card__distance {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--col-green);
    font-size: 0.9rem;
}

#hp-section-7 .hp-store-card__buttons {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

/* Zwingt alle Buttons in Section 7 auf exakt die gleiche Breite */
#hp-section-7 .hp-store-card__buttons .hp-btn {
    flex: 1; /* Teilt den Platz gleichmäßig auf alle vorhandenen Buttons auf */
    padding-left: 5px; /* Etwas reduziertes Padding, damit auch lange Wörter nebeneinander passen */
    padding-right: 5px;
    text-align: center;
    width: 100%;
}

/* --- 8. Slider Dots --- */
#hp-section-7 .hp-slider-dots {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 2rem;
}

#hp-section-7 .hp-slider-dot {
    width: 8px;
    height: 8px;
    background-color: #ccd7bf;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

#hp-section-7 .hp-slider-dot.is-active {
    background-color: var(--col-green);
    width: 24px;
    border-radius: 4px;
}

/* Versteckt beim ersten Laden alle Händler ab Position 11, damit der Slider sauber bleibt */
#hp-section-7 .hp-store-card:nth-child(n+11) {
    display: none !important;
}

/* ==========================================================================
   KARTEN-OVERLAY (Leaflet)
   ========================================================================== */

#hp-section-7 .hp-map-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

section#hp-section-8 {
    padding: 5rem 0 4rem 0;
}

#hp-section-7 .hp-map-wrapper .hp-img-static-s7 {
    transition: opacity 0.55s ease, transform 0.55s ease;
}

#hp-section-7 .hp-map-wrapper.is-map-active .hp-img-static-s7 {
    opacity: 0;
    transform: scale(1.06);
}

#hp-section-7 .hp-map-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

#hp-section-7 .hp-map-wrapper.is-map-active .hp-map-container {
    opacity: 1;
    pointer-events: auto;
}

#hp-section-7 .hp-map-back-btn {
    position: absolute;
    top: 12px;
    left: 55px;
    z-index: 10;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--col-white);
    color: var(--col-black);
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: background 0.3s ease;
}

#hp-section-7 .hp-map-back-btn:hover {
    background: #f0f0f0;
}

#hp-section-7 .hp-section__header {
    margin-bottom: 2rem;
}

    /* Leaflet Custom Pin - remove default bg */
.hp-map-pin {
    background: none !important;
    border: none !important;
}

/* ==========================================================================
   FEATURE: ADRESSE KOPIEREN (Store Locator)
   ========================================================================== */
#hp-section-7 .hp-store-card__icon-row--copy {
    cursor: pointer;
}

#hp-section-7 .hp-store-card__icon-row--copy p {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Das kleine "Kopieren" Badge */
.hp-copy-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    background: #e8f0df; /* Passendes hellgrün */
    color: var(--col-green);
    padding: 3px 8px;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none; /* Blockiert keine Klicks */
}

/* Auf dem Desktop beim Hovern weich einblenden */
@media (min-width: 768px) {
    #hp-section-7 .hp-store-card__icon-row--copy:hover .hp-copy-badge {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Auf dem Handy immer leicht sichtbar lassen, damit man die Funktion erkennt */
@media (max-width: 767px) {
    .hp-copy-badge {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Erfolgs-Status (Klasse wird per JS gesetzt) */
#hp-section-7 .hp-store-card__icon-row--copy.is-copied .hp-copy-badge {
    background: var(--col-green);
    color: #ffffff;
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   8. SECTION: LOGOS (Weiß)
   ========================================================================== */

h2#s8-heading {
    font-size: 3rem !important;
    text-transform: uppercase !important;
}

#hp-section-8 .hp-logo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hp-section-8 .hp-logo-card__img-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px; /* Feste Höhe für die Symmetrie */
    background: transparent; /* Absolut durchsichtig */
}

#hp-section-8 .hp-logo-card__img-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#hp-section-8 .hp-logo-card__img-wrapper a:hover {
    transform: translateY(-4px);
}

/* Das wichtigste für verschiedene Logo-Formen: */
#hp-section-8 .hp-img-logo-fit {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Das Logo wird nie verzerrt und passt immer komplett rein */
    display: block;
}

#hp-section-8 .hp-subtitle {
    font-size: 1.35rem;
    color: #58514E;
    font-weight: normal; /* oder 700, wenn es fett sein soll */
    margin-top: 0;
}

#hp-section-8 .hp-logo-card__title {
    font-size: 1.2rem;
    color: var(--col-black);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

#hp-section-8 .hp-logo-card__text {
    font-size: 1rem;
    color: var(--col-text);
    line-height: 1.4;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}
/* ==========================================================================
   ENFOLD OVERLAY DEAKTIVIEREN (Nur für Startseite)
   ========================================================================== */
.hp-main .image-overlay,
.hp-main .image-overlay-inside {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- HILFSKLASSEN ZUR TRENNUNG VON DESKTOP & MOBILE --- */
@media (min-width: 768px) {
    .hp-show-on-mobile { display: none !important; }
}

/* ==========================================================================
   MOBILE OPTIMIERUNG (Max-Width: 767px) - OPTIMIERT
   ========================================================================== */

@media (max-width: 767px) {
    /* ----------------------------------------------------------------------
       GENERELLE MOBILE ANPASSUNGEN
       ---------------------------------------------------------------------- */
    :root {
        --spacing-md: 2.5rem;
        --spacing-lg: 3.5rem;
    }

    /* Enfold Header Meta-Leiste ganz oben */
    #header_meta {
        padding-top: 0px !important;
    }
    #header_meta .container {
        padding: 0 10px !important; /* Nimmt seitlichen Abstand weg für mehr Breite */
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Zwingt die Menüpunkte (Aktion, Händlersuche, My dormiente) in die Breite */
    #header_meta .sub_menu {
        width: 100% !important;
    }
    #header_meta .sub_menu > ul {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px 0 !important;
    }
    #header_meta .sub_menu > ul > li {
        padding: 0 !important;
        border: none !important; /* Entfernt Enfold-Trennstriche */
    }

    /* Weißen Header niedriger machen */
    #header_main .container {
        height: 70px !important;
        line-height: 70px !important;
    }
    /* Hero Bild ranholen */
    #hp-section-1.hp-hero {
        margin-top: -20px !important;
    }

    .hp-section {
        padding: var(--spacing-md) 0;
    }

    .hp-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 1.5rem;
    }

    .hp-text,
    .hp-category-item__text,
    .hp-s4-text {
        font-size: 1.1rem !important;
    }

    .hp-grid {
        gap: 2.5rem;
    }

    /* ----------------------------------------------------------------------
   1. HERO SECTION (MOBILE)
   ---------------------------------------------------------------------- */
    #hp-section-1.hp-hero {
        height: auto; /* Keine feste Höhe von 320px mehr erzwingen! */
        aspect-ratio: auto;
        padding-bottom: 0;
        /* Display: flex wurde entfernt, da der Container jetzt ein Grid ist */
    }

    /* Padding für Text auf Mobile anpassen */
    #hp-section-1 .hp-hero__inner {
        width: 100%;
        padding: 0 1rem 1.5rem 1rem; /* 1.5rem nach unten, ersetzt das padding-bottom der Slides */
    }

    #hp-section-1 .hp-hero__title {
        font-size: 1.6rem;
    }

    #hp-section-1 .hp-hero__subline {
        font-size: 1.2rem;
        margin-top: 0;
    }

    /* ----------------------------------------------------------------------
   2. AKTIONEN & NEUHEITEN (Nur Mobile!)
   ---------------------------------------------------------------------- */
    /* --- AKTIONEN HINTERGRUND AUF VOLLE BILDSCHIRMBREITE --- */
    #hp-section-2 .hp-grid > .hp-col:first-child {
        background-color: var(--col-beige);
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-top: -2.5rem;
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }

    /* --- AKTIONEN & HIGHLIGHTS ÜBERSCHRIFT --- */
    #hp-section-2 .hp-s2-title {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* 1. BREITE DER KARTE (Bereinigt) */
    #hp-section-2 .hp-card--news-item {
        flex: 0 0 80% !important;
        scroll-snap-align: start;
        position: relative;
        border-radius: var(--radius);
    }

    /* 2. HÖHE DER KARTE: Feste Höhen entfernt, aspect-ratio greift vom Desktop */
    #hp-section-2 .hp-card__img--news {
        height: auto;                 /* statt 210px */
        /* object-fit wird vom Desktop geerbt (fill) */
    }
    #hp-section-2 .hp-card--action .hp-card__img {
        height: auto;                 /* statt 106px */
    }

    /* Mobile Helper Classes */
    .hp-hide-on-mobile {
        display: none !important;
    }

    /* Erzwungenes Anzeigen auf Mobile (überschreibt Desktop-Ausblendung) */
    span.hp-show-on-mobile {
        display: inline-block !important;
    }

    div.hp-show-on-mobile {
        display: flex !important;
    }

    /* Der Slider selbst - macht die Karten nebeneinander wischbar */
    .hp-news-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 15px;
        padding-bottom: 0.5rem;
    }

    .hp-news-slider::-webkit-scrollbar {
        display: none;
    }

    /* Das "Neuheiten" Badge (Oben Links auf dem Bild) */
    .hp-news-badge {
        position: absolute;
        top: 10px;
        left: 15px;
        color: #fff;
        font-size: 1.1rem;
        z-index: 10;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Text-Container auf Mobile (Ohne Verlauf, linksbündig passend zum Badge) */
    #hp-section-2 .hp-news-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto !important;
        background: transparent !important;
        padding: 2rem 15px 0px 15px !important;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
    }

    #hp-section-2 .hp-news-title {
        font-size: 1.5rem !important;
        text-align: left !important;
        color: #fff !important;
        margin-bottom: 0 !important;
    }

    #hp-section-2 .hp-news-subtext {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        margin: 0 0 0.5rem 0;
        text-align: left;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
        font-weight: bold;
    }

    #hp-section-2 .hp-news-price {
        text-align: left !important;
        color: #fff;
        font-size: 0.95rem;
    }

    /* Dots erzwingen und zentrieren */
    #hp-section-2 .hp-news-dots {
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem;
        gap: 8px;
    }

    #hp-section-2 .hp-news-dot {
        background-color: #e8f0df;
    }

    #hp-section-2 .hp-news-dot.is-active {
        background-color: var(--col-green);
    }

    /* ----------------------------------------------------------------------
       3. SERVICES / KATEGORIEN
       ---------------------------------------------------------------------- */
    /* Wieder linksbündig, wie gewünscht */
    #hp-section-3 .hp-section__header,
    #hp-section-3 .hp-category-item__content {
        text-align: left;
        align-items: flex-start;
    }

    #hp-section-3 .hp-s3-title {
        font-size: 1.6rem !important;
        text-align: center;
        line-height: 1.2;
    }

    #hp-section-3 .hp-s3-subtitle {
        font-size: 1.3rem !important;
        text-align: center;
    }

    #hp-section-3 .hp-category-item__title {
        font-size: 1.6rem;
    }

    section#hp-section-3 {
        padding-top: 3rem !important;
    }

    #hp-section-3 .hp-btn {
        padding: 0.45rem 1rem;
        font-weight: normal;
        font-size: 1.2rem;
    }

    /* Absatztext ausblenden */
    #hp-section-3 .hp-category-item__text {
        display: none !important;
    }

    #hp-section-3 .hp-category-item__sub {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    /* ----------------------------------------------------------------------
       4. FULLWIDTH BILD
       ---------------------------------------------------------------------- */
    #hp-section-4.hp-section--fullwidth-static {
        padding: 35px 0;
    }

    #hp-section-4 .hp-s4-title {
        font-size: 1.6rem !important;
    }

    #hp-section-4 .hp-text, .hp-category-item__text, .hp-s4-text {
        font-size: 1.1rem !important;
    }


    /* ----------------------------------------------------------------------
   5. BLOG / MAGAZIN (Mobile Maße & Text - OPTIMIERT FÜR MEHR TEXT)
   ---------------------------------------------------------------------- */
    h2#s5-heading {
        font-size: 1.6rem !important;
    }

    .hp-section__header {
        margin-bottom: 1.5rem;
    }

    /* DER CONTAINER: Zwingt die Karten nebeneinander und aktiviert das Swipen */
    #hp-section-5 .hp-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        padding: 0 0.5rem 0 0.5rem;
        margin: 0 -0.5rem;
        align-items: stretch; /* WICHTIG: Alle Karten bleiben gleich hoch */
    }

    #hp-section-5 .hp-grid::-webkit-scrollbar {
        display: none;
    }

    /* 1. BREITE DER CARDS */
    #hp-section-5 .hp-card--blog {
        flex: 0 0 100% !important;
        scroll-snap-align: center;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* --- NEU: MEHR PLATZ IM CONTENT-BEREICH --- */
    #hp-section-5 .hp-card__content {
        padding: 1.2rem 1.2rem !important;
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* Füllt den verfügbaren Platz in der Karte aus */
        min-height: 220px; /* Erzeugt eine Mindesthöhe für den Textbereich */
    }

    /* 2. HÖHE DER BILDER */
    #hp-section-5 .hp-card__img {
        height: 200px !important; /* Etwas niedriger, um mehr Platz für Text zu lassen */
        min-height: 200px !important;
        object-fit: cover;
    }

    /* 3. TEXTGRÖSSEN ANPASSEN */
    #hp-section-5 .hp-card__meta {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem;
    }

    #hp-section-5 .hp-card__title {
        font-size: 1.2rem !important; /* Minimal vergrößert */
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    /* --- OPTIMIERT: ABSATZTEXT (EXCERPT) --- */
    #hp-section-5 .hp-card__excerpt {
        font-size: 1.2rem !important; /* Etwas besser lesbar */
        line-height: 1.5;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* ERHÖHT: Zeigt jetzt bis zu 4 Zeilen an */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Der Button innerhalb der Karte */
    #hp-section-5 .hp-card__content .hp-btn {
        font-size: 1.2rem !important;
        padding: 7px 35px;
        margin-top: auto;
        font-weight: normal;
    }

    /* Abstand der Sektions-Header verringern */
    #hp-section-5 .hp-s5-subline {
        font-size: 1.3rem !important;
        margin-bottom: 0.5rem;
    }

    /* ----------------------------------------------------------------------
   6. WER WIR SIND
   ---------------------------------------------------------------------- */
    #hp-section-6 .hp-grid-breakout__img-col {
        height: 190px;
    }

    #hp-section-6 .hp-grid-breakout__text-inner {
        padding: 2.5rem 2rem;
        background-color: #ffffff !important;
    }

    #hp-section-6 .hp-text {
        font-size: 1.35rem !important;
    }

    #hp-section-6 .hp-s6-title {
        width: 100%;
        font-size: 1.5rem !important;
    }

    #hp-section-6 .hp-btn {
        width: auto;
        min-width: 180px !important;
        font-size: 1.2rem;
        height: 40px;
        margin: 0 !important;
    }

    /* ----------------------------------------------------------------------
       7. STORE LOCATOR
       ---------------------------------------------------------------------- */
    #hp-section-7 {
        padding: 3rem 0;
    }

    h2#s7-heading {
        font-size: 1.5rem !important;
    }

    #hp-section-7 .hp-subtitle {
        font-size: 1.3rem !important;
        padding: 0 3.5rem;
    }

    /* 2 Buttons nebeneinander, 1 darunter */
    #hp-section-7 .hp-store-card__buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Button 1 und 2 */
    #hp-section-7 .hp-store-card__buttons .hp-btn:nth-child(1),
    #hp-section-7 .hp-store-card__buttons .hp-btn:nth-child(2) {
        flex: 1 1 calc(50% - 5px);
        width: auto;
    }

    /* Button 3 */
    #hp-section-7 .hp-store-card__buttons .hp-btn:nth-child(3) {
        flex: 1 1 100%;
        width: 100%;
    }

    /* Dots exakt zentrieren */
    #hp-section-7 .hp-slider-dots {
        justify-content: center !important;
        margin-top: 1.5rem;
    }

    /* ----------------------------------------------------------------------
       8. LOGOS (Perfekt zentriert & nächstes Item sichtbar)
       ---------------------------------------------------------------------- */
    /* Headline und Subline kleiner */
    h2#s8-heading { font-size: 1.6rem !important; }
    #hp-section-8 .hp-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 1.5rem;
        padding: 0 3rem;
    }

    #hp-section-8 .hp-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.5rem;

        /* Zieht den Slider weiterhin bis exakt an die Bildschirmkante */
        margin: 0 -1.5rem !important;

        /* DIE NEUE MATHEMATIK: 20vw links + 60vw Karte + 20vw rechts = 100vw (Perfekte Mitte) */
        padding: 1rem 20vw 2rem 20vw !important;

        align-items: stretch;
    }
    #hp-section-8 .hp-grid::-webkit-scrollbar { display: none; }

    #hp-section-8 .hp-logo-card {
        /* Karte ist jetzt schmaler. Dadurch sieht man rechts sofort das nächste Logo! */
        flex: 0 0 60vw !important;
        scroll-snap-align: center !important;
    }

    #hp-section-8 .hp-logo-card__img-wrapper { height: 120px; }

    /* Dots in Section 8 zentrieren */
    #hp-section-8 .hp-slider-dots,
    #hp-section-8 .hp-news-dots {
        display: flex;
        justify-content: center !important;
        margin-top: 1rem;
    }

    /* Slider Dots (Desktop-Style für Mobile übernommen) */
    .hp-news-dots, .hp-slider-dots {
        display: flex !important;
        justify-content: center !important;
        margin-top: 1rem;
        gap: 8px;
    }
    .hp-news-dot, .hp-slider-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background-color: #ccd7bf !important; /* Inaktiv */
        border: none !important;
        padding: 0;
        transition: all 0.3s ease;
    }
    /* Der AKTIVE Punkt wird wie auf Desktop zu einer breiteren Pille */
    .hp-news-dot.is-active, .hp-slider-dot.is-active {
        background-color: var(--col-green) !important;
        width: 24px !important;
        border-radius: 4px !important;
    }

    /* Section 7: Kein Springen der Höhe & Abstände */
    #hp-section-7 .hp-store-card--transparent {
        min-height: 320px; /* Verhindert das Springen bei wenig Info */
    }
    #hp-section-7 .hp-grid {
        gap: 1.5rem; /* Näher zusammen */
    }
    #hp-section-7 .hp-subtitle {
        padding: 0 1rem !important; /* Weniger seitlicher Abstand auf Mobile */
    }

    /* Section 3: Umbrüche optimieren */
    #hp-section-3 .hp-category-item__title {
        hyphens: auto;
    }
}

/* Versteckt die dynamischen Slider-Dots auf dem Desktop */
@media (min-width: 768px) {
    .hp-hide-on-desktop { display: none !important; }
}


