/* =============================================================================
   pos4retail — Custom CSS
   Azura IT · azura-it.de
   Prefix: p4r-
   ============================================================================= */


/* =============================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================================= */

:root {
    /* -------------------------------------------------------------------------
       CI Farben — pos4retail
       Palette: Monochrom Blau, dunkel nach hell
       Charakter: Enterprise-Tech · Vertrauen · Internationalität
    ------------------------------------------------------------------------- */

    /* Basis-Palette */
    --color-dark-900:    #081826;   /* Tiefstes Dunkel — Hintergrund, Tiefe */
    --color-dark-700:    #123859;   /* Dunkles Blau — Karten, Panels */
    --color-dark-500:    #1A4366;   /* Mittleres Dunkelblau — Borders, Hover-Bg */
    --color-blue:        #1B70A6;   /* Unterstützendes Blau — sekundäre Elemente */
    --color-blue-mid:    #3279B6;   /* Brückenblau — Gradienten, Zwischenstufe */
    --color-accent:      #18A2D9;   /* Primärakzent — Buttons, Tags, Links */
    --color-cyan:        #8DF2F2;   /* Hologramm-Cyan — Glow, Highlights, Energie */
    --color-white:       #ffffff;   /* Weiß — Primärtext, Icons */

    /* Semantische Aliases */
    --color-bg:          var(--color-dark-900);   /* Seitenhintergrund */
    --color-surface:     var(--color-dark-700);   /* Karten, Overlays */
    --color-border:      var(--color-dark-500);   /* Linien, Trennelemente */
    --color-text:        var(--color-white);      /* Primärtext */
    --color-text-muted:  rgba(255, 255, 255, 0.65); /* Sekundärtext */

    /* Gradienten */
    --gradient-brand:    linear-gradient(135deg, #081826 0%, #1B70A6 60%, #18A2D9 100%);
    --gradient-accent:   linear-gradient(90deg, #18A2D9 0%, #8DF2F2 100%);
    --gradient-dark:     linear-gradient(180deg, #081826 0%, #123859 100%);

    /* Overlays */
    --color-overlay:        rgba(8, 24, 38, 0.65);   /* Bild-Overlay dunkel */
    --color-overlay-light:  rgba(8, 24, 38, 0.35);   /* Bild-Overlay leicht */
    --color-glass:          rgba(8, 24, 38, 0.50);   /* Frosted-Glass Panel */

    /* Schatten & Glows */
    --shadow-accent:     0 0 24px rgba(24, 162, 217, 0.35);   /* Accent-Glow */
    --shadow-cyan:       0 0 32px rgba(141, 242, 242, 0.25);  /* Cyan-Glow */
    --shadow-dark:       0 4px 24px rgba(8, 24, 38, 0.8);     /* Tiefer Schatten */

    /* Fonts */
    --font-body: Helvetica, Arial, sans-serif;

    /* Spacing */

    /* Unterseiten */
    --subpage-hero-height:   60vh;
    --subpage-content-width: min(90%, 1300px);
    --subpage-gap:           4rem;
    --subpage-btn-size:      1rem;
    --section-space:         clamp(3rem, 6vw, 5rem);  /* vertikaler Rhythmus der Sektionscontainer (fluid) */
}


/* =============================================================================
   1.1 BREAKPOINT-KONVENTION (desktop-first, max-width)
   -----------------------------------------------------------------------------
   Einheitliches 3-Stufen-System fuer alle Unterseiten. CSS kennt keine
   Variablen in @media-Queries — diese Werte sind daher die verbindliche
   Referenz und werden im gesamten Stylesheet exakt so verwendet:

     1024px  Tablet quer / Laptop schmal  — zugleich Umschaltpunkt der Navigation
             (Bildmenue -> Burger). Mehrspaltige Raster brechen hier herunter.
      768px  Tablet hoch / grosses Smartphone — zweispaltige Inhalte stapeln.
      480px  Smartphone — letzte Spalten loesen sich auf, Innenabstaende sinken.

   Regel: Keine abweichenden Werte mehr einfuehren. Begruendete Ausnahmen
   (z.B. 100vh-fullPage-Sektionen der Startseite) werden inline kommentiert.
   ============================================================================= */


/* =============================================================================
   2. GLOBAL RESET / BASE
   ============================================================================= */

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: #f1f1f1;
}


/* =============================================================================
   3. LAYOUT
   ============================================================================= */

/* fullPage.js Section */
.section,
.section-dark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    font-size: 6rem;
    overflow: hidden;
    position: relative;
    background: var(--gradient-dark);
}

/* Dunkle Variante: identisch zu .section, nur flacher Hintergrund (kein Verlauf) */
.section-dark {
    background: #081826;
}

/* Mobile: Sektion exakt auf die sichtbare Viewport-Hoehe begrenzen.
   svh = small viewport height (Browser-UI eingerechnet) — verhindert, dass
   100vh groesser als der sichtbare Bereich ist. !important schlaegt eine evtl.
   von Elementor gesetzte min-height sowie die fullPage-Inline-Hoehe. Das
   Zentrieren und Layout des Inhalts uebernimmt der Elementor-Flex-Container
   (justify-content:center); der Inhalt wird per clamp() eingepasst. */
@media (max-width: 768px) {
    #fullpage .section,
    #fullpage .section-dark {
        height: 100vh !important;
        height: 100svh !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
    }
}

/* =============================================================================
   4. HEADER & NAVIGATION
   ============================================================================= */

/* --- Navbar (Frosted Glass Header Bar) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 calc((100% - min(80vw, 1700px)) / 2);
    box-sizing: border-box;
    z-index: 10000;
}

/* Brand-Gruppe (links) */
.p4r-navbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.p4r-navbar-divider {
    width: 1px;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.navbar .logo {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    opacity: 0.7;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar .logo[href]:hover { opacity: 1; color: #ffffff; cursor: pointer; }
.navbar .logo:not([href]) { cursor: default; pointer-events: none; }

@media (max-width: 768px) {
    .p4r-navbar-divider,
    .navbar .logo { display: none; }
}

/* Brand (links) */
.p4r-navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
}

.p4r-navbar-brand .p4r-navbar-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.p4r-navbar-brand .p4r-navbar-sub {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.p4r-navbar-brand img.p4r-navbar-logo {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.p4r-navbar-brand:hover img.p4r-navbar-logo {
    opacity: 1;
}

@media (max-width: 768px) {
    .p4r-navbar-brand img.p4r-navbar-logo {
        height: 24px;
    }
}

/* CTA (leicht rechts) */
.p4r-navbar-cta {
    font-size: 0.875rem !important;
    padding: 0.45rem 1.6rem !important;
    margin-left: auto;
    margin-right: calc(30px + 3rem);
}

/* --- Sprachumschalter [p4r_lang_switcher] (DE/EN) ---
   Rendert nur bei aktivem WPML (sonst Leerstring aus dem Shortcode). Kompakter
   Text-Toggle, passt zur dunklen Enterprise-Navbar. Platzierung im Header/der
   Navbar per Elementor-Shortcode-Widget. */
.p4r-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;                 /* dezenter Abstand statt Trennstrich (Pillen-Optik) */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}
.p4r-lang-switcher__item {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
/* Hover auf der inaktiven Sprache: aufhellen + dezente Flaeche */
.p4r-lang-switcher a.p4r-lang-switcher__item:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.10);
}
/* Gedrueckt */
.p4r-lang-switcher a.p4r-lang-switcher__item:active {
    background: rgba(255, 255, 255, 0.16);
}
/* Aktive Sprache: Accent-Pille, nicht klickbar */
.p4r-lang-switcher__item.is-active {
    color: var(--color-accent);
    background: rgba(24, 162, 217, 0.15);
    cursor: default;
}

/* In die Navbar eingehaengt (per JS, .has-lang-switcher): rechts gruppiert,
   links neben dem CTA-Button. margin-left:auto schnappt den freien Platz, damit
   Schalter + CTA rechts sitzen; die CTA-eigene margin-left:auto wird dann durch
   den festen Abstand ersetzt (sonst Luecke zwischen beiden). */
.navbar .p4r-lang-switcher { margin-left: auto; }
.navbar.has-lang-switcher .p4r-navbar-cta { margin-left: 0.9rem; }

/* --- Drittplatzierung: Sprachwahl am Ende des Burger-Menues -------------------
   Klon ans Ende von .vertical-image-menu (Startseite) bzw. .mobile-text-menu
   (Unterseiten), abgesetzt durch einen Trenner (Kundenwunsch 08/2026).

   Anlass: der ▲-Pfeil der Startseite sitzt fix auf left:50% mitten in der
   Navbar und liegt damit genau auf den Sprachpillen. Gemessene Ueberdeckung:
   390px Viewport 40x21px, 900px 40x21px, 1100px 24x21px, 1150px 3.6x21px. Bei
   1160px beruehren sich beide gerade noch (0.4px Luft), erst ab 1180px liegen
   8px dazwischen — daher ist das die obere Grenze. Auf Unterseiten sind die
   Pfeile aus (body:not(.home)), dort gibt es die Kollision nicht.

   Das Aussehen steht hier oben und gilt unabhaengig vom Breakpoint; die
   @media-Bloecke darunter entscheiden nur, WO der Schalter jeweils sitzt. */
.p4r-menu-lang {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.p4r-menu-lang .p4r-lang-switcher { gap: 0.35rem; }

/* Die Menue-Selektoren stehen mit davor, weil .mobile-text-menu a die
   Menuetypografie setzt (fett, 1.3rem, Accent) — ohne sie waeren EN und ES so
   gross wie die Navigationspunkte, das aktive DE als <span> dagegen nicht.
   Groesser als im Header ist richtig, aber als Pille, nicht als Menuepunkt.
   min-height 44px = uebliches Mindestmass fuer Touch-Ziele. */
.vertical-image-menu .p4r-menu-lang .p4r-lang-switcher__item,
.mobile-text-menu   .p4r-menu-lang .p4r-lang-switcher__item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}
.vertical-image-menu .p4r-menu-lang .p4r-lang-switcher__item.is-active,
.mobile-text-menu   .p4r-menu-lang .p4r-lang-switcher__item.is-active {
    color: var(--color-accent);
}

/* Bis 1024px haben beide Seitentypen ein Burger-Menue (Startseite: das
   Bildmenue klappt hier als Textdrawer auf; Unterseiten: #mobile-burger +
   .mobile-text-menu). Der Schalter zieht dorthin um. */
@media (max-width: 1024px) {
    .navbar .p4r-lang-switcher { display: none; }
    .p4r-menu-lang { display: block; }
}

/* 1025 bis 1180px: nur die Startseite. Unterseiten haben ab 1025 keinen Burger
   mehr (#mobile-burger: none, die Seitenleiste uebernimmt) — dort muss der
   Schalter im Header bleiben, sonst waere er nur noch im Footer erreichbar.
   Auf der Startseite ist .vertical-image-menu hier wieder das Bildmenue; dessen
   Punkte haben padding: 0 15%, das der Block mitmachen muss, sonst klebt die
   DE-Pille am Bildschirmrand. */
@media (min-width: 1025px) and (max-width: 1180px) {
    body.home .navbar .p4r-lang-switcher { display: none; }
    body.home .p4r-menu-lang {
        display: block;
        /* Margin, nicht Padding: der Trenner ist ein border-top und laeuft sonst
           ueber die volle Menuebreite bis an die Bildschirmkante. Im Textdrawer
           uebernimmt das die Menue-Polsterung (2rem), hier hat das Bildmenue
           padding: 0 und die Einrueckung sitzt an den Menuepunkten selbst. */
        margin-left: 15%;
        margin-right: 15%;
    }
}

/* Zweitplatzierung im Footer (per JS aus der Navbar geklont): Bottom-Bar der
   Unterseiten bzw. Slim-Footer der Startseite, jeweils neben den Legal-Links.
   Etwas kleiner, passend zur Footer-Schriftgroesse. */
.p4r-footer__legal .p4r-lang-switcher,
.p4r-slim-footer__links .p4r-lang-switcher { font-size: 0.72rem; }

/* --- Unterseiten-Navbar ---
   Wie die Startseite, aber auf die Unterseiten-Inhaltskante ausgerichtet.
   Der Unterseiten-Wrapper ist links um --p4r-wrap-offset versetzt (Platz fuer
   das Bildmenue); der Inhalt darin ist 90% breit (max 1300px) und zentriert.
   Daraus ergeben sich die Inhaltskanten:
     links  = Offset + (Innenbreite - Inhaltsbreite) / 2
     rechts =          (Innenbreite - Inhaltsbreite) / 2
   Logo sitzt buendig zur linken Kante, CTA buendig zur rechten Kante.
   Nur ab Desktop (>1024px) — darunter greift die Burger-Logik der Basis-Navbar.
   Bei Abweichung nur --p4r-wrap-offset anpassen (= linkes Padding des Wrappers). */
@media (min-width: 1025px) {
    .p4r-navbar--subpage {
        --p4r-wrap-offset: 20%;                                   /* linkes Padding des Wrapper-Containers */
        --p4r-wrap-inner:  calc(100% - var(--p4r-wrap-offset));   /* nutzbare Breite rechts vom Offset */
        --p4r-wrap-content: min(calc(var(--p4r-wrap-inner) * 0.9), 1300px);
        --p4r-wrap-gap:    calc((var(--p4r-wrap-inner) - var(--p4r-wrap-content)) / 2);
        padding-left:  calc(var(--p4r-wrap-offset) + var(--p4r-wrap-gap));
        padding-right: var(--p4r-wrap-gap);
    }
    .p4r-navbar--subpage .p4r-navbar-cta {
        margin-right: 0;   /* kein Burger in dieser Ecke -> buendig zur Inhaltskante */
    }
}

/* --- Burger Icon (fix, außerhalb Navbar-Stacking-Context) ---
   Einheitliches Design fuer Startseite (#burger-menu) und Unterseiten
   (#mobile-burger): gleiche Optik + identische Position. Unterschiedlich bleiben
   nur Anzeige-Logik und z-index (jeder Burger liegt ueber seinem eigenen Menue). */
#burger-menu,
#mobile-burger {
    position: fixed;
    top: 21px;
    right: calc((100% - min(80vw, 1700px)) / 2);
    width: 30px;
    height: 22px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

#burger-menu  { display: flex; z-index: 10001; }
#mobile-burger { display: none;  z-index: 10100; } /* nur Unterseiten-Mobile, per @media eingeblendet */

#burger-menu span,
#mobile-burger span {
    display: block;
    width: auto;
    height: 3px;
    background: var(--color-white);
    border-radius: 3px;
    transition: 0.3s ease;
}

#burger-menu.active span:nth-child(1),
#mobile-burger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
#burger-menu.active span:nth-child(2),
#mobile-burger.active span:nth-child(2) { opacity: 0; }
#burger-menu.active span:nth-child(3),
#mobile-burger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .navbar {
        height: 56px;
        padding: 0 1.25rem;
    }
    .p4r-navbar-brand .p4r-navbar-name { font-size: 0.95rem; }
    /* "Angebot anfragen"-CTA auf Smartphones ausblenden. Der .navbar-Praefix ist
       noetig, damit display:none die .btn-Regel (display:inline-block) schlaegt;
       768px, weil grosse Phones (z.B. Samsung A16) eine CSS-Breite >480px melden. */
    .navbar .p4r-navbar-cta { display: none; }
    #burger-menu,
    #mobile-burger { right: 1.25rem; }
}

/* --- Menu Overlay --- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Vertical Image Menu --- */
.vertical-image-menu {
    position: fixed;
    top: 0;
    left: -25vw;
    width: 25vw;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0;
    transition: left 0.35s ease;
}

.vertical-image-menu.active {
    left: 0;
}

.vertical-image-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 15%;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.vertical-image-menu a img {
    width: 50%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
    transition: 0.3s ease;
}

.vertical-image-menu a .menu-text {
    font-size: 3vw;
    font-weight: 700;
    color: var(--color-white);
    opacity: 0;
    margin-left: 40px;
    white-space: nowrap;
    transform: scale(1);
    transform-origin: left center;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.vertical-image-menu.active a .menu-text {
    opacity: 0.6;
}

.vertical-image-menu.active a:hover .menu-text {
    opacity: 1;
    color: var(--color-white);
    transform: scale(1.15);
}

.vertical-image-menu:not(.active):not(.p4r-subpage-menu) a {
    pointer-events: none;
}

.vertical-image-menu a:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px var(--color-accent));
    border: 2px solid var(--color-accent);
    border-radius: 10px;
}

.vertical-image-menu a.active img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 16px var(--color-accent));
    border: 2px solid var(--color-accent);
    border-radius: 10px;
}

/* Mobile/Tablet: Startseiten-Bildmenue als Drawer von rechts — visuell und im
   Verhalten identisch zum Unterseiten-Menue (.mobile-text-menu). Werte bewusst
   deckungsgleich gehalten (eine gemeinsame Drawer-Optik fuer alle Seiten). */
@media (max-width: 1024px) {
    .vertical-image-menu {
        top: 0;
        left: auto;
        right: -100%;
        width: min(75vw, 320px);
        height: 100vh;
        height: 100svh;
        background: var(--color-dark-900);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        padding: 2rem;
        box-sizing: border-box;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .vertical-image-menu.active {
        left: auto;
        right: 0;
    }

    .vertical-image-menu a {
        justify-content: flex-start;
        width: auto;
        padding: 0.4rem 0;
        pointer-events: auto;
    }

    .vertical-image-menu a img { display: none !important; }

    .vertical-image-menu a .menu-text {
        opacity: 1 !important;
        margin-left: 0;
        font-size: 1.3rem;
        font-weight: 600;
        letter-spacing: normal;
        color: var(--color-text-muted);
        transform: none;
    }

    .vertical-image-menu.active a:hover .menu-text,
    .vertical-image-menu a.active .menu-text {
        color: var(--color-accent);
        transform: none;
    }

    /* Hover-Effekte des Desktop-Bildmenues im Drawer neutralisieren */
    .vertical-image-menu a:hover img,
    .vertical-image-menu a.active img { all: unset; }

    /* Overlay an das Unterseiten-Menue angleichen */
    #menu-overlay {
        background: rgba(8, 24, 38, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}


/* =============================================================================
   5. HERO / SECTIONS
   ============================================================================= */

/* --- p4r Slider System ---
   Typ 1: .p4r-slider             → Hintergrundbild fix (auf Elementor-Container), nur Text bewegt sich
   Typ 2: .p4r-slider.p4r-slider--bg → Pro-Slide Hintergrundbild bewegt sich mit
   data-autoplay="15000"          → Autoplay-Interval in ms (0 = aus)
   data-drag="true"               → Drag-Navigation aktivieren
---------------------------------------------------- */

.p4r-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    isolation: isolate;
    background: transparent !important;
    user-select: none;
    -webkit-user-select: none;
}

.p4r-slider.dragging { cursor: grabbing; user-select: none; }

.p4r-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.p4r-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.p4r-content {
    position: relative;
    z-index: 10;
    width: min(75vw, 1300px);
    color: white;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem 2.5rem;
}

/* Overline Tag */
.p4r-overline {
    display: block;
    width: fit-content;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 0.35em 0.85em 0.4em;
    border-radius: 100px;
    margin-top: 0;
    margin-bottom: 0.75rem;
    text-shadow: none;
    text-decoration: none;
    transition: transform 0.2s ease;
}

a.p4r-overline,
a.p4r-overline:link,
a.p4r-overline:visited,
a.p4r-overline:hover,
a.p4r-overline:active {
    color: var(--color-white) !important;
}

a.p4r-overline:hover {
    transform: scale(1.06);
}

/* Fluide Typoskala (Kundenfeedback 07/2026): Titel kleiner (6rem wirkte
   erdrueckend) + stufenlos statt hartem 768px-Sprung — vorher bekamen Tablets
   und kleine Laptops die volle Desktop-Groesse. Die clamp()-Floors ersetzen
   die frueheren Mobile-Overrides im 768px-Block. */
.p4r-slider .p4r-content h1,
.p4r-slider .p4r-content h2 {
    font-size: clamp(2.2rem, 0.9rem + 3.7vw, 4.5rem) !important;
    line-height: 1.05 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    text-shadow: 0 0 30px rgba(8, 24, 38, 0.95) !important;
}

.p4r-slider .p4r-content h3 {
    font-size: clamp(1.35rem, 0.75rem + 1.7vw, 2.3rem) !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9) !important;
}

.p4r-slider .p4r-content h4,
.p4r-slider .p4r-content p {
    font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.3rem) !important;
    line-height: 1.7 !important;
    color: var(--color-text-muted) !important;
    text-shadow: 0 0 12px rgba(8, 24, 38, 0.9) !important;
}

.p4r-slider .p4r-content .adega-list li {
    font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.3rem) !important;
    line-height: 1.7 !important;
    color: var(--color-text-muted) !important;
    text-shadow: 0 0 12px rgba(8, 24, 38, 0.9) !important;
}

.p4r-slider .p4r-content p,
.p4r-slider .p4r-content .adega-list {
    margin-top: 1rem;
}

/* Slide-Gruppe: Inhaltsbox + CTA darunter. Der CTA sitzt seit 07/2026 UNTER der
   Box (nicht mehr in .p4r-content) — moderner Look (Kundenfeedback). Die Gruppe
   traegt jetzt die Boxbreite; die Box fuellt sie (width:100%).
   align-items:center -> CTA mittig unter der Box. */
.p4r-slide__group {
    position: relative;
    z-index: 10;
    width: min(75vw, 1300px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p4r-slide__group .p4r-content {
    width: 100%;
}

/* CTA unter der Box — gemeinsam fuer Slider (.p4r-slide__cta) und statische
   Teaser (.p4r-static__cta). Sizing schlaegt die grosse Basis-.btn (2rem). */
.p4r-slide__cta.btn,
.p4r-static__cta.btn {
    margin: 1.25rem 0 0 0;
    display: inline-block;
    width: auto;
    font-size: 1.1rem;
    padding: 0.6rem 1.9rem;
}

/* CTA-Reihe unter der Box: bis zu zwei Buttons (Demo primaer + Explore ghost)
   nebeneinander, mittig; umbricht auf schmalen Screens. Der Wrapper traegt den
   oberen Abstand -> Buttons darin bekommen margin-top:0. */
.p4r-slide__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.25rem;
    width: 100%;
}

.p4r-slide__ctas .p4r-slide__cta.btn { margin-top: 0; }

.p4r-slider .p4r-content p,
.p4r-slider .p4r-content .adega-list {
    margin-bottom: 0;
}

/* Liste */
.p4r-content .adega-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.p4r-content .adega-list li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.3em;
}

.p4r-content .adega-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Logo Band Marquee */
.p4r-logo-band {
    width: 100%;
    overflow: hidden;
    margin-top: 1.5rem !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.p4r-logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: p4rLogoScroll 45s linear infinite;
}


/* Fluide Logo-Groesse: skaliert stufenlos Smartphone -> Tablet -> Desktop,
   ein einziger Wert statt fixer px + Breakpoint-Override (kein !important-Konflikt).
   Groesse + Deckkraft angehoben (Kundenfeedback 07/2026: Logos prominenter).
   Volle Farbe (Kundenwunsch 08/2026): die frueher hier globale Entfaerbung
   grayscale(1) brightness(2) steht jetzt nur noch bei .p4r-partner-section,
   wo das Entfaerben-bis-Hover ein gewolltes Muster ist. */
.p4r-logo-track img {
    height: clamp(30px, 3.5vw, 56px) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 clamp(1.5rem, 4vw, 4rem) !important;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Zwei Darstellungen fuer Logos, die auf dem dunklen Hero nicht von allein
   tragen. Gesteuert ueber die vierte Spalte von $logos in functions.php. */

/* Plakette: Originalfarbe bleibt, das Logo bekommt eine eigene helle Flaeche.
   box-sizing/height wirken gegen die !important-Hoehe der Basisregel, deshalb
   sitzt der Innenabstand am Bild selbst statt an einem Wrapper. */
.p4r-logo-track img.p4r-logo--platte {
    box-sizing: content-box;
    background: #ffffff;
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
}

/* Negativ: komplett weiss gerechnet — brightness(0) loescht jede Farbe zu
   Schwarz, invert(1) dreht das zu Weiss. Anders als das frueher globale
   grayscale(1) brightness(2) greift das auch bei reinem Schwarz (Zwilling war
   damit faktisch unsichtbar). */
.p4r-logo-track img.p4r-logo--negativ {
    filter: brightness(0) invert(1);
}

/* Laufzeit haengt an der Spurbreite: die Animation faehrt immer -50%, also je
   mehr Logos, desto schneller. Das Hero-Band ist 08/2026 von 3 auf 8 Logos
   gewachsen -> 45s waeren rund dreimal so schnell wie vorher. 120s haelt die
   gewohnte Lesegeschwindigkeit. */
.p4r-logo-band--hero .p4r-logo-track {
    animation-duration: 120s;
}

@keyframes p4rLogoScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Dot Navigation */
.p4r-dots {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.p4r-dot {
    width: 2.5rem;
    height: 5px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
}

/* Hover-Feedback wie beim vertikalen Scroll-Guide (einheitliche Haptik) */
.p4r-dot:hover { background: rgba(255, 255, 255, 0.75); }

/* Aktiv in Accent — spiegelt den aktiven Guide-Strich, damit horizontale
   Slider-Navigation und vertikaler Guide dasselbe Bild ergeben */
.p4r-dot.active {
    background: var(--color-accent);
    width: 3.5rem;
}

/* Pfeile */
.p4r-prev,
.p4r-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    z-index: 5000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.p4r-prev { left: 10px; }
.p4r-next { right: 10px; }

.p4r-prev::before { content: "◀"; display: block; }
.p4r-next::before { content: "▶"; display: block; }

.p4r-prev:hover { transform: translateY(-50%) translateX(-5px); opacity: 1; }
.p4r-next:hover { transform: translateY(-50%) translateX(5px);  opacity: 1; }

/* Typ 2: Pro-Slide Hintergrundbild */
.p4r-slider--bg .p4r-slide-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}


.p4r-slider--bg .p4r-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8, 24, 38, 0.55) 0%, rgba(8, 24, 38, 0.08) 100%);
    z-index: 1;
}

.p4r-slider--bg .p4r-content { z-index: 2; }

.p4r-slider--bg .p4r-slide {
    opacity: 0;
    animation: p4rFadeIn 0.8s ease forwards;
}

@keyframes p4rFadeIn {
    to { opacity: 1; }
}

/* --- Referenzkunden-Tag (Slider Typ 2) --- */
.p4r-customer-tag {
    position: absolute;
    bottom: 5.5rem;
    /* max() sichert min. 1rem Abstand ab — verhindert Negativ-Werte (und damit
       das Rausragen rechts), falls der Container schmaler als 80vw ist */
    right: max(1rem, calc((100% - min(80vw, 1700px)) / 2));
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    z-index: 10;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.p4r-customer-tag:hover {
    border-color: var(--color-accent);
    background: rgba(8, 24, 38, 0.85);
}

.p4r-customer-tag__label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.p4r-customer-tag__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .p4r-customer-tag { display: none; }
}

/* --- Photo Credit (Slider) --- */
.p4r-photo-credit {
    position: absolute;
    bottom: 1.25rem;
    /* max() sichert min. 1rem Abstand ab — verhindert Negativ-Werte (und damit
       das Rausragen links), falls der Container schmaler als 80vw ist */
    left: max(1rem, calc((100% - min(80vw, 1700px)) / 2));
    font-size: 0.62rem;
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.2rem 0.45rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Boxbreite liegt jetzt auf der Gruppe (Box = width:100%). */
    .p4r-slide__group             { width: 88vw; }
    .p4r-content {
        padding: 1rem;
    }
    /* Titelgroessen kommen aus der fluiden clamp()-Skala (siehe oben) —
       hier nur noch Nicht-Typo-Anpassungen. */
    .p4r-overline                  { font-size: 0.7rem; }
    .p4r-prev, .p4r-next           { font-size: 2rem; }
    /* CTA unter der Box (aus .p4r-content herausgeloest) */
    .p4r-slide__cta.btn,
    .p4r-static__cta.btn { font-size: 0.85rem; padding: 0.5rem 1.4rem; margin-top: 1rem; }
    .p4r-slide__ctas { gap: 0.6rem; margin-top: 1rem; }

    /* Foto-Credit auf Mobile wieder absolut unten links IM Bild (wie Desktop,
       nur sicher im sichtbaren Bereich). Slide ist 100vh; die Browser-UI-Hoehe
       (100vh - 100svh) wird auf bottom aufgerechnet, damit der Credit nicht unter
       die Adressleiste rutscht. Links-Position + mittige Dots kollidieren nicht. */
    .p4r-photo-credit { bottom: calc(100vh - 100svh + 1rem); }
}


/* =============================================================================
   6. COMPONENTS (Cards, Buttons, Badges etc.)
   ============================================================================= */

/* --- Button ---
   Accentblau gefuellt (07/2026, Kundenfeedback: nicht mehr transparent). Hover =
   Bewegung nach rechts + satteres Blau + spuerbarer Lift/Glow (eindeutiger als der
   reine Versatz). Active = "gedrueckt" (leichter Versatz nach unten, kleinerer
   Schatten) -> klare Trennung Hover vs. Klick. */
.btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    text-decoration: none;
    padding: 0.5rem 2rem;
    border-radius: 100px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-accent);
}

.btn,
.btn:link,
.btn:visited { color: #ffffff !important; }

.btn:hover,
.btn:focus-visible {
    color: #ffffff !important;
    background: var(--color-blue);
    border-color: var(--color-blue);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(24, 162, 217, 0.5);
}

.btn:active {
    color: #ffffff !important;
    background: var(--color-blue);
    border-color: var(--color-blue);
    transform: translateX(8px) translateY(2px);
    box-shadow: 0 3px 12px rgba(24, 162, 217, 0.4);
}

/* --- Button: Sekundaer (Ghost) ---
   Zwei-Ebenen-System (07/2026): die Primaer-.btn bleibt kraeftig gefuellt (Demo/
   Konversion), der Sekundaerstil ist eine dezente HELLE Glass-Fuellung (NICHT
   transparent -> Andreas Feedback respektiert) fuer die Explore-CTAs auf die
   Unterseiten. Hover fuellt auf Accent und behaelt die Rechts-Bewegung, damit das
   Button-System einheitlich bleibt. */
.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: none;
}

/* Text akzentblau statt weiss (Lesbarkeit, Kundenwunsch 07/2026). Muss die
   .btn:link/.btn:visited-Regel (#fff !important) schlagen -> gleiche Selektor-Staerke,
   aber spaeter im Quelltext. Hover/Active fuellen auf Accent + weisser Text (s. u.). */
.btn--ghost,
.btn--ghost:link,
.btn--ghost:visited { color: var(--color-accent) !important; }

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
    transform: translateX(8px);
    box-shadow: var(--shadow-accent);
}

.btn--ghost:active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
    transform: translateX(8px) translateY(2px);
    box-shadow: 0 3px 12px rgba(24, 162, 217, 0.4);
}

/* --- Slide Navigation Arrows (oben/unten) --- */
#next-slide-arrow,
#prev-slide-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 5000;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

#next-slide-arrow { bottom: 10px; }
#prev-slide-arrow { top: 12px; } /* zentriert in 64px Navbar: (64-40)/2 */

body.p4r-menu-open #next-slide-arrow,
body.p4r-menu-open #prev-slide-arrow {
    opacity: 0 !important;
    pointer-events: none !important;
}

body.p4r-menu-open .navbar {
    z-index: 9997;
}



#next-slide-arrow:hover {
    transform: translateX(-50%) translateY(5px);
}
#prev-slide-arrow:hover {
    transform: translateX(-50%) translateY(-5px);
}

/* --- fullPage.js Control Arrows --- */
.fp-controlArrow {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    z-index: 5000;
    top: 50% !important;
    transform: translateY(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fp-controlArrow.fp-prev::before { content: "◀"; display: block; }
.fp-controlArrow.fp-next::before { content: "▶"; display: block; }

.fp-controlArrow.fp-prev { left: 10px !important; }
.fp-controlArrow.fp-next { right: 10px !important; }

.fp-controlArrow.fp-prev:hover {
    transform: translateY(-50%) translateX(-5px);
    opacity: 1;
}
.fp-controlArrow.fp-next:hover {
    transform: translateY(-50%) translateX(5px);
    opacity: 1;
}

/* --- Sektions-Rail (vertikaler Scroll-Guide, Kundenfeedback 07/2026) ---
   JS-generiert (custom.js, nur auf fullPage-Seiten). Bewusst minimal: eine
   segmentierte Fortschrittslinie links, ein kurzer Strich je Sektion, aktiver
   Strich in Accent. Kein sichtbarer Titel/Nummer im Ruhezustand — der
   Sektionsname erscheint nur als Tooltip bei Hover/Fokus, der nach rechts
   ausfaehrt (links liegt der ◀-Pfeil). Position: knapp rechts neben dem
   ◀-Pfeil (der bei left:10px sitzt und ~40px breit ist), damit beide sich
   nicht ueberlagern. */
.p4r-rail {
    position: fixed;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;   /* = Dot-Abstand, damit Guide + Slider-Nav gleich wirken */
    z-index: 5000;
}

.p4r-rail__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Der sichtbare Strich ist nur 5px breit — Padding vergroessert die Treffer-
       flaeche nach rechts bis zum Label, sodass Strich, Zwischenraum und Label
       eine durchgehende Hover-Zone bilden (Label hat bei Hover pointer-events). */
    padding: 5px 18px 5px 6px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Die sichtbare Pille (die Ziffer bleibt fuer Screenreader, visuell aus).
   Dimensionen = die Slider-Dots um 90° gedreht: Dot ist 5px hoch / 2.5rem
   breit, der Guide-Strich 5px breit / 2.5rem hoch. So ergeben horizontale
   Slider-Nav und vertikaler Guide dasselbe Bild. */
.p4r-rail__num {
    display: block;
    width: 5px;
    height: 2.5rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.45);
    font-size: 0;
    line-height: 0;
    color: transparent;
    transition: background 0.3s ease, height 0.3s ease;
}

.p4r-rail__item:hover .p4r-rail__num,
.p4r-rail__item:focus-visible .p4r-rail__num { background: rgba(255, 255, 255, 0.75); }

.p4r-rail__item.active .p4r-rail__num {
    background: var(--color-accent);
    height: 3.5rem;   /* = aktiver Dot (3.5rem), nur vertikal */
}

/* Titel-Label: faehrt rechts neben dem Strich aus. Das Label liegt IMMER da
   (volle Breite), nur unsichtbar (opacity:0) — und es traegt schon im Ruhe-
   zustand pointer-events:auto. Damit ist der Bereich rechts vom Strich (genau
   so breit wie das Label) bereits die Hover-Zone: Hover irgendwo darin loest
   ueber das Kind den :hover des Buttons aus -> das Label klappt auf, ohne dass
   man zuerst den schmalen Strich treffen muss. left:100% = buendig an der
   Button-Kante (kein Spalt zum Strich). Kehrseite: die Zone ueberdeckt den
   Bereich der vertikalen Schrift — dort ist aber nichts Interaktives. */
.p4r-rail__label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(8, 24, 38, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    color: var(--color-white);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.p4r-rail__item:hover .p4r-rail__label,
.p4r-rail__item:focus-visible .p4r-rail__label {
    opacity: 1;
    transform: translateY(-50%);
}

/* Offenes Menue: Guide + Cue treten zurueck (wie die ▼/▲-Pfeile) */
body.p4r-menu-open .p4r-rail,
body.p4r-menu-open #p4r-scroll-cue {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    /* Auf dem Smartphone komplett aus (Kundenwunsch 08/2026). Der Guide lebt
       vom Tooltip bei Hover — den gibt es auf Touch nicht, uebrig blieben acht
       Striche am linken Rand, die das schmale Bild nur zusetzen. Die ▲▼-Pfeile
       und der Wisch-Gestus fuehren dort ohnehin durch die Sektionen.
       Bewusst nur ausgeblendet, nicht in custom.js uebersprungen: so kommt der
       Guide beim Drehen ins Querformat (>768px) sofort wieder. */
    .p4r-rail { display: none; }
}

/* --- Scroll-Cue Hero ("Scrollen" + Chevron, JS-generiert) ---
   Ersetzt den ▼-Pfeil auf der ersten Sektion und verschwindet nach dem
   ersten Sektionswechsel (custom.js dismissCue). */
#p4r-scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--color-white);
    cursor: pointer;
    opacity: 0.8;
    z-index: 5000;
    transition: opacity 0.45s ease;
}

#p4r-scroll-cue:hover { opacity: 1; }

#p4r-scroll-cue.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.p4r-scroll-cue__label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
}

.p4r-scroll-cue__chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: p4rCueBounce 1.8s ease-in-out infinite;
}

/* Chevron ist 45° rotiert — translate(4px,4px) im gedrehten Koordinatensystem
   ergibt die sichtbare Auf-und-ab-Bewegung nach unten */
@keyframes p4rCueBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%      { transform: rotate(45deg) translate(4px, 4px); }
}

@media (prefers-reduced-motion: reduce) {
    .p4r-scroll-cue__chevron { animation: none; }
}


/* =============================================================================
   7. STATISCHE SEKTIONEN
   ============================================================================= */


/* Wrapper: statische Teaser-Box + CTA darunter (CTA aus der Box herausgeloest,
   analog zu den Slidern; Kontaktsektion ausgenommen). Traegt Breite + Position,
   die Box fuellt ihn (width:100%). align-items:center -> CTA mittig unter der Box. */
.p4r-static-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(75vw, 1300px);
    margin: 40vh auto 0;
}

.p4r-static-wrap .p4r-static {
    width: 100%;
    margin: 0;
}

.p4r-static {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: min(75vw, 1300px);
    margin: 40vh auto 0;
    color: var(--color-white);
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem 2.5rem;
}

.p4r-static .p4r-overline {
    margin-bottom: 1.25rem;
}

.p4r-static h2 {
    /* Fluid statt fix 3.5rem — Titel kleiner + stufenlose Skalierung
       (Kundenfeedback 07/2026); unter 768px greift der Mobile-Block unten. */
    font-size: clamp(1.9rem, 1rem + 2.3vw, 3rem) !important;
    line-height: 1.1 !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    text-shadow: 0 0 40px rgba(8, 24, 38, 0.8) !important;
}

.p4r-static p {
    font-size: 1.2rem !important;
    line-height: 1.75 !important;
    color: var(--color-text-muted) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-shadow: 0 0 12px rgba(8, 24, 38, 0.7) !important;
}

/* In-Box-Button: gilt fuer Teaser, deren CTA IN der Box bleibt — v.a. der in
   Elementor gebaute Retail-Insights-Teaser (.p4r-static--wide, Button nach dem
   Post-Grid). Groesse + zentriert (align-self ueberschreibt align-items:flex-start).
   Die PHP-Teaser (Loesungen/Partner) haben ihren CTA als .p4r-static__cta AUSSERHALB
   der Box -> Descendant-Selektor trifft sie nicht. */
.p4r-static .btn {
    margin-top: 2rem;
    font-size: 1.1rem;
    align-self: center;
    /* Explore-CTA -> Ghost mit Akzent-Rahmen + Akzent-Text (Lesbarkeit, 07/2026) */
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: none;
}

.p4r-static .btn,
.p4r-static .btn:link,
.p4r-static .btn:visited { color: var(--color-accent) !important; }

.p4r-static .btn:hover,
.p4r-static .btn:focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff !important;
    box-shadow: var(--shadow-accent);
}

/* Stat-Reihe (Zahlen / Fakten) */
.p4r-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    width: 100%;
}

.p4r-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.p4r-stat:last-child {
    border-right: none;
}

.p4r-stat__number {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.p4r-stat__label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* Kennzahlen kompakt als 2x2-Raster — haelt die Sektion niedrig */
    .p4r-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .p4r-stat  {
        flex: none;
        padding: 0.6rem 0.75rem;
        border-right: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .p4r-stat:nth-child(even)      { border-right: none; }
    .p4r-stat:nth-last-child(-n+2) { border-bottom: none; }
    .p4r-stat__number { font-size: 1.6rem; }
    .p4r-stat__label  { white-space: normal; }
}

/* Weniger Top-Versatz für Sektionen mit mehr Inhalt (z.B. Sektion 6 mit Post-Kacheln) */
.p4r-static--wide {
    margin-top: 12vh;
}

/* Tablet + Mobile: statische Sektionen auf Unterseiten-Breite bringen,
   vertikal zentrieren und den 40vh/12vh-Versatz aufheben.
   #fullpage-Praefix + !important sind hier bewusst gesetzt: sie ueberschreiben
   zuverlaessig sowohl die Desktop-Basisregeln als auch Elementors generierte
   Container-CSS, die sonst Breite, Hoehe und Ausrichtung vorgibt. */
@media (max-width: 1024px) {
    /* Sektion + innerer Elementor-Container fuellen die Hoehe und zentrieren
       ihren Inhalt vertikal. Descendant-Selektor (kein >) ueberlebt etwaige
       Zwischen-Wrapper. */
    #fullpage .section,
    #fullpage .section .e-con-inner {
        justify-content: center !important;
    }
    #fullpage .section .e-con-inner {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }
    /* Panels: gleiche Breite wie Unterseiten, kein Top-Versatz.
       (.p4r-static deckt auch .p4r-static--wide ab — gleiche Element-Klasse.)
       .p4r-static-wrap muss mit: der Wrapper kam spaeter dazu (CTA aus der Box
       herausgeloest, 07/2026) und traegt seither selbst die 40vh. Ohne ihn hier
       blieb der Versatz auf Mobile stehen — bei 740px Viewporthoehe sind das
       296px, die den Block nach unten schieben, sodass der CTA unter der Kante
       abgeschnitten wird (gemessen: Sektion "Loesungen" und "Unsere Partner"). */
    #fullpage .section .p4r-static,
    #fullpage .section .p4r-static-wrap,
    #fullpage .section .p4r-cta-split {
        width: var(--subpage-content-width) !important;
        margin-top: 0 !important;
    }
    /* Im Wrapper traegt der Wrapper die Breite, die Box fuellt ihn ganz aus.
       Sonst greift die Regel darueber zweimal (90% von 90% = 81%) und die
       Panels mit Wrapper waeren schmaler als die ohne. */
    #fullpage .section .p4r-static-wrap .p4r-static {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Inhalt per clamp() fluid einpassen; vh-Anteile in den Abstaenden lassen
       den Block zusaetzlich mit der Viewport-Hoehe schrumpfen. */
    .p4r-static,
    .p4r-static--wide {
        max-height: 100%;
        padding: clamp(1rem, 4vw, 1.5rem);
    }
    .p4r-static h2 {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem) !important;
    }
    .p4r-static p {
        font-size: clamp(0.85rem, 3.6vw, 1rem) !important;
        line-height: 1.55 !important;
    }
    .p4r-static .btn          { font-size: 0.9rem; margin-top: clamp(0.75rem, 2vh, 1.5rem); }
    .p4r-static .p4r-overline { margin-bottom: clamp(0.5rem, 1.5vh, 1.25rem); }
}


/* --- Post-Kacheln (Shortcode [p4r_latest_posts]) --- */
.p4r-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.5rem;
}

.p4r-post-card {
    display: flex;
    flex-direction: column;
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.p4r-post-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    color: var(--color-white);
}

.p4r-post-card__img {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.p4r-post-card__img--placeholder {
    background: var(--gradient-brand);
}

.p4r-post-card__body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.p4r-post-card__date {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.p4r-post-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-white);
}

@media (max-width: 1024px) {
    .p4r-post-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Kompaktere Kacheln, damit die Insights-Sektion in 100svh passt */
@media (max-width: 768px) {
    .p4r-post-grid        { gap: 0.75rem; margin-top: clamp(0.6rem, 1.5vh, 1rem); }
    .p4r-post-card__img   { height: clamp(60px, 9vh, 90px); }
    .p4r-post-card__body  { padding: 0.6rem 0.75rem; gap: 0.15rem; }
    .p4r-post-card__title { font-size: 0.85rem; }
    .p4r-post-card__date  { font-size: 0.58rem; }
}

@media (max-width: 480px) {
    /* Blog/Unterseiten: 1-spaltig (Lesbarkeit) */
    .p4r-post-grid { grid-template-columns: 1fr; }
    /* Startseite (fullPage, 100svh): 2-spaltig bleiben — kompakter in der Hoehe */
    .p4r-static--wide .p4r-post-grid { grid-template-columns: repeat(2, 1fr); }
    /* Startseite: nur 2 Artikel zeigen (3. Kachel raus), sonst zu hoch.
       Nur die Startseiten-Sektion — Blog/Related bleiben vollstaendig. */
    .p4r-static--wide .p4r-post-card:nth-child(n+3) { display: none; }
}


/* =============================================================================
   8. KONTAKT CTA (Sektion 7 — Zweigeteilter CTA)
   ============================================================================= */

.p4r-cta-split {
    display: flex;
    align-items: stretch;
    width: min(75vw, 1300px);
    margin: 0 auto;
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.p4r-cta-col {
    flex: 1;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem; /* reset: .section erbt 6rem von fullPage.js */
}

.p4r-cta-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 2rem 0;
}

.p4r-cta-col h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem) !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: var(--color-white) !important;
}

.p4r-cta-col p {
    font-size: 1rem !important;
    line-height: 1.75 !important;
    color: var(--color-text-muted) !important;
    margin: 0 !important;
}

.p4r-cta-col .btn { margin-top: auto; font-size: 1.1rem; }

/* Kontaktzeilen (Icon + Text) */
.p4r-contact-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p4r-contact-line:hover { color: var(--color-accent); }

.p4r-contact-line__icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 162, 217, 0.15);
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Ausnahme von der 1024/768/480-Konvention: bewusst 900px.
   Sektion 7 ist eine 100vh-fullPage-Sektion — frueheres Stapeln (1024px)
   wuerde den gestapelten Inhalt aus dem Viewport draengen (overflow:hidden). */
@media (max-width: 900px) {
    .p4r-cta-split   { flex-direction: column; }
    .p4r-cta-divider { width: 100%; height: 1px; margin: 0 2rem; }
}

/* Mobile: nur die Demo-Spalte zeigen. Die Direktkontakt-Spalte (erkannt an den
   .p4r-contact-line-Zeilen) wird ausgeblendet, da sie die Sektion zu stark
   streckt. Verbleibende Spalte per clamp() einpassen. */
@media (max-width: 768px) {
    .p4r-cta-col:has(.p4r-contact-line) { display: none; }
    .p4r-cta-divider                    { display: none; }
    .p4r-cta-col      { padding: clamp(1rem, 3vh, 1.5rem) 1.25rem; gap: clamp(0.4rem, 1.2vh, 0.6rem); }
    .p4r-cta-col h2   { font-size: clamp(1.3rem, 5vw, 1.6rem) !important; }
    .p4r-cta-col p    { font-size: clamp(0.85rem, 3.4vw, 0.95rem) !important; line-height: 1.5 !important; }
    .p4r-cta-col .btn { margin-top: clamp(0.6rem, 1.5vh, 1rem); font-size: 0.9rem; }
}


/* =============================================================================
   9. FOOTER
   ============================================================================= */

/* Slim Footer (Sektion 7 Startseite) */
.p4r-slim-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem calc((100% - min(80vw, 1700px)) / 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.p4r-slim-footer__links {
    display: flex;
    gap: 1.5rem;
}

.p4r-slim-footer__links a,
.p4r-slim-footer__copy a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p4r-slim-footer__links a:hover,
.p4r-slim-footer__copy a:hover {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .p4r-slim-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
    /* Die Linkzeile blieb bisher einreihig und stand deshalb ueber beide
       Kanten hinaus (gemessen bei 390px Viewport: 463px breit, links und
       rechts je ~37px abgeschnitten — "Impressum" und der Sprachumschalter
       waren angeschnitten). Umbrechen lassen und mittig setzen. */
    .p4r-slim-footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 1rem;
    }
}


/* =============================================================================
   10. SEITEN-SPEZIFISCH
   ============================================================================= */

/* Navigations-Pfeile nur auf Startseite anzeigen */
body:not(.home) #next-slide-arrow,
body:not(.home) #prev-slide-arrow {
    display: none !important;
}

/* Burger auf Unterseiten ausblenden — hover-effect-overlay existiert nur auf Unterseiten */
body:has(#hover-effect-overlay) #burger-menu {
    display: none !important;
}


/* =============================================================================
   11. UNTERSEITEN — PERMANENTES BILDMENÜ
   Greift nur wenn #hover-effect-overlay auf der Seite existiert (= Unterseiten)
   ============================================================================= */

/* --- Hover-Overlay: Hintergrund abdunkeln + Blur --- */
#hover-effect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, opacity 0.35s ease;
}

#hover-effect-overlay.active {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
}

/* Beim Hovern ueber das Bildmenue faellt die Navbar hinter das Blur-Overlay
   (z-index < 100). Das Bildmenue (z-index 9999) bleibt darueber scharf. */
body:has(#hover-effect-overlay.active) .navbar {
    z-index: 99;
}

/* --- Menü: permanent sichtbar, kein Slide-In ---
   top:64px + reduzierte Hoehe schieben das Bildmenue unter die Navbar, damit das
   oberste Bild nicht angeschnitten wird (space-evenly verteilt darunter neu). */
body:has(#hover-effect-overlay) .vertical-image-menu {
    left: 0 !important;
    top: 64px;
    height: calc(100vh - 64px);
    transition: none !important;
    z-index: 9999 !important;
}

/* --- Links --- */
body:has(#hover-effect-overlay) .vertical-image-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    width: 85%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
    pointer-events: auto !important;
    text-decoration: none;
}

/* --- Bilder: 16:9, smoothe Hover-Transition ohne Layout-Shift --- */
body:has(#hover-effect-overlay) .vertical-image-menu a img {
    display: block !important;
    width: 50% !important;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, filter 0.3s ease, border-radius 0.3s ease;
}

/* Hover: grow + Akzentblauer Rahmen + Glow */
body:has(#hover-effect-overlay) .vertical-image-menu a:hover img,
body:has(#hover-effect-overlay) .vertical-image-menu a.active img {
    transform: scale(1.08);
    border-color: var(--color-accent);
    border-radius: 10px;
    filter: drop-shadow(0 0 18px rgba(24, 162, 217, 0.65));
}

/* --- Menütext: unsichtbar, erscheint rechts vom Bild beim Hover --- */
body:has(#hover-effect-overlay) .vertical-image-menu a .menu-text {
    font-size: 3vw;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body:has(#hover-effect-overlay) .vertical-image-menu a:hover .menu-text {
    opacity: 1;
    transform: translateX(0);
}

/* --- Mobil ≤1024px: Desktop-Bildmenü + Overlay ausblenden --- */
@media (max-width: 1024px) {
    body:has(#hover-effect-overlay) .vertical-image-menu,
    #hover-effect-overlay {
        display: none !important;
        pointer-events: none !important;
    }
}


/* =============================================================================
   12. UNTERSEITEN — MOBILES MENÜ
   ============================================================================= */

/* #mobile-burger: Optik + Position sind zentral bei "Burger Icon" (Abschnitt 4)
   gemeinsam mit #burger-menu definiert. Hier nur noch die Einblend-Logik unten. */

#mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 24, 38, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-text-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 320px);
    height: 100vh;
    background: var(--color-dark-900);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 10080;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 0.25rem;
    box-sizing: border-box;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-text-menu.active {
    right: 0;
}

.mobile-text-menu a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

.mobile-text-menu a:hover,
.mobile-text-menu a.active {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    #mobile-burger {
        display: flex;
    }
    #mobile-menu-overlay.active {
        display: block;
    }
}


/* =============================================================================
   14 — UNTERSEITEN: LAYOUT-UTILITIES
   ============================================================================= */

/* Zentraler vertikaler Sektions-Rhythmus der Unterseiten.
   Greift auf alle `.section`-Container (die tragen die Klasse bereits) — ausser
   den Heros, die `.p4r-content-wrap` statt `.section` haben und ihren eigenen
   Navbar-Offset behalten. `body:not(.home)` schliesst die STARTSEITE aus:
   dort sind `.section` die fullPage-100vh-Sektionen, die kein zusaetzliches
   padding bekommen duerfen. EINE Quelle der Wahrheit fuer oben/unten —
   die fruehere Eigen-Spacing der Section-Komponenten ist entsprechend entfernt. */
body:not(.home) .section,
body:not(.home) .section-dark {
    padding-block: var(--section-space);
}

.p4r-content-wrap {
    width: var(--subpage-content-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.p4r-content-wrap h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin-top: 0 !important;
    margin-bottom: var(--subpage-gap) !important;
}


/* =============================================================================
   15 — UNTERSEITEN: HERO
   ============================================================================= */

.p4r-page-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: calc(64px + 28vh);
    padding-bottom: 0;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.p4r-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,24,38,0.15) 0%, rgba(8,24,38,0.88) 100%);
    z-index: 1;
}

.p4r-page-hero__content {
    position: relative;
    z-index: 2;
    width: min(90%, 1300px);
    margin: 0 auto;
}

.p4r-page-hero__content h1 {
    font-size: clamp(2.2rem, 4vw, 3.75rem) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 1.25rem !important;
}

.p4r-page-hero__content {
    padding-bottom: 3rem;
}

.p4r-page-hero__content p:not(.p4r-overline) {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.6;
}

/* Logo-Wall im Hero */
.p4r-hero-logo-wall {
    position: relative;
    width: 100%;
    margin-top: auto;
    z-index: 2;
}

.p4r-hero-logo-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--subpage-content-width);
    height: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.p4r-hero-logo-wall__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

/* Variante mit durchlaufendem Band statt fester Reihe (Referenzen-Hero, 08/2026).
   Uebernimmt Breite und Innenabstaende der festen Reihe, damit Kante und
   Hoehe des Heros gleich bleiben. Die Akzentlinie darueber zeichnet weiterhin
   .p4r-hero-logo-wall::before.

   Drei Selektorstufen, nicht zwei: der Elementor-Container um das Widget traegt
   selbst .p4r-content-wrap, damit greift .p4r-content-wrap .p4r-logo-band aus
   Abschnitt 19 auf dieses Band. Die Regel steht spaeter in der Datei und wuerde
   bei gleicher Spezifitaet gewinnen — sie braeuchte Rand und Abstand zurueck
   und zeichnete ueber ihr ::before eine zweite Akzentlinie unter die erste. */
.p4r-page-hero .p4r-hero-logo-wall .p4r-logo-band {
    width: var(--subpage-content-width);
    margin: 0 auto !important;
    padding: 1.5rem 0;
}

.p4r-page-hero .p4r-hero-logo-wall .p4r-logo-band::before {
    content: none;
}

.p4r-hero-logo-wall__inner img {
    height: 56px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain;
    filter: grayscale(1) brightness(2);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.p4r-hero-logo-wall__inner img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

.p4r-hero-logo-wall__inner a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.p4r-hero-logo-wall__inner a img {
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.p4r-hero-logo-wall__inner a:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .p4r-page-hero,
    .p4r-post-hero {
        padding-top: calc(56px + 20vh);
    }
    .p4r-hero-logo-wall__inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        padding: 1rem 0;
    }
    .p4r-hero-logo-wall__inner img {
        height: 32px !important;
        max-width: 120px !important;
    }
}


/* =============================================================================
   15 — UNTERSEITEN: METRICS BAR
   ============================================================================= */

.p4r-metrics-bar {
    width: 100%;
    background: rgba(8, 24, 38, 0.85);
    backdrop-filter: blur(14px);
}

/* Metrics-Bar als Abschluss-Band IM Hero: ueber das ::before-Gradient-Overlay
   (z-index:1) heben und ans untere Hero-Ende schieben. */
.p4r-page-hero .p4r-metrics-bar {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.p4r-metrics-bar__inner {
    display: flex;
    position: relative;
}

.p4r-metrics-bar__inner::before,
.p4r-metrics-bar__inner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.p4r-metrics-bar__inner::before { left: 0; }
.p4r-metrics-bar__inner::after  { right: 0; }

.p4r-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.75rem 2rem;
    text-align: center;
    position: relative;
}

.p4r-metric:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.p4r-metric__value {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.p4r-metric__label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .p4r-metrics-bar__inner { flex-wrap: wrap; }
    /* Dekorative Akzent-Trennlinien aus — im 2-Spalten-Raster nur saubere Hairlines */
    .p4r-metrics-bar__inner::before,
    .p4r-metrics-bar__inner::after,
    .p4r-metric:not(:last-child)::after { display: none; }
    .p4r-metric {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .p4r-metric:nth-child(odd)       { border-right: 1px solid rgba(255, 255, 255, 0.08); }
    .p4r-metric:nth-last-child(-n+2) { border-bottom: none; }
}


/* =============================================================================
   16 — UNTERSEITEN: CONTENT-SEKTIONEN (Text + Bild)
   ============================================================================= */

.p4r-content-section {
    display: grid;
    /* minmax(0, 1fr) statt 1fr: erlaubt der Spalte zu schrumpfen — sonst zwingt
       breiter Inhalt (z. B. das Payment-Logo-Band mit width:max-content) die
       Spalte ueber 1fr hinaus und die Sektion wird zu breit. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 0;
    /* Subpage-Breite selbst-tragend (wie .p4r-content-wrap/CTA/FAQ) — damit die
       Sektion unabhaengig vom Elementor-Container (geboxt vs. vollbreit) immer
       gleich breit ist. Begrenzt zugleich die Bildgroesse (halbe Grid-Spalte). */
    width: var(--subpage-content-width);
    margin-inline: auto;
    box-sizing: border-box;
}

/* Ohne Bild: einspaltig (Text + ggf. Logo-Band fuellen die Breite, keine leere Spalte) */
.p4r-content-section--no-image {
    grid-template-columns: minmax(0, 1fr);
}

/* Falls eine Content-Sektion bereits in einem .p4r-content-wrap liegt, nicht
   doppelt begrenzen — dann fuellt sie den Wrapper. */
.p4r-content-wrap .p4r-content-section {
    width: auto;
}

.p4r-content-section--reverse {
    direction: rtl;
}

.p4r-content-section--reverse > * {
    direction: ltr;
}

.p4r-content-section__text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.p4r-content-section__text h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 !important;
}

.p4r-content-section__text p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

.p4r-content-section__image {
    position: relative;
}

.p4r-content-section__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.p4r-content-section__image .p4r-photo-credit {
    bottom: 0.75rem;
    left: 0.75rem;
}

@media (max-width: 768px) {
    .p4r-content-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* kein vertikales Padding: der Abstand oben/unten kommt zentral von
           .section (--section-space) — sonst stacken sich die Abstaende auf Mobile */
    }

    .p4r-content-section--reverse {
        direction: ltr;
    }

    /* Auf Mobile das Bild ueber den Text/Titel ziehen (DOM-Reihenfolge ist
       Text -> Bild). order auf dem Grid-Item kehrt die Stapelreihenfolge um —
       greift fuer normale UND --reverse-Sektionen gleichermassen. */
    .p4r-content-section__image { order: -1; }

    /* Referenz-Case-Studies: die Eyebrow (Kundenname) ueber das Bild ziehen.
       display:contents loest den Text-Block ins Grid auf, sodass Eyebrow, Bild
       und Rest einzeln ordbar sind: Eyebrow -> Bild -> KPI/H2/Text.
       Nur Mobile, nur Case-Studies — Desktop bleibt unveraendert. */
    .p4r-content-section--case .p4r-content-section__text { display: contents; }
    .p4r-content-section--case .p4r-overline { order: -2; }
    .p4r-content-section--case { row-gap: 1.25rem; }
}


/* =============================================================================
   17 — UNTERSEITEN: VERGLEICHSTABELLE
   ============================================================================= */

.p4r-compare-wrap {
    padding: var(--subpage-gap) 0 0;
}

.p4r-compare-wrap h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.7rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 1.5rem !important;
}

.p4r-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.p4r-compare-table th,
.p4r-compare-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--color-text-muted);
}

.p4r-compare-table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 1rem;
}

.p4r-compare-table th.p4r-col-pos4 {
    color: var(--color-accent);
}

.p4r-compare-table td.p4r-col-pos4 {
    color: var(--color-white);
}

.p4r-compare-table tbody tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.p4r-content-wrap .btn,
.p4r-page-cta .btn,
.p4r-page-hero .btn,
.p4r-content-section .btn {
    font-size: var(--subpage-btn-size) !important;
    padding: 0.55rem 1.75rem !important;
}

.p4r-check::before {
    content: "✓ ";
    color: var(--color-accent);
    font-weight: 700;
}

.p4r-cross::before {
    content: "✗ ";
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .p4r-compare-wrap  { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .p4r-compare-table { min-width: 480px; }
}


/* =============================================================================
   18 — UNTERSEITEN: LÄNDER-TAGS
   ============================================================================= */

.p4r-country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--subpage-gap);
}

.p4r-content-wrap .p4r-logo-band {
    /* einheitlich kleiner Abstand Sektion -> Logo-Band (war 2x --subpage-gap = ~8rem) */
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    position: relative;
}

.p4r-content-wrap .p4r-logo-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.p4r-content-wrap .p4r-logo-band .p4r-logo-track img {
    filter: none;
    opacity: 1;
}


/* =============================================================================
   20 — UNTERSEITEN: REVIEW-ZITAT-SLIDER
   ============================================================================= */

.p4r-quote-slider {
    position: relative;
}

.p4r-quote-slide {
    display: none;
    animation: p4rQuoteFadeIn 0.5s ease;
}

.p4r-quote-slide.active {
    display: block;
}

@keyframes p4rQuoteFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.p4r-quote-card {
    background: var(--color-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
}

.p4r-quote-card::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.4;
    font-family: Georgia, serif;
}

.p4r-quote-card__text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-white);
    line-height: 1.8;
    margin: 1.5rem 0 2rem;
    font-style: italic;
}

.p4r-quote-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-top: 1.5rem;
}

.p4r-quote-card__author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 30%, transparent 100%);
}

.p4r-quote-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
}

.p4r-quote-card__role {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.p4r-quote-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.p4r-quote-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.p4r-quote-dot.active {
    background: var(--color-accent);
    width: 24px;
}

/* Smartphone: Innenabstand und Zitat-Zeichen verkleinern */
@media (max-width: 480px) {
    .p4r-quote-card { padding: 1.75rem 1.5rem; }
    .p4r-quote-card::before { top: 1rem; left: 1.25rem; font-size: 3.5rem; }
}


/* =============================================================================
   20 — UNTERSEITEN: KENNZAHL-CALLOUT (KPI)
   ============================================================================= */

.p4r-kpi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-bottom: 1.25rem;
}

.p4r-kpi__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.p4r-kpi__value {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.p4r-kpi__label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}


/* =============================================================================
   19 — UNTERSEITEN: PAGE CTA
   ============================================================================= */

/* Einheitliches CTA-Spacing fuer ALLE Unterseiten — der CTA ist SELBST-TRAGEND:
   - Breite + Zentrierung bringt er selbst mit (kein .p4r-content-wrap noetig).
   - vertikaler Abstand oben/unten via --section-space direkt am .p4r-page-cta.
   - innen: EIN gemeinsames gap fuer Overline / H2 / Text / Button / Trust.
   WICHTIG: Den CTA-Container NICHT als .section markieren, sonst doppelt sich
   das vertikale Padding. */
.p4r-page-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center !important;
    width: var(--subpage-content-width);
    margin-inline: auto;
    padding: var(--section-space) 0;
    position: relative;
    overflow: hidden;
}

.p4r-page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(24, 162, 217, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Kinder ueber den Verlauf heben + alle Eigen-Margins neutralisieren —
   so bestimmt allein das gap den vertikalen Rhythmus. */
.p4r-page-cta > * {
    position: relative;
    z-index: 1;
    margin: 0 !important;
}

.p4r-page-cta h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    text-align: center !important;
    /* schlaegt .p4r-content-wrap h2 (margin-bottom: --subpage-gap) — sonst
       entsteht im CTA ein zu grosser Abstand zwischen H2 und Text. */
    margin: 0 !important;
}

.p4r-page-cta p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.7;
    text-align: center !important;
    margin: 0 !important;
}

.p4r-page-cta-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.p4r-page-cta-trust span::before {
    content: "✓ ";
    color: var(--color-accent);
}

.p4r-country-tag {
    display: inline-block;
    padding: 0.3em 0.85em;
    background: rgba(24, 162, 217, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--color-white);
}


/* =============================================================================
   20 — UNTERSEITEN: FOOTER
   ============================================================================= */

.p4r-footer {
    background: var(--color-dark-900);
}

.p4r-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 4rem 0;
}

.p4r-footer__nav,
.p4r-footer__contact {
    position: relative;
    padding-left: 3rem;
}

.p4r-footer__nav::before,
.p4r-footer__contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--color-accent);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}

.p4r-footer__brand {
    padding-right: 3rem;
}

/* Brand-Spalte */
.p4r-footer__brand img {
    height: auto;
    max-height: 36px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.p4r-footer__brand p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Nav-Spalte */
.p4r-footer__nav h4,
.p4r-footer__contact h4 {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent) !important;
    margin: 0 0 1.25rem !important;
}

.p4r-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.p4r-footer__nav ul li a {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.p4r-footer__nav ul li a:hover {
    color: var(--color-accent);
}

/* Kontakt-Spalte */
.p4r-footer__contact address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

.p4r-footer__contact address a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p4r-footer__contact address a:hover {
    color: var(--color-white);
}

/* Social Buttons */
.p4r-footer__social {
    display: flex;
    gap: 0.6rem;
}

.p4r-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.p4r-footer__social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.p4r-footer__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Bottom Bar */
.p4r-footer__bottom {
    position: relative;
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.p4r-footer__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.p4r-footer__bottom a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p4r-footer__bottom a:hover {
    color: var(--color-white);
}

.p4r-footer__legal {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .p4r-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }
    .p4r-footer__nav::before,
    .p4r-footer__contact::before { display: none; }
    .p4r-footer__nav,
    .p4r-footer__contact         { padding-left: 0; }
    .p4r-footer__brand           { padding-right: 0; }
    .p4r-footer__bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}


/* =============================================================================
   21 — /PARTNER/: INTERAKTIVE WELTKARTE
   ============================================================================= */

/* Intro-Text über der Karte */
.p4r-map-intro {
    padding: 0 0 1.5rem; /* oben zentral via .section; unten Abstand zur Karte */
}

.p4r-map-intro h2 {
    margin-bottom: 1rem !important;
}

.p4r-map-intro p:not(.p4r-overline) {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 55ch;
}

/* Partner-Sektionen (Software / Hardware / Projekt / Service) */
.p4r-partner-section {
    padding: 0; /* vertikaler Abstand zentral via .section */
    position: relative;
}

.p4r-partner-section h2 {
    margin-bottom: 1.25rem !important;
}

.p4r-partner-section p:not(.p4r-overline) {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 75ch;
}

/* Icon-Grid */
.p4r-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.p4r-icon-grid__item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.p4r-icon-grid__item:hover {
    border-color: var(--color-accent);
    background: rgba(24, 162, 217, 0.06);
}

.p4r-icon-grid__icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.p4r-icon-grid__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
}

.p4r-icon-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Tablet: 4/3 -> 2 Spalten (deckungsgleich mit Navigations-Umschaltung) */
@media (max-width: 1024px) {
    .p4r-icon-grid,
    .p4r-icon-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smartphone: 1 Spalte */
@media (max-width: 480px) {
    .p4r-icon-grid,
    .p4r-icon-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Highlight-Box */
.p4r-highlight-box {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background: rgba(24, 162, 217, 0.08);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
}

.p4r-partner-section .p4r-logo-track img {
    /* fluid: Tablet/Smartphone deutlich kleiner als die 100px auf Desktop */
    height: clamp(44px, 8.5vw, 100px) !important;
    /* Entfaerben-bis-Hover: bewusstes Muster der Partnerseite. Lag bis 08/2026
       auf .p4r-logo-track img und galt damit auch fuers Hero-Band. */
    opacity: 0.85;
    filter: grayscale(1) brightness(2);
    transition: opacity 0.3s ease, filter 0.3s ease !important;
}

.p4r-partner-section .p4r-logo-track img:hover {
    opacity: 1 !important;
    filter: grayscale(0) brightness(1) !important;
}

/* SVG-Wrapper */
#logo-wrapper svg {
    width: 100%;
    height: 50vh;
    overflow: visible;
}

/* Marker */
#logo-wrapper svg circle[data-region] {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

#logo-wrapper svg circle[data-region].is-hovered {
    transform: scale(1.5);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Aktiver Marker: statisches Leuchten statt Puls (Entscheidung Manuel, 19.08.).
   Der frühere Keyframe p4r-marker-pulse animierte einen drop-shadow-Filter über
   bis zu 26 Marker gleichzeitig. Filter erzwingen in jedem Bild neues Zeichnen,
   und das kostete gemessen rund 130 ms CPU je 4 Sekunden — dauerhaft, solange
   die Karte im Blick war. Der Wert unten ist die Mitte der alten Kurve
   (8px/0.2 bis 22px/0.5), das Erscheinungsbild bleibt damit erhalten; die
   transition der Grundregel blendet es beim Aktivieren weich ein.

   ACHTUNG — doppelte Klasse ist Absicht: dieselbe Regel steht ein zweites Mal
   inline im HTML-Widget der Seite /partner/ (samt Keyframe und samt einer
   zweiten Kopie der Karten-Logik). Sie hat dieselbe Spezifitaet 1,2,2, steht
   aber spaeter im Dokument und gewaenne deshalb. `.is-active.is-active` hebt
   uns auf 1,3,2. `animation: none` schaltet den dortigen Keyframe ab.
   Sauber waere, die Inline-Kopie aus dem Widget zu entfernen — das ist Inhalt
   in der Datenbank und in drei Sprachen vorhanden. */
#logo-wrapper svg circle[data-region].is-active.is-active {
    transform: scale(2.2);
    animation: none;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.35));
}

/* Panel-Wrapper — alle 3 Panels in dieselbe Grid-Zelle gestapelt */
.p4r-map-panels-wrap {
    display: grid;
    width: var(--subpage-content-width);
    margin: 2rem auto var(--subpage-gap);
}

.p4r-map-panels-wrap > .info-panel {
    grid-area: 1 / 1;
    align-self: start;
}

/* Panel — collapse/expand */
.info-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 320ms ease, opacity 220ms ease;
    pointer-events: none;
}

.info-panel > .p4r-map-panel {
    overflow: hidden;
    min-height: 0;
}

.info-panel.is-active {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
}

/* Panel-Wrapper */
.p4r-map-panel {
    padding: 1.5rem 2rem;
    background: rgba(8, 24, 38, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    border-top: 3px solid var(--panel-color, var(--color-accent));
}

.info-rot   { --panel-color: #ed1c24; --panel-border-color: rgba(237, 28, 36, 0.35); }
.info-gelb  { --panel-color: #f5c800; --panel-border-color: rgba(245, 200, 0, 0.35); }
.info-gruen { --panel-color: #8cc63f; --panel-border-color: rgba(140, 198, 63, 0.35); }

/* Panel-Header */
.p4r-map-panel__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.p4r-map-panel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--panel-color, var(--color-accent));
    box-shadow: 0 0 8px var(--panel-color, var(--color-accent));
}

.p4r-map-panel__title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
}

/* Tags */
.p4r-map-panel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.p4r-map-tag {
    display: inline-block;
    padding: 0.3em 0.85em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border-color, rgba(255, 255, 255, 0.12));
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--color-white);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.p4r-map-tag:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--panel-color, var(--color-accent));
}

@media (max-width: 768px) {
    #logo-wrapper svg { height: 35vh; }
    .p4r-map-panel { padding: 1.25rem; }
    .p4r-map-tag { font-size: 0.72rem; }
}



/* =============================================================================
   Section 22 — Zeitstrahl / Timeline (/unternehmen/)
   ============================================================================= */

/* dm- Klassen (GSAP ScrollTrigger — vom Nutzer) */
.dm-timeline-point { position: sticky; top: 50vh; align-self: flex-start; }
/* Jahreszahl — statisch, vertikal auf Dot-Höhe zentriert */
.dm-timeline-left {
    display: block;
    font-size: clamp(3rem, 6vw, 5.25rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    /* Dot-Mitte (h3-Höhe + 0.5rem) − halbe Jahreszahl-Höhe */
    margin-top: calc(1.2 * clamp(1.3rem, 2vw, 1.8rem) + 0.5rem - clamp(1.5rem, 3vw, 2.625rem));
}
/* Jahreszahl in linker Spalte: rechtsbündig direkt am Strahl */
.timeline-left .dm-timeline-left { text-align: right; }

/* =============================================================================
   HTML Widget Timeline — Layout
   ============================================================================= */

/* Sektion (Zeile mit 3 Spalten) */
.timeline-sektion {
    display: flex;
    align-items: stretch;
    min-height: 35vh;
    padding: 5vh 0;
}

/* Linke Inhaltsspalte */
.timeline-left {
    flex: 1;
    padding-right: 2.5rem;
    text-align: left;
}

/* Rechte Inhaltsspalte */
.timeline-right {
    flex: 1;
    padding-left: 2.5rem;
    text-align: left;
}

/* Mittelspalte — 2px breit wie der Strahl */
.timeline-center {
    flex: 0 0 2px;
    width: 2px;
    overflow: visible;
}

/* Animierter Strahl */
.timeline-main .dm-bar-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.timeline-main .dm-progress-bar {
    background: linear-gradient(0deg, rgba(24,162,217,1) 0%, rgba(50,120,180,1) 5%, rgba(141,242,242,1) 35%, rgba(50,120,180,1) 70%, rgba(24,162,217,1) 100%);
    height: 0%;
    width: 100%;
}

/* Dot */
.timeline-center .dm-timeline-point {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(24, 162, 217, 0.7);
    position: sticky;
    top: 50vh;
    left: 50%;
    transform: translateX(-50%);
    /* h3-Höhe (1.2 × font-size) + ::after margin-top (0.5rem) − halbe Dot-Höhe (7px) */
    margin-top: calc(1.2 * clamp(1.3rem, 2vw, 1.8rem) + 0.5rem - 7px);
}

/* Überschriften + Fließtext in den Inhaltsspalten */
.timeline-left h3, .timeline-right h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}
/* Horizontale Akzentlinie — vom Strahl in die Inhaltssektion */
.timeline-left h3::after,
.timeline-right h3::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    margin-top: 0.5rem;
    margin-bottom: 0.9rem;
}
.timeline-left h3::after {
    /* Inhalt links → Strahl rechts: Linie fading rechts zum Strahl hin */
    background: linear-gradient(90deg, transparent, var(--color-accent));
}
.timeline-right h3::after {
    /* Inhalt rechts → Strahl links: Linie fading links zum Strahl hin */
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.timeline-left p, .timeline-right p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}
.timeline-left p + p, .timeline-right p + p { margin-top: 0.9rem; }

/* Mobile: Zeitstrahl ist hier nicht mehr alternierend → jede Sektion gleich
   aufgebaut: Jahr (oben, linksbuendig) -> Titel -> Text. Strahl liegt links,
   der Dot sitzt absolut darauf. Die alternierende Spaltenreihenfolge wird per
   :has() normalisiert (Jahr-Spalte immer zuerst, egal ob im DOM links/rechts). */
@media (max-width: 768px) {
    .timeline-main .dm-bar-container { left: 20px; transform: none; }

    .timeline-sektion {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        min-height: unset;
        padding: 4vh 0 4vh 3rem;
        text-align: left;
    }

    /* Beide Inhaltsspalten: volle Breite, linksbuendig */
    .timeline-left,
    .timeline-right {
        width: 100%;
        text-align: left;
        padding: 0;
    }

    /* Jahr-Spalte immer zuerst — unabhaengig von der DOM-Seite (links/rechts) */
    .timeline-sektion > :has(> .dm-timeline-left) { order: -1; }

    /* Jahr: linksbuendig (Desktop-Rechtsbuendigkeit + Dot-Versatz aufheben) */
    .timeline-sektion .dm-timeline-left {
        display: block;
        text-align: left;
        margin: 0 0 0.4rem;
    }

    /* Titel-Akzentlinie einheitlich vom Strahl (links) nach rechts ausblenden */
    .timeline-sektion h3::after {
        background: linear-gradient(90deg, var(--color-accent), transparent);
    }

    /* Dot absolut auf den Strahl, vertikal auf die Jahres-Mitte zentriert:
       Sektions-Oberkante (4vh) + halbe Jahreshoehe (1.5rem = 3rem/2) - halbe Dot-Hoehe (7px). */
    .timeline-center {
        position: absolute;
        top: calc(4vh + 1.5rem - 7px);
        left: 20px;
        width: 2px;
        margin: 0;
    }
    .timeline-center .dm-timeline-point {
        position: relative;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
}

.p4r-timeline .dm-progress-bar {
    background: linear-gradient(0deg, rgba(24,162,217,1) 0%, rgba(50,120,180,1) 5%, rgba(141,242,242,1) 35%, rgba(50,120,180,1) 70%, rgba(24,162,217,1) 100%);
    height: 0%;
    width: 100%;
}

/* HTML-Version Zeitstrahl */
.p4r-timeline {
    display: block;
    position: relative;
    width: var(--subpage-content-width);
    margin: 0 auto;
    padding: 0; /* vertikaler Abstand zentral via .section */
}

/* Animierter Strahl — nur im HTML-Widget (.p4r-timeline), nicht in Elementor-Containern */
.p4r-timeline .dm-bar-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    overflow: hidden;
}

/* Meilenstein-Zeile: Flex-Zeile */
.p4r-timeline__item {
    display: flex;
    align-items: flex-start;
    min-height: 40vh;
    padding: 8vh 0;
}

/* Leere Gegenseite */
.p4r-timeline__empty { flex: 1; }

/* Dot-Spalte: exakt 2px — gleich wie der Strahl → garantiertes Alignment */
.p4r-timeline__dot {
    flex: 0 0 2px;
    width: 2px;
    position: sticky;
    top: 50vh;
    overflow: visible;
    z-index: 2;
}

.p4r-timeline__dot-inner {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(24, 162, 217, 0.7);
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.4rem;
}

/* Linke Seite */
.p4r-timeline__left {
    flex: 1;
    position: sticky;
    top: 50vh;
    padding-right: 2.5rem;
    text-align: right;
}

/* Rechte Seite */
.p4r-timeline__right {
    flex: 1;
    position: sticky;
    top: 50vh;
    padding-left: 2.5rem;
}

/* Jahr */
.p4r-timeline__year {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

/* Text */
.p4r-timeline__left h3,
.p4r-timeline__right h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}

.p4r-timeline__left p,
.p4r-timeline__right p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Mobile: Strahl links, Inhalt einspaltrig */
@media (max-width: 768px) {
    .dm-bar-container {
        left: 20px;
        transform: none;
    }
    .p4r-timeline {
        padding-left: 3rem;
    }
    .p4r-timeline__item {
        min-height: unset;
        padding: 5vh 0;
    }
    .p4r-timeline__dot {
        order: -1;
        margin-left: calc(-1.5rem - 1px);
    }
    .p4r-timeline__left,
    .p4r-timeline__right {
        position: static;
        text-align: left;
        padding: 0 0 0 1rem;
    }
    .p4r-timeline__left { padding-right: 0; }
    .p4r-timeline__empty { display: none; }
}

/* =============================================================================
   Section 23 � Team (/unternehmen/)
   ============================================================================= */

.p4r-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.p4r-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.p4r-team-card:hover {
    border-color: var(--color-accent);
    background: rgba(24,162,217,0.05);
}

.p4r-team-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    display: block;
}

.p4r-team-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0.25rem 0 0;
}

.p4r-team-card__title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.p4r-team-card__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 0.25rem;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.p4r-team-card__linkedin:hover {
    opacity: 1;
}

.p4r-joinus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.25rem 1.75rem;
    background: rgba(24,162,217,0.07);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
}

.p4r-joinus p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}

@media (max-width: 1024px) {
    .p4r-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .p4r-team-grid { grid-template-columns: 1fr; }
    .p4r-joinus { flex-direction: column; align-items: flex-start; }
}

/* =============================================================================
   Section 24 — Awards & Presse (/unternehmen/)
   ============================================================================= */

.p4r-awards {
    text-align: center;
    padding: 0; /* vertikaler Abstand zentral via .section */
}

.p4r-awards__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Presse-Logos */
.p4r-awards__press {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.p4r-awards__press img {
    height: 28px;
    width: auto;
    filter: grayscale(1) brightness(1.8);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.p4r-awards__press img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Trennlinie zwischen Presse und Zertifizierungen */
.p4r-awards__divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 0 auto 3rem;
}

/* Zertifizierungs-Badges */
.p4r-awards__certs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.p4r-awards__badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.p4r-awards__badge img {
    height: 18px;
    width: auto;
    filter: grayscale(1) brightness(1.8);
    opacity: 0.6;
}

/* Timeline container — gleiche Breite wie Content-Sektionen */
.timeline-main {
    max-width: 1300px !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
    position: relative;
    padding: 0; /* vertikaler Abstand zentral via .section */
}


/* =============================================================================
   25 — /BLOG/ INSIGHTS: Featured Article, Kategorie-Filter, Newsletter
   ============================================================================= */

/* Featured Article */
.p4r-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    margin-bottom: 3rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.p4r-featured-post:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    color: var(--color-white);
}
.p4r-featured-post__img {
    min-height: 320px;
    background-size: cover;
    background-position: center;
}
.p4r-featured-post__img--placeholder {
    background: var(--gradient-brand);
}
.p4r-featured-post__body {
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.p4r-featured-post__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.p4r-featured-post__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--color-white) !important;
    margin: 0 !important;
}
.p4r-featured-post__excerpt {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}
.p4r-featured-post__meta {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: auto;
}

/* Kategorie-Filter-Leiste */
.p4r-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.p4r-cat-btn {
    padding: 0.4rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.p4r-cat-btn:hover {
    border-color: rgba(24, 162, 217, 0.5);
    color: var(--color-white);
}
.p4r-cat-btn.active {
    border-color: var(--color-accent);
    background: rgba(24, 162, 217, 0.12);
    color: var(--color-accent);
}
.p4r-post-card--hidden {
    display: none !important;
}

/* Newsletter-Block auf /insights/ AUSGEBLENDET (07/2026): der Newsletter existiert
   (noch) nicht. Das Markup liegt als Elementor-Block auf /insights/ -> hier per
   display:none entfernt; die Styles unten bleiben fuer eine spaetere Reaktivierung
   erhalten. Optional den Elementor-Block auf /insights/ ganz loeschen. */
.p4r-newsletter { display: none !important; }

/* Newsletter-Block */
.p4r-newsletter {
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(24, 162, 217, 0.2);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    text-align: center !important;
    margin: 3rem 0;
}
.p4r-newsletter h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 0.75rem !important;
    text-align: center !important;
}
.p4r-newsletter p {
    color: var(--color-text-muted);
    margin: 0 0 1.75rem;
    font-size: 1rem;
    text-align: center !important;
}
.p4r-newsletter__form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}
.p4r-newsletter__input {
    flex: 1;
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.p4r-newsletter__input:focus {
    border-color: var(--color-accent);
}
.p4r-newsletter__input::placeholder {
    color: var(--color-text-muted);
}
.p4r-newsletter__btn {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    border: none;
    border-radius: 8px;
    color: var(--color-dark);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.p4r-newsletter__btn:hover {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .p4r-featured-post      { grid-template-columns: 1fr; }
    .p4r-featured-post__img { min-height: 220px; }
    .p4r-newsletter         { padding: 2rem 1.5rem; }
    .p4r-newsletter__form   { flex-direction: column; }
}


/* =============================================================================
   26 — SINGLE POST TEMPLATE
   ============================================================================= */

/* Single Post Hero — eigenständiges HTML Widget, kein Elementor-Container */
.p4r-post-hero {
    position: relative;
    width: 100%;
    padding-top: calc(64px + 28vh);
    padding-bottom: 3rem;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.p4r-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,24,38,0.15) 0%, rgba(8,24,38,0.88) 100%);
    z-index: 1;
}

.p4r-post-hero__content {
    position: relative;
    z-index: 2;
    width: min(90%, 1300px);
    margin: 0 auto;
}

.p4r-post-hero__title {
    font-size: clamp(2.2rem, 4vw, 3.75rem) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 1.25rem !important;
}

/* Meta-Leiste unter dem Titel */
.p4r-post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.p4r-post-meta-bar__back {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.p4r-post-meta-bar__back:hover { color: var(--color-white); }
.p4r-post-meta-bar__divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--color-accent);
    margin: 0 0.15rem;
    flex-shrink: 0;
}
.p4r-post-meta-bar__cat {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.p4r-post-meta-bar__cat:hover { opacity: 0.75; }
.p4r-post-meta-bar__dot       { opacity: 0.35; }

/* Featured Image */
.p4r-post-featured {
    padding: 3rem 0 0;
}
.p4r-post-featured img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Post Content — Prose-Styling (Breite via Elementor Container-Einstellung) */
.p4r-post-content {
    padding: 3rem 0 4rem;
    font-size: clamp(1.02rem, 1.15vw, 1.125rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
}

/* Headings — h2 leitet einen Abschnitt ein: viel Luft davor + Accent-Marker,
   damit die Abschnitte als klare Einheiten lesbar sind */
.p4r-post-content h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 3.5rem 0 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance;
}
.p4r-post-content h2::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent);
    margin-bottom: 0.9rem;
}
.p4r-post-content h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 2.5rem 0 0.75rem !important;
    line-height: 1.3 !important;
    text-wrap: balance;
}
.p4r-post-content h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--color-white) !important;
    margin: 1.75rem 0 0.5rem !important;
}

/* Paragraphs — etwas mehr Absatz-Abstand + huebschere Umbruch-Verteilung
   (text-wrap: pretty = progressive enhancement, aeltere Browser ignorieren es) */
.p4r-post-content p {
    margin: 0 0 1.5rem;
    text-wrap: pretty;
}

/* Links */
.p4r-post-content a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(24, 162, 217, 0.35);
    transition: border-color 0.2s ease;
}
.p4r-post-content a:hover { border-color: var(--color-accent); }

/* Listen */
.p4r-post-content ul,
.p4r-post-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.4rem;
}
.p4r-post-content li         { margin-bottom: 0.5rem; line-height: 1.75; }
.p4r-post-content ul li::marker { color: var(--color-accent); }

/* Blockquote */
.p4r-post-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background: rgba(24, 162, 217, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}
.p4r-post-content blockquote p { margin: 0; }

/* Code inline */
.p4r-post-content code {
    background: rgba(24, 162, 217, 0.1);
    border: 1px solid rgba(24, 162, 217, 0.2);
    border-radius: 4px;
    padding: 0.1em 0.45em;
    font-size: 0.88em;
    color: var(--color-accent);
    font-family: 'Courier New', monospace;
}

/* Code block */
.p4r-post-content pre {
    background: rgba(8, 24, 38, 0.85);
    border: 1px solid rgba(24, 162, 217, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
}
.p4r-post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Bilder im Content */
.p4r-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.75rem 0;
    display: block;
}

/* Trennlinie */
.p4r-post-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5rem 0;
}

/* Tabelle */
.p4r-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
}
.p4r-post-content th {
    background: rgba(24, 162, 217, 0.1);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}
.p4r-post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.8);
    vertical-align: top;
}
.p4r-post-content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Related Posts */
.p4r-related {
    /* eigener vertikaler Abstand — die Sektion liegt auf der Beitragsseite in
       einem normalen Elementor-Container ohne Padding, nicht in einer .section */
    padding: 4rem 0 5rem;
    border-top: 1px solid var(--color-border);
}
.p4r-related__heading {
    font-size: clamp(1.3rem, 2vw, 1.7rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 2rem !important;
}

@media (max-width: 768px) {
    .p4r-post-featured img { max-height: 240px; }
    .p4r-post-content      { max-width: 100%; padding: 2rem 0 3rem; }
}


/* =============================================================================
   Insights Long-Form — Spezial-Komponenten (dunkle CI)
   -----------------------------------------------------------------------------
   Ergaenzt .p4r-post-content um Bausteine, die das Basis-Prosa-Styling nicht
   kennt: Lead, Stat-Row, Callouts, Timeline, Chips, Code-Syntax-Farben, farbige
   Tabellenzellen. Alles unter .p4r-post-content gescoped -> kein Leaken,
   wiederverwendbar fuer kuenftige Beitraege. Klassennamen entsprechen dem
   generierten HTML, damit der Body 1:1 als Custom-HTML-Block uebernehmbar ist.
   Semantik-Toene (success/warn/danger) als feste, dunkel-taugliche Werte.
   ============================================================================= */

/* Lead / Einleitungssatz unter dem Hero */
.p4r-post-content .lead {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 2rem;
}

/* Stat-Row (Kennzahlen-Band) */
.p4r-post-content .stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 2.5rem 0;
}
.p4r-post-content .stat {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.3rem 1.2rem;
    text-align: center;
}
.p4r-post-content .stat .num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
}
.p4r-post-content .stat .lbl {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Callouts (info = Cyan-Akzent, dazu success/warn/danger) */
.p4r-post-content .callout {
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.3rem;
    margin: 2rem 0;
    font-size: 0.97rem;
    line-height: 1.7;
    background: rgba(24, 162, 217, 0.08);
    color: rgba(255, 255, 255, 0.85);
}
.p4r-post-content .callout strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}
.p4r-post-content .callout.success        { border-color: #4ade80; background: rgba(74, 222, 128, 0.09); }
.p4r-post-content .callout.success strong { color: #4ade80; }
.p4r-post-content .callout.warn           { border-color: #fbbf24; background: rgba(251, 191, 36, 0.09); }
.p4r-post-content .callout.warn strong    { color: #fbbf24; }
.p4r-post-content .callout.danger         { border-color: #f87171; background: rgba(248, 113, 113, 0.09); }
.p4r-post-content .callout.danger strong  { color: #f87171; }

/* Timeline */
.p4r-post-content .timeline { position: relative; margin: 2.5rem 0; }
.p4r-post-content .timeline::before {
    content: '';
    position: absolute;
    left: 68px; top: 0; bottom: 0;
    width: 1px;
    background: var(--color-border);
}
.p4r-post-content .tl-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    position: relative;
}
.p4r-post-content .tl-time {
    min-width: 56px;
    padding-top: 0.2rem;
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}
.p4r-post-content .tl-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    outline: 1px solid rgba(255, 255, 255, 0.7);
    border: 2px solid #081826;
    position: relative;
    top: 0.4rem;
    flex-shrink: 0;
    margin: 0 0.5rem;
}
.p4r-post-content .tl-dot.accent  { background: var(--color-accent); outline-color: var(--color-accent); }
.p4r-post-content .tl-dot.success { background: #4ade80; outline-color: #4ade80; }
.p4r-post-content .tl-content { flex: 1; }
.p4r-post-content .tl-content h4 {
    margin: 0 0 0.2rem !important;
    font-size: 0.98rem !important;
    color: var(--color-white) !important;
}
.p4r-post-content .tl-content p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* Chips */
.p4r-post-content .chip {
    display: inline-block;
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 0.18em 0.55em;
    margin: 0 0.15em;
    color: rgba(255, 255, 255, 0.7);
}

/* Tech-Zeile am Beitragsende */
.p4r-post-content .p4r-post-tech {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 2.4;
}

/* Code-Syntax-Farben im <pre> + Eck-Label */
.p4r-post-content pre { position: relative; }
.p4r-post-content pre .comment { color: rgba(255, 255, 255, 0.4); }
.p4r-post-content pre .keyword { color: #7eb6ff; }
.p4r-post-content pre .string  { color: #a8d9a8; }
.p4r-post-content pre .fn      { color: #f0c97a; }
.p4r-post-content pre .num     { color: #ff9e6b; }
.p4r-post-content pre .pre-label {
    position: absolute;
    top: 0.7rem; right: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Courier New', monospace;
}

/* Farbige Tabellenzellen */
.p4r-post-content td.ok  { color: #4ade80; font-weight: 600; }
.p4r-post-content td.bad { color: #f87171; font-weight: 600; }
.p4r-post-content td.mid { color: #fbbf24; font-weight: 600; }

@media (max-width: 540px) {
    .p4r-post-content .timeline::before { left: 58px; }
}

/* -----------------------------------------------------------------------------
   Insights Long-Form — Erweiterung 07/2026 (Blog-Pipeline v2)
   Lesebreite + figure/figcaption + Zitat-Quelle + CTA-Box + Bild-Galerie.
   Nur wp_kses_post-sichere Elemente (figure/figcaption/cite/div/a) — bewusst
   kein iframe. Greift auch auf dem Elementor-Container des Single-Templates
   (traegt dieselbe Klasse; Verschachtelung mit dem Pipeline-Wrapper ist ok).
   -------------------------------------------------------------------------- */

/* --- Editorial-Breakout-Layout (2026-07-28) ------------------------------
   Beitrags-Container auf Standard-Inhaltsbreite = Hero-Kante (min(90%,1300px),
   wie .p4r-post-hero__content / --subpage-content-width). Das Elementor-
   Template setzt --content-width:800px mit (0,3,0)-Spezifitaet — per
   !important ueberschrieben. Die 10%-Seitenpaddings des Templates (nur
   Tablet/Mobile) bleiben bewusst bestehen: der Hero bekommt sie vom Template
   ebenfalls, dadurch sind beide Kanten auf allen Breakpoints deckungsgleich. */
.e-con.p4r-post-content {
    --content-width: min(90%, 1300px) !important;
}

/* Lesespalte: Text linksbuendig an der Hero-Kante, Zeilenlaenge ~72ch.
   Medien + Komponenten (unten) brechen auf die volle Inhaltsbreite aus —
   das erzeugt den Editorial-Rhythmus beim Scrollen. */
.p4r-post-content :is(p, ul, ol, h2, h3, h4, .callout, .lead, .timeline) {
    max-width: 72ch;
}

/* Breakout-Elemente: volle Inhaltsbreite */
.p4r-post-content :is(figure, .img-grid, .stat-row, table, pre, .p4r-post-cta) {
    width: 100%;
    max-width: none;
}

/* Zitate als grosse Pull-Quotes ueber die volle Breite */
.p4r-post-content blockquote {
    width: 100%;
    max-width: none;
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.6;
}
.p4r-post-content blockquote p { max-width: none; }

/* Bild mit Bildunterschrift */
.p4r-post-content figure {
    margin: 1.75rem 0;
}
.p4r-post-content figure img { margin: 0; }
.p4r-post-content figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

/* Zitat mit Quellenangabe */
.p4r-post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
}
.p4r-post-content blockquote cite::before { content: "\2014\00a0"; }

/* CTA-Box (In-Content-Handlungsaufforderung, nutzt globales .btn) */
.p4r-post-content .p4r-post-cta {
    margin: 2.75rem 0;
    padding: 2rem 2rem 2.25rem;
    background: rgba(24, 162, 217, 0.07);
    border: 1px solid rgba(24, 162, 217, 0.35);
    border-radius: 12px;
    text-align: center;
}
.p4r-post-content .p4r-post-cta h3 { margin: 0 0 0.75rem !important; }
.p4r-post-content .p4r-post-cta p  { margin: 0 auto 1.5rem; max-width: 46ch; }
.p4r-post-content a.btn {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-accent); /* neutralisiert die Content-Link-Unterstreichung */
}
.p4r-post-content a.btn:hover,
.p4r-post-content a.btn:focus-visible,
.p4r-post-content a.btn:active { border-bottom-color: var(--color-blue); }

/* Galerie: 2-spaltiges Bild-Raster, mobil einspaltig */
.p4r-post-content .img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}
.p4r-post-content .img-grid figure { margin: 0; }
.p4r-post-content .img-grid img {
    width: 100%;
    aspect-ratio: 3 / 2; /* einheitliche Kacheln, unabhaengig von Caption/Bildformat */
    height: auto;
    object-fit: cover;
}

@media (max-width: 640px) {
    .p4r-post-content .img-grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   Section 27 — /kontakt/
   ============================================================================= */

.p4r-contact-wrap {
    width: min(90%, 1300px);
    margin: 0 auto;
    padding: 0; /* vertikaler Abstand zentral via .section */
}

/* 2-spaltiges Grid */
.p4r-contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

/* Linke Spalte */
.p4r-contact-form-col > h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0 0 2rem !important;
}

/* Calendly-Block */
.p4r-contact-calendly {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.p4r-contact-calendly > h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0.5rem 0 0.75rem !important;
}

.p4r-contact-calendly > p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.p4r-calendly-embed {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 700px;
}

.p4r-calendly-embed .calendly-inline-widget,
.p4r-calendly-embed iframe {
    height: 700px !important;
    min-height: 700px !important;
}

/* Rechte Spalte: Kontaktperson-Karte */
.p4r-contact-person {
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: calc(64px + 2rem);
}

.p4r-contact-person__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.p4r-contact-person__photo--placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.p4r-contact-person__body {
    padding: 1.75rem;
}

.p4r-contact-person__name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 0.2rem;
}

.p4r-contact-person__role {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0 0 1.5rem;
}

.p4r-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.p4r-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.p4r-contact-detail:hover {
    color: var(--color-white);
}

.p4r-contact-detail svg {
    flex-shrink: 0;
    margin-top: 2px;
    stroke: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .p4r-contact-grid {
        grid-template-columns: 1fr;
    }
    .p4r-contact-person {
        position: static;
    }
}


/* FAQ Accordion */
.p4r-faq-wrap {
    position: relative;
    overflow: hidden;
    /* Trenner (1px-Linie) zwischen Kontaktformular und FAQ entfernt (07/2026,
       Kundenwunsch). Der ::before-Glow unten bleibt als dezenter Akzent. */
}

.p4r-faq-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(24, 162, 217, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.p4r-faq {
    position: relative;
    z-index: 1;
    width: min(90%, 1300px);
    margin: 0 auto;
    /* gleicher vertikaler Abstand wie ein CTA (.p4r-page-cta) — selbst-tragend.
       Den FAQ-Container darum NICHT zusaetzlich als .section markieren, sonst
       doppelt sich das Padding. */
    padding: var(--section-space) 0;
}

.p4r-faq__heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--color-white) !important;
    margin: 0.5rem 0 2.5rem !important;
    text-align: center !important;
}

.p4r-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

details.p4r-faq__item {
    background: rgba(8, 24, 38, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

details.p4r-faq__item[open] {
    border-color: rgba(24, 162, 217, 0.3);
}

summary.p4r-faq__question {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

summary.p4r-faq__question::-webkit-details-marker { display: none; }

summary.p4r-faq__question::after {
    content: '+';
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] > summary.p4r-faq__question::after {
    transform: rotate(45deg);
}

.p4r-faq__answer {
    padding: 0 1.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.75;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0;
}


/* =============================================================================
   Section 28 — WPForms Dark Styling (/kontakt/)
   ============================================================================= */

/* Container */
.p4r-contact-form-col .wpforms-container {
    width: 100%;
}

.p4r-contact-form-col .wpforms-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Alle Felder nebeneinander aufheben (WPForms setzt manchmal float) */
.p4r-contact-form-col .wpforms-field {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Labels */
.p4r-contact-form-col .wpforms-field-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 0.5rem !important;
}

.p4r-contact-form-col .wpforms-field-sublabel {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 0.3rem !important;
}

.p4r-contact-form-col .wpforms-field-label-inline {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.8rem !important;
}

/* Felder: Abstand nach oben größer als nach unten → Label klebt am eigenen Input */
.p4r-contact-form-col .wpforms-field {
    padding-top: 0.75rem !important;
}

.p4r-contact-form-col .wpforms-field:first-child {
    padding-top: 0 !important;
}

/* Inputs, Textarea, Select */
.p4r-contact-form-col input[type="text"],
.p4r-contact-form-col input[type="email"],
.p4r-contact-form-col input[type="tel"],
.p4r-contact-form-col input[type="number"],
.p4r-contact-form-col textarea,
.p4r-contact-form-col select {
    width: 100% !important;
    background: rgba(8, 24, 38, 0.6) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 8px !important;
    color: var(--color-white) !important;
    font-size: 0.95rem !important;
    padding: 0.85rem 1rem !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.p4r-contact-form-col input[type="text"]:focus,
.p4r-contact-form-col input[type="email"]:focus,
.p4r-contact-form-col input[type="tel"]:focus,
.p4r-contact-form-col input[type="number"]:focus,
.p4r-contact-form-col textarea:focus,
.p4r-contact-form-col select:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(24, 162, 217, 0.15) !important;
}

/* Placeholder */
.p4r-contact-form-col input::placeholder,
.p4r-contact-form-col textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Textarea */
.p4r-contact-form-col textarea {
    min-height: 140px !important;
    resize: vertical !important;
}

/* Select — Pfeil-Icon */
.p4r-contact-form-col .wpforms-field-select {
    position: relative;
}

.p4r-contact-form-col .wpforms-field-select::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-accent);
    pointer-events: none;
}

.p4r-contact-form-col select option {
    background: var(--color-dark-700) !important;
    color: var(--color-white) !important;
}

/* Submit Button */
.p4r-contact-form-col .wpforms-submit-container {
    margin-top: 0.5rem !important;
    padding: 0 !important;
    text-align: left !important;
}

.p4r-contact-form-col .wpforms-submit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: var(--color-accent) !important;
    color: var(--color-dark-900) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 0.85rem 2rem !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
    box-shadow: none !important;
}

.p4r-contact-form-col .wpforms-submit:hover {
    background: var(--color-cyan) !important;
    box-shadow: var(--shadow-accent) !important;
    transform: translateY(-1px) !important;
}

/* Pflichtfeld-Stern */
.p4r-contact-form-col .wpforms-required-label {
    color: var(--color-accent) !important;
}

/* Validierungsfehler */
.p4r-contact-form-col .wpforms-error {
    color: #ff6b6b !important;
    font-size: 0.8rem !important;
    margin-top: 0.4rem !important;
}

.p4r-contact-form-col .wpforms-field.wpforms-has-error input,
.p4r-contact-form-col .wpforms-field.wpforms-has-error textarea,
.p4r-contact-form-col .wpforms-field.wpforms-has-error select {
    border-color: #ff6b6b !important;
}

/* Erfolgsmeldung */
.p4r-contact-form-col .wpforms-confirmation-container-full {
    background: rgba(24, 162, 217, 0.12) !important;
    border: 1px solid rgba(24, 162, 217, 0.35) !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    color: var(--color-white) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}


/* =============================================================================
   KI-Chatbot — CI-Anpassung (wp-llm-chat Plugin)
   pos4retail CI: #081826 / #123859 / #18A2D9 / Helvetica, Arial, sans-serif
   ============================================================================= */

#wp-llm-chat-root {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: Helvetica, Arial, sans-serif;
    z-index: 999999;
}

#wp-llm-chat-bubble {
    position: relative;
    width: 60px;
    height: 60px;
    background: #18A2D9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(24, 162, 217, 0.4);
    user-select: none;
    cursor: pointer;
}

#wp-llm-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #8DF2F2;
    border-radius: 50%;
    border: 2px solid #081826;
}

#wp-llm-chat-window {
    width: 340px;
    height: 480px;
    background: #081826;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    overflow: hidden;
}

#wp-llm-chat-header {
    background: #123859;
    color: white;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Headline im Header: CI-Schrift, kleiner aber bold */
#wp-llm-chat-header h1,
#wp-llm-chat-header h2,
#wp-llm-chat-header h3,
#wp-llm-chat-header h4,
#wp-llm-chat-header p,
#wp-llm-chat-header span {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    color: white !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

#wp-llm-chat-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
}

#wp-llm-chat-close:hover {
    color: white;
}

#chat-response {
    padding: 15px;
    font-size: 14px;
    gap: 10px;
    background: #081826;
}

.chat-message {
    padding: 10px 13px;
    border-radius: 12px;
    word-wrap: break-word;
    max-width: 85%;
    line-height: 1.5;
    font-size: 0.875rem;
}

.chat-message-user {
    background: #1B70A6;
    color: white;
    margin-left: auto;
    border-radius: 12px 3px 12px 12px;
    text-align: left;
}

.chat-message-assistant {
    background: #123859;
    color: rgba(255, 255, 255, 0.9);
    margin-right: auto;
    border-radius: 3px 12px 12px 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

#wp-llm-chat-input {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d2035;
}

#chat-message {
    border: none;
    padding: 10px 12px;
    background: transparent;
    color: white;
    outline: none;
    font-family: Helvetica, Arial, sans-serif;
}

#chat-message::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#chat-send {
    background: #18A2D9;
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#chat-send:hover {
    background: #3279B6;
}

#chat-send:disabled {
    background: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

#wp-llm-chat-loading {
    gap: 6px;
    padding: 8px 12px !important;
    max-width: 100px !important;
}

#wp-llm-chat-loading .dot {
    font-size: 14px;
    color: #18A2D9;
    font-weight: bold;
}


/* =============================================================================
   LEGAL — Datenschutz / Impressum
   Wrapper-Klasse: .p4r-legal (HTML-Widget)
   Passt zu den Unterseiten-Inhaltstexten (p4r-content-section)
   ============================================================================= */

.p4r-legal {
    width: var(--subpage-content-width);
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.65);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.p4r-legal h1 {
    font-size: clamp(2rem, 3.5vw, 3.25rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin: 0 0 2rem !important;
}

.p4r-legal h2 {
    font-size: clamp(1.4rem, 2.2vw, 2rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 2.5rem 0 1rem !important;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p4r-legal h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.p4r-legal h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    margin: 1.75rem 0 0.6rem !important;
}

.p4r-legal h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.4 !important;
    margin: 1.25rem 0 0.4rem !important;
}

.p4r-legal p {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.7 !important;
    margin: 0 0 1rem !important;
}

.p4r-legal ul,
.p4r-legal ol {
    padding-left: 1.5rem;
    margin: 0 0 1rem !important;
}

.p4r-legal li {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.7 !important;
    margin-bottom: 0.4rem;
}

.p4r-legal a {
    color: #18A2D9 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.p4r-legal a:hover {
    color: #8DF2F2 !important;
}

@media (max-width: 768px) {
    .p4r-legal h1 { font-size: clamp(1.6rem, 6vw, 2rem) !important; }
    .p4r-legal h2 { font-size: clamp(1.2rem, 4.5vw, 1.5rem) !important; }
    .p4r-legal h3 { font-size: 1.05rem !important; }
}

/* =============================================================================
   Logo-Laufbaender ausserhalb des Sichtfelds anhalten
   -----------------------------------------------------------------------------
   Gemessen am 19.08. auf /partner/: 174 bis 193 ms CPU je 3 Sekunden Leerlauf,
   waehrend Unterseiten ohne Animation bei 25 bis 37 ms liegen. Die vier
   Laufbaender liefen durchgehend weiter, auch weit ausserhalb des Sichtfelds.
   Die Klasse .p4r-ruht setzt custom.js per IntersectionObserver.

   Zur Spezifitaet: die Originalregel setzt die animation-Kurzform, und die
   schreibt animation-play-state implizit auf running. Die Pausenregel muss
   deshalb hoeher liegen, sonst greift sie nicht:
     .p4r-logo-track            -> 0,1,0
     .p4r-ruht .p4r-logo-track  -> 0,2,0

   Die Kartenmarker brauchen hier nichts mehr: ihr Puls ist am 19.08. durch ein
   statisches Leuchten ersetzt worden (siehe circle[data-region].is-active).
   ========================================================================== */
.p4r-ruht .p4r-logo-track {
    animation-play-state: paused;
}
