/* Custom Redesign - LEINE Schlüsseldienst Hannover */
/* Professional Dark Navy & Gold Theme */

:root {
    /* New Color Palette */
    --navy-dark: #0a1628;
    --navy-medium: #1a2840;
    --navy-light: #2d3e5f;
    --gold-primary: #f5672a;
    --gold-light: #ff8a57;
    --gold-dark: #c74e1e;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --red-accent: #dc3545;
    --green-accent: #28a745;

    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(10, 22, 40, 0.1);
    --shadow-md: 0 4px 6px rgba(10, 22, 40, 0.15);
    --shadow-lg: 0 10px 25px rgba(10, 22, 40, 0.2);
    --shadow-xl: 0 20px 40px rgba(10, 22, 40, 0.25);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.28s ease;
}

.main-header--hidden {
    transform: translateY(-120%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 78px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a:not(.btn-emergency) {
    color: var(--navy-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.main-nav a:not(.btn-emergency)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-emergency):hover::after {
    width: 100%;
}

.btn-emergency {
    position: relative;
    isolation: isolate;
    color: var(--navy-dark);
    padding: clamp(6px, 1.2vw, 9px) clamp(16px, 3vw, 26px);
    border-radius: 999px;
    font-weight: 700;
    font-size: clamp(0.68rem, 0.85vw, 0.78rem);
    background: var(--gold-primary);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: clamp(12px, 2vw, 18px);
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.btn-emergency::before,
.btn-emergency::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.btn-emergency::before,
.btn-emergency::after {
    opacity: 0;
}

.btn-emergency i {
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    color: var(--navy-dark);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: clamp(22px, 2.8vw, 28px);
    height: clamp(22px, 2.8vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.1);
}

.emergency-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.35;
    gap: 6px;
    text-align: left;
    color: var(--navy-dark);
}

.emergency-label {
    font-size: clamp(0.45rem, 0.75vw, 0.52rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
    color: var(--navy-dark);
}

.emergency-number {
    font-size: clamp(0.74rem, 1.05vw, 0.92rem);
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: 0.08em;
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245, 103, 42, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 103, 42, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: var(--white);
}

.hero-content-inner {
    max-width: 560px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 103, 42, 0.15);
    border: 1px solid rgba(245, 103, 42, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-badge i {
    color: var(--gold-primary);
}

.hero-h1 {
	color: white;
	font-size: 12px;
	padding-bottom: 10px;
	letter-spacing: 0.5px;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2.8rem, 5.5vw, 3.4rem);
    margin-bottom: 16px;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-title .hero-question {
    display: block;
    font-size: clamp(4.8rem, 11vw, 5.8rem);
    font-weight: 800;
    letter-spacing: 0.0025em;
}

.hero-title .hero-subline {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-title .highlight {
    color: var(--gold-primary);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    max-width: 500px;
    text-align: justify;
    hyphens: auto;
}

.hero-buttons {
    display: flex;
    gap: 35px;
    margin-bottom: 30px;
    width: 100%;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    flex: 0 1 235px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    width: 100%;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    min-height: 48px;
}

.hero-feature i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.hero-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    height: 100%;
    min-height: 520px;
    flex: 1;
}

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

.hero-overlay-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.overlay-text h3 {
    color: var(--gold-primary);
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.overlay-text p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.overlay-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

/* Services Section */
.services-section {
    padding: var(--section-padding) 0;
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    margin-bottom: 12px;
    font-size: 2.25rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold-primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.75rem;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--navy-dark);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.service-card--modal {
    cursor: pointer;
}

.service-card--modal:focus-visible {
    outline: 3px solid var(--gold-primary);
    outline-offset: 4px;
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.pricing-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
    content: 'BELIEBT';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-card:hover:not(.featured) {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 2.5rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin: 15px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--gray-600);
    display: block;
    margin-top: 5px;
}

.pricing-features {
    list-style: none;
    margin: 25px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.pricing-features li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    max-width: 240px;
}

.pricing-features li span {
    flex: 1;
}

.pricing-features i {
    color: var(--green-accent);
    min-width: 16px;
}

.pricing-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 25px auto 0;
    text-align: center;
}

.pricing-note {
    margin-top: 35px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.process-section {
    background: var(--white);
    padding: var(--section-padding) 0;
}

.process-wrapper {
    position: relative;
    margin-top: 60px;
    padding: 20px 0;
}

.process-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background: rgba(8, 16, 32, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.process-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transition: height 0.2s ease-out;
}

.process-step {
    position: relative;
    display: flex;
    justify-content: flex-start;
    margin: 40px 0;
}

.process-step--right {
    justify-content: flex-end;
}

.process-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -20px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy-dark);
    box-shadow: 0 10px 20px rgba(8, 16, 32, 0.1);
}

.process-card {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
    padding: 26px 30px;
    border-radius: 18px;
    max-width: 420px;
    box-shadow: 0 20px 45px rgba(11, 20, 40, 0.35);
}

.process-card h3 {
    color: var(--gold-primary);
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.process-card p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.55;
}

.process-step--right .process-card {
    text-align: right;
}

@media (max-width: 992px) {
    .process-wrapper {
        padding-left: 40px;
    }

    .process-line {
        display: block;
        left: 16px;
        transform: none;
        width: 4px;
    }

    .process-step,
    .process-step--right {
        justify-content: flex-start;
        margin: 30px 0;
    }

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

    .process-dot {
        left: 16px;
        transform: translate(-60%, -20px);
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .process-card {
        max-width: 100%;
        padding: 22px 22px;
        font-size: 0.95rem;
    }

    .process-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Why Choose Us Section */
.why-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-medium) 55%, var(--navy-light) 100%);
    color: var(--white);
    overflow: hidden;
}

.why-section::after {
    content: '';
    position: absolute;
    inset: 40px -20px -20px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245, 103, 42, 0.18), transparent 55%);
}

.why-section .section-header {
    position: relative;
    z-index: 1;
}

.why-section .section-header h2,
.why-section .section-header p {
    color: var(--white);
}

.why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.why-item {
    background: rgba(7, 16, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(5, 10, 25, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 0;
    align-items: center;
}

.why-item::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.why-item > * {
    position: relative;
    z-index: 1;
}

.why-item:hover::before {
    opacity: 1;
}

.why-icon {
    color: var(--gold-primary);
    font-size: clamp(2.8rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
}

.why-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 auto;
}

.why-number {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1;
}

.why-item h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.why-item p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    hyphens: auto;
    word-spacing: normal;
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-item {
        padding: 24px;
    }
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    color: var(--navy-dark);
}

.faq-section .section-header h2,
.faq-section .section-header p {
    color: var(--navy-dark);
}

.faq-list {
    max-width: 820px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy-dark) 100%);
    border-radius: 22px;
    padding: 4px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 30px rgba(10, 22, 40, 0.2);
    transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
    border-color: rgba(245, 103, 42, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.25);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.faq-question-text {
    flex: 0 0 90%;
    max-width: 90%;
}

.faq-item.active .faq-question-text {
    color: var(--gold-primary);
}

.faq-toggle-icon {
    flex: 0 0 10%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.faq-toggle-symbol {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.faq-toggle-symbol::before,
.faq-toggle-symbol::after {
    content: '';
    position: absolute;
    background: var(--gold-primary);
    transition: transform 0.25s ease;
    border-radius: 1px;
}

.faq-toggle-symbol::before {
    width: 10px;
    height: 2px;
}

.faq-toggle-symbol::after {
    width: 2px;
    height: 10px;
}


.faq-item.active .faq-toggle-symbol::after {
    transform: rotate(90deg);
}

.faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0 0 24px;
}

.faq-answer p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .faq-list {
        margin-top: 40px;
        gap: 16px;
    }
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--navy-dark);
    margin-bottom: 15px;
    font-size: 2.25rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--navy-medium);
    margin-bottom: 25px;
}

.cta-button {
    background: var(--navy-dark);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: var(--navy-medium);
    transform: translateY(-3px);
}

/* Footer */
.main-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(8px, 1.2vw, 20px);
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
    justify-items: flex-start;
}

@media (min-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(12px, 1.5vw, 28px);
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-section h4 {
    color: var(--gold-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section--service,
.footer-section--leistungen,
.footer-section--einsatzgebiet {
    transition: margin-left 0.3s ease;
}

@media (max-width: 767px) {
    .footer-section--service,
    .footer-section--leistungen,
    .footer-section--einsatzgebiet {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .footer-section--service {
        margin-left: clamp(-40px, -3vw, -12px);
    }

    .footer-section--leistungen {
        margin-left: clamp(-70px, -5vw, -20px);
    }

    .footer-section--einsatzgebiet {
        margin-left: clamp(-110px, -8vw, -32px);
    }
}

.footer-section p,
.footer-section a {
    font-size: 0.86rem;
    line-height: 1.5;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 0.86rem;
}

.region-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    column-gap: clamp(34px, 3.5vw, 60px);
    row-gap: 12px;
}

@media (max-width: 600px) {
    .region-list {
        grid-template-columns: 1fr;
        column-gap: 16px;
    }
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-link {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.legal-link:hover,
.legal-link:focus-visible {
    text-decoration: underline;
}

.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.legal-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.legal-modal__dialog {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    animation: fadeInUp 0.4s ease;
}


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

.legal-modal__content h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--gold-primary);
}

.legal-modal__content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-modal__content a {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-modal__content a:hover,
.legal-modal__content a:focus-visible {
    text-decoration: underline;
}

.modal-feature-list {
    margin: 15px 0 0;
    padding-left: 20px;
    color: var(--gray-700);
}

.modal-feature-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--navy-dark);
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

/* Animations */

/* Responsive Design */
@media (max-width: 1200px) {
    .main-nav ul {
        gap: 22px;
    }

}

@media (max-width: 992px) {
    .main-nav ul {
        gap: 18px;
    }

    .logo img {
        height: 72px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .mobile-toggle {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-section {
        padding: 150px 0 60px;
    }

    .hero-content-inner {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title .hero-question {
        font-size: clamp(3.3rem, 11vw, 3.9rem);
    }

    .hero-title .hero-subline {
        font-size: clamp(1.35rem, 4vw, 1.7rem);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        text-align: justify;
        hyphens: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: none;
        width: min(240px, 90%);
        max-width: 260px;
    }

    .hero-features {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        text-align: left;
        font-size: 0.65rem;
    }

    .hero-feature {
        font-size: 0.65rem;
    }

    .hero-image-wrapper {
        justify-content: center;
    }

    .hero-image {
        width: 90%;
        min-height: 420px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-price {
        font-size: 2rem;
    }

    .why-number {
        font-size: 2.75rem;
    }

    .logo img {
        height: 65px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .overlay-text h3 {
        font-size: 1.5rem;
    }

    .overlay-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-image {
        width: 100%;
        min-height: 360px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
    }

    .main-nav a:not(.btn-emergency) {
        display: block;
        padding: 15px 10px;
        width: 100%;
    }

    .btn-emergency {
        margin-top: 10px;
        justify-content: center;
        border-bottom: none;
        width: 100%;
    }

    .legal-modal {
        padding: 15px;
    }

    .legal-modal__dialog {
        padding: 30px 20px;
    }
}

/* Ensure nav items can grow to fit content */
.main-nav ul li {
    flex-shrink: 0;
    min-width: auto;
}

/* Emergency button should not shrink */
.btn-emergency {
    flex-shrink: 0;
    min-width: fit-content;
}

.btn-emergency--compact {
    min-width: 135px;
}
