/*
Theme Name:    PAKIJ Custom
Theme URI:     https://www.pakij.de
Author:        PAKIJ Gebäudereinigung GmbH
Description:   WordPress-Portierung des pakij-FINAL Mockups. Eigenständiges Theme (kein Parent). Navy + Anthrazit + Inter. Home-Template hardcoded, Texte & Bilder über Customizer editierbar. Services als Custom Post Type.
Version:       0.6.1
Requires at least: 6.0
Requires PHP:  7.4
License:       Proprietär
Text Domain:   pakij-custom
*/


/* ===========================================================================
   TOKENS — 1:1 aus pakij-FINAL.html
   =========================================================================== */

:root {
    --navy: #0f1e3e;
    --navy-dark: #091326;
    --navy-light: #1a2d55;
    --anthracite: #2a2d35;
    --anthracite-light: #3a3d45;
    --steel: #5a6170;
    --silver: #a0a8b5;
    --paper: #f5f6f8;
    --paper-warm: #eef0f3;
    --line: #dfe2e8;
    --white: #ffffff;
    --text: #1a1d24;
    --text-muted: #5a6170;
    --accent: #c9a961;
}


/* ===========================================================================
   BASIS (aus Mockup)
   =========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Safety-Net gegen Mobile-Horizontal-Overflow.
   NUR body, NICHT html + NICHT max-width:100vw — weil 100vw die
   Scrollbar-Breite mit einrechnet und das auf Desktop einen
   ~17 px horizontalen Overflow (plus zweite Scrollbar) erzeugt. */
body {
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

/* A11y */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link {
    position: absolute; left: -9999px;
}
.skip-link:focus {
    position: fixed; left: 16px; top: 16px;
    padding: 12px 18px;
    background: var(--navy); color: var(--white);
    z-index: 10000; border-radius: 4px;
}

/* WP Admin-Bar Abstand für sticky Header */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }


/* ===========================================================================
   HEADER
   =========================================================================== */

.top-bar {
    background: var(--navy-dark);
    color: var(--silver);
    font-size: 13px;
    padding: 10px 0;
}
.top-bar-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar-left { display: flex; gap: 24px; }
.top-bar-left span { display: flex; align-items: center; gap: 8px; }
.top-bar-left svg { width: 14px; height: 14px; opacity: 0.7; }
.top-bar-right { display: flex; gap: 20px; }
.top-bar-right a { color: var(--silver); text-decoration: none; }
.top-bar-right a:hover { color: var(--white); }

/* body > header: Site-Header ist direkter Body-Kind.
   Der bare header-Selektor hätte auch <header class="subpage-hero">
   und <header class="page-hero"> mitgenommen, die aber innerhalb
   <main> verschachtelt sind. Durch > body greifen diese Werte nur
   auf den tatsächlichen Site-Header. */
body > header {
    position: sticky; top: 0; z-index: 10001;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.header-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 48px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon {
    width: 48px; height: 48px;
    background: var(--navy); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 1.8; }

/* Custom-Logo aus Site-Identität wird im Box-Slot des Hausymbols gezeichnet.
   Weißer Untergrund, damit dunkle Logos nicht im Navy untergehen. */
.logo-icon-custom {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 4px;
}
.logo-icon-custom img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
/* WP-Custom-Logo-Defaults überschreiben — wir positionieren das img selbst */
.logo .custom-logo-link,
.logo .custom-logo { display: block !important; max-height: none !important; width: 100% !important; height: 100% !important; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.logo-sub { font-size: 11px; color: var(--steel); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }

/* Eigenes, hochgeladenes Logo: WP-Custom-Logo Styling übernehmen */
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 56px; width: auto; }

nav.primary-nav { display: flex; gap: 36px; justify-content: center; }
nav.primary-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
nav.primary-nav a {
    font-size: 15px; font-weight: 500; color: var(--text);
    text-decoration: none; transition: color 0.2s;
    position: relative;
}
nav.primary-nav a:hover,
nav.primary-nav .current-menu-item > a,
nav.primary-nav a[aria-current="page"] { color: var(--navy); }
nav.primary-nav .current-menu-item > a::after,
nav.primary-nav a[aria-current="page"]::after {
    content: ''; position: absolute; bottom: -24px; left: 0; right: 0;
    height: 3px; background: var(--navy);
}

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    color: var(--anthracite);
}
.header-phone-icon {
    width: 32px; height: 32px; background: var(--paper);
    padding: 8px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.header-phone-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 2; }
.header-phone-info { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone-label { font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
.header-phone-num { font-size: 16px; font-weight: 600; color: var(--navy); }
.btn-cta {
    padding: 14px 24px; background: var(--navy); color: var(--white);
    font-size: 14px; font-weight: 600; text-decoration: none;
    border-radius: 4px; transition: background 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
    border: 0;
}
.btn-cta:hover { background: var(--navy-dark); color: var(--white); }

/* Mobile Burger */
.nav-toggle {
    display: none;
    background: transparent; border: 0;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    cursor: pointer; color: var(--navy);
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    display: block; width: 24px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: ''; position: absolute; left: 0;
}
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after  { top:  8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 30, 62, 0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 9998;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }


/* ===========================================================================
   HERO
   =========================================================================== */

.hero {
    position: relative; min-height: 620px;
    display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(15, 30, 62, 0.95) 0%,
        rgba(15, 30, 62, 0.85) 40%,
        rgba(15, 30, 62, 0.55) 80%,
        rgba(15, 30, 62, 0.3) 100%);
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 1400px; margin: 0 auto; padding: 100px 32px;
    width: 100%;
}
.hero-content { max-width: 680px; color: var(--white); }
.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px;
    font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
    margin-bottom: 24px; backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
}
.hero-tag::before {
    content: ''; width: 8px; height: 8px;
    background: #4ade80; border-radius: 50%;
}
.hero h1 {
    font-size: clamp(40px, 5vw, 64px); font-weight: 700;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px;
    color: var(--white);
}
.hero h1 span {
    color: #a8b5cc; font-weight: 400;
    display: block; font-size: 0.75em; margin-top: 8px;
}
.hero-sub {
    font-size: 19px; line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px; max-width: 560px; font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary-large {
    padding: 18px 36px; background: var(--white); color: var(--navy);
    font-size: 16px; font-weight: 600; text-decoration: none;
    border-radius: 4px; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 12px;
    border: 0; cursor: pointer;
}
.btn-primary-large:hover {
    background: var(--paper); color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.btn-primary-large svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-secondary-large {
    padding: 18px 36px; background: transparent; color: var(--white);
    font-size: 16px; font-weight: 500; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex; align-items: center;
}
.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white); color: var(--white);
}

/* Stats-Bar ist jetzt eine eigene Sektion zwischen Hero und Services
   (nicht mehr floating). Leicht negatives margin-top zieht die Card
   noch in die Hero-Unterkante — gleicher Look wie vorher, aber kein
   Floating-Overlap mehr → Hero-Untertitel wird nicht mehr abgeschnitten,
   Mobile-Layout ist robuster. */
.hero-stats {
    position: relative;
    z-index: 3;
    background: transparent;
    margin-top: -60px;
    padding: 0 32px 0;
}
.hero-stats-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(15, 30, 62, 0.08);
    border-radius: 4px;
}
.hero-stat {
    padding: 32px 28px; border-right: 1px solid var(--line);
    display: flex; align-items: center; gap: 20px;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-icon {
    width: 56px; height: 56px; background: var(--paper);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hero-stat-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
/* Stats-Text-Farben mit !important: WP-Fastest-Cache hat das alte
   v0.2.0-Bundle (Silber-Theme, Stats hatten weiße Schrift) im
   minified-Cache. Bis Cache geleert ist, verhindern die Overrides
   white-on-white. */
.hero-stat-num {
    font-size: 28px; font-weight: 700;
    color: var(--navy) !important;
    line-height: 1; letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 13px;
    color: var(--steel) !important;
    margin-top: 4px;
}


/* ===========================================================================
   SERVICES
   =========================================================================== */

/* padding-top war 180px wegen Floating-Stats-Overlap. Stats ist jetzt
   eigene Sektion (Phase Session 6), darum reicht 100px. */
.services { padding: 100px 0; background: var(--paper); }
.services-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section-label {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
    color: var(--navy); text-transform: uppercase; margin-bottom: 16px;
}
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--navy); }
.section-title {
    font-size: clamp(32px, 4vw, 48px); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em; color: var(--anthracite);
    max-width: 720px;
}
.section-title span { color: var(--navy); }
.services-header {
    display: grid; grid-template-columns: 2fr 1fr; gap: 64px;
    margin-bottom: 64px; align-items: end;
}
.services-intro {
    font-size: 16px; line-height: 1.75; color: var(--text-muted);
    max-width: 420px;
}

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 6px; overflow: hidden; cursor: pointer;
    transition: all 0.4s;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 30, 62, 0.12);
    border-color: var(--navy);
}
.service-img { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; }
.service-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 30, 62, 0.3) 100%);
}
.service-tag {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    padding: 6px 14px; background: var(--white); color: var(--navy);
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    border-radius: 3px; text-transform: uppercase;
}
.service-content { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service-title {
    font-size: 22px; font-weight: 700; color: var(--anthracite);
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.service-desc {
    font-size: 14.5px; color: var(--text-muted); line-height: 1.65;
    margin-bottom: 20px;
}
.service-features {
    list-style: none; padding: 0; margin: 0 0 24px;
    border-top: 1px solid var(--line); padding-top: 20px;
}
.service-features li {
    font-size: 13.5px; color: var(--text); padding: 4px 0 4px 22px;
    position: relative;
}
.service-features li::before {
    content: '✓'; position: absolute; left: 0; color: var(--navy);
    font-weight: 700;
}
.service-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--navy);
    text-decoration: none; padding: 10px 0;
    border-top: 1px solid var(--line);
    transition: gap 0.3s;
    margin-top: auto; width: 100%;
}
.service-card:hover .service-link { gap: 14px; }
.service-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }


/* ===========================================================================
   BENEFITS
   =========================================================================== */

.benefits { padding: 100px 0; background: var(--white); }
.benefits-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.benefits-header {
    text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.benefits-header .section-label { justify-content: center; }
.benefits-header .section-title { margin: 0 auto; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit {
    text-align: center; padding: 40px 32px;
    border: 1px solid var(--line); border-radius: 6px;
    transition: all 0.3s;
    background: var(--white);
}
.benefit:hover { border-color: var(--navy); }
.benefit-icon {
    width: 72px; height: 72px; background: var(--paper);
    border-radius: 50%; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.benefit:hover .benefit-icon { background: var(--navy); }
.benefit-icon svg { width: 34px; height: 34px; stroke: var(--navy); fill: none; stroke-width: 1.5; transition: stroke 0.3s; }
.benefit:hover .benefit-icon svg { stroke: var(--white); }
.benefit h3 {
    font-size: 20px; font-weight: 700; color: var(--anthracite);
    margin-bottom: 12px; letter-spacing: -0.01em;
}
.benefit p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }


/* ===========================================================================
   ABOUT
   =========================================================================== */

.about { padding: 100px 0; background: var(--paper); }
.about-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-img-wrapper { position: relative; }
.about-img {
    width: 100%; aspect-ratio: 4/5; border-radius: 6px;
    overflow: hidden;
    background: var(--paper-warm);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-experience-badge {
    position: absolute; bottom: -30px; right: -30px;
    background: var(--navy); color: var(--white);
    padding: 32px 40px; border-radius: 6px;
    box-shadow: 0 20px 40px rgba(15, 30, 62, 0.2);
}
.about-experience-num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.about-experience-label { font-size: 13px; margin-top: 8px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }

.about-content h2 {
    font-size: clamp(32px, 4vw, 44px); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em; color: var(--anthracite);
    margin: 16px 0 24px;
}
.about-content h2 span { color: var(--navy); }
.about-content > p {
    font-size: 16px; line-height: 1.8; color: var(--text-muted);
    margin-bottom: 32px;
}
.about-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px;
}
.about-feature {
    padding: 20px; background: var(--white); border: 1px solid var(--line);
    border-radius: 4px;
}
.about-feature-num {
    display: inline-block; padding: 4px 10px;
    background: var(--navy); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    border-radius: 3px; margin-bottom: 12px;
}
.about-feature h4 {
    font-size: 16px; font-weight: 600; color: var(--anthracite); margin-bottom: 6px;
}
.about-feature p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }


/* ===========================================================================
   PROCESS
   =========================================================================== */

.process { padding: 100px 0; background: var(--navy); color: var(--white); }
.process-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.process-header { text-align: center; margin-bottom: 64px; }
.process-header .section-label {
    color: #a8b5cc;
    justify-content: center;
}
.process-header .section-label::before { background: #a8b5cc; }
.process-header h2 {
    font-size: clamp(32px, 4vw, 48px); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em; color: var(--white);
    max-width: 720px; margin: 0 auto;
}

.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    position: relative;
}
.process-step {
    padding: 40px 28px; text-align: center; position: relative;
}
.process-step:not(:last-child)::after {
    content: ''; position: absolute; top: 70px; right: -5px;
    width: 10px; height: 10px;
    border-top: 2px solid rgba(168, 181, 204, 0.3);
    border-right: 2px solid rgba(168, 181, 204, 0.3);
    transform: rotate(45deg);
}
.process-step-num {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1); color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.process-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--white); }
.process-step p { font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.7); }


/* ===========================================================================
   TESTIMONIAL
   =========================================================================== */

.testimonial { padding: 100px 0; background: var(--paper); }
.testimonial-inner {
    max-width: 1000px; margin: 0 auto; padding: 0 32px;
    text-align: center;
}
.testimonial-quote-icon { margin: 0 auto 24px; }
.testimonial-quote-icon svg { width: 48px; height: 48px; color: var(--navy); opacity: 0.3; }
.testimonial-text {
    font-size: clamp(22px, 2.8vw, 30px); font-weight: 500;
    line-height: 1.45; letter-spacing: -0.01em; color: var(--anthracite);
    margin-bottom: 40px;
}
.testimonial-author {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 12px 20px; background: var(--white);
    border: 1px solid var(--line); border-radius: 100px;
}
.testimonial-avatar {
    width: 44px; height: 44px; background: var(--navy); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
}
.testimonial-author-info { text-align: left; }
.testimonial-author-name { font-weight: 600; font-size: 14px; color: var(--anthracite); }
.testimonial-author-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }


/* Slider-Wrapper: Slides liegen absolute übereinander.
   min-height-Werte sind Fallback; das JS misst die tatsächliche Höhe
   des längsten Slides bei Init und überschreibt min-height inline.
   So gibt's keinen Höhensprung mehr beim Slide-Wechsel. */
.testimonial-slider {
    position: relative;
    min-height: 320px;
    margin-bottom: 32px;
    outline: none;
    overflow: hidden;
    max-width: 100%;
}
.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
}
.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 1024px) { .testimonial-slider { min-height: 360px; } }
@media (max-width: 640px)  { .testimonial-slider { min-height: 420px; } }
.testimonial-slider .testimonial-text { margin-bottom: 32px; }

/* Dots */
.testimonial-dots {
    display: flex; justify-content: center; gap: 10px;
    margin-top: 8px;
}
.testimonial-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    background: var(--silver);
    opacity: 0.4;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.testimonial-dot:hover { opacity: 0.7; }
.testimonial-dot.is-active {
    background: var(--navy);
    opacity: 1;
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-slide { transition: none; }
}


/* ===========================================================================
   SUB-PAGE TEMPLATES (page-ueber-uns / -leistungen / -vorteile / -kontakt)
   ===========================================================================
   Gemeinsames Design-Prinzip:
   - Navy-Hero oben (~250 px)
   - .subpage-section mit padding 80 px (mobil 56 px)
   - .subpage-section--paper für alternierende beige Sektionen
   - CTA-Streifen am Ende (.page-cta-stripe — Klasse aus page.php-Template)
*/

.subpage-hero {
    position: relative;
    background: var(--navy);
    color: var(--white);
    padding: 64px 32px;
    text-align: center;
    min-height: 240px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.subpage-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(168,181,204,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.subpage-hero__inner {
    position: relative; z-index: 1;
    max-width: 880px; margin: 0 auto;
}
.subpage-hero h1 {
    color: var(--white);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700; letter-spacing: -0.02em;
    margin: 8px 0 12px;
}
.subpage-hero__sub {
    color: rgba(255,255,255,0.75);
    font-size: clamp(16px, 1.6vw, 19px);
    margin: 0;
}

.subpage-content { background: var(--white); }
.subpage-section { padding: 80px 0; }
.subpage-section--paper { background: var(--paper); }
@media (max-width: 768px) { .subpage-section { padding: 56px 0; } }

.lead-text {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.7;
    color: var(--text-muted);
    text-align: center;
    margin: 0 auto;
}

/* Two-col Layout (Head links, Body rechts) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
}
.two-col__head h2 {
    color: var(--anthracite);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700; letter-spacing: -0.02em;
    margin: 0;
}
.two-col__body p {
    font-size: 17px; line-height: 1.8; color: var(--text-muted);
    margin: 0;
}
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; gap: 24px; }
}


/* Werte-/Vorteile-Karten (3er oder 6er Grid) */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-grid--6 { grid-template-columns: repeat(3, 1fr); }
.value-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 32px 28px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.value-card:hover {
    border-color: var(--navy);
    box-shadow: 0 12px 28px rgba(15,30,62,0.08);
    transform: translateY(-2px);
}
.value-card__icon {
    width: 56px; height: 56px;
    background: var(--paper-warm); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--navy);
}
.value-card:hover .value-card__icon { background: var(--navy); color: var(--white); }
.value-card__icon svg { width: 28px; height: 28px; transition: stroke 0.2s ease; }
.value-card h3 {
    font-size: 20px; font-weight: 700; color: var(--anthracite);
    margin: 0 0 10px; letter-spacing: -0.01em;
}
.value-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0; }
@media (max-width: 1024px) { .value-grid, .value-grid--6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .value-grid, .value-grid--6 { grid-template-columns: 1fr; } }


/* Founder-Karten (2 nebeneinander) */
.founder-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 32px; max-width: 880px; margin: 0 auto;
}
.founder-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 36px 32px;
    text-align: center;
}
.founder-card__avatar {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--navy); color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 26px; font-weight: 700; letter-spacing: 0.05em;
}
.founder-card h3 {
    font-size: 22px; font-weight: 700; color: var(--anthracite);
    margin: 0 0 4px; letter-spacing: -0.01em;
}
.founder-card__role {
    font-size: 13px; color: var(--steel);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin: 0 0 20px;
}
.founder-card__text {
    font-size: 14.5px; line-height: 1.7; color: var(--text-muted);
    margin: 0;
}
@media (max-width: 640px) { .founder-grid { grid-template-columns: 1fr; gap: 20px; } }


/* Zahlen-Bar (Über uns) */
.numbers-bar {
    background: var(--navy); color: var(--white); padding: 56px 0;
}
.numbers-bar__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center;
}
.numbers-bar__grid > div {
    display: flex; flex-direction: column; gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.numbers-bar__grid > div:last-child { border-right: 0; }
.numbers-bar__grid strong {
    font-size: clamp(24px, 3vw, 36px); font-weight: 700;
    color: var(--white); letter-spacing: -0.02em;
}
.numbers-bar__grid span {
    font-size: 13px; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 768px) {
    .numbers-bar__grid { grid-template-columns: 1fr 1fr; }
    .numbers-bar__grid > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 480px) {
    .numbers-bar__grid { grid-template-columns: 1fr; }
    .numbers-bar__grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; }
    .numbers-bar__grid > div:last-child { border-bottom: 0; }
}


/* Service-Blocks (Leistungen-Page, alternierend) */
.service-blocks { padding-bottom: 80px; }
.service-block {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    margin-bottom: 80px;
}
.service-block:last-child { margin-bottom: 0; }
.service-block--reverse .service-block__media { order: 2; }
.service-block--reverse .service-block__body  { order: 1; }
.service-block__media {
    position: relative; aspect-ratio: 4 / 3;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(15,30,62,0.10);
}
.service-block__media img {
    width: 100%; height: 100%; object-fit: cover;
}
.service-block__tag {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 14px; background: var(--white); color: var(--navy);
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
    border-radius: 3px; text-transform: uppercase;
}
.service-block__body h3 {
    font-size: clamp(24px, 2.8vw, 32px); font-weight: 700;
    color: var(--anthracite); letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.service-block__body p {
    font-size: 16px; line-height: 1.75; color: var(--text-muted);
    margin: 0 0 12px;
}
.service-block__features {
    list-style: none; padding: 0; margin: 16px 0 0;
    display: grid; gap: 8px;
}
.service-block__features li {
    padding-left: 22px; position: relative;
    font-size: 14.5px; color: var(--text);
}
.service-block__features li::before {
    content: '✓'; position: absolute; left: 0; color: var(--navy); font-weight: 700;
}
@media (max-width: 768px) {
    .service-block { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
    .service-block--reverse .service-block__media,
    .service-block--reverse .service-block__body { order: unset; }
}


/* Kontakt-Page-Grid */
.contact-grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 56px; align-items: start;
}
.contact-grid__info h2,
.contact-grid__form h2 { margin-bottom: 24px; }
.contact-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 20px;
}
.contact-list li {
    display: flex; align-items: flex-start; gap: 16px;
}
.contact-list__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--paper-warm); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--navy);
}
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list__label {
    font-size: 12px; color: var(--steel);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.contact-list__value {
    font-size: 17px; font-weight: 600; color: var(--anthracite);
    text-decoration: none;
}
.contact-list__value:hover { color: var(--navy); }
.contact-form-wrap {
    background: var(--paper); padding: 32px;
    border-radius: 6px;
}
.contact-form-placeholder p { margin-top: 0; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }


/* Karte */
.contact-map {
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(15,30,62,0.10);
}


/* Kontakt-Prozess (kompakt) */
.contact-process {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.contact-process li {
    display: flex; flex-direction: column; gap: 8px;
    padding: 24px;
    background: var(--paper); border-radius: 6px;
}
.contact-process__num {
    display: inline-block; padding: 4px 10px;
    background: var(--navy); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    border-radius: 3px;
    align-self: flex-start;
}
.contact-process strong {
    font-size: 17px; color: var(--anthracite); font-weight: 600;
}
.contact-process span {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
}
@media (max-width: 1024px) { .contact-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .contact-process { grid-template-columns: 1fr; } }


/* ===========================================================================
   Session 11 — .container / .container--narrow
   ---------------------------------------------------------------------------
   Sub-Page-Templates (page-vorteile, -leistungen, -ueber-uns, -kontakt,
   -impressum, -privacy-policy) nutzen <div class="container">, die Regel
   dafür fehlte bisher komplett → Content ging bis zum Viewport-Rand, kein
   seitliches Padding. Werte matchen die bestehenden .services-inner /
   .benefits-inner / .hero-inner-Rules: max-width 1400px, padding 0 32px,
   mobil 0 20px.
   =========================================================================== */

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}
.container--narrow { max-width: 880px; }

@media (max-width: 640px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* Breadcrumb innerhalb subpage-hero (Legal-Templates) */
.subpage-hero__breadcrumb {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.subpage-hero__breadcrumb a {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 1px;
}
.subpage-hero__breadcrumb a:hover { color: var(--white); border-bottom-color: var(--white); }
.subpage-hero__breadcrumb span { margin: 0 4px; }

/* Legal-Content: saubere Abstände zwischen Fließtext-Elementen */
.legal-content { color: var(--text); font-size: 16px; line-height: 1.8; }
.legal-content h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--anthracite); margin: 2em 0 0.5em; }
.legal-content h3 { font-size: 20px; font-weight: 700; color: var(--anthracite); margin: 1.5em 0 0.4em; }
.legal-content h4 { font-size: 17px; font-weight: 600; color: var(--anthracite); margin: 1.25em 0 0.3em; }
.legal-content p  { margin: 0 0 1em; color: var(--text-muted); }
.legal-content a  { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: var(--navy); }
.legal-content ul, .legal-content ol { padding-left: 1.25em; margin-bottom: 1em; color: var(--text-muted); }
.legal-content strong { color: var(--anthracite); }


/* ===========================================================================
   Session 9 — Mobile-Cleanup (Topbar + Header-CTA ausblenden)
   ---------------------------------------------------------------------------
   Vorher:
   - .top-bar hatte nur eine Sub-Regel (.top-bar-left span:last-child hidden)
     bei max-width 640px — das ganze Band blieb sichtbar.
   - .btn-cta im Header hatte gar keine Mobile-Regel — kollidierte mit
     Burger auf schmalen Viewports.
   Jetzt:
   - Topbar komplett aus unter 768px.
   - Header-CTA-Button aus unter 960px (Burger-Drawer navigiert stattdessen).
   =========================================================================== */

/* Zusätzliches Overflow-Safety-Net für alle Haupt-Wrapper auf Mobile.
   Ergänzt das existierende html/body overflow-x:hidden — fängt Edge-Cases
   ab, in denen ein Fixed-/Transformed-Kind einen Shadow-Bleed erzeugt. */
@media (max-width: 1024px) {
    .site-header,
    header,
    main,
    footer,
    .page-cta-stripe,
    .subpage-hero,
    .subpage-content,
    .numbers-bar {
        max-width: 100vw;
        overflow-x: clip;
    }
}

@media (max-width: 767px) {
    .top-bar,
    .top-bar * {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        visibility: hidden !important;
    }
}

@media (max-width: 959px) {
    header .btn-cta,
    .header-cta .btn-cta {
        display: none !important;
    }
}

/* Belt-and-suspenders: Hero-Banner der Unterseiten dürfen KEINEN eigenen
   stacking-context mit hohem z-index bilden, sonst überdecken sie das
   Mobile-Drawer-Panel (z:9999). Hier explizit zurückgesetzt. */
header.subpage-hero,
header.page-hero,
.subpage-hero,
.page-hero {
    z-index: auto !important;
}


/* ===========================================================================
   CONTACT-CTA
   =========================================================================== */

.contact-cta { padding: 100px 0; background: var(--white); }
.contact-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 32px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.contact-left h2 {
    font-size: clamp(32px, 4vw, 44px); font-weight: 700;
    line-height: 1.15; letter-spacing: -0.02em; color: var(--anthracite);
    margin: 16px 0 20px;
}
.contact-left h2 span { color: var(--navy); }
.contact-left > p {
    font-size: 17px; line-height: 1.7; color: var(--text-muted);
    margin-bottom: 32px; max-width: 480px;
}
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px; background: var(--paper); border-radius: 6px;
    text-decoration: none; color: var(--text); transition: all 0.3s;
}
.contact-method:hover { background: var(--navy); color: var(--white); }
.contact-method-icon {
    width: 48px; height: 48px; background: var(--white);
    border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.contact-method:hover .contact-method-icon { background: var(--navy-light); }
.contact-method-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 2; transition: stroke 0.3s; }
.contact-method:hover .contact-method-icon svg { stroke: var(--white); }
.contact-method-info { flex: 1; }
.contact-method-label {
    font-size: 12px; color: var(--steel); text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 4px;
}
.contact-method:hover .contact-method-label { color: rgba(255, 255, 255, 0.7); }
.contact-method-value { font-size: 17px; font-weight: 600; color: var(--anthracite); }
.contact-method:hover .contact-method-value { color: var(--white); }

.contact-form {
    background: var(--paper); padding: 48px 40px; border-radius: 6px;
}
.contact-form h3 {
    font-size: 24px; font-weight: 700; color: var(--anthracite);
    margin-bottom: 8px; letter-spacing: -0.01em;
}
.contact-form > p { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { margin-bottom: 12px; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%; padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: 4px;
    font-family: inherit; font-size: 14.5px; color: var(--text);
    transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--navy);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-submit {
    width: 100%; padding: 16px; background: var(--navy); color: var(--white);
    font-size: 15px; font-weight: 600; border: none; border-radius: 4px;
    cursor: pointer; margin-top: 12px; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--navy-dark); }
.form-privacy { font-size: 12px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* Wenn Contact-Form-7 aktiv ist: Styling für dessen Standard-Markup anpassen */
.contact-form .wpcf7-form p { margin: 0 0 12px; }
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
    width: 100%; padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: 4px;
    font-family: inherit; font-size: 14.5px; color: var(--text);
}
.contact-form .wpcf7-form input[type="submit"] {
    width: 100%; padding: 16px; background: var(--navy); color: var(--white);
    font-size: 15px; font-weight: 600; border: 0; border-radius: 4px;
    cursor: pointer; margin-top: 12px;
}


/* ===========================================================================
   FOOTER
   =========================================================================== */

footer { background: var(--navy-dark); color: var(--silver); padding: 80px 0 32px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(168, 181, 204, 0.15);
    margin-bottom: 32px;
}
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: var(--silver); }
.footer-brand p {
    font-size: 14px; line-height: 1.7; color: var(--silver);
    margin-top: 20px; max-width: 320px;
}
.footer-col h4 {
    font-size: 14px; font-weight: 600; color: var(--white);
    margin-bottom: 20px;
}
.footer-col a {
    display: block; padding: 6px 0; color: var(--silver);
    text-decoration: none; font-size: 14px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col-contact p {
    font-size: 14px; color: var(--silver); line-height: 1.7; margin-bottom: 14px;
}
.footer-col-contact strong {
    color: var(--white); display: block;
    margin-bottom: 2px; font-weight: 600;
}
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--silver);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom a { color: var(--silver); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }


/* ===========================================================================
   PAGE-TEMPLATE (Unterseiten)
   =========================================================================== */

.page-hero {
    background: var(--paper);
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero-inner { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.page-hero .breadcrumb {
    font-size: 13px; color: var(--steel);
    margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--navy); text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px); font-weight: 700;
    color: var(--anthracite); letter-spacing: -0.02em; margin: 0;
}

.page-body { padding: 80px 0 100px; background: var(--white); }
.page-body-inner {
    max-width: 820px; margin: 0 auto; padding: 0 32px;
    font-size: 17px; line-height: 1.8; color: var(--text);
}
.page-body-inner h2 { font-size: 32px; font-weight: 700; color: var(--anthracite); margin: 2em 0 0.5em; letter-spacing: -0.02em; }
.page-body-inner h3 { font-size: 22px; font-weight: 700; color: var(--anthracite); margin: 1.5em 0 0.5em; letter-spacing: -0.01em; }
.page-body-inner p { margin-bottom: 1em; color: var(--text-muted); }
.page-body-inner a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.page-body-inner a:hover { text-decoration-color: var(--navy); }
.page-body-inner ul, .page-body-inner ol { padding-left: 1.25em; margin-bottom: 1em; color: var(--text-muted); }

/* CTA-Streifen unter Page-Content (Conversion-Anker) */
.page-cta-stripe {
    background: var(--navy); color: var(--white); padding: 60px 32px;
    text-align: center;
}
.page-cta-stripe h2 {
    color: var(--white); font-size: clamp(24px, 3vw, 34px);
    font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px;
}
.page-cta-stripe p {
    color: rgba(255, 255, 255, 0.8); max-width: 560px;
    margin: 0 auto 24px; font-size: 16px;
}


/* ===========================================================================
   MOBILE (aus Mockup + Erweiterungen für Mobile-Nav)
   =========================================================================== */

@media (max-width: 1024px) {
    /* Mobile-Drawer für die bestehende <nav class="primary-nav">.
       Phase A (v0.5.2): clean zurück auf single-nav-Architektur.
       Phase B (v0.5.3): Drawer-Aktivierung über body.menu-open + JS-Portal
       ergänzt diesen Block durch gezielt gescopete Regeln am Ende der Datei. */
    nav.primary-nav {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(85vw, 360px);
        height: 100vh;
        background: var(--navy-dark); color: var(--white);
        padding: 96px 32px 32px;
        flex-direction: column; justify-content: flex-start;
        align-items: stretch; gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s ease, visibility 0.35s ease, box-shadow 0.35s ease;
        box-shadow: none;
        overflow-y: auto;
        z-index: 9999;
        visibility: hidden;
        pointer-events: none;
    }
    /* Drawer sichtbar nur wenn body.menu-open gesetzt (JS-getriggered).
       Phase B (v0.5.3): Wechsel von .is-open auf body.menu-open,
       parallel zum JS-DOM-Portal-on-open. Greift NUR <1024px. */
    body.menu-open nav.primary-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    }

    body.menu-open { overflow: hidden; }

    /* Backdrop via Pseudo-Element — redundant zum HTML .nav-backdrop,
       aber deckt auch den Fall ab in dem .nav-backdrop nicht geladen ist. */
    body.menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 27, 45, 0.5);
        z-index: 9998;
        pointer-events: none;
    }
    nav.primary-nav ul {
        flex-direction: column; gap: 4px;
        align-items: stretch; width: 100%;
    }
    nav.primary-nav a {
        color: var(--white); padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid rgba(168, 181, 204, 0.15);
    }
    nav.primary-nav a:hover,
    nav.primary-nav .current-menu-item > a,
    nav.primary-nav a[aria-current="page"] {
        color: var(--silver);
    }
    nav.primary-nav .current-menu-item > a::after,
    nav.primary-nav a[aria-current="page"]::after {
        display: none;
    }

    .nav-toggle { display: inline-flex; }
    .header-inner { grid-template-columns: auto 1fr auto; }

    .hero-stats-inner { grid-template-columns: 1fr 1fr; }
    .hero-stat:nth-child(2) { border-right: none; }
    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) { border-top: 1px solid var(--line); }

    .services-header { grid-template-columns: 1fr; gap: 24px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 60px; }
    .about-experience-badge { bottom: -20px; right: 20px; padding: 24px 32px; }
    .about-experience-num { font-size: 44px; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .process-step::after { display: none; }
    .contact-inner { grid-template-columns: 1fr; gap: 48px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .top-bar-left span:last-child { display: none; }
    .header-phone { display: none; }
    .header-inner { padding: 0 20px; }
    .hero-inner { padding: 60px 20px 80px; }
    .hero { min-height: 540px; }
    .hero-actions { flex-direction: column; }
    .btn-primary-large, .btn-secondary-large { width: 100%; justify-content: center; }
    .hero-stats-inner { grid-template-columns: 1fr; }
    .hero-stat { border-right: none !important; border-bottom: 1px solid var(--line); }
    .hero-stat:last-child { border-bottom: none; }
    .services { padding: 80px 0; }
    .hero-stats { padding: 0 20px; margin-top: -40px; }
    .services-inner,
    .benefits-inner,
    .about-inner,
    .process-inner,
    .testimonial-inner,
    .contact-inner,
    .footer-inner { padding: 0 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 32px 24px; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}


/* =================================================
   KONTAKTFORMULAR -- PAKIJ
   ================================================= */
.pakij-form {
  max-width: 720px;
  margin: 0 auto;
}

/* wpautop-Artefakte neutralisieren: CF7-Output rendert jedes Label
   in einem <p> mit ~16px Top+Bottom-Margin und streut <br/>-Tags
   zwischen Label-Span und Control-Wrap. Beides tötet den Rhythmus. */
.pakij-form p { margin: 0 !important; }
.pakij-form br { display: none; }
.pakij-form .wpcf7-form-control-wrap { display: block; }

.pakij-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (max-width: 640px) {
  .pakij-row { grid-template-columns: 1fr; gap: 0; }
}

.pakij-field {
  display: block;
  margin-bottom: 14px;
}

.pakij-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f1b2d;
  margin-bottom: 6px;
}

.pakij-label em {
  color: #c0392b;
  font-style: normal;
  margin-left: 2px;
}

.pakij-form input[type="text"],
.pakij-form input[type="email"],
.pakij-form input[type="tel"],
.pakij-form select,
.pakij-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e6ee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: #0f1b2d;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  line-height: 1.4;
}

.pakij-form input::placeholder,
.pakij-form textarea::placeholder {
  color: #9aa3b2;
}

.pakij-form input:focus,
.pakij-form select:focus,
.pakij-form textarea:focus {
  outline: none;
  border-color: #0f1b2d;
  box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.08);
}

.pakij-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230f1b2d'><path d='M5.5 7.5L10 12l4.5-4.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.pakij-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pakij-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: 14px;
  color: #4a5363;
  line-height: 1.55;
}

.pakij-consent .wpcf7-list-item {
  margin: 0 !important;
}

.pakij-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f1b2d;
  cursor: pointer;
  flex-shrink: 0;
}

.pakij-consent a {
  color: #0f1b2d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pakij-submit {
  text-align: center;
}

.pakij-form input[type="submit"],
.pakij-form button[type="submit"] {
  background: #0f1b2d;
  color: #fff;
  border: none;
  padding: 15px 36px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  min-width: 220px;
}

.pakij-form input[type="submit"]:hover,
.pakij-form button[type="submit"]:hover {
  background: #1a2942;
  transform: translateY(-1px);
}

.pakij-hint {
  margin-top: 14px;
  font-size: 13px;
  color: #8a93a2;
}

.wpcf7-response-output {
  border-radius: 8px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  margin-top: 24px !important;
}

.wpcf7-not-valid-tip {
  color: #c0392b !important;
  font-size: 12.5px !important;
  margin-top: 5px !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #e74c3c !important;
  background: #fef5f4 !important;
  color: #8c2a1e !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a085 !important;
  background: #f0faf7 !important;
  color: #0e6e5a !important;
}