/* CSS Design System für Ute Heskamp Hypnose Website */

/* Inter Font - Lokale Schriftarten */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

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

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

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

:root {
    /* Colors - Based on Dr. Heskamp Design */
    --color-primary: #F58220;
    --color-primary-light: #FF9A4D;
    --color-primary-dark: #E6730A;
    --color-text: #52372B;
    --color-text-light: #8B7355;
    --color-text-dark: #2D1F1A;
    --color-grey-bg: #F2F2F2;
    --color-grey-light: #F8F8F8;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    
    /* Typography - Lokale Inter-Schriftart */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-display: Georgia, 'Times New Roman', Times, serif;
    
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: var(--line-height-tight);
    
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-base); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

/* a:hover {
    color: var(--color-primary-dark);
} */

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
    overflow-x: hidden;
}

.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
    overflow-x: hidden;
}



.section {
    padding: var(--space-20) 0;
    padding-top: calc(var(--space-20) + 80px); /* Add header height to top padding */
}

.section--hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--space-20); /* Reset padding-top for hero section */
}

.section--hero .container {
    position: relative;
    z-index: 3;
}

/* Hero Background Video */
.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Hero Background Image */
.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Hero Fallback */
.hero__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Hero Overlay */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(245, 130, 32, 0) 0%, var(--color-primary) 100%);
    z-index: 2;
}

.section--light {
    background-color: var(--color-grey-light);
}

.section--orange {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--gradient {
    background: linear-gradient(0deg, #f5822000 0%, var(--color-primary) 100%)
    
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-grey-bg);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Scroll offset for fixed header - direct alignment */
section[id] {
    scroll-margin-top: 80px;
}

.header__content {
    display: flex;
    /* max-width: 1240px; */
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-8);
}

.logo {
    height: 2rem;
    width: auto;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav__link {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
    font-size: var(--text-sm);
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Burger Menu Animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-grey-bg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    flex-direction: column;
    overflow: hidden;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile__list {
    list-style: none;
    padding: var(--space-6) var(--space-8);
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.nav-mobile__link {
    display: block;
    padding: var(--space-4) 0;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-grey-light);
    transition: color 0.2s ease;
}

.nav-mobile__link:last-child {
    border-bottom: none;
}

.nav-mobile__link:hover {
    color: var(--color-primary);
}

.nav-mobile__cta {
    padding: var(--space-6) var(--space-4);
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px) + 80px);
    border-top: 1px solid var(--color-grey-light);
    background-color: var(--color-white);
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    
}

.nav-mobile__button {
    width: 100%;
    text-align: center;
    display: block;
    white-space: nowrap;
    /* Use same padding as standard buttons */
    padding: var(--space-3) var(--space-6);
}

/* Hero Section */
.hero {
    text-align: left;
    max-width: 1240px;
    margin: 0;
    position: relative;
    z-index: 4;
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    text-align: left;
}

.hero__subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    color: var(--color-white);
    font-weight: 300;
    text-align: left;
}

.section-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    text-align: left;
}

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    /* border-radius: var(--radius-lg); */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--text-base);
}

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

.btn--primary:hover {
    
    transform: translateY(-2px); 
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    /* border: 2px solid var(--color-white); */
}

.btn--secondary:hover {
    text-decoration: underline;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

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

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card Component */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    font-size: var(--text-2xl);
}

.card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--color-neutral-900);
}

.card__text {
    color: var(--color-neutral-600);
    line-height: var(--line-height-relaxed);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about__image {
    width: 100%;
    height: 100vh;
    
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-4xl);
}

/* Contact Section */
.contact {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.contact__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact__title {
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.contact__text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

/* Footer */
.footer {
    background-color: var(--color-white);
    color: var(--color-text);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-grey-bg);
}

.footer__content {
    padding-left: 1rem;
    padding-right: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: auto;
    margin-bottom: var(--space-8);
}

.footer__brand {
    display: flex;
    align-items: flex-start;
    
}

.footer__logo {
    height: 2.5rem;
    max-width: 12rem;
}

.footer__navigation {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__links a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: var(--text-sm);
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__bottom {
    border-top: 1px solid var(--color-grey-bg);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__bottom p {
    margin: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: var(--text-sm);
}

.footer__legal a:hover {
    color: var(--color-primary);
}

/* New Section Styles */
.section-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
    text-align: center;
}



.section-subtitle {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: var(--space-4);
}



.section--orange .section-title,
.section--gradient .section-title {
    color: var(--color-white);
}

.section--orange .section-subtitle,
.section--gradient .section-subtitle {
    color: var(--color-white);
}

/* Feature Blocks */
.feature-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-12);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.feature-block {
    text-align: center;
    /* padding: var(--space-6); */
}

.feature-block__icon {
    width: 80px;
    height: 80px;
    /* background-color: var(--color-primary); */
    /* border-radius: var(--radius-full); */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.feature-block__icon img {
    width: 40px;
    height: 40px;
    fill: var(--color-primary);
    color: var(--color-primary);
}

.feature-block__title {
    font-size: var(--text-3xl);
    font-weight: bold;
    max-width: 100%;
    margin: 0 auto var(--space-4);
    color: var(--color-primary);
    line-height: 1.2;
    min-height: 2.4em; /* Mindesthöhe für 2 Zeilen */
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    display: block;
}

.feature-block__text {
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

/* About Section with Image */
.section--gradient {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section--gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(245, 130, 32, 0.8) 0%, rgba(245, 131, 32, 0) 100%);
    z-index: 1;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-with-image {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 2;
}

.about-with-image > div:first-child {
    max-width: 50%;
    padding-right: var(--space-8);
}

.about-logo {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 120px;
    height: 120px;
    
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.about-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Testimonials */
.testimonials {
    text-align: center;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-16) 0;
}

.testimonial-text {
    font-size: var(--text-3xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
    font-weight: bold;
    transition: opacity 0.3s ease, transform 0.2s ease;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    /* Enable touch gestures for mobile swipe */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Fixed height to prevent layout shift when switching testimonials */
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    box-sizing: border-box;
}

.testimonial-text:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-grey-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* Process Steps */
.steps-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-20);
    align-items: start;
}

.steps-container h2.section-title {
    white-space: nowrap;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    text-align: left;
}

.process-step__title {
    font-size: var(--text-3xl);
    font-weight: bold;
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.process-step__icon {
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: var(--text-xs);
}

.process-step__text {
    color: var(--color-text);
    line-height: var(--line-height-relaxed);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-6) 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-lg);
    font-weight: bold;
    color: var(--color-white);
    transition: color 0.3s ease;
}



.faq-answer {
    margin-top: var(--space-4);
    color: var(--color-white);
    line-height: var(--line-height-relaxed);
    display: none;
}

.faq-answer p {
    color: var(--color-white);
}

.faq-answer.active {
    display: block;
}

.faq-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    fill: var(--color-white);
}

.faq-icon img {
    transition: transform 0.3s ease;
}

.faq-icon-close {
    display: none;
    fill: var(--color-white);
    filter: brightness(0) invert(1);
}

.faq-icon-open {
    display: block;
    fill: var(--color-white);
    filter: brightness(0) invert(1);
}

/* Ensure icons are properly styled when active - using :has() selector */
.faq-item:has(.faq-answer.active) .faq-icon-close {
    display: block !important;
    filter: brightness(0) invert(1);
}

.faq-item:has(.faq-answer.active) .faq-icon-open {
    display: none !important;
}

/* Fallback for browsers without :has() support - JavaScript will handle this */

/* Fallback: Make all icons in FAQ section white (since background is orange) */
.section--orange .faq-icon img {
    filter: brightness(0) invert(1);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--color-grey-bg);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

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

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

/* Responsive Design */

/* General overflow prevention */
* {
    max-width: 100%;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .nav-desktop {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    /* Ensure no horizontal overflow on tablet */
    .container,
    .container-fluid {
        padding: 0 var(--space-4);
        max-width: 100%;
        width: 100%;
    }
    
    .header__content {
        padding: var(--space-4) var(--space-4);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Adjust scroll offset for mobile header - direct alignment */
    section[id] {
        scroll-margin-top: 70px;
    }
    
    .container,
    .container-fluid {
        padding: 0 var(--space-4);
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .header__content {
        padding: var(--space-4) 0;
        max-width: 100%;
    }
    
    .section {
        padding: var(--space-12) 0;
        padding-top: calc(var(--space-12)); /* Add header height to top padding on mobile */
    }
    
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-lg);
    }
    
    /* Hero section overflow fixes */
    .section--hero {
        overflow-x: hidden;
        width: 100%;
    }
    
    .hero__video,
    .hero__image,
    .hero__fallback {
        max-width: 100%;
        width: 100%;
    }
    
    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Meet Section Mobile Layout */
    .meet-mobile {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        position: relative;
    }
    
    /* Entferne den Section-Gradient auf Mobile */
    .meet-mobile::before {
        display: none;
    }
    
    .meet-mobile .about-image {
        position: relative;
        width: 100%;
        height: 50vh;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        overflow: hidden;
    }
    
    .meet-mobile .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        position: relative;
        z-index: 0;
    }
    
    /* Gradient direkt auf dem Bild - verschmilzt mit orangem Container darunter */
    .meet-mobile .about-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(180deg, rgba(245, 130, 32, 0) 0%, rgba(245, 130, 32, 0.3) 40%, rgba(245, 130, 32, 0.8) 80%, var(--color-primary) 100%);
        z-index: 1;
        pointer-events: none;
    }
    
    .meet-mobile .about-logo {
        position: absolute;
        right: var(--space-4);
        top: calc(50vh - 60px);
        width: 100px;
        height: 100px;
        z-index: 10;
    }
    
    .meet-mobile .about-logo img {
        width: 100px;
        height: 100px;
    }
    
    .meet-mobile .container {
        position: relative;
        background-color: var(--color-primary);
        padding: var(--space-8) var(--space-4);
        z-index: 2;
        margin-top: 0;
    }
    
    .meet-mobile .about-with-image {
        min-height: auto;
        display: block;
    }
    
    .meet-mobile .about-with-image > div:first-child {
        max-width: 100%;
        padding-right: 0;
        padding: 0;
    }
    
    /* Button auf Mobile ausblenden */
    .meet-mobile .btn {
        display: none;
    }
    
    .feature-blocks {
        grid-template-columns: 1fr;
    }

    .feature-block__icon{
        margin: 0;
        height: 40px;
        width: 40px;
        margin-bottom: 20px;
    }

    .feature-block__title{
        font-size: var(--text-2xl);
        max-width: 100%;
        min-height: 2.4em; /* Mindesthöhe für 2 Zeilen auf Mobile */
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        text-align: left;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    /* Center process section title and subtitle on mobile */
    #ablauf .section-subtitle,
    #ablauf .section-title {
        text-align: center !important;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    /* Legal Pages responsive */
    .legal-page {
        padding: var(--space-12) var(--space-4);
    }
    
    .legal-page__title {
        font-size: var(--text-3xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Ensure section on legal pages has proper padding for fixed header on mobile */
    .section--legal {
        padding-top: calc(var(--space-12) + 70px) !important;
    }

    .feature-block__text{
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-4xl);
    }
    
    .section {
        padding: var(--space-8) 0;
        padding-top: calc(var(--space-12)); /* Add header height to top padding on small mobile */
    }

    .section-title{
        font-size: var(--text-3xl);
    }

    .steps-container{
        grid-template-columns: auto;
        gap: var(--space-8);
    }

    .process-step__title{
        font-size: var(--text-2xl);
    }
    
    /* Center process section title and subtitle on small mobile */
    #ablauf .section-subtitle,
    #ablauf .section-title {
        text-align: center !important;
    }

    .btn--primary{
        width: -webkit-fill-available;
    }
    
    /* Testimonials responsive */
    .testimonials {
        min-height: 50vh;
        padding: var(--space-12) 0;
    }
    
    .testimonial-text {
        font-size: var(--text-xl);
        max-width: 100%;
        padding: var(--space-8) var(--space-4);
        text-align: left;
        min-height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .feature-block{
        text-align: left;
    }

    .about-with-image > div:first-child{
        padding: 0;
    }
    .about-logo{
        min-height: fit-content;
    }

    .about-logo img{
        width: 100px;
        height: fit-content;
    }

    .footer__bottom{
        flex-direction: column-reverse;
        align-items: start;
    }

    .footer__content{
        padding: 0;
    }
    
    /* Legal Pages responsive */
    .legal-page {
        padding: var(--space-8) var(--space-4);
    }
    
    .legal-page__title {
        font-size: var(--text-2xl);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Ensure section on legal pages has proper padding for fixed header on small mobile */
    .section--legal {
        padding-top: calc(var(--space-8) + 70px) !important;
    }
}

/* Legal Pages (Datenschutz & Impressum) */
.legal-page {
    margin: 0 auto;
    padding: var(--space-20) var(--space-4);
}

/* Ensure section on legal pages has proper padding for fixed header */
.section--legal {
    padding-top: calc(var(--space-20) + 80px) !important;
}

.legal-page__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.2;
}

.legal-page__content {
    background-color: var(--color-white);
    /* padding: var(--space-8); */
    max-width: 1240px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.legal-page__content h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.legal-page__content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal-page__content p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.legal-page__content ul,
.legal-page__content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-page__content li {
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.legal-page__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-page__content a:hover {
    color: var(--color-primary-dark);
}

.erecht24-loading {
    text-align: center;
    padding: var(--space-8);
    color: var(--color-text-light);
}

.erecht24-error {
    background-color: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}
