/* ==========================================================================
   DS Garage – Modern Layer 2026
   Wird NACH style.css geladen und erweitert das bestehende Design.
   ========================================================================== */

:root {
    --accent-glow: rgba(232, 181, 60, 0.45);
    --surface: #ffffff;
    --surface-2: #fbfbfc;
    --ring: rgba(232, 181, 60, 0.55);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --shadow-soft: 0 1px 2px rgba(16, 18, 27, 0.04), 0 8px 24px -8px rgba(16, 18, 27, 0.12);
    --shadow-lift: 0 2px 4px rgba(16, 18, 27, 0.04), 0 24px 48px -16px rgba(16, 18, 27, 0.22);
}

/* Weichere Schriftdarstellung + moderne Ziffern */
body {
    font-feature-settings: "cv02", "cv03", "cv04", "tnum" 0;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   1. Scroll-Fortschrittsbalken
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 1100;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), #ffd97a);
    box-shadow: 0 0 12px var(--accent-glow);
    pointer-events: none;
}

/* Native scroll-driven animation, wo unterstützt (Chrome/Edge/Safari 2026) */
@supports (animation-timeline: scroll()) {
    .scroll-progress {
        animation: progressGrow linear;
        animation-timeline: scroll(root block);
    }
    @keyframes progressGrow {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}

/* ==========================================================================
   2. Header – Glasmorphismus mit Scroll-Reaktion
   ========================================================================== */
/* Der Header ist fixiert und damit bei JEDEM Scroll-Frame im Bild.
   blur(18px) + saturate() darauf war spürbar teuer – ein moderater Blur
   ohne Sättigungsfilter sieht praktisch gleich aus und kostet deutlich
   weniger. `contain` verhindert, dass Änderungen im Header ein Neu-Layout
   der ganzen Seite auslösen. */
header {
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(16, 18, 27, 0.06);
    box-shadow: none;
    contain: layout paint;
    transition: background-color 0.35s var(--ease-out-expo),
                box-shadow 0.35s var(--ease-out-expo),
                border-color 0.35s var(--ease-out-expo);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 24px -8px rgba(16, 18, 27, 0.18);
    border-bottom-color: rgba(232, 181, 60, 0.28);
}

/* Ältere/schwächere Geräte ohne backdrop-filter bekommen einen soliden Grund */
@supports not (backdrop-filter: blur(4px)) {
    header { background-color: rgba(255, 255, 255, 0.97); }
}

/* Fix: Auf Desktop war das Hamburger-Menü zusätzlich zur vollen
   Navigation sichtbar – style.css blendet es nie wieder aus. */
@media (min-width: 992px) {
    .mobile-toggle { display: none !important; }
}

/* Animierte Unterstreichung in der Navigation */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

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

/* ==========================================================================
   3. Hero – Aurora-Verlauf & gestaffelte Einblendung
   ========================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    /* Pflicht: Der Aurora-Verlauf unten ragt bewusst über die Kanten hinaus
       und würde sonst die Seite horizontal scrollen lassen. */
    overflow: hidden;
    background-attachment: scroll; /* fixed ruckelt auf iOS */
}

/* Aurora-Verlauf.
   Wichtig für die Performance: KEIN filter: blur(). Ein Blur über eine so
   große Fläche kostet bei jedem Frame Rechenzeit und war die Hauptursache
   für ruckelndes Scrollen. Radiale Verläufe sind von sich aus weich und
   praktisch gratis; animiert wird nur transform (läuft auf der GPU). */
.hero::before {
    content: '';
    position: absolute;
    inset: -15%;
    z-index: -1;
    background:
        radial-gradient(38% 45% at 18% 22%, rgba(232, 181, 60, 0.26), transparent 62%),
        radial-gradient(32% 40% at 82% 28%, rgba(255, 138, 60, 0.18), transparent 60%),
        radial-gradient(45% 50% at 55% 88%, rgba(120, 160, 255, 0.14), transparent 65%);
    animation: auroraDrift 26s ease-in-out infinite alternate;
    pointer-events: none;
    transform: translateZ(0);
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
    100% { transform: translate3d(-2%, 1.5%, 0) scale(1.03); }
}

/* Korn-Textur für Tiefe (statisch, kostet nichts) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.14;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Auf Mobilgeräten das kleinere Hero-Bild laden (112 KB statt 184 KB)
   und die Dauer-Animation abschalten – spart spürbar Akku und Rechenzeit. */
@media (max-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.85)), url('img/hero-mobile.jpg');
    }
    .hero::before { animation: none; }
}

/* Fluide Headline: "KFZ-Meisterwerkstatt" ist ein sehr langes Wort und lief
   auf schmalen Geräten (z. B. iPhone SE, 320 px) über den Rand hinaus.
   clamp() skaliert mit der Viewport-Breite, Silbentrennung fängt den Rest ab.
   Ab 768 px bleibt die Größe wie bisher (3rem). */
.hero h1,
.page-hero h1 {
    font-size: clamp(1.6rem, 7.6vw, 2.2rem);
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 768px) {
    .hero h1,
    .page-hero h1 {
        font-size: 3rem;
        hyphens: manual;
    }
}

/* Headline erscheint zeilenweise */
.hero h1 .reveal-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    animation: lineIn 0.9s var(--ease-out-expo) forwards;
}

.hero h1 .reveal-line:nth-child(2) { animation-delay: 0.09s; }
.hero h1 .reveal-line:nth-child(3) { animation-delay: 0.18s; }
.hero h1 .reveal-line:nth-child(4) { animation-delay: 0.27s; }
.hero h1 .reveal-line:nth-child(5) { animation-delay: 0.36s; }

@keyframes lineIn {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-highlight {
    position: relative;
    display: inline-block;
}

/* Goldener Schwung unter dem Schlüsselwort */
.hero-highlight::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 0.02em;
    height: 0.42em;
    z-index: -1;
    border-radius: 0.3em;
    background: linear-gradient(100deg, rgba(232, 181, 60, 0.42), rgba(232, 181, 60, 0.16));
    transform: scaleX(0);
    transform-origin: left;
    animation: swipeIn 0.8s var(--ease-out-expo) 0.55s forwards;
}

@keyframes swipeIn {
    to { transform: scaleX(1); }
}

/* Google-Badge im Hero */
.google-reviews-hero {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-out-expo);
}

.google-reviews-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px -10px rgba(232, 181, 60, 0.55);
}

/* ==========================================================================
   4. Buttons – Micro-Interactions & Glanzeffekt
   ========================================================================== */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-spring),
                box-shadow 0.35s var(--ease-out-expo),
                background-color 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    transition: left 0.65s var(--ease-out-expo);
}

.btn:hover::before { left: 130%; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -12px rgba(232, 181, 60, 0.7);
}

.btn:active { transform: translateY(-1px) scale(0.985); }

/* Tastatur-Fokus sichtbar (Barrierefreiheit) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ==========================================================================
   5. Karten – Spotlight-Effekt, der der Maus folgt
   ========================================================================== */
.service-card,
.intro-card,
.review-card,
.local-card {
    position: relative;
    isolation: isolate;
    transition: transform 0.45s var(--ease-out-expo),
                box-shadow 0.45s var(--ease-out-expo),
                border-color 0.45s ease;
}

.service-card::before,
.intro-card::before,
.review-card::before,
.local-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(232, 181, 60, 0.16),
        transparent 68%
    );
}

.service-card:hover::before,
.intro-card:hover::before,
.review-card:hover::before,
.local-card:hover::before { opacity: 1; }

.service-card:hover,
.intro-card:hover,
.local-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
}

/* Icons reagieren mit */
.service-icon,
.intro-icon {
    transition: transform 0.5s var(--ease-spring), color 0.35s ease;
}

.service-card:hover .service-icon,
.intro-card:hover .intro-icon {
    transform: scale(1.14) rotate(-6deg);
}

/* ==========================================================================
   6. Statistik-Kacheln
   ========================================================================== */
.stat-item {
    transition: transform 0.45s var(--ease-out-expo);
}

.stat-item:hover { transform: translateY(-5px); }

.stat-number {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   7. Bewertungs-Sektion
   ========================================================================== */
.reviews-section {
    padding: 80px 0;
    background:
        radial-gradient(60% 60% at 50% 0%, rgba(232, 181, 60, 0.07), transparent 70%),
        var(--gray-light);
}

.reviews-summary {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr;
    gap: 32px;
    align-items: center;
    background: var(--surface);
    border: 1px solid rgba(16, 18, 27, 0.07);
    border-radius: var(--radius-2xl);
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
}

.reviews-score { text-align: center; }

.reviews-score-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-score-stars {
    color: var(--primary-color);
    font-size: 1.15rem;
    letter-spacing: 3px;
    margin: 10px 0 6px;
}

.reviews-score-stars i {
    animation: starPop 0.5s var(--ease-spring) backwards;
}

.reviews-score-stars i:nth-child(1) { animation-delay: 0.05s; }
.reviews-score-stars i:nth-child(2) { animation-delay: 0.12s; }
.reviews-score-stars i:nth-child(3) { animation-delay: 0.19s; }
.reviews-score-stars i:nth-child(4) { animation-delay: 0.26s; }
.reviews-score-stars i:nth-child(5) { animation-delay: 0.33s; }

@keyframes starPop {
    from { opacity: 0; transform: scale(0.4) rotate(-25deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

.reviews-score-count {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.reviews-topics-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 14px;
}

.reviews-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reviews-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: var(--gray-light);
    border: 1px solid rgba(16, 18, 27, 0.07);
    font-size: 0.88rem;
    transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, background-color 0.3s ease;
}

.reviews-topic:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.reviews-topic i { color: var(--primary-dark); font-size: 0.85rem; }
.reviews-topic b { color: var(--primary-dark); font-weight: 600; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.review-card {
    background: var(--surface);
    border: 1px solid rgba(16, 18, 27, 0.07);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-soft);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(232, 181, 60, 0.4);
}

.review-stars { color: var(--primary-color); font-size: 0.92rem; letter-spacing: 2px; }

.review-card blockquote {
    position: relative;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-color);
    flex-grow: 1;
    padding-top: 6px;
}

/* Großes dekoratives Anführungszeichen im Hintergrund */
.review-card blockquote::before {
    content: "\201C";
    position: absolute;
    top: -18px;
    left: -6px;
    z-index: -1;
    font-size: 3.6rem;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    color: rgba(232, 181, 60, 0.22);
    pointer-events: none;
}

/* Eigene Regel, damit die globale footer-Farbe nicht durchschlägt */
.reviews-section .review-meta,
.review-card .review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 0;
    margin: 0;
    background: none;
    color: inherit;
    border-top: 1px solid rgba(16, 18, 27, 0.07);
}

.review-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.3;
}

.review-author small {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--gray-dark);
}

.reviews-cta { text-align: center; margin-top: 36px; }

@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px 20px;
        text-align: center;
    }
    .reviews-topic-list { justify-content: center; }
    .reviews-topics-label { text-align: center; }
}

/* ==========================================================================
   8. Formular – Einwilligung & modernere Felder
   ========================================================================== */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 22px;
    padding: 15px 17px;
    background: var(--gray-light);
    border: 1px solid rgba(16, 18, 27, 0.08);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-consent:focus-within {
    border-color: var(--primary-color);
    background: #fff;
}

.form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-dark);
    cursor: pointer;
}

.form-consent label {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--gray-dark);
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.form-consent a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-control {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 181, 60, 0.16);
    outline: none;
}

/* ==========================================================================
   9. Mobile Aktionsleiste – Anrufen / WhatsApp / Termin
   ========================================================================== */
.mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(16, 18, 27, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(16, 18, 27, 0.1);
    box-shadow: 0 -6px 24px -8px rgba(16, 18, 27, 0.2);
    padding-bottom: env(safe-area-inset-bottom, 0);
    transform: translateY(110%);
    transition: transform 0.5s var(--ease-out-expo);
}

.mobile-action-bar.visible { transform: translateY(0); }

.mobile-action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 6px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.mobile-action-bar a i { font-size: 1.15rem; color: var(--primary-dark); }
.mobile-action-bar a:active { background: var(--primary-light); }
.mobile-action-bar .mab-whatsapp i { color: #25d366; }

@media (max-width: 768px) {
    .mobile-action-bar { display: grid; }

    /* Platz schaffen, damit die Leiste nichts verdeckt. Das Polster sitzt
       im Footer statt im Body – sonst entsteht unter dem dunklen Footer
       ein heller Streifen. */
    footer { padding-bottom: 82px; }

    /* Auf dem Handy übernimmt die Aktionsleiste den WhatsApp-Kontakt.
       Der Schwebe-Button und der Teaser wären dreifach dasselbe und
       haben auf kleinen Displays den halben Hero verdeckt. */
    .whatsapp-button,
    .whatsapp-popup { display: none !important; }

    .scroll-top { bottom: 78px; }
}

/* ==========================================================================
   10. Leistungs-Laufband (Trust-Marquee)
   ========================================================================== */
.marquee {
    overflow: hidden;
    padding: 16px 0;
    /* Rendert nur, solange es im Bild ist */
    content-visibility: auto;
    contain-intrinsic-size: auto 54px;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 42px;
    animation: marqueeScroll 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}

.marquee-item i { color: var(--primary-color); }

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==========================================================================
   11. Lokale Standort-Karten
   ========================================================================== */
.local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.local-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid rgba(16, 18, 27, 0.08);
    border-radius: var(--radius-xl);
    padding: 26px 24px;
    box-shadow: var(--shadow-soft);
}

.local-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.local-card h3 i { color: var(--primary-dark); }

.local-card p {
    font-size: 0.92rem;
    color: var(--gray-dark);
    margin-bottom: 14px;
}

.local-card .local-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.local-card .local-link i {
    transition: transform 0.35s var(--ease-spring);
}

.local-card:hover .local-link i { transform: translateX(5px); }

.local-distance {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--primary-light);
    color: #7a5c10;
    margin-bottom: 12px;
}

/* ==========================================================================
   12. Einblendung beim Scrollen

   Bewusst NICHT über `animation-timeline: view()` gelöst: Elemente, die den
   Animationsbereich nie vollständig durchlaufen (z. B. am Seitenende oder
   nach einem Ankersprung), bleiben dort dauerhaft unsichtbar. Stattdessen
   setzt modern.js die Klasse `.is-revealed`, sobald ein Element sichtbar
   wird – und blendet im Zweifel lieber ein als aus.
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    transition-delay: var(--reveal-delay, 0s);
    /* Kein dauerhaftes will-change: bei vielen Elementen belegt das unnoetig
       Grafikspeicher und bremst schwaechere Geraete aus. */
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
}

/* Ohne JavaScript bleibt alles sichtbar */
.no-js .reveal-on-scroll {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   13. Sanfte Seitenübergänge (View Transitions API)
   ========================================================================== */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
        animation: vtOut 0.28s var(--ease-out-expo) both;
    }
    ::view-transition-new(root) {
        animation: vtIn 0.36s var(--ease-out-expo) both;
    }
    @keyframes vtOut {
        to { opacity: 0; transform: translateY(-8px); }
    }
    @keyframes vtIn {
        from { opacity: 0; transform: translateY(12px); }
    }
}

header { view-transition-name: site-header; }

/* ==========================================================================
   14. FAQ – weichere Auf-/Zuklapp-Animation
   ========================================================================== */
.faq-item {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.faq-item:hover { border-color: rgba(232, 181, 60, 0.45); }

/* ==========================================================================
   15. Bilder – sanftes Einblenden nach dem Laden
   ========================================================================== */
.about-image img,
.collage-item img {
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.collage-item:hover img { transform: scale(1.04); }

img[loading="lazy"] {
    background: linear-gradient(100deg, var(--gray-medium) 30%, #f3f4f6 50%, var(--gray-medium) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.6s linear infinite;
}

img.is-loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    from { background-position: 220% 0; }
    to   { background-position: -20% 0; }
}

/* ==========================================================================
   16. Bewegungsreduktion respektieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .hero::before,
    .marquee-track { animation: none !important; }

    .hero h1 .reveal-line {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-highlight::after { transform: scaleX(1); }
}

/* ==========================================================================
   17. Footer – komplett neu

   Der alte Footer nutzte für jede Spalte einen eigenen Klassennamen
   (.footer-links, .footer-contact, .footer-legal), sodass neu ergänzte
   Spalten und Links ungestylt blieben – blau, unterstrichen, mit
   Aufzählungspunkten. Hier ein einheitliches Raster für alle Spalten.
   ========================================================================== */
.site-footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.72);
    padding: 0 0 24px;
    font-size: 0.94rem;
}

/* --- Abschluss-CTA --- */
.footer-cta {
    background:
        radial-gradient(70% 160% at 15% 50%, rgba(232, 181, 60, 0.20), transparent 60%),
        linear-gradient(120deg, #211d13, #2a2418);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 42px 0;
    margin-bottom: 52px;
}

.footer-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.footer-cta-text h2 {
    color: #fff;
    font-size: clamp(1.3rem, 3.4vw, 1.75rem);
    line-height: 1.25;
    margin-bottom: 8px;
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 52ch;
    margin: 0;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-cta-call,
.btn-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-cta-call {
    background: var(--primary-color);
    color: #1a1a1a;
    border: 2px solid var(--primary-color);
}

.btn-cta-call:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-cta-wa {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* --- Spaltenraster --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 44px 32px;
    padding-bottom: 44px;
}

/* style.css stylt `nav` global als Flex-Zeile (fuer die Hauptnavigation).
   Im Footer stellte das die Ueberschrift NEBEN die Liste statt darueber. */
.site-footer nav {
    display: block;
    padding: 0;
    justify-content: initial;
    align-items: initial;
}

.footer-grid > * { min-width: 0; }

.site-footer h3 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Markenspalte --- */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px;
}

.footer-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-logo-text .main { color: #fff; font-weight: 700; font-size: 1.14rem; }
.footer-logo-text .sub  { color: var(--primary-color); font-size: 0.76rem; font-weight: 500; }

.footer-about {
    margin-bottom: 22px;
    max-width: 42ch;
    line-height: 1.7;
}

.footer-rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 11px;
    padding: 11px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring);
}

.footer-rating:hover {
    background: rgba(232, 181, 60, 0.14);
    border-color: rgba(232, 181, 60, 0.5);
    transform: translateY(-2px);
}

.footer-rating-stars { color: var(--primary-color); letter-spacing: 1px; font-size: 0.8rem; white-space: nowrap; }
.footer-rating-text strong { color: #fff; font-size: 1rem; }

/* --- Listen: einheitlich, ohne Aufzählungspunkte --- */
.footer-list,
.footer-contact-list,
.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li { margin-bottom: 11px; }

.footer-list a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

/* Kleiner Pfeil, der beim Hover herausfährt */
.footer-list a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.footer-list a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-list a:hover::before { opacity: 1; transform: translateX(0); }

/* --- Kontaktspalte --- */
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-contact-list i {
    color: var(--primary-color);
    font-size: 0.92rem;
    width: 18px;
    flex-shrink: 0;
    margin-top: 4px;
    text-align: center;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-contact-list small {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 500;
}

/* --- Untere Zeile --- */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 26px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.footer-bottom p { margin: 0; color: rgba(255, 255, 255, 0.55); }

.footer-legal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-legal-list a,
.footer-credit a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-legal-list a:hover,
.footer-credit a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Footer responsiv --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 38px 28px;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .footer-cta { padding: 34px 0; margin-bottom: 40px; }
    .footer-cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-cta-actions { width: 100%; }
    .btn-cta-call, .btn-cta-wa { flex: 1 1 auto; justify-content: center; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 34px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

/* ==========================================================================
   18. Vertrauensleiste unter dem Seitenkopf
   ========================================================================== */
.trust-bar {
    background: var(--surface);
    border-bottom: 1px solid rgba(16, 18, 27, 0.07);
    padding: 16px 0;
}

.trust-bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 30px;
}

.trust-bar-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--gray-dark);
    white-space: nowrap;
}

.trust-bar-list i {
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.trust-bar-list strong { color: var(--text-color); font-weight: 600; }

/* Auf schmalen Displays waagerecht scrollbar statt umbrechend –
   bleibt so eine kompakte Zeile und kein hoher Block. */
@media (max-width: 768px) {
    .trust-bar { padding: 12px 0; }

    .trust-bar-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 22px;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
        mask-image: linear-gradient(90deg, #000 88%, transparent);
    }

    .trust-bar-list::-webkit-scrollbar { display: none; }
    .trust-bar-list li { font-size: 0.82rem; }
}

/* ==========================================================================
   19. Ablauf in drei Schritten
   ========================================================================== */
.steps-section {
    padding: 76px 0;
    background: var(--gray-light);
}

.steps-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    counter-reset: step;
}

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(16, 18, 27, 0.07);
    border-radius: var(--radius-xl);
    padding: 32px 26px 26px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 26px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px -6px rgba(232, 181, 60, 0.8);
}

.step-card h3 {
    font-size: 1.14rem;
    margin: 10px 0 10px;
}

.step-card p {
    color: var(--gray-dark);
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
}



/* ==========================================================================
   20. Hintergrundbilder mit verzögertem Laden
   ========================================================================== */
.lazy-bg {
    background-color: #23252c;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

.lazy-bg:not(.bg-loaded) {
    background-image: linear-gradient(110deg, #26282f 30%, #2f323a 50%, #26282f 70%);
    background-size: 220% 100%;
    animation: shimmer 1.5s linear infinite;
}

.lazy-bg.bg-loaded { animation: none; }

/* ==========================================================================
   21. Live-Öffnungsstatus

   "Jetzt geöffnet" ist ein starkes Signal: Wer sieht, dass gerade jemand
   erreichbar ist, ruft eher an.
   ========================================================================== */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.87rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}

.open-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.open-status.is-open {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.open-status.is-open .open-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2.2s ease-out infinite;
}

.open-status.is-closed {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.34);
    color: #52606d;
}

.open-status.is-closed .open-status-dot { background: #94a3b8; }

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Im dunklen Hero und im Footer heller darstellen */
.hero .open-status,
.site-footer .open-status {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero .open-status.is-open,
.site-footer .open-status.is-open {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
}

@media (prefers-reduced-motion: reduce) {
    .open-status .open-status-dot { animation: none; }
}

/* ==========================================================================
   22. Breite Tabellen in Ratgeber-Beiträgen

   Acht Blogbeiträge enthalten Vergleichstabellen, die breiter als ein
   Handydisplay sind. Ohne Rahmen verschob sich dadurch die ganze Seite.
   ========================================================================== */
.table-scroll {
    width: 100%;
    max-width: 100%;
    /* min-width:0 ist noetig, damit der Rahmen in Flex-/Grid-Eltern
       ueberhaupt schrumpfen darf – sonst dehnt ihn die Tabelle auf. */
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: var(--border-radius);
}

.table-scroll table {
    margin: 0;
    min-width: 480px;   /* darunter wird es unleserlich – dann lieber scrollen */
}

.table-scroll:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

/* Dezenter Hinweis, dass seitlich mehr steht */
@media (max-width: 768px) {
    .table-scroll {
        position: relative;
        -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }
    .table-scroll table { font-size: 0.86rem; }
}

/* Beitragsinhalte duerfen nie breiter werden als der Bildschirm */
.blog-post-content,
.post-content,
article,
.container > * { min-width: 0; }

/* ==========================================================================
   23. Karten-Raster in den Ratgeber-Beiträgen

   Mehrere Beiträge erzwingen per eigener Media Query zwei feste Spalten
   (z. B. `repeat(2, 1fr)` bei 200px Mindestbreite). Auf einem 375px
   breiten Display passt das nicht und schob die Seite zur Seite.
   Unter 620px bekommt daher jedes dieser Raster eine Spalte.
   ========================================================================== */
@media (max-width: 620px) {
    [class$="-grid"],
    [class*="-grid "],
    .tool-grid,
    .symptom-grid,
    .repair-grid,
    .cause-grid,
    .type-grid,
    .check-grid,
    .tip-grid,
    .fluid-grid,
    .light-grid,
    .service-steps {
        grid-template-columns: 1fr !important;
    }

    /* Ausnahmen: Diese Raster regeln ihre Breite selbst korrekt */
    .services-grid,
    .reviews-grid,
    .local-grid,
    .steps-grid,
    .footer-grid,
    .stats-grid,
    .intro-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Sicherheitsnetz gegen seitliches Verschieben der ganzen Seite:
   Nichts darf breiter als der Bildschirm sein. */
html { overflow-x: hidden; }

/* Automatisch aus allen Seiten gesammelte Karten-Raster.
   Auf schmalen Displays bekommt jedes davon genau eine Spalte,
   damit nichts mehr seitlich aus dem Bild laeuft. */
@media (max-width: 620px) {
    .ac-grid,
    .accident-grid,
    .alignment-grid,
    .au-grid,
    .blog-container,
    .check-grid,
    .cost-comparison,
    .light-grid,
    .method-grid,
    .oil-grid,
    .oil-types-comparison,
    .position-grid,
    .process-steps,
    .refrigerant-comparison,
    .related-posts-grid,
    .repair-methods,
    .starter-grid,
    .starter-types,
    .symptom-grid,
    .tech-comparison,
    .tool-grid,
    .two-column,
    .wear-patterns {
        grid-template-columns: 1fr !important;
    }
}
