/*
Theme Name: Hello Elementor Child
Theme URI: https://allfine-test.test
Description: Hello Elementor Child Theme fuer Allfine Test (Photovoltaik)
Author: allfine-test
Template: hello-elementor
Version: 1.4.0
Text Domain: hello-elementor-child
*/

/* ============================
   Design Tokens
   ============================ */
:root {
    --color-navy:    #000000;
    --color-mid:     #1A1A1A;
    --color-solar:   #FEC43E;
    --color-solar-h: #F59E0B;
    --color-accent:  #FEC43E;
    --color-green:   #03DC21;
    --color-bg:      #F5F8FB;
    --color-white:   #FFFFFF;
    --color-text:    #000000;
    --color-muted:   #5B6B82;
    --color-line:    #E3E9F2;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container: 1200px;
    --radius:    10px;
    --shadow-sm: 0 1px 2px rgba(254, 196, 62, 0.06), 0 1px 3px rgba(254, 196, 62, 0.08);
    --shadow-md: 0 4px 12px rgba(254, 196, 62, 0.10);
    --shadow-lg: 0 24px 60px rgba(254, 196, 62, 0.18);
}

/* ============================
   Base
   ============================ */
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-mid); text-decoration: none; }
a:hover { color: var(--color-blue); }
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--color-navy); color: var(--color-white);
    padding: 8px 16px; z-index: 99999;
}
.skip-link:focus { top: 8px; }

/* ============================
   Header
   ============================ */
.allfine-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-sm);
}
.allfine-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.allfine-header__brand img { height: 40px; width: auto; }
.allfine-header__nav { flex: 1; }
.allfine-nav,
.allfine-header__nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.allfine-header__nav a {
    color: var(--color-navy);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}
.allfine-header__nav a:hover { color: var(--color-blue); }
.allfine-header__nav .current-menu-item > a,
.allfine-header__nav .current_page_item > a { color: var(--color-blue); }
.allfine-header__nav .current-menu-item > a::after,
.allfine-header__nav .current_page_item > a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--color-solar); border-radius: 2px;
}

.allfine-header__cta {
    display: flex; align-items: center; gap: 16px;
}
.allfine-header__phone {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--color-navy); font-weight: 700; font-size: 15px;
}
.allfine-header__phone svg { color: var(--color-green); flex-shrink: 0; }
.allfine-header__phone:hover { color: var(--color-blue); }

.allfine-header__btn {
    background: var(--color-solar);
    color: var(--color-navy) !important;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.1s ease;
    border: 2px solid transparent;
}
.allfine-header__btn:hover {
    background: var(--color-solar-h);
    transform: translateY(-1px);
}

.allfine-header__toggle {
    display: none;
    background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto;
}
.allfine-header__toggle span {
    display: block; width: 26px; height: 3px;
    background: var(--color-navy);
    margin: 5px 0; border-radius: 2px;
    transition: all 0.25s ease;
}

/* ============================
   Main + Footer
   ============================ */
.allfine-main { min-height: 60vh; }

.allfine-footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.85);
    margin-top: 80px;
}
.allfine-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 24px 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}
.allfine-footer h4 {
    color: var(--color-white);
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin: 0 0 20px;
}
.allfine-footer__brand img {
    height: 44px; width: auto; margin-bottom: 20px;
    /* Dark-Variante als separates Asset, kein CSS-Filter mehr noetig */
}
.allfine-footer__tagline {
    color: rgba(255,255,255,0.75);
    margin: 0 0 20px;
    line-height: 1.6;
    font-size: 15px;
}
.allfine-footer__address {
    color: rgba(255,255,255,0.85);
    font-style: normal;
    line-height: 1.7;
    font-size: 14px;
}
.allfine-footer__menu {
    list-style: none; margin: 0; padding: 0;
}
.allfine-footer__menu li { margin-bottom: 10px; }
.allfine-footer__menu a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    transition: color 0.2s ease;
}
.allfine-footer__menu a:hover { color: var(--color-solar); }
.allfine-footer__hours {
    margin: 20px 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.7;
}
.allfine-footer__hours strong { color: var(--color-white); }

.allfine-footer__bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.allfine-footer__bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.allfine-footer__copy {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}
.allfine-footer__legal-menu {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 24px;
}
.allfine-footer__legal-menu a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}
.allfine-footer__legal-menu a:hover { color: var(--color-solar); }

/* ============================
   Standard-Seiten (kein Elementor)
   ============================ */
.page-title-wrapper {
    background: var(--color-bg);
    padding: 64px 24px;
    text-align: center;
}
body:not(.elementor-page) .allfine-main {
    padding: 0;
}
body:not(.elementor-page) .entry-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px;
}
body:not(.elementor-page) h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 24px; }
body:not(.elementor-page) h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 40px 0 14px; }
body:not(.elementor-page) p  { font-size: 17px; line-height: 1.65; margin: 0 0 18px; }

/* ============================
   Allfine Custom Section Helpers (fuer Startseite)
   Wird zusaetzlich von Elementor genutzt
   ============================ */
.allfine-stats {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 64px 24px;
}
.allfine-stats__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.allfine-stat__value {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-solar);
    line-height: 1;
    letter-spacing: -1px;
}
.allfine-stat__label {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .allfine-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 960px) {
    .allfine-header__inner {
        flex-wrap: wrap;
        padding: 12px 20px;
        gap: 12px;
    }
    .allfine-header__brand { margin-right: auto; }
    .allfine-header__brand img { height: 36px; }
    .allfine-header__toggle { display: block; }

    .allfine-header__nav {
        order: 4;
        flex-basis: 100%;
        display: none;
        padding-top: 16px;
        border-top: 1px solid var(--color-line);
        margin-top: 8px;
    }
    .allfine-header__nav[data-open="true"] { display: block; }
    .allfine-header__nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .allfine-header__nav a {
        padding: 12px 0;
        font-size: 16px;
        width: 100%;
        display: block;
    }

    .allfine-header__cta { gap: 10px; }
    .allfine-header__phone span { display: none; }
    .allfine-header__btn { padding: 10px 16px; font-size: 14px; }

    .allfine-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        padding: 56px 20px 36px;
    }
    .allfine-footer__col--brand { grid-column: 1 / -1; }

    .allfine-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
}

@media (max-width: 560px) {
    .allfine-footer__inner { grid-template-columns: 1fr; }
}

/* ============================
   Inline-Grid Mobile-Overrides (greift bei inline-style grids in HTML-Widgets)
   ============================ */
@media (max-width: 768px) {
    .elementor-widget-html [style*="grid-template-columns:repeat(4"],
    .elementor-widget-html [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .elementor-widget-html [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    /* Stats-Zahlen kleiner auf Mobile */
    .elementor-widget-html [style*="font-size:48px"] {
        font-size: 36px !important;
    }
}
@media (max-width: 560px) {
    .elementor-widget-html [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    .elementor-widget-html [style*="grid-template-columns:1.4fr"],
    .elementor-widget-html [style*="grid-template-columns:1.2fr"],
    .elementor-widget-html [style*="grid-template-columns:1fr 1.3fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================
   Theme Builder Overrides (Pro Header / Footer)
   ============================ */

/* Footer-Logo nutzt jetzt eigenes Dark-Asset (allfine_logo_id_dark Option)
   — Kein CSS-Filter mehr noetig. Falls Fallback-Asset (Light) im Footer
   landet, einfach die Option setzen: wp option update allfine_logo_id_dark <id> */

/* Header: Telefon-Nummer einzeilig halten */
.allfine-pro-header .elementor-icon-box-title,
.allfine-pro-header .elementor-icon-box-content,
.allfine-pro-header .elementor-widget-icon-box {
    white-space: nowrap;
}
.allfine-pro-header .elementor-icon-box-wrapper {
    display: flex;
    align-items: center;
}

/* ============================
   FLOATING ACTION BUTTON (FAB)
   ============================ */
.allfine-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.allfine-fab__btn {
    pointer-events: auto;
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.allfine-fab__btn:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
}
.allfine-fab__btn--whatsapp {
    background: #25D366;
    color: #ffffff;
}
.allfine-fab__btn--whatsapp:hover { background: #1DA851; }
.allfine-fab__btn--phone {
    background: var(--color-solar);
    color: var(--color-navy);
}
.allfine-fab__btn--phone:hover { background: var(--color-solar-h); }

/* Pulse-Glow alle 6s */
.allfine-fab__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.45);
    opacity: 0;
    animation: fabPulse 6s ease-out infinite;
    z-index: -1;
}
@keyframes fabPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    10%      { opacity: 1; transform: scale(1); }
    35%      { opacity: 0; transform: scale(1.6); }
}

@media (max-width: 600px) {
    .allfine-fab { bottom: 16px; right: 16px; }
    .allfine-fab__btn { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .allfine-fab__pulse { animation: none; }
}

/* ============================
   EDITORIAL TYPOGRAPHY HELPER
   Mix Inter (Sans) + Playfair Display (Serif Italic) fuer Headlines
   Mit Klasse .allfine-editorial markieren: zweiter Word/Span wird Italic-Serif
   ============================ */
.allfine-editorial em,
.allfine-editorial .editorial {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--color-solar);
}

/* Hover-Letter-Spacing fuer interaktive Headlines */
h1, h2, h3 { transition: letter-spacing 0.3s ease; }
a:hover h1, a:hover h2, a:hover h3 { letter-spacing: 0.5px; }

/* ============================
   SECTION-COUNTER (01, 02, 03 als roter Faden)
   ============================ */
.allfine-section-num {
    font-family: 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--color-solar);
}

/* ============================
   Magnetic-Button-Reset (von interactions.js gesetzt — backstop CSS)
   ============================ */
.elementor-button, .allfine-fab__btn {
    will-change: transform;
}

/* ============================
   REVEAL-ON-SCROLL (von interactions.js gesteuert)
   ============================ */
.allfine-reveal-init {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.allfine-reveal-init.allfine-reveal-show {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .allfine-reveal-init {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =============================================
   ANLAGEN-GALERIE — Mosaic-Layout fuer Loop-Grid
   ============================================= */

/* Hero-Card (erstes Item) bekommt 2x2 Span im Desktop */
.allfine-mosaic.elementor-grid {
    grid-auto-rows: minmax(220px, 1fr);
}
.allfine-mosaic .elementor-grid > article:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Project-Card Styling */
.allfine-projekt-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* Vollflaechiges schwarz-transparentes Overlay ueber dem Featured-Image-BG.
   Verbessert die Lesbarkeit der weissen Schrift (Hersteller-Eyebrow oben,
   Ort-Headline + Caption unten). Das HTML-Gradient-Overlay im Loop-Template
   liegt ZUSAETZLICH unten fuer extra Tiefe. */
.allfine-projekt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

/* Auf Hover wird das Overlay leicht heller — Foto rueckt etwas mehr in den Fokus */
.allfine-projekt-card:hover::before {
    background: rgba(0, 0, 0, 0.20);
}

.allfine-projekt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(254, 196, 62, 0.18);
}

/* Sicherstellen dass alle Widgets ueber dem Overlay liegen */
.allfine-projekt-card > .e-con-inner,
.allfine-projekt-card > .elementor-widget,
.allfine-projekt-card > .elementor-element {
    position: relative;
    z-index: 1;
}

/* Tablet/Mobile: Mosaic verflacht zu regulaerem Grid */
@media (max-width: 1024px) {
    .allfine-mosaic .elementor-grid > article:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 767px) {
    .allfine-mosaic .elementor-grid > article:first-child {
        grid-column: span 1;
    }
}

/* =============================================
   RESPONSIVE OVERRIDES — Mobile + Tablet
   Aktiviert via Breakpoints: mobile <768px, tablet <1024px
   ============================================= */

/* === HERO === */
/* Visibility-Klassen-Fix (Container hatte 'hidden_mobile' statt korrekter 'hidden-mobile'
   in der Elementor-Setting — wir matchen den falschen Klassennamen mit korrektem Breakpoint) */
@media (max-width: 1024px) {
    .elementor-element.elementor-hidden_tablet {
        display: none !important;
    }
    /* Hero-Padding reduzieren */
    .allfine-hero {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
}
@media (max-width: 767px) {
    .elementor-element.elementor-hidden_mobile {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .allfine-hero {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        min-height: auto !important;
    }
    /* Hero-Headline kompakter */
    .allfine-hero h1 {
        font-size: clamp(36px, 9vw, 48px) !important;
    }
}

/* === SECTION PADDING reduzieren auf Mobile/Tablet === */
@media (max-width: 1024px) {
    /* Outer-Container mit > 80px padding → reduzieren */
    .e-con:not(.e-child) {
        --padding-top: 64px;
        --padding-bottom: 64px;
    }
}
@media (max-width: 767px) {
    .e-con:not(.e-child) {
        --padding-top: 48px;
        --padding-bottom: 48px;
        --padding-left: 16px;
        --padding-right: 16px;
    }
    /* Section-Header Spacing */
    .elementor-widget-heading h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
        line-height: 1.2 !important;
    }
}

/* === FOOTER NAV-MENU: zeigt Items, KEIN Burger auf Mobile+Tablet === */
/* Footer-Menus (in der Pro Theme Builder Footer-Section) sollen die
   Links als Liste anzeigen, NICHT als Burger-Toggle.
   Selektor: data-elementor-type="footer" (Theme Builder Footer-Template) */
@media (max-width: 1024px) {
    /* Burger im Footer ausblenden */
    [data-elementor-type="footer"] .elementor-menu-toggle {
        display: none !important;
    }
    /* Alle Nav-Menu-ULs im Footer FORCE sichtbar als block list */
    [data-elementor-type="footer"] .elementor-nav-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        width: 100%;
    }
    /* Menu-Items sichtbar (weiss auf schwarz) */
    [data-elementor-type="footer"] .elementor-nav-menu li {
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
    }
    [data-elementor-type="footer"] .elementor-nav-menu .elementor-item {
        color: rgba(255,255,255,0.75) !important;
        font-size: 14px !important;
        padding: 4px 0 !important;
        text-align: left !important;
        display: block !important;
        white-space: normal !important;
    }
    [data-elementor-type="footer"] .elementor-nav-menu .elementor-item:hover {
        color: var(--color-solar) !important;
    }
    /* Wenn die SmartMenus-Lib eine Mobile-Dropdown-Version erzeugt,
       die Original-UL bleibt sichtbar */
    [data-elementor-type="footer"] .elementor-nav-menu--dropdown {
        display: none !important;
    }
    /* Footer Nav-Menu Widget Container Klassen die Burger/Dropdown aktivieren
       neutralisieren — wir wollen die normale UL-Anzeige */
    [data-elementor-type="footer"] .elementor-widget-nav-menu.elementor-nav-menu--burger,
    [data-elementor-type="footer"] .elementor-widget-nav-menu.elementor-nav-menu--toggle,
    [data-elementor-type="footer"] .elementor-widget-nav-menu.elementor-nav-menu--dropdown-tablet,
    [data-elementor-type="footer"] .elementor-widget-nav-menu.elementor-nav-menu--dropdown-mobile {
        /* Forcieren dass die Original-UL gezeigt wird (Item-Liste statt Burger) */
    }
    /* UL Hoehe + Width forcieren */
    [data-elementor-type="footer"] ul.elementor-nav-menu {
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
        min-width: 100% !important;
    }
    /* sm-vertical Klasse von SmartMenus zeigt items vertikal — sicherstellen */
    [data-elementor-type="footer"] ul.elementor-nav-menu.sm-vertical,
    [data-elementor-type="footer"] ul.elementor-nav-menu {
        display: block !important;
    }
    [data-elementor-type="footer"] ul.elementor-nav-menu > li {
        display: block !important;
        height: auto !important;
        width: auto !important;
    }
    [data-elementor-type="footer"] ul.elementor-nav-menu > li > a {
        display: block !important;
        height: auto !important;
        width: auto !important;
    }
    /* KRITISCH: nav.elementor-nav-menu--main Container ist von Elementor
       per default display:none auf mobile (Burger-Mode). Forcen wir es. */
    [data-elementor-type="footer"] nav.elementor-nav-menu--main,
    [data-elementor-type="footer"] .elementor-nav-menu__container.elementor-nav-menu--main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        visibility: visible !important;
    }
    /* Die Dropdown-Variante (für Burger-Click) ausblenden, wir nutzen Main */
    [data-elementor-type="footer"] .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        display: none !important;
    }
    /* Elementor setzt margin-inline-start auf alle Items ausser first-child
       (fuer horizontal layout). In column-mode wird das eine Einrueckung.
       Reset auf 0 fuer alle Footer-Nav-Items im Mobile/Tablet. */
    [data-elementor-type="footer"] .elementor-nav-menu > li > a,
    [data-elementor-type="footer"] .elementor-nav-menu > li:not(:first-child) > a {
        margin-inline-start: 0 !important;
        margin-left: 0 !important;
    }
}

/* === HEADER (Theme Builder Pro) — Mobile + Tablet Layout === */
/* Gilt fuer Mobile (<767px) UND Tablet (768-1024px) gleichermassen:
   Logo links, Termin-Button mittig (flex:1), Burger rechts.
   Phone-Nummer ausgeblendet, Nav-Menu-Items nur via Burger erreichbar. */
@media (max-width: 1024px) {
    /* Inner-Wrapper: nowrap row, gleiche Hoehe aller Elemente */
    .allfine-pro-header > .e-con-inner {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        min-height: 64px;
    }
    /* Logo (1. Spalte) — links, fixe Breite, vertikal zentriert */
    .allfine-pro-header > .e-con-inner > .e-con:nth-child(1) {
        flex: 0 0 auto !important;
        width: auto !important;
        order: 1 !important;
        align-self: center !important;
        justify-content: flex-start !important;
    }
    /* CTA-Container (3. Spalte, Termin-Button) — mittig, flexibel */
    .allfine-pro-header > .e-con-inner > .e-con:nth-child(3) {
        flex: 1 1 auto !important;
        width: auto !important;
        order: 2 !important;
        justify-content: center !important;
        align-self: center !important;
        align-items: center !important;
    }
    /* Nav-Container (2. Spalte, Burger) — GANZ RECHTS, gleiche Hoehe, Burger vertikal zentriert */
    .allfine-pro-header > .e-con-inner > .e-con:nth-child(2) {
        flex: 0 0 auto !important;
        width: 48px !important;
        max-width: 48px !important;
        height: 40px !important;
        order: 3 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-self: center !important;
        align-items: center !important;
    }
    /* Inner widget-wrapper im nav-container — voller Hoehe-Bereich */
    .allfine-pro-header > .e-con-inner > .e-con:nth-child(2) > .elementor-element,
    .allfine-pro-header > .e-con-inner > .e-con:nth-child(2) > .elementor-widget {
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* Burger DIREKT vertikal zentrieren mit padding-trick im 40px-Container */
    .allfine-pro-header .elementor-widget-nav-menu .elementor-widget-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 40px !important;
        line-height: 40px !important;
    }
    .allfine-pro-header div.elementor-menu-toggle {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center !important;
    }
    /* Burger Container 40px hoch + flex-zentriert (mit hoher Specificity).
       Toggle absolute-positioniert in seinem Widget-Container und vertikal
       via top:50% + translateY(-50%) zentriert — robust gegen NAV-Inner-
       Layout (das die Position sonst nach oben verschiebt). */
    body .allfine-pro-header .elementor-widget-nav-menu .elementor-menu-toggle {
        height: 40px !important;
        width: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
    }
    /* Widget bekommt min-height 40 + position relative damit Toggle innen
       absolut zentrieren kann. NAV-Container drinnen wird auch min-height 40. */
    body .allfine-pro-header .elementor-widget-nav-menu {
        align-self: center !important;
        position: relative !important;
        min-height: 40px;
        min-width: 40px;
    }
    body .allfine-pro-header .elementor-widget-nav-menu .elementor-nav-menu--main {
        min-height: 40px !important;
        min-width: 40px;
    }
    /* Icon selbst (FontAwesome) standard-size */
    body .allfine-pro-header .elementor-menu-toggle > i,
    body .allfine-pro-header .elementor-menu-toggle > svg {
        font-size: 22px !important;
        line-height: 1 !important;
        margin: 0 !important;
        vertical-align: middle !important;
    }
    /* Phone-Nummer ausblenden auf mobile UND tablet */
    .allfine-pro-header .elementor-widget-icon-box {
        display: none !important;
    }
    /* Horizontale Nav-Items VERSTECKEN — nur Burger sichtbar — NUR IM HEADER!
       (frueher generic, hat auch Footer-Menus versteckt) */
    .allfine-pro-header .elementor-widget-nav-menu .elementor-nav-menu--main > .elementor-nav-menu:not(.elementor-nav-menu--dropdown) {
        display: none !important;
    }
    /* Burger-Toggle sichtbar + identische Hoehe + vertikal zentriert.
       z-index hoeher als Dropdown (9999) damit X-Click immer erreichbar bleibt. */
    .allfine-pro-header .elementor-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 40px !important;
        width: 40px !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        position: relative !important;
        z-index: 10001 !important;
    }
    /* Nav-Widget Container — KEIN height-Constraint (das collapse-t das Dropdown,
       da das Dropdown ein DOM-Child ist auch wenn position:absolute).
       Nur Flex-Center fuer Toggle-Inhalt, min-height 40 fuer Layout-Konsistenz. */
    .allfine-pro-header .elementor-widget-nav-menu,
    .allfine-pro-header .elementor-widget-nav-menu > .elementor-widget-container,
    .allfine-pro-header .elementor-nav-menu--main {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 40px;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Burger-Icon innerhalb vom Toggle vertikal zentriert.
       WICHTIG: open- und close-Icon nur basierend auf aria-expanded zeigen,
       nicht beide gleichzeitig (Elementor managt das via aria-state). */
    .allfine-pro-header .elementor-menu-toggle i,
    .allfine-pro-header .elementor-menu-toggle svg {
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    /* aria-expanded=false → nur Burger (open) zeigen, X (close) verstecken */
    .allfine-pro-header .elementor-menu-toggle[aria-expanded="false"] .elementor-menu-toggle__icon--open {
        display: inline-flex !important;
    }
    .allfine-pro-header .elementor-menu-toggle[aria-expanded="false"] .elementor-menu-toggle__icon--close {
        display: none !important;
    }
    /* aria-expanded=true → nur X (close) zeigen, Burger (open) verstecken */
    .allfine-pro-header .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--open {
        display: none !important;
    }
    .allfine-pro-header .elementor-menu-toggle[aria-expanded="true"] .elementor-menu-toggle__icon--close {
        display: inline-flex !important;
    }
    /* Termin-Button kompakter, gleiche Hoehe */
    .allfine-pro-header .elementor-button {
        padding: 10px 18px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }
    /* Logo-Bild auf einheitliche Hoehe begrenzen */
    .allfine-pro-header .elementor-widget-image img {
        height: 40px !important;
        width: auto !important;
        max-width: 140px;
    }
    /* === Burger-Dropdown: Komplettes Override.
       Position fixed weil das Dropdown's nearest positioned ancestor das
       40px breite Burger-Widget ist — width 100% wuerde da nur 40px geben.
       Mit fixed + viewport-coords koennen wir voll-breit rendern. */
    .allfine-pro-header .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-height: 0 !important;
        height: auto !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.3s !important;
        background: #0d0d0d !important;
        margin: 0 !important;
        z-index: 9999 !important;
        transform: none !important;
        animation: none !important;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .allfine-pro-header .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        max-height: calc(100vh - 60px) !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow-y: auto !important;
    }
    /* UL im Dropdown — Items vertikal, klares Spacing */
    .allfine-pro-header .elementor-nav-menu--dropdown ul.elementor-nav-menu {
        padding: 8px 0 !important;
        margin: 0 !important;
        list-style: none !important;
        background: transparent !important;
    }
    .allfine-pro-header .elementor-nav-menu--dropdown ul.elementor-nav-menu li {
        list-style: none !important;
        margin: 0 !important;
    }
    .allfine-pro-header .elementor-nav-menu--dropdown .elementor-item {
        padding: 14px 24px !important;
        font-size: 15px !important;
        color: rgba(255,255,255,0.9) !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        display: block !important;
        text-decoration: none !important;
    }
    .allfine-pro-header .elementor-nav-menu--dropdown .elementor-item:hover,
    .allfine-pro-header .elementor-nav-menu--dropdown .elementor-item:focus,
    .allfine-pro-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
        color: var(--color-solar, #FEC43E) !important;
        background: rgba(255,255,255,0.04) !important;
    }
    /* Header muss position:relative haben damit Dropdown absolut darunter liegt */
    .allfine-pro-header {
        position: relative !important;
    }
}
@media (max-width: 767px) {
    /* Mobile: Logo etwas kleiner */
    .allfine-pro-header .elementor-widget-image img {
        max-width: 110px !important;
    }
    .allfine-pro-header > .e-con-inner {
        gap: 8px !important;
    }
}

/* === BIG-NUMBER STATS (Editorial) === */
@media (max-width: 767px) {
    /* Die "1.500" Big-Number kleiner auf Mobile */
    .allfine-stats-editorial span[style*="font-size:clamp(96px"],
    .allfine-stats-editorial span[style*="font-size:clamp(96px,14vw,180px)"] {
        font-size: clamp(72px, 22vw, 110px) !important;
        letter-spacing: -4px !important;
    }
}

/* === BUTTONS: Full-Width auf Mobile === */
@media (max-width: 480px) {
    .elementor-widget-button {
        width: 100%;
    }
    .elementor-widget-button .elementor-button-wrapper {
        display: block;
    }
    .elementor-widget-button .elementor-button {
        width: 100%;
        justify-content: center;
    }
}

/* === ABOUT-Map Container Border auf mobile reduzieren === */
@media (max-width: 767px) {
    /* Inner-Container mit border-radius auf mobile etwas weniger margin */
    .e-con.e-child {
        --padding-left: 0px;
        --padding-right: 0px;
    }
    /* OSM-iframe Höhe reduzieren auf mobile */
    iframe[title*="Servicegebiet"] {
        height: 280px !important;
    }
}

/* === FOOTER === */
@media (max-width: 767px) {
    /* Footer-Spalten stapeln statt 4-Grid */
    .elementor-element .e-con-inner[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* === ANLAGEN-GALERIE / Loop Grid === */
@media (max-width: 767px) {
    /* Loop-Cards: kompaktere min-height auf mobile */
    .allfine-projekt-card {
        min-height: 260px !important;
    }
}

/* === FAB (Floating Action Buttons) === */
@media (max-width: 480px) {
    /* FAB-Buttons etwas kleiner auf kleinen Screens */
    .allfine-fab {
        bottom: 16px !important;
        right: 16px !important;
    }
    .allfine-fab__btn {
        width: 48px !important;
        height: 48px !important;
    }
}

/* === SINGLE-KUNDENPROJEKT TEMPLATE === */
.allfine-cpt-single {
    color: var(--color-text, #1a1a1a);
}

/* HERO */
.allfine-cpt-hero {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 80px 24px 60px;
    color: #fff;
}
.allfine-cpt-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}
.allfine-cpt-hero__content {
    position: relative; z-index: 2;
    max-width: 900px; margin: 0 auto; width: 100%;
}
.allfine-cpt-eyebrow {
    color: var(--color-solar, #FEC43E);
    font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 12px;
}
.allfine-cpt-title {
    font-family: 'PP Editorial New', Georgia, serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 400; line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: -1px;
}
.allfine-cpt-caption {
    display: flex; gap: 12px; align-items: center;
    font-size: 16px; font-weight: 500;
    color: rgba(255,255,255,0.9);
}
.allfine-cpt-caption span:nth-child(2n) {
    color: rgba(255,255,255,0.5);
}

/* SPECS */
.allfine-cpt-specs {
    padding: 80px 24px;
    background: #f8f9fb;
}
.allfine-cpt-specs__inner {
    max-width: 900px; margin: 0 auto;
}
.allfine-cpt-section-title {
    font-family: 'PP Editorial New', Georgia, serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400; margin: 0 0 32px;
    letter-spacing: -0.5px;
}
.allfine-cpt-specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.allfine-cpt-spec {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex; flex-direction: column; gap: 6px;
}
.allfine-cpt-spec .lbl {
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(0,0,0,0.55);
}
.allfine-cpt-spec .val {
    font-size: 17px; font-weight: 600;
    color: var(--color-text, #1a1a1a);
}

/* GALLERY */
.allfine-cpt-gallery {
    padding: 80px 24px;
    background: #fff;
}
.allfine-cpt-gallery__inner {
    max-width: 1200px; margin: 0 auto;
}
.allfine-cpt-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.allfine-cpt-gallery__item {
    display: block; aspect-ratio: 4/3;
    overflow: hidden; border-radius: 8px;
    background: #f0f0f0;
    transition: transform 0.3s ease;
}
.allfine-cpt-gallery__item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.allfine-cpt-gallery__item:hover img {
    transform: scale(1.03);
}

/* CTA */
.allfine-cpt-cta {
    padding: 80px 24px 100px;
    background: #0d0d0d;
    color: #fff;
    text-align: center;
}
.allfine-cpt-cta__inner {
    max-width: 700px; margin: 0 auto;
}
.allfine-cpt-cta h2 {
    font-family: 'PP Editorial New', Georgia, serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 400; margin: 0 0 16px;
    color: #fff;
}
.allfine-cpt-cta p {
    font-size: 17px; line-height: 1.7;
    margin: 0 0 32px;
    color: rgba(255,255,255,0.75);
}
.allfine-cpt-cta__buttons {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-bottom: 32px;
}
.allfine-cpt-cta .allfine-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.allfine-cpt-cta .allfine-btn-primary {
    background: var(--color-solar, #FEC43E);
    color: #000;
}
.allfine-cpt-cta .allfine-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.allfine-cpt-cta .allfine-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.allfine-cpt-back {
    display: inline-block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.allfine-cpt-back:hover {
    color: var(--color-solar, #FEC43E);
}

/* MOBILE: kompakter */
@media (max-width: 768px) {
    .allfine-cpt-hero {
        min-height: 50vh;
        padding: 60px 20px 40px;
    }
    .allfine-cpt-specs, .allfine-cpt-gallery, .allfine-cpt-cta {
        padding-left: 20px; padding-right: 20px;
    }
    .allfine-cpt-specs, .allfine-cpt-gallery {
        padding-top: 60px; padding-bottom: 60px;
    }
    .allfine-cpt-cta__buttons {
        flex-direction: column;
    }
    .allfine-cpt-cta .allfine-btn {
        width: 100%;
    }
}
