/* ========================================
   HAUSIVO Hausmeisterservice – Styles
   ======================================== */

/* --- Local Fonts (DSGVO-konform) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-700.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/Inter-800.ttf') format('truetype');
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1B3A6B;
    --color-primary-light: #2A4F8F;
    --color-primary-dark: #122850;
    --color-accent: #E8771E;
    --color-accent-light: #F59E0B;
    --color-accent-hover: #D06210;
    --color-white: #FFFFFF;
    --color-bg: #F8F9FA;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E2E8F0;
    --color-success: #22C55E;
    --color-error: #EF4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-img {
    height: 52px;
    width: auto;
}

.header__logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1.5px;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.header__nav-link {
    display: block;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all var(--transition);
}

.header__nav-link:hover {
    color: var(--color-primary);
    background: var(--color-bg);
}

.header__nav-link--cta {
    background: var(--color-accent);
    color: var(--color-white);
}

.header__nav-link--cta:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
}

/* Burger Menu */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__burger--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger--active span:nth-child(2) {
    opacity: 0;
}

.header__burger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO (Minimalist Style) ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-white);
    overflow: hidden;
    padding-top: 72px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 24px;
    min-height: calc(100vh - 72px);
    position: relative;
    z-index: 2;
}

/* Left: Text */
.hero__text {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease 0.8s forwards;
}

.hero__logo {
    display: block;
    width: clamp(100px, 12vw, 160px);
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.hero__title {
    margin-bottom: 20px;
}

.hero__title-name {
    display: block;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 3px;
    line-height: 1.1;
}

.hero__title-sub {
    display: block;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 8px;
}

.hero__location {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.hero__location strong {
    color: var(--color-primary);
}

.hero__slogan {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: var(--color-text-light);
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.hero__cta {
    font-size: 1rem;
    padding: 14px 36px;
}

/* Center: Image with Circle */
.hero__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero__circle {
    position: absolute;
    width: clamp(280px, 28vw, 420px);
    height: clamp(280px, 28vw, 420px);
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    transform: scale(0.7);
    animation: heroCircle 0.8s ease 0.2s forwards;
}

.hero__portrait {
    position: relative;
    z-index: 1;
    width: clamp(220px, 22vw, 340px);
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeUp 0.9s ease 0.5s forwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Right: Big overlay text */
.hero__overlay-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.7s ease 1s forwards;
}

.hero__overlay-text span {
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 0.95;
}

.hero__overlay-text span:last-child {
    color: var(--color-accent);
}

/* Wave */
.hero__wave-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero__wave {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero Animations */
@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCircle {
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* ========== SECTIONS COMMON ========== */
.section__title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.section__subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

/* ========== SERVICES ========== */
.services {
    padding: 100px 0;
    background: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========== ABOUT ========== */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about__content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about__text {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about__values {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 36px;
}

.about__value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.05rem;
}

.about__value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
}

/* ========== CONTACT TEASER ========== */
.contact-teaser {
    padding: 100px 0;
    background: var(--color-bg);
}

.contact-teaser__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact-teaser__text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin: 12px 0 32px;
    line-height: 1.7;
}

.btn--lg {
    padding: 18px 48px;
    font-size: 1.15rem;
}

/* ========== FUNNEL ========== */
.funnel {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.funnel--open {
    display: flex;
}

#contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

body.funnel-active {
    overflow: hidden;
}

/* Funnel Header */
.funnel__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.funnel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all var(--transition);
}

.funnel__close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.funnel__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.funnel__logo-img {
    height: 32px;
    width: auto;
}

.funnel__logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.funnel__progress {
    flex: 1;
    height: 5px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.funnel__progress-bar {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.funnel__step-indicator {
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 500;
    white-space: nowrap;
}

/* Funnel Slides */
.funnel__slide {
    display: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.funnel__slide--active {
    display: flex;
    animation: funnelSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes funnelSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes funnelSlideBack {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.funnel__slide--back {
    animation: funnelSlideBack 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.funnel__slide-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funnel__slide-inner--wide {
    max-width: 640px;
}

/* Badge Icon */
.funnel__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(27, 58, 107, 0.08), rgba(27, 58, 107, 0.04));
    color: var(--color-primary);
    margin-bottom: 24px;
}

.funnel__badge--success {
    background: linear-gradient(135deg, rgba(232, 119, 30, 0.1), rgba(232, 119, 30, 0.04));
    color: var(--color-accent);
}

.funnel__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
}

.funnel__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.funnel__fields {
    width: 100%;
    margin-bottom: 8px;
}

/* Input with Icon */
.form-input-wrap {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    color: var(--color-text-light);
    pointer-events: none;
    transition: color var(--transition);
    overflow: hidden;
}

.form-input--icon {
    padding-left: 44px;
}

.form-input--icon::placeholder {
    padding-left: 0;
}

.form-select.form-input--icon {
    background-position: right 16px center;
}

.form-input--icon:focus ~ .form-input-icon,
.form-input-wrap:focus-within .form-input-icon {
    color: var(--color-primary);
}

/* Trust Badge */
.funnel__trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(34, 197, 94, 0.15);
    width: 100%;
}

.funnel__trust svg {
    color: var(--color-success);
    flex-shrink: 0;
}

.funnel__actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 28px;
}

.btn--funnel {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.05rem;
    gap: 8px;
}

.btn--funnel svg {
    flex-shrink: 0;
}

/* Funnel Success */
.funnel__success .funnel__slide-inner {
    justify-content: center;
    min-height: 100%;
}

.funnel__success-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: var(--color-success);
    margin-bottom: 28px;
    animation: successPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.funnel__success-check svg {
    width: 48px;
    height: 48px;
}

.funnel__success-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 24px 0 8px;
}

.funnel__success-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding: 12px 16px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.funnel__success-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-optional {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color var(--transition);
    background: var(--color-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-input--error {
    border-color: var(--color-error);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-error {
    display: none;
    font-size: 0.82rem;
    color: var(--color-error);
    margin-top: 4px;
}

.form-error--visible {
    display: block;
}

.form-error--services {
    text-align: center;
    margin-top: 8px;
}

/* Service Selection Cards */
.service-select {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-select__card input {
    display: none;
}

.service-select__card {
    display: flex;
}

.service-select__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--transition);
    background: var(--color-white);
    width: 100%;
    min-height: 80px;
}

.service-select__inner:hover {
    border-color: var(--color-primary-light);
    background: rgba(27, 58, 107, 0.02);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.service-select__card input:checked + .service-select__inner {
    border-color: var(--color-primary);
    background: rgba(27, 58, 107, 0.04);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.service-select__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(232, 119, 30, 0.08);
    color: var(--color-accent);
    transition: all var(--transition);
}

.service-select__icon-wrap svg {
    width: 20px;
    height: 20px;
}

.service-select__card input:checked + .service-select__inner .service-select__icon-wrap {
    background: var(--color-accent);
    color: var(--color-white);
}

.service-select__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-select__desc {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.3;
}

.service-select__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    color: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all var(--transition);
    margin-left: auto;
}

.service-select__card input:checked + .service-select__inner .service-select__check {
    background: var(--color-success);
    border-color: var(--color-success);
    color: var(--color-white);
}

.service-select__name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
}

.form-actions .btn {
    flex: 1;
}

/* Submit Button Loader */
.btn--submit {
    position: relative;
}

.btn__loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn--loading .btn__text {
    visibility: hidden;
}

.btn--loading .btn__loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* (Success styles moved to funnel section) */

/* ========== FOOTER ========== */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0;
}

.footer__inner {
    text-align: center;
}

.footer__contact {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--color-accent-light);
}

.footer__icon {
    width: 20px;
    height: 20px;
}

.footer__legal {
    margin-bottom: 16px;
}

.footer__legal-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__legal-link:hover {
    color: var(--color-white);
}

.footer__legal-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.modal__content h2 {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
}

.modal__close:hover {
    color: var(--color-text);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4000;
    background: var(--color-white);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-border);
    padding: 20px;
    animation: cookieSlideUp 0.4s ease;
}

.cookie-banner--visible {
    display: block;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-banner__text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner__icon {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner__btn {
    white-space: nowrap;
    padding: 12px 28px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__text {
        flex-direction: column;
        align-items: center;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ========== CONSENT CHECKBOX ========== */
.form-group--consent {
    margin-top: 16px;
    margin-bottom: 4px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.consent-label input {
    display: none;
}

.consent-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    color: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all var(--transition);
    margin-top: 1px;
}

.consent-label input:checked + .consent-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

.form-error--consent {
    margin-top: 6px;
    padding-left: 32px;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__grid {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 80px;
    }

    .hero__overlay-text {
        display: none;
    }

    .hero__text {
        padding-left: 12px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    .header__burger {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .header__nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .header__nav-link {
        padding: 14px 16px;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
        padding: 24px 0 48px;
        min-height: auto;
    }

    .hero__image-wrap {
        order: 1;
        min-height: auto;
        height: auto;
        margin-bottom: 16px;
    }

    .hero__circle {
        width: 150px;
        height: 150px;
    }

    .hero__portrait {
        width: 125px;
    }

    .hero__text {
        order: 2;
        padding: 0;
    }

    .hero__logo {
        display: none;
    }

    .hero__title {
        margin-bottom: 8px;
    }

    .hero__title-name {
        font-size: 2rem;
    }

    .hero__title-sub {
        margin-top: 4px;
        font-size: 0.75rem;
    }

    .hero__location {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .hero__slogan {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .hero__overlay-text {
        display: flex;
        flex-direction: row;
        order: 3;
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        margin-top: 24px;
    }

    .hero__overlay-text span {
        font-size: 2.2rem;
    }

    .hero__cta {
        margin: 20px auto 0;
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .hero__text {
        display: contents;
    }

    /* Reihenfolge: Titel -> Bild -> Ihr Profi -> CTA */
    .hero__title { order: 1; }
    .hero__location { order: 2; }
    .hero__slogan { order: 3; }
    .hero__image-wrap { order: 4; margin-bottom: 0; }
    .hero__overlay-text { order: 5; }
    .hero__cta { order: 6; }

    .hero__wave-wrap {
        position: relative;
    }

    /* Services */
    .services {
        padding: 60px 0;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .section__subtitle {
        margin-bottom: 32px;
    }

    /* About */
    .about {
        padding: 60px 0;
    }

    .about__values {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* ===== Funnel Mobile – sauberes Layout ===== */

    /* Slide wird Flex-Container: Content scrollt, Actions kleben unten */
    .funnel__slide--active {
        display: flex;
        flex-direction: column;
    }

    .funnel__slide-inner {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 16px 24px;
        max-width: 100%;
    }

    .funnel__slide-inner--wide {
        max-width: 100%;
    }

    /* Actions: sticky am unteren Rand des Scrollbereichs */
    .funnel__actions {
        position: sticky;
        bottom: 0;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        margin-top: auto;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
        z-index: 10;
    }

    /* Header kompakt */
    .funnel__header {
        padding: 10px 16px;
        gap: 10px;
    }

    .funnel__logo-text {
        display: none;
    }

    .funnel__logo-img {
        height: 28px;
    }

    .funnel__step-indicator {
        font-size: 0.75rem;
    }

    /* Badge kleiner */
    .funnel__badge {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .funnel__badge svg {
        width: 20px;
        height: 20px;
    }

    /* Titel & Subtitle kompakter */
    .funnel__title {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    .funnel__subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    /* Service-Karten einspaltig */
    .service-select {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-select__inner {
        padding: 10px 12px;
        min-height: 56px;
    }

    .service-select__icon-wrap {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 8px;
    }

    .service-select__icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .service-select__name {
        font-size: 0.82rem;
    }

    .service-select__desc {
        font-size: 0.7rem;
    }

    /* Trust-Badge kompakt */
    .funnel__trust {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin-top: 12px;
    }

    /* Contact Teaser */
    .contact-teaser {
        padding: 60px 0;
    }

    .btn--lg {
        width: 100%;
        max-width: 320px;
    }

    /* Footer */
    .footer__contact {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* Modal */
    .modal__content {
        padding: 28px 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero__circle {
        width: 130px;
        height: 130px;
    }

    .hero__portrait {
        width: 110px;
    }

    .hero__title-name {
        font-size: 1.7rem;
    }

    .form-actions {
        flex-direction: column;
    }

}

/* Touch-friendly: Mindestgroesse fuer interaktive Elemente */
@media (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .service-select__inner {
        min-height: 64px;
    }

    .form-input, .form-select, .form-textarea {
        min-height: 48px;
        font-size: 16px; /* Verhindert iOS-Zoom beim Fokus */
    }
}
