/* ======================================
   1. Basis-Styles & Variablen
   ====================================== */

:root {
    --blue-dark: #083763;
    --blue: #115caa;
    --bg-light: #f5f7fb;
    --text: #1f2933;
    --white: #ffffff;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --section-padding: 80px;
    --max-width: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg-light);
}

/* ======================================
   2. Header & Navigation
   ====================================== */

header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 14px;
    color: var(--blue-dark);
    text-transform: uppercase;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
    cursor: pointer;
}

.logo-mark {
    height: 44px;
    display: flex;
    align-items: center;
}

.logo-mark img {
    height: 100%;
    width: auto;
    display: block;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 14px;
    text-decoration: none;
    color: var(--blue-dark);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: #111827;
    border-color: #d1d5db;
}

.nav-links a.active {
    border-color: var(--blue-dark);
}

/* Burger-Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span + span {
    margin-top: 5px;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ======================================
   3. Hero-Section (Startseite)
   ====================================== */

.hero {
    position: relative;
    min-height: calc(90vh - 64px);
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.65), rgba(8, 53, 95, 0.85)),
        url("img/melo.webp?v=20260414") center center / cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px 30px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(40px, 5vw, 54px);
    line-height: 1.05;
    margin: 14px 0 16px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.92;
    max-width: 520px;
}

.hero-badges {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 10px 18px;
    font-size: 13px;
}

.hero-badge {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

/* Bild nur auf Mobile */
.hero-mobile-image {
    display: none;
    margin-top: 18px;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

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

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: #f97316;
    color: #111827;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.45);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #f9fafb;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    box-shadow: none;
}
.btn-secondary:hover {
    background: #f3f4f6;
}

/* Hero-Card (Schnellanfrage) */
.hero-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-xl);
    padding: 26px 24px 24px;
    box-shadow: var(--shadow-soft);
    color: #111827;
}

.hero-card-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6b7280;
    margin-bottom: 4px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--blue-dark);
}

.hero-card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* Hero-Form-Footer */
.hero-form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.hero-form-alt {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.hero-form-alt a {
    color: #f97316;
    font-weight: 600;
    text-decoration: none;
}
.hero-form-alt a:hover {
    text-decoration: underline;
}

/* ======================================
   4. Formulare (global)
   ====================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    display: block;
    margin-bottom: 4px;
}

input,
textarea,
select {
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

select {
    background-color: #ffffff;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(17, 94, 163, 0.15);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.form-grid-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 6px;
    margin-bottom: -4px;
}

.date-wide {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 14px;
}

/* Alerts */
.form-footnote {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
}

.form-alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.form-alert-success { background: #ecfdf3; border: 1px solid #bbf7d0; color: #15803d; }

/* Dienstleistungsspezifische Blöcke */
.dienstleistung-block {
    margin-top: 4px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.dienstleistung-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0ecff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dienstleistung-inner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}
.dienstleistung-inner-grid .span-2 {
    grid-column: 1 / -1;
}

/* Hinweisbox */
.contact-hint {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fffbeb;
    border-left: 4px solid #f97316;
    font-size: 13px;
    color: #78350f;
}
.contact-hint-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c05621;
    margin-bottom: 4px;
}

/* ======================================
   5. Allgemeine Sektionen & Typografie
   ====================================== */

.section {
    padding: var(--section-padding) 10px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
    color: var(--blue-dark);
    line-height: 1.2;
    text-align: center;
}

.section-lead {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    text-align: center;
}

/* Über uns Styles */
.about-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.about-text p { margin: 0 0 10px 0; }
.about-text p + p { margin-top: 8px; }

.about-highlights {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    font-size: 14px;
}

.about-highlights-centered {
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
}

.about-badge {
    padding: 8px 10px;
    background: #e5efff;
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 500;
    text-align: center;
}

.about-image {
    border-radius: var(--radius-xl);
    min-height: 260px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ======================================
   6. Dienstleistungen (Intro & Cards)
   ====================================== */

/* Intro Bereich (Zentriert) */
.services-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 16px;
}

/* Badge Design (Kostenlose Besichtigung) */
.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f7ff;
    border: 1px solid #cce5ff;
    color: #004085;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    gap: 16px;
    margin-top: 20px;
    max-width: 100%;
}

.info-icon {
    background-color: var(--blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text strong {
    font-size: 15px;
    color: var(--blue-dark);
    margin-bottom: 2px;
}

.info-text span {
    font-size: 13px;
    color: #4b5563;
}

/* Kategorien Grid */
.service-category {
    margin-bottom: 5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
}
.service-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--blue-dark);
    text-align: center;
}

.category-header-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Karten Design */
.cards { /* Standard Grid für Cards (Startseite) */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.card, .package-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .package-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.card-title, .package-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
}

.package-teaser {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Toggle / Aufklappen */
.toggle-btn {
    background: none;
    border: none;
    color: var(--blue);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    margin-bottom: 1rem;
    text-align: left;
    display: inline-block;
}
.toggle-btn:hover { text-decoration: underline; }

.package-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.package-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.package-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #444;
}
.package-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

.package-hint {
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
    margin-bottom: 1rem;
    background: #f9f9f9;
    padding: 0.5rem;
    border-radius: 4px;
}

.btn-package {
    margin-top: auto;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: background 0.3s;
}
.btn-package:hover { background-color: #555; }

/* Vertrauensblock */
.trust-block {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-xl);
    margin-top: 4rem;
}
.trust-block h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--blue-dark);
}
.trust-list-grid {
    display: inline-grid;
    text-align: left;
    gap: 1rem;
    margin: 0 auto;
    max-width: 600px;
}
.trust-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #333;
}
.trust-icon {
    font-size: 1.4rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ======================================
   7. Footer (Kompakt & Repariert)
   ====================================== */

footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Linker Bereich */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-brand-line { display: block; }

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-separator { color: #9ca3af; }
.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* Rechter Bereich (Kontakt & Social) */
.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.footer-social-link:hover { opacity: 0.8; }

/* ICONS Größe begrenzen */
.footer-social-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

/* ======================================
   Kontakt-Seite Layout (Wie im Original)
   ====================================== */

.contact-wrapper {
    display: grid;
    /* Links (Formular) bekommt 60%, Rechts (Info) 40% */
    grid-template-columns: 1.4fr 1fr; 
    gap: 60px; /* Großer Abstand wie im Bild */
    align-items: start;
    margin-top: 40px;
}

/* Die weiße Box ist NUR um das Formular (Links), nicht rechts */
.contact-form-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Rechte Spalte: Text-Design */
.contact-sidebar {
    padding-top: 10px; /* Damit es optisch auf gleicher Höhe mit dem Formular-Titel startet */
    font-size: 15px;
    color: #4b5563;
}

.contact-sidebar h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827; /* Dunkles Grau/Schwarz */
}

.contact-sidebar p {
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-sidebar a {
    color: var(--blue);
    text-decoration: underline;
}

.contact-sidebar ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.contact-sidebar li {
    margin-bottom: 6px;
}

/* Mobile: Untereinander */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ======================================
   8. Responsive Breakpoints
   ====================================== */

@media (max-width: 768px) {
    .navbar { padding-inline: 12px; }
    .nav-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px 16px;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
        display: none;
        z-index: 100;
    }
    body.nav-open .nav-links { display: flex; }
    .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
    .nav-links a:last-child { border-bottom: none; }
    
    .hero {
        padding: 1px 0 1px;
        background: linear-gradient(135deg, #0b1725, #10223b);
    }
    .hero-inner {
        display: flex; flex-direction: column; gap: 24px; padding-inline: 16px; 
    }
    .hero-title { font-size: 30px; line-height: 1.1; }
    .hero-card { width: 100%; margin: 0; }
    .hero-mobile-image { display: block; }
    
    .footer-inner {
        flex-direction: column; align-items: center; text-align: center; gap: 1px;
    }
    .footer-right {
        flex-direction: column; gap: 15px; width: 100%;
    }
    .footer-social-link {
        width: 100%; justify-content: center;
    }
    
    .info-badge { flex-direction: column; text-align: center; border-radius: 16px; padding: 1.5rem; gap: 1rem; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .section { padding: 10px 16px; }
    .cards { grid-template-columns: 1fr; }
    .trust-list-grid { display: flex; flex-direction: column; }
    .dienstleistung-inner-grid { grid-template-columns: 1fr; }
}

/* --- Datei-Upload Design (Modern) --- */
.file-upload-wrapper {
    margin-top: 5px;
    width: 100%;
}

/* WICHTIG: Das hässliche Standard-Input komplett verstecken */
.file-upload-wrapper input[type="file"] {
    display: none;
}

/* Das Label stylen wir als schicke klickbare Box */
.custom-file-upload {
    border: 2px dashed #cbd5e1; /* Gestrichelter Rand */
    border-radius: 10px;
    background-color: #f8fafc;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

/* Hover Effekt: Wird blau, wenn man mit der Maus drüberfährt */
.custom-file-upload:hover {
    border-color: var(--blue); 
    background-color: #eff6ff; 
    color: var(--blue-dark);
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* --- Datei-Upload Vorschau-Grid (wie gehabt) --- */
.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    padding: 2px;
}

/* Der rote Löschen-Button (X) */
.file-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(220, 38, 38, 0.9); /* Rot */
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.file-remove-btn:hover {
    transform: scale(1.1);
    background: rgb(220, 38, 38);
}

/* --- DSGVO Checkbox --- */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
    margin-bottom: 20px;
}
.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.privacy-check a {
    color: var(--blue);
    text-decoration: underline;
}

/* --- Honeypot (Spam-Schutz - unsichtbar) --- */
.hp-field {
    display: none;
    visibility: hidden;
    opacity: 0;
}

/* ======================================
   9. Erweiterte Layout- und Design-Updates
   ====================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

main {
    padding-bottom: 0;
}

a {
    color: var(--blue);
}

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

.section {
    padding: 88px 18px;
}

@supports (content-visibility: auto) {
    .section,
    .service-module,
    .site-footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 860px;
    }
}

.section-surface {
    background: #ffffff;
}

.section-muted {
    background: linear-gradient(180deg, #f7fbff 0%, #eef4fa 100%);
}

.section-accent {
    background: linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%);
}

.narrow {
    max-width: 940px;
}

.page-intro {
    text-align: center;
    margin-bottom: 48px;
}

.breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.92rem;
    color: #64748b;
}

.breadcrumb-nav a {
    color: var(--blue);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.page-intro--compact {
    margin-bottom: 36px;
}

.section-kicker {
    margin: 0 0 12px;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a718f;
    font-weight: 700;
    text-align: center;
}

.section-kicker-left,
.section-title-left {
    text-align: left;
}

.section-title {
    margin-top: 0;
}

.section-copy {
    font-size: 1.02rem;
    color: #4b5563;
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-copy-centered {
    text-align: center;
}

.hero {
    min-height: calc(92vh - 72px);
    background:
        radial-gradient(circle at top left, rgba(242, 140, 40, 0.24), transparent 34%),
        linear-gradient(120deg, rgba(10, 25, 46, 0.78), rgba(8, 55, 99, 0.88)),
        url("img/melo.webp?v=20260414") center center / cover no-repeat;
}

.hero-inner-centered {
    display: block;
    text-align: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero-content-narrow {
    max-width: 860px;
    margin: 0 auto;
}

.hero-subtitle-centered {
    margin: 0 auto 28px;
    max-width: 720px;
}

.hero-badges-centered {
    justify-content: center;
    margin-bottom: 36px;
}

.hero-actions-centered {
    justify-content: center;
}

.hero-mobile-image-spaced {
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-local-note {
    margin: 18px auto 0;
    max-width: 700px;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
}

.btn {
    min-height: 50px;
    padding: 13px 22px;
    font-size: 15px;
}

.btn-large {
    min-height: 54px;
    padding: 14px 24px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: #f28c28;
    color: #10223b;
}

.btn-primary:hover {
    box-shadow: 0 18px 38px rgba(13, 28, 48, 0.28);
}

.btn-secondary {
    background: #ffffff;
    color: var(--blue-dark);
    border: 1px solid #cfdae6;
}

.btn-secondary:hover {
    background: #f6f9fc;
}

.btn-outline-dark {
    background: transparent;
    color: #10223b;
    border: 1px solid #cfdae6;
}

.service-card {
    gap: 18px;
}

.service-card p {
    margin: 0;
    color: #4b5563;
}

.card-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.75;
}

.local-focus-card,
.service-cta-card {
    background: #ffffff;
    border: 1px solid #dde7f2;
    border-radius: 24px;
    padding: 40px 34px;
    box-shadow: var(--shadow-soft);
}

.local-focus-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.local-focus-links-left {
    justify-content: flex-start;
}

.pill-link,
.services-quicklinks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    background: #e7f0fb;
    color: #0d4c8f;
    font-weight: 600;
    border: 1px solid #c3d7ef;
}

.pill-link:hover,
.services-quicklinks a:hover {
    background: #dbe9f8;
}

.location-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.88fr);
    gap: 32px;
    align-items: start;
}

.location-hero-copy {
    min-width: 0;
}

.location-hero-lead {
    margin: 0 0 0;
    max-width: 44rem;
    text-align: left;
}

.location-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.location-hero-panel {
    padding: 10px 0 0;
}

.location-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.location-meta-card {
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid #d9e6f2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.location-meta-card strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-dark);
    font-size: 1.28rem;
    line-height: 1.2;
}

.location-meta-card p {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.55;
}

.location-meta-label {
    display: inline-block;
    color: #5a718f;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.location-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.location-service-card {
    position: relative;
    padding: 28px 24px 24px;
    border-radius: 24px;
    border: 1px solid #dbe7f3;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--shadow-soft);
}

.location-service-card h2 {
    margin: 0 0 12px;
    color: var(--blue-dark);
    font-size: 1.32rem;
    line-height: 1.25;
}

.location-service-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.72;
}

.location-service-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #e7f0fb;
    color: #0d4c8f;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.location-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #0d4c8f;
    font-weight: 700;
    text-decoration: none;
}

.location-inline-link::after {
    content: "->";
    font-size: 0.9em;
}

.location-inline-link:hover {
    color: #083763;
}

.district-directory-grid {
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1200px;
}

.district-directory-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #d9e5f2;
    background: #f8fbff;
    color: var(--blue-dark);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.district-group-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.district-group-card {
    padding: 22px 20px;
    border-radius: 24px;
    border: 1px solid #dbe7f3;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.district-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.district-group-head h3 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.12rem;
    line-height: 1.25;
}

.district-group-head span {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e7f0fb;
    color: #0d4c8f;
    font-size: 0.78rem;
    font-weight: 700;
}

.district-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5fd;
    color: #0f3f71;
    font-size: 0.92rem;
    line-height: 1.35;
}

.location-process-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 26px;
    align-items: stretch;
}

.location-process-copy,
.location-process-steps {
    border: 1px solid #dde7f2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.location-process-copy {
    padding: 38px 34px;
}

.location-process-copy .section-copy {
    max-width: none;
}

.location-process-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.location-process-step {
    padding: 18px 16px;
    border-radius: 18px;
    background: #f7fbff;
    border: 1px solid #e0ebf6;
}

.location-process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #dceaff;
    color: #0d4c8f;
    font-weight: 800;
    font-size: 0.82rem;
}

.location-process-step h3 {
    margin: 16px 0 10px;
    color: var(--blue-dark);
    font-size: 1rem;
    line-height: 1.3;
}

.location-process-step p {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #dde7f2;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 22px;
    font-weight: 700;
    color: var(--blue-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    border-bottom: 1px solid #e5edf5;
}

.faq-item p {
    margin: 0;
    padding: 18px 22px 22px;
    color: #4b5563;
}

.form-shell {
    max-width: 840px;
    margin: 0 auto;
    background: #ffffff;
    padding: 32px;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #dbe7f4;
}

.form-title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: #111827;
    text-align: center;
}

.form-grid {
    gap: 16px 18px;
}

input,
textarea,
select {
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 16px;
    background: #ffffff;
}

textarea {
    min-height: 140px;
}

select {
    background-image:
        linear-gradient(45deg, transparent 50%, #47698d 50%),
        linear-gradient(135deg, #47698d 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 22px,
        calc(100% - 16px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.form-upload-label {
    margin-bottom: 8px;
}

.privacy-check {
    align-items: flex-start;
    gap: 12px;
    background: #f8fbff;
    border: 1px solid #dbe7f4;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
}

.privacy-check input {
    margin-top: 4px;
}

.privacy-check input[type="checkbox"],
.consent-remember input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 18px;
    appearance: auto;
}

.privacy-text {
    margin: 0;
    display: block;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
    color: #334155;
}

.form-submit {
    margin-top: 4px;
}

.contact-hint--compact {
    margin-top: 24px;
}

.file-preview-item {
    width: 82px;
    height: 82px;
}

.contact-wrapper {
    gap: 36px;
}

.contact-form-container {
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.contact-sidebar {
    display: grid;
    gap: 18px;
}

.contact-sidebar-card,
.impressum-card,
.impressum-content,
.legal-page {
    background: #ffffff;
    border: 1px solid #dde7f2;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.contact-sidebar-card h3,
.impressum-card h3 {
    margin: 0 0 14px;
    color: #111827;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.contact-list-bullets {
    list-style: disc;
    padding-left: 20px;
}

.contact-list-bullets li {
    margin-left: 0;
}

.contact-cta-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.service-page-intro {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.service-page-lead {
    margin-bottom: 24px;
}

.services-quicklinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.services-quicklinks a {
    min-width: 210px;
}

.service-module {
    padding: 58px 0;
}

.module-header {
    position: relative;
    height: 240px;
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    background: #d9e4ef;
}

.module-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module-title-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 28px 22px;
    background: linear-gradient(to top, rgba(7, 23, 41, 0.78), rgba(7, 23, 41, 0.08));
}

.module-title {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    line-height: 1.1;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.module-intro {
    margin: 0 0 22px;
    max-width: 860px;
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.package-card {
    border-radius: 20px;
    padding: 24px;
}

.package-note {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    margin-top: 10px;
}

.trust-block {
    margin-top: 0;
}

.impressum-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.35fr 1fr;
}

.text-block {
    margin-bottom: 28px;
}

.text-block:last-child {
    margin-bottom: 0;
}

.text-block p {
    color: #4b5563;
}

.impressum-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.impressum-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.impressum-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.impressum-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.consent-embed {
    background: #ffffff;
    border: 1px solid #dde7f2;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 0;
}

.consent-embed-placeholder {
    min-height: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.consent-embed-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0d4c8f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.consent-remember {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: #475569;
}

.consent-embed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.consent-embed-note {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.consent-embed-frame {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.site-footer {
    background: linear-gradient(180deg, #0d1c30 0%, #102743 100%);
    color: #e5eef8;
    border-top: none;
    padding: 34px 24px 16px;
}

.site-footer .footer-inner {
    width: min(1520px, 100%);
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, 1.35fr) minmax(0, 2.65fr);
    align-items: start;
    gap: 20px 48px;
}

.site-footer .footer-brand-block {
    max-width: none;
    display: grid;
    gap: 8px;
    padding-right: 0;
}

.site-footer .footer-brand {
    display: grid;
    gap: 4px;
}

.site-footer .footer-brand-line {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
}

.site-footer .footer-tagline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}

.site-footer .footer-copy,
.site-footer .footer-area {
    margin: 0;
    max-width: 54ch;
    line-height: 1.42;
    color: rgba(229, 238, 248, 0.84);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1fr) minmax(250px, 1.15fr);
    gap: 14px 40px;
    align-content: start;
}

.site-footer .footer-column {
    min-width: 0;
}

.site-footer .footer-title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f8fbff;
}

.site-footer .footer-list {
    display: grid;
    gap: 8px;
}

.site-footer .footer-list a {
    color: rgba(229, 238, 248, 0.88);
    line-height: 1.28;
    text-decoration: none;
    word-break: normal;
    overflow-wrap: anywhere;
}

.site-footer .footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .footer-bottom {
    width: min(1520px, 100%);
    max-width: none;
    margin: 16px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(229, 238, 248, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    flex-wrap: wrap;
    color: rgba(229, 238, 248, 0.78);
    font-size: 0.84rem;
}

.mobile-sticky-cta {
    display: none;
}

.legal-main-heading {
    margin-top: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
    color: var(--blue-dark);
}

.legal-intro,
.legal-stand,
.legal-page p,
.legal-page li {
    color: #4b5563;
    line-height: 1.75;
}

.legal-index-card {
    background: #f7fbff;
    border: 1px solid #dde7f2;
    border-radius: 18px;
    padding: 24px;
    margin: 24px 0 30px;
}

.legal-index-title {
    margin-top: 0;
}

.legal-index {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.seal {
    margin-top: 28px;
    font-size: 0.92rem;
}

#schnellanfrage,
#umzug,
#entruempelung,
#transport,
#contact-result {
    scroll-margin-top: 110px;
}

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

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer .footer-brand-block {
        max-width: none;
        padding-right: 0;
    }

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

}

@media (max-width: 768px) {
    main {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .section {
        padding: 64px 16px;
    }

    .hero-inner-centered {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 42px);
    }

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

    .form-shell,
    .contact-form-container,
    .contact-sidebar-card,
    .impressum-card,
    .impressum-content,
    .legal-page {
        padding: 24px;
        border-radius: 18px;
    }

    .site-footer .footer-inner,
    .site-footer .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer .footer-copy,
    .site-footer .footer-area {
        max-width: none;
    }

    .mobile-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.94);
        border-top: 1px solid rgba(17, 92, 170, 0.14);
        backdrop-filter: blur(12px);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    .mobile-sticky-cta .btn {
        min-height: 48px;
        border-radius: 14px;
    }
}

@media (max-width: 700px) {
    .form-grid,
    .dienstleistung-inner-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .span-2,
    .dienstleistung-inner-grid .span-2 {
        grid-column: auto;
    }

    .hero-actions,
    .location-hero-actions,
    .local-focus-links,
    .services-quicklinks,
    .consent-embed-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .location-hero-actions .btn,
    .pill-link,
    .services-quicklinks a,
    .consent-embed-actions .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hero-badges,
    .about-highlights,
    .cards,
    .package-grid,
    .district-directory-grid {
        grid-template-columns: 1fr;
    }

    .info-badge {
        flex-direction: column;
        text-align: center;
    }

    .mobile-sticky-cta {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 14px;
    }

    .section-title {
        font-size: clamp(26px, 8vw, 34px);
        margin-bottom: 16px;
    }

    .section-lead,
    .section-copy,
    .module-intro {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .page-intro {
        margin-bottom: 32px;
    }

    .location-hero,
    .location-process-shell,
    .location-service-grid,
    .district-group-grid {
        grid-template-columns: 1fr;
    }

    .location-hero {
        gap: 20px;
    }

    .location-hero-panel {
        padding-top: 0;
    }

    .location-meta-grid {
        gap: 12px;
    }

    .location-meta-card {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .location-meta-card strong {
        font-size: 1.12rem;
    }

    .location-hero-actions {
        margin-top: 20px;
        gap: 10px;
    }

    .location-service-card {
        padding: 22px 18px 20px;
        border-radius: 20px;
    }

    .location-service-card h2 {
        font-size: 1.18rem;
    }

    .district-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .district-directory-item {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .district-group-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .district-group-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .district-chip-list {
        gap: 8px;
    }

    .district-chip {
        min-height: 34px;
        padding-inline: 11px;
        font-size: 0.88rem;
    }

    .location-process-copy,
    .location-process-steps {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .location-process-steps {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner-centered {
        padding-top: 34px;
        padding-bottom: 36px;
    }

    .hero-content-narrow {
        max-width: 100%;
    }

    .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .hero-title {
        max-width: none;
        margin-inline: auto;
        font-size: clamp(27px, 8.2vw, 32px);
        line-height: 1.08;
    }

    .hero-subtitle,
    .hero-subtitle-centered {
        max-width: none;
        margin-bottom: 20px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-badges {
        gap: 8px 10px;
        font-size: 12px;
    }

    .hero-badges-centered {
        margin-bottom: 20px;
    }

    .hero-badge {
        padding: 8px 10px;
        line-height: 1.25;
        text-align: center;
    }

    .hero-mobile-image {
        margin-top: 14px;
        aspect-ratio: 16 / 10;
    }

    .hero-mobile-image-spaced {
        margin-bottom: 18px;
    }

    .hero-actions {
        margin-top: 20px;
        gap: 10px;
    }

    .hero-actions .btn {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .hero-local-note {
        max-width: 33ch;
        margin-top: 16px;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .about-grid {
        gap: 24px;
    }

    .about-highlights {
        gap: 10px;
    }

    .about-badge {
        padding: 7px 10px;
        font-size: 13px;
    }

    .about-image {
        min-height: 210px;
    }

    .local-focus-card,
    .service-cta-card,
    .trust-block {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .local-focus-links,
    .services-quicklinks {
        gap: 10px;
    }

    .pill-link,
    .services-quicklinks a {
        min-height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }

    .card,
    .package-card {
        padding: 1.25rem;
    }

    .card-title,
    .package-title {
        font-size: 1.15rem;
    }

    .card-icon {
        font-size: 2.3rem;
    }

    .service-module {
        padding: 40px 0;
    }

    .module-header {
        height: 190px;
        margin-bottom: 22px;
        border-radius: 22px;
    }

    .module-title-overlay {
        padding: 22px 20px 18px;
    }

    .faq-item summary {
        padding: 18px;
        font-size: 1rem;
    }

    .faq-item p {
        padding: 14px 18px 18px;
    }

    .form-shell,
    .contact-form-container,
    .contact-sidebar-card,
    .impressum-card,
    .impressum-content,
    .legal-page {
        padding: 20px;
        border-radius: 18px;
    }

    .form-title {
        margin-bottom: 16px;
        font-size: 1.1rem;
    }

    .form-grid {
        gap: 14px;
    }

    input,
    textarea,
    select {
        min-height: 48px;
        padding: 12px 13px;
    }

    textarea {
        min-height: 120px;
    }

    .privacy-check {
        padding: 12px 14px;
        gap: 10px;
    }

    .contact-wrapper {
        gap: 20px;
    }

    .contact-sidebar {
        gap: 14px;
    }

    .contact-cta-stack {
        gap: 10px;
        margin-top: 14px;
    }

    .site-footer {
        padding: 28px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .site-footer .footer-inner {
        gap: 18px;
    }

    .site-footer .footer-brand-block {
        gap: 6px;
    }

    .site-footer .footer-grid {
        gap: 18px;
    }

    .site-footer .footer-brand-block,
    .site-footer .footer-column,
    .site-footer .footer-bottom {
        text-align: left;
    }

    .site-footer .footer-list {
        justify-items: start;
    }

    .site-footer .footer-title {
        margin-bottom: 8px;
    }

    .site-footer .footer-list {
        gap: 6px;
    }

    .site-footer .footer-bottom {
        margin-top: 14px;
        padding-top: 12px;
        gap: 6px;
        font-size: 0.8rem;
    }

    @supports (content-visibility: auto) {
        .section,
        .service-module,
        .site-footer {
            content-visibility: visible;
            contain-intrinsic-size: auto;
        }
    }
}

@media (max-width: 560px) {
    .logo {
        gap: 8px;
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .logo-mark {
        height: 34px;
    }

    .section {
        padding: 48px 12px;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(25px, 8vw, 30px);
    }

    .hero-subtitle,
    .hero-subtitle-centered {
        font-size: 0.98rem;
    }

    .hero-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

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

    .module-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .module-header {
        height: 176px;
    }

    .cards,
    .package-grid {
        gap: 16px;
    }

    .form-grid-section-label {
        font-size: 0.78rem;
    }

    .file-preview-item {
        width: 70px;
        height: 70px;
    }

    .mobile-sticky-cta {
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .mobile-sticky-cta .btn {
        min-height: 46px;
        font-size: 13px;
        padding-inline: 10px;
    }
}

@media (max-width: 380px) {
    .hero-badges {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 10.5px;
    }
}

@media (min-width: 1440px) {
    :root {
        --max-width: 1320px;
        --section-padding: 96px;
    }

    .navbar {
        padding-inline: 24px;
    }

    .hero-inner-centered {
        padding-top: 88px;
        padding-bottom: 96px;
    }

    .hero-content-narrow {
        max-width: 1080px;
    }

    .hero-title {
        font-size: clamp(56px, 3.8vw, 68px);
        line-height: 1.04;
        max-width: 980px;
        margin-inline: auto;
    }

    .hero-subtitle-centered {
        max-width: 920px;
        font-size: 1.2rem;
    }

    .hero-badges {
        gap: 14px 20px;
    }

    .hero-badge {
        padding: 8px 14px;
    }

    .hero-actions {
        gap: 16px;
    }

    .hero-local-note {
        max-width: 920px;
        font-size: 1.02rem;
    }

    .cards,
    .package-grid {
        gap: 28px;
    }

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

    .location-hero {
        grid-template-columns: minmax(0, 1.28fr) minmax(380px, 0.82fr);
        gap: 42px;
    }

    .location-service-grid {
        gap: 28px;
    }

    .location-service-card {
        padding: 32px 28px 28px;
    }

    .district-directory-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .district-group-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .location-process-shell {
        grid-template-columns: minmax(0, 1.02fr) minmax(520px, 0.98fr);
    }

    .card,
    .package-card {
        padding: 32px 28px;
    }

    .card-title,
    .package-title {
        font-size: 1.4rem;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.95fr);
        gap: 64px;
    }

    .about-image {
        min-height: 460px;
    }

    .narrow {
        max-width: 1120px;
    }

    .local-focus-card,
    .service-cta-card {
        padding: 48px 46px;
    }

    .faq-grid {
        max-width: 1160px;
        margin: 0 auto;
    }

    .section-title,
    .module-title {
        text-wrap: balance;
    }

    .form-shell {
        max-width: 1000px;
        padding: 40px;
    }

    .service-page-intro {
        max-width: 1040px;
    }

    .module-header {
        height: 320px;
    }

    .site-footer .footer-inner,
    .site-footer .footer-bottom {
        width: min(1600px, 100%);
    }
}

@media (min-width: 1680px) {
    :root {
        --max-width: 1440px;
    }

    .hero-content-narrow {
        max-width: 1160px;
    }

    .hero-title {
        font-size: clamp(60px, 3.6vw, 76px);
        max-width: 1060px;
    }

    .hero-subtitle-centered {
        max-width: 980px;
    }

    .narrow {
        max-width: 1180px;
    }

    .district-directory-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .district-group-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .form-shell {
        max-width: 1080px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
    }

    .site-footer .footer-inner,
    .site-footer .footer-bottom {
        width: min(1680px, 100%);
    }
}
