/* Reset & Base Styles */

/* Fließtext: Satoshi Medium (lokal) */
@font-face {
    font-family: 'Satoshi';
    src: url('/fonts/satoshi/satoshi-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Überschriften: Neue Haas Grotesk Display (lokal, /fonts/neue-haas-grotesk/). Trial: ggf. Lizenz prüfen. */
@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/fonts/neue-haas-grotesk/NeueHaasGrotDisp-45Light-Trial.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/fonts/neue-haas-grotesk/NeueHaasGrotDisp-55Roman-Trial.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/fonts/neue-haas-grotesk/NeueHaasGrotDisp-65Medium-Trial.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/fonts/neue-haas-grotesk/NeueHaasGrotDisp-75Bold-Trial.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display';
    src: url('/fonts/neue-haas-grotesk/NeueHaasGrotDisp-95Black-Trial.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-primary: #003087;
    --brand-accent: #972c86;
    --brand-accent-hover: #7a246f;
    --brand-highlight: #ffb300;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --success: #27AE60;
    --shadow: rgba(0, 0, 0, 0.1);
    /* Primär-CTAs: gleiche Höhe wie Hero „Kostenlose Beratung anfragen“ (index-home) */
    --btn-cta-min-height: 2.5rem;
    --btn-cta-padding-y: 0.6rem;
    --btn-cta-padding-x: 1.35rem;
    --btn-cta-padding-x-large: 1.65rem;
    --btn-cta-font-size-large: 1.05rem;
    /* Buttons / klickbare CTA-Kacheln: dezenter als 8px */
    --btn-radius: 4px;
    /* Header „Kontakt“: schmaler/kompakter als Standard-CTA */
    --btn-nav-padding-y: 0.45rem;
    --btn-nav-padding-x: 0.85rem;
    --btn-nav-min-height: 2.25rem;
    --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
    --font-heading: 'Neue Haas Grotesk Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: rgb(245, 244, 243);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* Buttons & CTA-Links: gleiche Schrift wie Überschriften (Neue Haas) */
button,
.btn,
.btn-primary,
.btn-secondary,
.btn-large,
.btn-service,
.btn-back,
.btn-next,
.btn-submit,
.btn-landing-submit,
.rechner-btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    font-family: var(--font-heading);
}

/* Fließtext: Blocksatz (Ausnahmen für Navigation, Footer, Banner, Formularhinweise) */
p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.stats-banner p,
.stats-text,
footer p,
footer .footer-note,
footer .footer-copyright,
.form-success p,
.form-error p,
.rechner-hero p,
.hero-content p,
.section-header p,
.video-caption {
    text-align: center;
}

footer {
    text-align: left;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* Navigation: gleiche Schrift wie Überschriften (Neue Haas); Fließtext bleibt Satoshi */
.navbar {
    font-family: var(--font-heading);
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Globaler Site-Header: dunkler Hintergrund + Akzentlinie unter der Navbar (alle Seiten) */
.lp-sticky-header .navbar {
    background: #2a2a2a;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
    border-bottom: 3px solid #972c86;
}

.lp-sticky-header .navbar .mobile-menu-toggle span {
    background: #ffffff;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 50px;
    overflow: visible;
    position: relative;
    /* Über .nav-menu (z-index: 1), damit das Logo nicht von der Menüzeile überdeckt wird */
    z-index: 2;
}

/* Große Darstellung (scale), gleiche Header-Zeile: Layout-Höhe 50px */
.logo-img {
    height: 50px;
    width: auto;
    max-width: 320px;
    transform: scale(2.7);
    transform-origin: left center;
    backface-visibility: hidden;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 16px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 1.25rem;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0.75rem;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--brand-primary);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--brand-accent);
}

/* Aktiver Menüpunkt darf nicht fetter wirken (z. B. Rechner auf Desktop) */
.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary),
.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary):hover,
.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary):focus,
.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary):active,
.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary):visited {
    position: relative;
    font-weight: 400 !important;
    font-synthesis: none;
    text-decoration: none;
}

.lp-sticky-header .navbar .nav-menu a[aria-current="page"]:not(.btn-primary)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.18rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

/* Site-Header: Menüpunkte auf dunklem Balken = hell; Kontakt-Button bleibt Lila */
/* Desktop / breite Leiste: helle Schrift auf #2A2A2A */
@media (min-width: 641px) {
    .lp-sticky-header .navbar .nav-menu a:not(.btn-primary) {
        color: rgba(255, 255, 255, 0.92);
    }

    .lp-sticky-header .navbar .nav-menu a:not(.btn-primary):hover {
        color: #ffffff;
    }
}

/* Mobil: Off-Canvas-Panel ist weiß → Lila-Links wie zuvor */
@media (max-width: 640px) {
    .lp-sticky-header .navbar .nav-menu a:not(.btn-primary) {
        color: #972c86;
    }

    .lp-sticky-header .navbar .nav-menu a:not(.btn-primary):hover {
        color: #7a246f;
    }
}

.lp-sticky-header .navbar .nav-menu a {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 0.45rem 0;
    letter-spacing: -0.01em;
}

/* Kontakt-Button: kompakter als Standard-CTA (dünner / weniger Höhe) */
.lp-sticky-header .navbar .nav-menu a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.85rem;
    min-height: 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border-radius: var(--btn-radius);
    border: none;
    box-sizing: border-box;
    background: #972c86 !important;
    color: #fff !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    transform: none;
    box-shadow: none;
    white-space: nowrap;
}

.lp-sticky-header .navbar .nav-menu a.btn-primary:link,
.lp-sticky-header .navbar .nav-menu a.btn-primary:visited,
.lp-sticky-header .navbar .nav-menu a.btn-primary:hover,
.lp-sticky-header .navbar .nav-menu a.btn-primary:focus,
.lp-sticky-header .navbar .nav-menu a.btn-primary:active {
    font-size: 0.9375rem;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.lp-sticky-header .navbar .nav-menu a.btn-primary:hover {
    background: #7a246f !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(151, 44, 134, 0.35);
}

.nav-menu a.btn-primary {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.nav-menu a.btn-primary:hover {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
    min-height: var(--btn-cta-min-height);
    padding: var(--btn-cta-padding-y) var(--btn-cta-padding-x);
    background: #972c86;
    color: #ffffff;
    border-radius: var(--btn-radius);
    transition: background 0.3s;
    font-weight: 800;
}

.btn-primary:hover {
    background: #7a246f;
    color: #ffffff;
}

/* Hero Section mit Video */
.hero {
    background: var(--brand-accent);
    color: var(--white);
    padding: 4rem 0 6rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
    min-height: var(--btn-cta-min-height);
    padding: var(--btn-cta-padding-y) var(--btn-cta-padding-x);
    border-radius: var(--btn-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

/* Primär-CTAs: Marken-Lila #972C86 / Hover #7a246f */
.btn-large {
    font-size: var(--btn-cta-font-size-large);
    padding: var(--btn-cta-padding-y) var(--btn-cta-padding-x-large);
    background: #972c86;
    color: var(--white);
    border: 2px solid #972c86;
    border-radius: var(--btn-radius);
    font-weight: 600;
}

.btn-large:hover {
    background: #7a246f;
    border-color: #7a246f;
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--brand-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-primary);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.youtube-video,
figure.video-placeholder.hero-video {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 400px;
    border: none;
    border-radius: 5px;
}

figure.video-placeholder {
    margin: 0;
    display: block;
    overflow: hidden;
    position: relative;
    background: #0d2247;
}

figure.video-placeholder .video-placeholder__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.video-container:has(.youtube-video) .video-overlay {
    display: none;
}

.video-container.playing .video-overlay {
    opacity: 0;
    visibility: hidden;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    pointer-events: all;
    transition: transform 0.3s;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button:active {
    transform: scale(0.95);
}

.play-button.hidden {
    display: none;
}

.video-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: center;
    font-style: italic;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.services-video-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.services-video {
    max-width: 900px;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 3px solid #972c86;
    min-height: 100%;
}

.service-card p {
    flex-shrink: 0;
}

.service-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #972c86;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.service-card.featured h3 {
    color: var(--brand-primary);
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.btn-service {
    margin-top: auto;
    padding: var(--btn-cta-padding-y) var(--btn-cta-padding-x-large);
    text-align: center;
    background: #972c86;
    color: var(--white);
    border: 2px solid #972c86;
    font-weight: 600;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--btn-cta-min-height);
    height: auto;
    line-height: 1.2;
    border-radius: var(--btn-radius);
}

.btn-service:hover {
    background: #7a246f;
    border-color: #7a246f;
    color: var(--white);
    text-decoration: none;
}

/* Warum Section */
.warum {
    padding: 5rem 0;
    background: var(--brand-accent);
    color: var(--white);
}

.warum .section-title {
    color: var(--white);
}

.warum-video-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.warum-video {
    max-width: 900px;
    width: 100%;
}

.warum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.warum-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.warum-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.warum-icon {
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.warum-item h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.warum-item p {
    color: rgba(255, 255, 255, 0.95);
}

.warum-image {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: none;
}

.slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    width: 100%;
    box-shadow: none;
}

.slide {
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
    filter: brightness(0.5);
    z-index: 0;
    box-shadow: none;
    border-radius: 5px;
    overflow: hidden;
}

.slide.prev {
    opacity: 0.8;
    visibility: visible;
    pointer-events: all;
    width: 320px;
    height: 400px;
    transform: translate(calc(-50% - 280px), -50%) scale(0.85);
    filter: brightness(0.85);
    z-index: 1;
}

.slide.next {
    opacity: 0.8;
    visibility: visible;
    pointer-events: all;
    width: 320px;
    height: 400px;
    transform: translate(calc(-50% + 280px), -50%) scale(0.85);
    filter: brightness(0.85);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    width: 400px;
    height: 450px;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    z-index: 2;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: none;
    display: block;
}

.slide.active .slide-image {
    box-shadow: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--brand-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav:disabled:hover {
    transform: translateY(-50%);
}

/* Prozess Section */
.prozess {
    padding: 5rem 0;
    background: var(--bg-light);
}

.prozess-steps-wrapper {
    position: relative;
    margin-top: 3rem;
    height: 450px;
    overflow: hidden;
    padding: 0 6rem;
}

.prozess-steps {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
}

.prozess-slider-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--brand-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.prozess-slider-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.prozess-slider-nav.prev {
    left: 1rem;
}

.prozess-slider-nav.next {
    right: 1rem;
}

.prozess-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prozess-slider-nav:disabled:hover {
    transform: translateY(-50%);
}

.prozess-slider-nav svg {
    width: 24px;
    height: 24px;
}

.step {
    background: var(--white);
    border-radius: 10px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    width: 350px;
    height: auto;
    min-height: 250px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    filter: brightness(0.7);
}

.step.prev {
    opacity: 0.8;
    visibility: visible;
    pointer-events: all;
    width: 280px;
    transform: translate(calc(-50% - 320px), -50%) scale(0.85);
    filter: brightness(0.85);
    z-index: 1;
}

.step.next {
    opacity: 0.8;
    visibility: visible;
    pointer-events: all;
    width: 280px;
    transform: translate(calc(-50% + 320px), -50%) scale(0.85);
    filter: brightness(0.85);
    z-index: 1;
}

.step.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    width: 350px;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
    z-index: 2;
    border-color: var(--brand-accent);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: default;
    text-align: left;
    width: 100%;
    pointer-events: none; /* Verhindert Klicks auf den Header */
}

.step-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--brand-accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step h3 {
    color: var(--brand-primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-icon {
    display: none; /* Icon ausblenden, da nicht mehr benötigt */
}

.step-content {
    max-height: none;
    overflow: visible;
    padding: 0 1.5rem 1.5rem;
}

.step p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.prozess-video-wrapper {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.prozess-video {
    max-width: 900px;
    width: 100%;
}

/* Kontakt Section */
.kontakt {
    padding: 5rem 0;
    background: var(--white);
}

.kontakt-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
}

/* #kontakt: gleiche Linienstärke wie .radio-option (landing.css, z. B. Anrede) */
#kontakt .kontakt-form .form-group input:not([type="checkbox"]):not([type="radio"]),
#kontakt .kontakt-form .form-group select,
#kontakt .kontakt-form .form-group textarea {
    border-width: 1px;
    border-style: solid;
    border-color: #d0d0d0;
}

#kontakt .kontakt-form .form-group input:focus,
#kontakt .kontakt-form .form-group select:focus,
#kontakt .kontakt-form .form-group textarea:focus {
    border-color: var(--brand-accent);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
}

/* Footer */
.footer {
    background: #2a2a2a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

/* Global erzwingen: Footer immer wie Header-Navigation */
footer#site-footer.footer {
    background: #2a2a2a !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-logo {
    display: block;
    width: 170px;
    max-width: 100%;
    height: auto;
}

.footer .footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer .footer-section:first-child p {
    margin: 0;
    text-align: left;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 968px) {
    .video-container {
        max-width: 100%;
    }
}

/* Schmale Phones: Hamburger + Off-Canvas (ab Tablet oft noch volle Leiste dank flex-wrap) */
@media (max-width: 640px) {
    .nav-brand {
        height: 40px;
    }

    .logo-img {
        height: 40px;
        max-width: 280px;
        transform: scale(2.7);
        transform-origin: left center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.05rem;
    }

    .lp-sticky-header .navbar .nav-menu a {
        font-size: 1.05rem;
    }

    .lp-sticky-header .navbar .nav-menu a.btn-primary {
        font-size: 0.9375rem;
        min-height: 2rem;
        padding: 0.32rem 0.85rem;
        letter-spacing: 0.02em;
        width: 100%;
        background: #972c86 !important;
        border-radius: var(--btn-radius);
        font-weight: 600;
        box-sizing: border-box;
    }

    .lp-sticky-header .navbar .nav-menu a.btn-primary:hover {
        background: #7a246f !important;
        transform: translateY(-1px);
        box-shadow: 0 5px 18px rgba(151, 44, 134, 0.35);
    }

    .nav-menu .btn-primary {
        width: 100%;
        text-align: center;
        padding: var(--btn-nav-padding-y) var(--btn-nav-padding-x);
    }

    .navbar .container {
        position: relative;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 4rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .video-container {
        max-width: 100%;
        margin: 0 -20px;
        width: calc(100% + 40px);
        border-radius: 5px;
    }

    .hero-video {
        border-radius: 5px;
    }

    .video-overlay {
        border-radius: 5px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 7vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        padding: 0 1rem;
    }

    .warum {
        padding: 3rem 0;
    }

    .warum .section-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .warum-video-wrapper {
        margin: 2rem 0;
    }

    .warum-video {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .warum-image {
        height: 350px;
        padding: 0;
    }

    .image-slider {
        padding: 0 2rem;
    }

    .slide.prev {
        width: 180px;
        height: 240px;
        transform: translate(calc(-50% - 200px), -50%) scale(0.8);
        opacity: 0.75;
        filter: brightness(0.9);
    }

    .slide.next {
        width: 180px;
        height: 240px;
        transform: translate(calc(-50% + 200px), -50%) scale(0.8);
        opacity: 0.75;
        filter: brightness(0.9);
    }

    .slide.active {
        width: 280px;
        height: 350px;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .slider-nav svg {
        width: 18px;
        height: 18px;
    }

    .slider-nav.prev {
        left: 0.25rem;
    }

    .slider-nav.next {
        right: 0.25rem;
    }

    .slide {
        border-radius: 5px;
        overflow: hidden;
    }

    .slide-image {
        border-radius: 5px;
    }

    .warum-grid {
        grid-template-columns: 1fr;
    }

    .kontakt-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-video-wrapper {
        margin: 2rem 0;
    }

    .services-video {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .youtube-video,
    figure.video-placeholder.hero-video {
        min-height: 300px;
    }

    .prozess-video-wrapper {
        margin: 2rem 0;
    }

    .prozess-video {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .prozess-steps-wrapper {
        overflow: hidden;
        padding: 0 4rem;
        position: relative;
        height: 400px;
    }

    .prozess-steps {
        display: block;
        position: relative;
        height: 100%;
        overflow: visible;
    }

    .step {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: 280px;
        height: auto;
        min-height: 200px;
        z-index: 0;
        filter: brightness(0.7);
    }

    .step.prev {
        opacity: 0.8;
        visibility: visible;
        pointer-events: all;
        width: 200px;
        transform: translate(calc(-50% - 180px), -50%) scale(0.8);
        filter: brightness(0.85);
        z-index: 1;
    }

    .step.next {
        opacity: 0.8;
        visibility: visible;
        pointer-events: all;
        width: 200px;
        transform: translate(calc(-50% + 180px), -50%) scale(0.8);
        filter: brightness(0.85);
        z-index: 1;
    }

    .step.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        width: 280px;
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
        z-index: 2;
    }

    .step-header {
        padding: 1.25rem;
    }

    .step-header-content {
        gap: 0.75rem;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .step h3 {
        font-size: 0.9rem;
    }

    .step-content {
        padding: 0 1.25rem 1.25rem;
    }
    
    .step-header {
        pointer-events: none;
        cursor: default;
    }
    
    .accordion-icon {
        display: none;
    }

    .prozess-slider-nav {
        width: 36px;
        height: 36px;
    }

    .prozess-slider-nav.prev {
        left: 0.25rem;
    }

    .prozess-slider-nav.next {
        right: 0.25rem;
    }

    .prozess-slider-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Footer: Ratgeber nur als eigener Block unter den Städten */
.footer .footer-subheading {
    margin: 1.1rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}
/* ── Lösungen (Photovoltaik, Wärmepumpe): helle Fläche, Akzent Lila/Blau ── */
body.page-loesungen {
    background: var(--white);
}

body.page-loesungen .hero {
    background: var(--white);
    color: var(--text-dark);
    padding: 3.5rem 0 4.5rem;
    border-bottom: 1px solid rgba(0, 48, 135, 0.08);
}

body.page-loesungen .hero-title {
    color: #003087;
}

body.page-loesungen .hero-subtitle {
    color: var(--text-light);
    opacity: 1;
}

body.page-loesungen .video-caption {
    color: var(--text-light);
    opacity: 1;
}

body.page-loesungen .video-container {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--bg-light);
}

body.page-loesungen .hero .btn-secondary {
    background: var(--white);
    border: 2px solid #972c86;
    color: #972c86;
}

body.page-loesungen .hero .btn-secondary:hover {
    background: #f5e8f4;
    border-color: #7a246f;
    color: #7a246f;
}

body.page-loesungen .services,
body.page-loesungen .prozess {
    background: var(--white);
    border-top: 1px solid rgba(0, 48, 135, 0.08);
}

body.page-loesungen .warum {
    background: var(--white);
    color: var(--text-dark);
    border-top: 1px solid rgba(0, 48, 135, 0.08);
}

body.page-loesungen .warum .section-title {
    color: #003087;
}

body.page-loesungen .warum .section-subtitle {
    color: var(--text-light);
}

body.page-loesungen .warum-item h3 {
    color: #003087;
}

body.page-loesungen .warum-item p {
    color: var(--text-light);
}

body.page-loesungen .warum-icon {
    color: #972c86;
    background: rgba(151, 44, 134, 0.1);
    border-color: rgba(151, 44, 134, 0.25);
}

body.page-loesungen .kontakt {
    background: var(--white);
    border-top: 1px solid rgba(0, 48, 135, 0.08);
}
