/* ==========================================================================
   TRUPP KFZ-Service — Custom CSS v6
   Basis: 1:1 CSS aus reference/trupp-kfz-redesign.html
   Gemappt auf KI-CMS Tailwind-Template-Klassen
   ========================================================================== */

/* Fonts werden lokal aus /assets/css/fonts.css geladen (kein Google CDN) */

/* ==========================================================================
   CSS Custom Properties (aus Referenz)
   ========================================================================== */
:root {
    --primary: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #3399FF;
    --dark: #1A1A1A;
    --dark-gray: #2D2D2D;
    --medium-gray: #4A4A4A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --accent: #FF6B00;
    --gradient-blue: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #003366 100%);
    --gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #2D2D2D 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.3);
}

/* ==========================================================================
   Global Reset & Typography (aus Referenz)
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif !important;
    background: var(--dark) !important;
    color: var(--white) !important;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 2px !important;
    color: var(--white) !important;
}

/* ==========================================================================
   HEADER — Fixed Dark Glassmorphism (aus Referenz)
   CMS: <header class="bg-white border-b border-gray-200 sticky top-0 z-50">
   ========================================================================== */
header,
header.bg-white,
header.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000 !important;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

/* Logo: CMS <a class="flex items-center gap-2 text-xl font-bold text-gray-900"> */
header a.flex.items-center {
    color: var(--white) !important;
    text-decoration: none !important;
}

header a.flex.items-center .text-xl,
header a.flex.items-center.text-xl,
header .font-bold.text-gray-900 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 28px !important;
    letter-spacing: 2px !important;
    color: var(--white) !important;
}

/* Logo-Bild */
header img.h-8 {
    height: 44px !important;
    width: auto !important;
}

/* Nav Links: CMS <a class="text-sm font-medium text-gray-700 hover:text-gray-900"> */
header .hidden.sm\:flex a,
header nav a.text-sm,
header a.text-sm.font-medium {
    color: var(--white) !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

header .hidden.sm\:flex a:hover,
header nav a.text-sm:hover {
    background: rgba(0, 102, 204, 0.15) !important;
    color: var(--primary-light) !important;
}

/* Letzter Nav-Link = CTA Button (Referenz: nav a.cta) */
header .hidden.sm\:flex a:last-child {
    background: var(--gradient-blue) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
}

header .hidden.sm\:flex a:last-child:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Aktiver Link */
header .text-indigo-600,
header a.text-indigo-600 {
    color: var(--primary-light) !important;
}

/* ==========================================================================
   DROPDOWN-NAVIGATION
   CMS rendert children als <ul> innerhalb des nav-links
   ========================================================================== */
/* Nav-Item mit Dropdown: position relative */
header .hidden.sm\:flex > div,
header nav > div,
header .hidden.sm\:flex li {
    position: relative;
}

/* Dropdown-Container (children ul) */
header .hidden.sm\:flex ul,
header nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    list-style: none;
    margin: 0;
}

/* Dropdown anzeigen bei Hover */
header .hidden.sm\:flex > div:hover > ul,
header nav > div:hover > ul,
header .hidden.sm\:flex li:hover > ul,
header .has-dropdown:hover > ul {
    display: block;
}

/* Dropdown-Links */
header .hidden.sm\:flex ul a,
header nav ul a {
    display: block !important;
    padding: 10px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: nowrap;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

header .hidden.sm\:flex ul a:hover,
header nav ul a:hover {
    background: rgba(0, 102, 204, 0.15) !important;
    color: var(--primary-light) !important;
    padding-left: 24px !important;
}

/* Dropdown-Pfeil fuer Items mit Kindern */
header .hidden.sm\:flex > div > a[data-has-children]::after,
header .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* Mobile Menu Button */
header button.sm\:hidden,
header .sm\:hidden button {
    color: var(--white) !important;
}

header button svg,
header .sm\:hidden svg {
    color: var(--white) !important;
}

/* Mobile Menu */
#mobile-menu {
    background: rgba(26, 26, 26, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#mobile-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 16px !important;
    display: block;
}

#mobile-menu a:hover {
    color: var(--primary-light) !important;
    background: rgba(0, 102, 204, 0.1) !important;
}

/* ==========================================================================
   HERO — Fullscreen (aus Referenz: .hero)
   CMS: <section data-section-type="hero" class="relative w-full min-h-[60vh] md:min-h-[80vh]">
   ========================================================================== */
[data-section-type="hero"] {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
    overflow: hidden;
    padding-top: 80px !important;
    background: var(--dark) !important;
}

[data-section-type="hero"].bg-gray-900 {
    background: var(--dark) !important;
}

/* Hero-Bild */
[data-section-type="hero"] picture,
[data-section-type="hero"] picture img,
[data-section-type="hero"] img.absolute {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
}

/* Overlay: CSS-basiert via ::before (unabhaengig vom HTML-Overlay-Div) */
[data-section-type="hero"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(26,26,26,0.85) 50%, rgba(0,51,102,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Falls HTML-Overlay-Div vorhanden: verstecken (CSS ::before uebernimmt) */
[data-section-type="hero"] > .absolute.inset-0.bg-black {
    display: none !important;
}

/* Grid-Pattern Overlay (Referenz: .hero-grid) */
[data-section-type="hero"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Content: Layout wird via JS gesetzt (custom_head_code) */
/* H1: Referenz .hero-text h1 */
[data-section-type="hero"] h1 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(48px, 8vw, 96px) !important;
    line-height: 0.95 !important;
    letter-spacing: 2px !important;
    margin-bottom: 24px !important;
    color: var(--white) !important;
    text-align: left !important;
}

/* Subheadline: Referenz .hero-text p */
[data-section-type="hero"] p.text-gray-200,
[data-section-type="hero"] p.text-lg,
[data-section-type="hero"] .max-w-2xl {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 40px !important;
    max-width: 480px !important;
    font-weight: 300 !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

/* Primary CTA: Referenz .btn-primary */
[data-section-type="hero"] a.bg-blue-600,
[data-section-type="hero"] a[class*="bg-blue-600"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    background: var(--gradient-blue) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4) !important;
    transition: all 0.3s ease !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

[data-section-type="hero"] a.bg-blue-600:hover,
[data-section-type="hero"] a[class*="bg-blue-600"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5) !important;
}

/* Secondary CTA: Referenz .btn-secondary */
[data-section-type="hero"] a.bg-transparent,
[data-section-type="hero"] a.border-2 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

[data-section-type="hero"] a.bg-transparent:hover,
[data-section-type="hero"] a.border-2:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ==========================================================================
   USP STRIP
   CMS: <section data-section-type="usp_strip" class="py-6 md:py-8 px-6 border-y">
   ========================================================================== */
[data-section-type="usp_strip"] {
    background: var(--dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-section-type="usp_strip"].bg-gray-900 {
    background: var(--dark) !important;
}

[data-section-type="usp_strip"] .border-y,
[data-section-type="usp_strip"] .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-section-type="usp_strip"] .text-gray-200,
[data-section-type="usp_strip"] span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

[data-section-type="usp_strip"] .flex.items-center.gap-3 {
    transition: transform 0.3s ease;
}

[data-section-type="usp_strip"] .flex.items-center.gap-3:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   FEATURE GRID (Services) — Links-ausgerichtet wie Referenz
   Referenz: .service-card { background: var(--dark-gray); text-align: left }
   CMS: <section data-section-type="feature_grid">
   ========================================================================== */
[data-section-type="feature_grid"] {
    padding: 120px 24px !important;
    background: var(--dark) !important;
    position: relative;
}

[data-section-type="feature_grid"].bg-gray-900 {
    background: var(--dark) !important;
}

/* Section Header: zentriert wie Referenz .section-header */
[data-section-type="feature_grid"] .text-center {
    text-align: center !important;
    margin-bottom: 80px !important;
}

/* Section Title: Referenz .section-title — Flex-Column fuer Label darueber */
[data-section-type="feature_grid"] h2 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    letter-spacing: 2px !important;
    margin-bottom: 20px !important;
    color: var(--white) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Section-Label "UNSERE LEISTUNGEN" via ::before auf h2 */
[data-section-type="feature_grid"] h2::before {
    content: 'Unsere Leistungen';
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.15);
    border-radius: 30px;
}

/* Section Subtitle: Referenz .section-subtitle */
[data-section-type="feature_grid"] .text-center p,
[data-section-type="feature_grid"] p.text-lg,
[data-section-type="feature_grid"] .text-white\/70,
[data-section-type="feature_grid"] .max-w-2xl {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: 300 !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

/* Grid: Referenz .services-grid { grid-template-columns: repeat(3,1fr); gap:32px } */
[data-section-type="feature_grid"] .grid {
    gap: 32px !important;
}

/* Service-Karten: Referenz .service-card { background: var(--dark-gray); padding: 40px; text-align: left } */
[data-section-type="feature_grid"] .bg-white {
    background: var(--dark-gray) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s ease !important;
    text-align: left !important;
    cursor: pointer;
}

/* Hover-Effekt auf Top-Border: Referenz .service-card::before */
[data-section-type="feature_grid"] .bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

[data-section-type="feature_grid"] .bg-white:hover::before {
    transform: scaleX(1);
}

[data-section-type="feature_grid"] .bg-white:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(0, 102, 204, 0.3) !important;
}

/* Icon: Referenz .service-icon { width:64px; height:64px; margin-bottom:24px } */
[data-section-type="feature_grid"] .text-4xl,
[data-section-type="feature_grid"] .text-blue-600 {
    width: 64px !important;
    height: 64px !important;
    background: rgba(0, 102, 204, 0.15) !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 24px 0 !important;
    font-size: 32px !important;
    transition: all 0.3s ease !important;
}

[data-section-type="feature_grid"] .bg-white:hover .text-4xl,
[data-section-type="feature_grid"] .bg-white:hover .text-blue-600 {
    background: var(--gradient-blue) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Card Title: Referenz .service-card h3 */
[data-section-type="feature_grid"] h3,
[data-section-type="feature_grid"] .text-gray-900 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 26px !important;
    letter-spacing: 1px !important;
    margin-bottom: 16px !important;
    color: var(--white) !important;
}

/* Card Description: Referenz .service-card p { margin-bottom: 24px } */
[data-section-type="feature_grid"] .text-gray-600,
[data-section-type="feature_grid"] .leading-relaxed {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    margin-bottom: 24px !important;
}

/* "MEHR ERFAHREN" Link via ::after — Referenz .service-link */
[data-section-type="feature_grid"] .bg-white .leading-relaxed::after,
[data-section-type="feature_grid"] .bg-white .text-gray-600:last-child::after {
    content: 'MEHR ERFAHREN →';
    display: block;
    margin-top: 24px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: 'Source Sans 3', sans-serif;
    transition: letter-spacing 0.3s ease;
}

[data-section-type="feature_grid"] .bg-white:hover .leading-relaxed::after,
[data-section-type="feature_grid"] .bg-white:hover .text-gray-600:last-child::after {
    letter-spacing: 2px;
}

/* Border Override */
[data-section-type="feature_grid"] .border-gray-100 {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   IMAGE-TEXT (About) — Mit orangem Badge
   Referenz: .about { background: var(--gradient-dark) }
   CMS: <section data-section-type="image_text">
   ========================================================================== */
[data-section-type="image_text"] {
    padding: 120px 24px !important;
    background: var(--gradient-dark) !important;
    position: relative;
}

[data-section-type="image_text"].bg-gray-900 {
    background: var(--gradient-dark) !important;
}

/* About Heading: Referenz .about-content h2 */
[data-section-type="image_text"] h2 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 4vw, 48px) !important;
    letter-spacing: 2px !important;
    margin-bottom: 24px !important;
    color: var(--white) !important;
}

/* About Text: Referenz .about-content p */
[data-section-type="image_text"] .prose,
[data-section-type="image_text"] .prose p,
[data-section-type="image_text"] .text-gray-200 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 17px !important;
    font-weight: 300 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

[data-section-type="image_text"] .prose strong {
    color: var(--white) !important;
    font-weight: 600 !important;
}

[data-section-type="image_text"] .prose a {
    color: var(--primary-light) !important;
}

/* Feature-Liste: Referenz .about-features */
[data-section-type="image_text"] .prose ul {
    list-style: none !important;
    padding-left: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-top: 40px !important;
}

/* Feature-Items: Referenz .about-feature */
[data-section-type="image_text"] .prose li {
    color: var(--white) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: rgba(0, 102, 204, 0.1) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 102, 204, 0.2) !important;
    margin: 0 !important;
}

[data-section-type="image_text"] .prose li::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--primary-light);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    flex-shrink: 0;
}

/* Bild: Referenz .about-image-main { border-radius: 24px; height: 500px } */
[data-section-type="image_text"] picture img,
[data-section-type="image_text"] img.rounded-lg {
    border-radius: 24px !important;
    box-shadow: var(--shadow-lg) !important;
    object-fit: cover !important;
    min-height: 400px !important;
    width: 100% !important;
    height: auto !important;
}

/* Bild-Container: Position fuer Badge */
[data-section-type="image_text"] .md\:order-1:first-child,
[data-section-type="image_text"] > div > div:first-child {
    position: relative !important;
}

/* Orange Badge "15+": Referenz .about-badge */
[data-section-type="image_text"] picture::after,
[data-section-type="image_text"] img.rounded-lg + .about-badge {
    content: '';
}

/* Badge ueber CSS Pseudo-Element am Bild-Container: Referenz .about-badge */
[data-section-type="image_text"] .grid > div:first-child::after {
    content: '20+ \A Jahre \A Erfahrung';
    white-space: pre-line;
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 18px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    z-index: 10;
    letter-spacing: 1px;
}

[data-section-type="image_text"] .grid > div:first-child {
    position: relative !important;
    overflow: visible !important;
}

/* ==========================================================================
   STEPS (Process) — Horizontal Layout wie Referenz
   Referenz: .process-steps { grid-template-columns: repeat(4,1fr); gap:32px }
   CMS: <section data-section-type="steps">
   ========================================================================== */
[data-section-type="steps"] {
    padding: 120px 24px !important;
    background: var(--dark) !important;
}

[data-section-type="steps"].bg-gray-900 {
    background: var(--dark) !important;
}

/* Section Header mit Label: Referenz .section-header */
[data-section-type="steps"] h2 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 5vw, 56px) !important;
    letter-spacing: 2px !important;
    color: var(--white) !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Section-Label "SO FUNKTIONIERT'S" via ::before */
[data-section-type="steps"] h2::before {
    content: "So funktioniert's";
    display: block;
    width: fit-content;
    margin: 0 auto 16px;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.15);
    border-radius: 30px;
}

/* Subheadline: via content.json data.subheadline */
[data-section-type="steps"] .text-center p,
[data-section-type="steps"] p.text-lg {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    max-width: 600px !important;
    margin: 0 auto 60px !important;
    font-weight: 300 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    text-align: center !important;
}

/* Steps-Container: Von vertikal auf horizontal Grid umstellen */
/* CMS: <div class="relative"> mit Kinder <div class="relative flex gap-6 pb-10"> */
[data-section-type="steps"] .max-w-4xl > .relative {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    position: relative;
}

/* Horizontale Connector-Linie: Referenz .process-steps::before */
[data-section-type="steps"] .max-w-4xl > .relative::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 80px;
    right: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    opacity: 0.3;
    z-index: 0;
}

/* Einzelne Steps: vertikal zentriert statt horizontal */
[data-section-type="steps"] .relative.flex.gap-6,
[data-section-type="steps"] .relative.flex {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
}

/* Vertikale Connector-Linie verstecken (CMS-Default) */
[data-section-type="steps"] .w-0\.5,
[data-section-type="steps"] .bg-blue-200,
[data-section-type="steps"] .absolute.left-5 {
    display: none !important;
}

/* Step-Nummer: Referenz .process-number { width:100px; height:100px; font-size:36px } */
[data-section-type="steps"] .w-10.h-10,
[data-section-type="steps"] .rounded-full.bg-blue-600 {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    background: var(--dark-gray) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 36px !important;
    color: var(--primary-light) !important;
    position: relative;
    z-index: 2;
    margin: 0 auto 24px !important;
    transition: all 0.3s ease !important;
}

/* Wenn icon statt Nummer: span.text-lg inside Circle */
[data-section-type="steps"] .rounded-full .text-lg,
[data-section-type="steps"] .w-10.h-10 .text-lg {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 36px !important;
    color: var(--primary-light) !important;
    line-height: 1 !important;
    leading-trim: both;
}

[data-section-type="steps"] .w-10.h-10:hover,
[data-section-type="steps"] .rounded-full.bg-blue-600:hover,
[data-section-type="steps"] .relative.flex:hover .w-10.h-10,
[data-section-type="steps"] .relative.flex:hover .rounded-full.bg-blue-600 {
    background: var(--gradient-blue) !important;
    color: var(--white) !important;
    box-shadow: var(--shadow-glow) !important;
    border-color: transparent !important;
}

/* Step Titel: Referenz .process-step h3 */
[data-section-type="steps"] h3 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 22px !important;
    letter-spacing: 1px !important;
    margin-bottom: 12px !important;
    color: var(--white) !important;
}

/* Step Beschreibung: Referenz .process-step p */
[data-section-type="steps"] p.leading-relaxed,
[data-section-type="steps"] .text-white\/70 {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

/* Step-Content (Text neben Nummer im CMS) */
[data-section-type="steps"] .pt-1.flex-1 {
    text-align: center !important;
    padding-top: 0 !important;
}

/* ==========================================================================
   CONTACT — Zwei-Spalten mit Kontaktinfos links + Formular rechts
   Referenz: .contact { background: var(--dark-gray) }
   CMS: <section data-section-type="contact">
   ========================================================================== */
[data-section-type="contact"] {
    padding: 120px 24px !important;
    background: var(--dark-gray) !important;
}

/* Heading: Referenz .contact-info h2 — links statt zentriert */
[data-section-type="contact"] h2 {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(36px, 4vw, 48px) !important;
    letter-spacing: 2px !important;
    margin-bottom: 24px !important;
    color: var(--white) !important;
    text-align: left !important;
}

/* Prose/body_text: Referenz .contact-info Styling */
[data-section-type="contact"] .prose,
[data-section-type="contact"] .prose p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 17px !important;
    font-weight: 300 !important;
    font-family: 'Source Sans 3', sans-serif !important;
    margin-bottom: 40px !important;
}

[data-section-type="contact"] .prose strong {
    color: var(--white) !important;
}

/* Contact Items: Referenz .contact-item mit Icon-Box */
[data-section-type="contact"] .flex.items-start.gap-3 {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 0;
}

/* Icon-Wrapper: Referenz .contact-item-icon { 56x56, bg, rounded } */
[data-section-type="contact"] .flex.items-start.gap-3 svg,
[data-section-type="contact"] svg.w-5 {
    color: var(--primary-light) !important;
    stroke: var(--primary-light) !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    background: rgba(0, 102, 204, 0.15);
    padding: 14px;
    border-radius: 14px;
    box-sizing: content-box;
}

/* Email und Phone Links */
[data-section-type="contact"] a[href^="mailto"],
[data-section-type="contact"] a[href^="tel"] {
    color: var(--white) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

[data-section-type="contact"] a[href^="mailto"]:hover,
[data-section-type="contact"] a[href^="tel"]:hover {
    color: var(--primary-light) !important;
}

/* Address Text */
[data-section-type="contact"] .text-gray-200,
[data-section-type="contact"] span {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Borders */
[data-section-type="contact"] .border-white\/20,
[data-section-type="contact"] .border {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   CONTACT — Formular-Karte (CMS v1.5.0: #form-kontakt, Tailwind-Klassen)
   ========================================================================== */

/* Formular-Card-Wrapper: bg-white/80 backdrop-blur → dunkel */
[data-section-type="contact"] .bg-white\/80 {
    background: var(--dark-gray) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* shadow-sm override */
[data-section-type="contact"] .shadow-sm {
    box-shadow: none !important;
}

/* Formular-Titel "TERMIN ANFRAGEN" als Pseudo-Element */
[data-section-type="contact"] #form-kontakt::before {
    content: "TERMIN ANFRAGEN";
    display: block !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 26px !important;
    letter-spacing: 2px !important;
    color: var(--white) !important;
    margin-bottom: 8px !important;
    grid-column: 1 / -1;
}

/* Formular: 2-Spalten-Grid, Name + Telefon nebeneinander */
[data-section-type="contact"] #form-kontakt {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

/* space-y-4 override: kein extra margin-top im Grid */
[data-section-type="contact"] #form-kontakt > * + * {
    margin-top: 0 !important;
}

/* Volle Spaltenbreite fuer .lf-full Felder (Nachricht, Datenschutz, Submit, Status)
   Gesteuert von form-renderer.php via .lf-full Klasse */
[data-section-type="contact"] #form-kontakt > .lf-full {
    grid-column: 1 / -1 !important;
}

/* Labels → weiss */
[data-section-type="contact"] #form-kontakt label {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Inputs, Select, Textarea → dunkles Styling (hidden inputs ausschliessen) */
[data-section-type="contact"] #form-kontakt input:not([type="hidden"]),
[data-section-type="contact"] #form-kontakt select,
[data-section-type="contact"] #form-kontakt textarea {
    background: var(--dark) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
}

/* Focus */
[data-section-type="contact"] #form-kontakt input:not([type="hidden"]):focus,
[data-section-type="contact"] #form-kontakt select:focus,
[data-section-type="contact"] #form-kontakt textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2) !important;
    outline: none !important;
}

/* Placeholder */
[data-section-type="contact"] #form-kontakt input::placeholder,
[data-section-type="contact"] #form-kontakt textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Select Options */
[data-section-type="contact"] #form-kontakt select option {
    background: var(--dark-gray) !important;
    color: var(--white) !important;
}

/* Submit-Button */
[data-section-type="contact"] #form-kontakt button[type="submit"] {
    background: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #003366 100%) !important;
    color: var(--white) !important;
    border-radius: 12px !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 18px !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

[data-section-type="contact"] #form-kontakt button[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5) !important;
}

/* Prose-Override */
[data-section-type="contact"] .prose form {
    margin: 0 !important;
    color: var(--white) !important;
}

/* ==========================================================================
   TEXT BLOCK (Impressum, Datenschutz)
   CMS: <section data-section-type="text_block">
   ========================================================================== */
[data-section-type="text_block"] {
    background: var(--dark) !important;
    padding: 0 24px 80px !important;
    padding-top: 80px !important;
}

[data-section-type="text_block"].bg-gray-900 {
    background: var(--dark) !important;
}

/* Unterseiten-Content auf gleiche Breite wie Startseite (max-w-6xl = 1152px) */
[data-section-type="text_block"] .max-w-3xl {
    max-width: 1152px !important;
}

/* Unterseiten: CMS-Heading verstecken wenn Hero-Banner vorhanden */
[data-section-type="text_block"] .max-w-3xl > h2:first-child {
    display: none !important;
}

/* Unterseiten Hero-Banner: Fullscreen wie Startseiten-Hero */
[data-section-type="text_block"] .subpage-hero-banner {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Hero-Banner Content: Gleicher Viewport wie Main Content (1152px zentriert) */
[data-section-type="text_block"] .subpage-hero-banner > div[style*="z-index:2"],
[data-section-type="text_block"] .subpage-hero-banner > div[style*="z-index: 2"] {
    max-width: 1152px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hero-Banner Heading: Bebas Neue wie Startseite */
[data-section-type="text_block"] .subpage-hero-banner h2 {
    display: block !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: clamp(48px, 7vw, 80px) !important;
    line-height: 0.95 !important;
    letter-spacing: 2px !important;
    margin: 0 0 24px 0 !important;
    text-align: left !important;
}

/* Hero CTA Buttons: Prose-Override korrigieren + Hover-Effekte */
[data-section-type="text_block"] .subpage-hero-banner a {
    color: var(--white) !important;
    text-decoration: none !important;
}

[data-section-type="text_block"] .subpage-hero-banner a[href*="kontakt"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5) !important;
}

[data-section-type="text_block"] .subpage-hero-banner a[href*="tel"]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Hero-Banner Grid-Pattern Animation */
[data-section-type="text_block"] .subpage-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Responsive: Unterseiten Tablet */
@media (max-width: 1024px) {
    /* Service-Cards-Grid: 2 Spalten auf Tablet */
    [data-section-type="text_block"] .service-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Detail-Seiten: 2-Spalten-Layouts auf 1 Spalte */
    [data-section-type="text_block"] .prose div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Detail-Seiten: 4-Spalten USP-Grid auf 2 */
    [data-section-type="text_block"] .prose div[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: Unterseiten Mobile */
@media (max-width: 768px) {
    [data-section-type="text_block"] .subpage-hero-banner {
        min-height: 50vh !important;
        padding: 120px 24px 60px !important;
    }

    [data-section-type="text_block"] .subpage-hero-banner h2 {
        font-size: clamp(36px, 10vw, 56px) !important;
    }

    /* Service-Cards-Grid: 1 Spalte auf Mobile */
    [data-section-type="text_block"] .service-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Detail-Seiten: Alle Grids auf 1 Spalte */
    [data-section-type="text_block"] .prose div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Detail-Seiten: Grid-Gap reduzieren */
    [data-section-type="text_block"] .prose div[style*="gap:60px"] {
        gap: 32px !important;
    }

    /* Unterseiten Content-Bereich: weniger Padding */
    [data-section-type="text_block"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* CTA-Bar auf Unterseiten: Stack auf Mobile */
    [data-section-type="text_block"] .prose div[style*="flex-wrap"] {
        flex-direction: column !important;
    }

    [data-section-type="text_block"] .prose div[style*="flex-wrap"] a {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

[data-section-type="text_block"] h2 {
    color: var(--white) !important;
    font-family: 'Bebas Neue', sans-serif !important;
}

[data-section-type="text_block"] .prose,
[data-section-type="text_block"] .prose p,
[data-section-type="text_block"] .prose li {
    color: rgba(255, 255, 255, 0.7) !important;
    font-family: 'Source Sans 3', sans-serif !important;
}

[data-section-type="text_block"] .prose strong {
    color: var(--white) !important;
}

[data-section-type="text_block"] .prose a {
    color: var(--primary-light) !important;
}

/* CTA-Buttons im Subpage-Hero: Weisse Textfarbe beibehalten */
[data-section-type="text_block"] .prose .subpage-hero-banner a {
    color: #fff !important;
}

[data-section-type="text_block"] .prose .subpage-hero-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5);
}

/* Bild-Credit Overlay — dezent, passend zum Dark-Design */
/* Fuer CMS-generierte Credits (hero.php, image_text.php via MediaService::creditOverlay) */
.media-credit {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    line-height: 1;
    display: block;
}

/* Fuer JS-injected Credits (Subpage-Heroes in text_block Sections) */
.image-credit {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
    line-height: 1;
}

/* ==========================================================================
   HUB-CARD HOVER-EFFEKT — auf ALLEN Seiten (Unterseiten + Hub-Seiten)
   Die inline-style hub_cards aus seo_update.py bekommen hier den Hover-Effekt
   ========================================================================== */
[data-section-type="text_block"] .service-cards-grid > a {
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

[data-section-type="text_block"] .service-cards-grid > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

[data-section-type="text_block"] .service-cards-grid > a:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(0, 102, 204, 0.3) !important;
}

[data-section-type="text_block"] .service-cards-grid > a:hover::before {
    transform: scaleX(1);
}

/* Hub-Card Icon Hover */
[data-section-type="text_block"] .service-cards-grid > a:hover > div:first-child {
    background: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #003366 100%) !important;
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.3) !important;
}

[data-section-type="text_block"] .service-cards-grid > a:hover > div:first-child svg {
    fill: #fff !important;
}

/* Hub-Card Link-Text Hover */
[data-section-type="text_block"] .service-cards-grid > a:hover span {
    letter-spacing: 2px !important;
}

/* ==========================================================================
   FOOTER — 4-Spalten wie Referenz
   Referenz: .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px }
   CMS: <footer class="bg-gray-900 text-gray-400 mt-auto">
   ========================================================================== */
footer,
footer.bg-gray-900 {
    background: var(--dark) !important;
    padding: 60px 0 30px !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Fix #7: Leerraum zwischen letzter Sektion und Footer reduzieren */
[data-section-type="contact"] + footer,
main + footer,
article + footer {
    margin-top: 0 !important;
}

/* Footer-Bottom-Bereich vom CMS ausblenden (wird via JS ersetzt) */
footer > .max-w-7xl > .border-t.mt-8 {
    display: none !important;
}

/* Footer Grid: 4 Spalten wie Referenz (JS fuegt UNTERNEHMEN + RECHTLICHES hinzu) */
footer .grid {
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 60px !important;
}

/* Footer Brand Name: Referenz .logo-name */
footer .text-white.text-lg,
footer span.text-white {
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 2px !important;
    font-size: 24px !important;
}

/* Footer Address */
footer address,
footer address p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 15px !important;
    max-width: 300px;
}

/* Footer Column Headings: Referenz .footer-column h4 */
footer h4,
footer .font-semibold {
    font-family: 'Bebas Neue', sans-serif !important;
    color: var(--white) !important;
    font-size: 20px !important;
    letter-spacing: 1px !important;
    margin-bottom: 24px !important;
}

/* Footer: "Navigation" Heading zu "LEISTUNGEN" umbenennen */
footer .grid > div:nth-child(2) h4 {
    font-size: 0 !important;
    line-height: 0 !important;
}

footer .grid > div:nth-child(2) h4::after {
    content: 'LEISTUNGEN';
    font-size: 20px;
    line-height: normal;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    color: var(--white);
}

/* Footer Links: Referenz .footer-links a */
footer a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-family: 'Source Sans 3', sans-serif !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* Footer Bottom: Referenz .footer-bottom */
footer .border-gray-800,
footer .border-t {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

footer .text-gray-400 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Copyright: Referenz .footer-bottom p */
footer .text-sm {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px !important;
}

/* ==========================================================================
   Globale Button-Overrides
   ========================================================================== */
a.bg-blue-600,
button.bg-blue-600,
.bg-blue-600 {
    background: var(--gradient-blue) !important;
    border-radius: 12px !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

a.bg-blue-600:hover,
button.bg-blue-600:hover,
.bg-blue-600:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4) !important;
}

/* ==========================================================================
   Prose Overrides fuer Dark Backgrounds (global)
   ========================================================================== */
.bg-gray-900 .prose p,
.bg-gray-900 .prose li,
.bg-gray-900 .prose {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bg-gray-900 .prose strong {
    color: var(--white) !important;
}

.bg-gray-900 .prose a {
    color: var(--primary-light) !important;
}

.bg-gray-900 .prose h2,
.bg-gray-900 .prose h3,
.bg-gray-900 .prose h4 {
    color: var(--white) !important;
    font-family: 'Bebas Neue', sans-serif !important;
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background: rgba(0, 102, 204, 0.3);
    color: var(--white);
}

/* ==========================================================================
   Animations (aus Referenz)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive (aus Referenz)
   ========================================================================== */
@media (max-width: 1024px) {
    [data-section-type="feature_grid"],
    [data-section-type="image_text"],
    [data-section-type="steps"],
    [data-section-type="contact"] {
        padding: 80px 24px !important;
    }

    /* Steps: 2 Spalten auf Tablet */
    [data-section-type="steps"] .max-w-4xl > .relative {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [data-section-type="steps"] .max-w-4xl > .relative::before {
        display: none;
    }

    footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Hero: Mobile — volle Viewport-Höhe (Browser-Bar eingerechnet) */
    [data-section-type="hero"] {
        padding-top: 60px !important;
        min-height: 100vh !important;     /* Fallback für ältere Browser */
        min-height: 100dvh !important;    /* dvh = Dynamic Viewport Height, passt sich Browser-Bar an */
    }

    /* Hero H1: Schrift + kein extra Margin (gap regelt Abstand) */
    [data-section-type="hero"] h1 {
        font-size: clamp(34px, 9vw, 52px) !important;
        margin-bottom: 0 !important;
    }

    /* Hero: Inneren Container — leere 1fr-Zeile oben schiebt Content nach unten */
    [data-section-type="hero"] > .relative.z-10 {
        padding-top: 0 !important;              /* kein Padding oben — 1fr-Zeile übernimmt */
        padding-bottom: 32px !important;
        gap: 14px !important;
        grid-template-columns: 1fr !important;  /* JS setzt 2-spaltig — hier überschreiben */
        grid-template-rows: 1fr auto auto auto auto !important;  /* Zeile 1 = Leerraum oben */
        align-items: start !important;
        min-height: calc(100vh - 60px) !important;     /* Fallback */
        min-height: calc(100dvh - 60px) !important;    /* volle Höhe minus Nav-Padding */
    }

    /* H1: Zeile 2 (nach leerem Leerraum) */
    [data-section-type="hero"] > .relative.z-10 h1 {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    /* Subheadline: Zeile 3 */
    [data-section-type="hero"] > .relative.z-10 > p {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    /* CTA-Buttons: Zeile 4 */
    [data-section-type="hero"] > .relative.z-10 > .flex.flex-wrap {
        grid-column: 1 !important;
        grid-row: 4 !important;
    }

    /* Stat-Kacheln: Zeile 5 — scrollbare Leiste */
    [data-section-type="hero"] .hero-stats-card {
        grid-column: 1 !important;
        grid-row: 5 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Stats-Grid: horizontaler Scroll-Strip */
    [data-section-type="hero"] .hero-stats-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 16px !important;
        scrollbar-width: none !important;
    }

    /* Safari/Chrome: Scrollbar verstecken */
    [data-section-type="hero"] .hero-stats-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* Einzelne Kachel: ~2,3 sichtbar → 3. lugt rein als Scroll-Hint */
    [data-section-type="hero"] .hero-stat-item {
        flex: 0 0 auto !important;
        width: calc((100vw - 72px) / 2.4) !important;
        scroll-snap-align: start !important;
        padding: 18px 12px 14px !important;
    }

    /* Hero Subheadline: margin-bottom auf Mobile reduzieren */
    [data-section-type="hero"] p.text-gray-200,
    [data-section-type="hero"] p.text-lg,
    [data-section-type="hero"] .max-w-2xl {
        margin-bottom: 4px !important;     /* war: 40px */
        font-size: 16px !important;
    }

    /* Steps: 1 Spalte auf Mobile */
    [data-section-type="steps"] .max-w-4xl > .relative {
        grid-template-columns: 1fr !important;
    }

    [data-section-type="image_text"] .prose ul {
        grid-template-columns: 1fr !important;
    }

    [data-section-type="feature_grid"],
    [data-section-type="image_text"],
    [data-section-type="steps"],
    [data-section-type="contact"] {
        padding: 60px 16px !important;
    }

    /* Contact: 1 Spalte auf Mobile */
    [data-section-type="contact"] .grid {
        grid-template-columns: 1fr !important;
    }

    /* Formular-Row auf Mobile: 1 Spalte */
    [data-section-type="contact"] .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Formular-Karte auf Mobile: weniger Padding */
    [data-section-type="contact"] .contact-form-wrapper {
        padding: 32px 24px !important;
    }

    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* About Badge repositionieren */
    [data-section-type="image_text"] .grid > div:first-child::after {
        right: 20px;
        bottom: -15px;
        font-size: 22px !important;
        padding: 14px 20px !important;
    }

    /* About: Padding unten damit Badge sichtbar */
    [data-section-type="image_text"] .grid > div:first-child {
        padding-bottom: 24px !important;
    }

    /* Feature Grid: Card-Padding reduzieren */
    [data-section-type="feature_grid"] .bg-white {
        padding: 24px !important;
    }

    /* Feature Grid: Section-Header Abstand */
    [data-section-type="feature_grid"] .text-center {
        margin-bottom: 40px !important;
    }

    /* Steps: Subheadline Abstand nach unten */
    [data-section-type="steps"] .text-center p,
    [data-section-type="steps"] p.text-lg {
        margin: 0 auto 32px !important;
    }

    /* Hero: CTA-Buttons stapeln */
    [data-section-type="hero"] .flex.flex-wrap.gap-4 {
        flex-direction: column;
        gap: 12px !important;
    }

    [data-section-type="hero"] a.bg-blue-600,
    [data-section-type="hero"] a.bg-transparent,
    [data-section-type="hero"] a.border-2 {
        text-align: center;
        justify-content: center;
    }

    /* Mobile Menu Sub-Items: inline statt Dropdown */
    #mobile-menu ul {
        display: block;
        position: static;
        background: transparent !important;
        border: none !important;
        padding: 0 0 0 16px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-width: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #mobile-menu ul li a {
        font-size: 13px !important;
        padding: 8px 16px !important;
        opacity: 0.75;
    }
}

/* ==========================================================================
   MOBILE SCHMAL — max-width: 540px (Kontaktformular 1-spaltig)
   ========================================================================== */
@media (max-width: 540px) {
    /* Kontaktformular: 1 Spalte erzwingen (override des 2-Spalten-Grids) */
    [data-section-type="contact"] #form-kontakt {
        grid-template-columns: 1fr !important;
    }

    /* Alle Form-Divs: automatische Breite (kein forced grid-column) */
    [data-section-type="contact"] #form-kontakt > div {
        grid-column: auto !important;
    }
}

/* ==========================================================================
   MOBILE KLEIN — max-width: 480px (Feintuning kleine Screens)
   ========================================================================== */
@media (max-width: 480px) {
    /* Sektionen: nochmal etwas weniger Padding */
    [data-section-type="feature_grid"],
    [data-section-type="image_text"],
    [data-section-type="steps"],
    [data-section-type="contact"] {
        padding: 50px 16px !important;
    }

    /* Hero: kompaktere Subheadline */
    [data-section-type="hero"] p.text-gray-200,
    [data-section-type="hero"] p.text-lg,
    [data-section-type="hero"] .max-w-2xl {
        font-size: 15px !important;
        margin-bottom: 4px !important;
    }

    /* Steps: Nummernkreise kompakter */
    [data-section-type="steps"] .w-10.h-10,
    [data-section-type="steps"] .rounded-full.bg-blue-600 {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        font-size: 28px !important;
    }

    /* Feature Grid: Kartentitel kompakter */
    [data-section-type="feature_grid"] h3 {
        font-size: 22px !important;
    }

    /* About: Badge noch kleiner auf sehr kleinen Screens */
    [data-section-type="image_text"] .grid > div:first-child::after {
        font-size: 18px !important;
        padding: 10px 14px !important;
        right: 10px !important;
        bottom: -10px !important;
    }

    /* Kontaktsektion: Heading kompakter */
    [data-section-type="contact"] h2 {
        font-size: 32px !important;
    }

    /* Footer: weniger Padding */
    footer,
    footer.bg-gray-900 {
        padding: 40px 0 20px !important;
    }

    /* Unterseiten Hero-Banner: kleinere Schrift */
    [data-section-type="text_block"] .subpage-hero-banner h2 {
        font-size: clamp(30px, 9vw, 48px) !important;
    }
}

/* ==========================================================================
   Hero Stats Tiles (Desktop)
   ========================================================================== */
.hero-stats-card {
    background: transparent;
    border: none;
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: none;
    width: 100%;
    max-width: 450px;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hero-stat-item {
    text-align: center;
    padding: 28px 20px 22px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-stat-item:hover {
    background: rgba(26, 26, 26, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.2);
    border-color: rgba(0, 102, 204, 0.3);
}

.hero-stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    color: #3399FF;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 8px;
    font-family: 'Source Sans 3', sans-serif;
}

/* ==========================================================================
   Hotfix 2026-04-15: Sections immer sichtbar
   Die live CSS hatte eine Scroll-Animations-Regel die alle Sections auf
   opacity:0 gesetzt hat ohne das noetige IntersectionObserver-JavaScript.
   Diese Regel stellt sicher dass alle Sections sichtbar sind.
   ========================================================================== */
[data-section-type]:not([data-section-type="hero"]) {
    opacity: 1 !important;
    transform: none !important;
}

[data-section-type="feature_grid"] .feature-card,
[data-section-type="steps"] .relative.flex {
    opacity: 1 !important;
    transform: none !important;
}
