/**
 * Meer Umzug – Premium Design Refresh
 */

:root {
    --primary: #0a2342;
    --primary-light: #1a4a7a;
    --primary-dark: #051525;
    --secondary: #00b8d9;
    --secondary-dark: #0096c7;
    --secondary-glow: rgba(0, 184, 217, 0.22);
    --accent: #e8f9fc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --muted: #f1f5f9;
    --muted-2: #e8eef4;
    --text: #1e293b;
    --text-soft: #64748b;
    --border-color: #e2e8f0;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.04);
    --shadow-md: 0 12px 32px rgba(10, 35, 66, 0.08);
    --shadow-lg: 0 24px 48px rgba(10, 35, 66, 0.12);
    --shadow-xl: 0 32px 64px rgba(10, 35, 66, 0.16);
    --section-py: clamp(4rem, 7vw, 6.25rem);
    --header-h: 76px;
}

/* ─── Base ─── */
body {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 120px);
    color: var(--text);
}

::selection {
    background: rgba(0, 184, 217, 0.25);
    color: var(--primary-dark);
}

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

.container {
    max-width: 1240px;
    padding: 0 clamp(16px, 4vw, 28px);
}

.section {
    padding: var(--section-py) 0;
}

.section-bg {
    background: linear-gradient(180deg, var(--muted) 0%, #f8fafc 100%);
    position: relative;
}

.section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(0, 184, 217, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(10, 35, 66, 0.03) 0%, transparent 45%);
    pointer-events: none;
}

.section-bg > .container {
    position: relative;
    z-index: 1;
}

/* ─── Section titles ─── */
.section-title {
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-tag {
    background: linear-gradient(135deg, rgba(0, 184, 217, 0.12), rgba(0, 150, 199, 0.08));
    border: 1px solid rgba(0, 184, 217, 0.2);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    letter-spacing: 1.5px;
    font-size: 0.78rem;
}

.section-title h2 {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ─── Buttons ─── */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border: none;
}

.btn-outline {
    border-width: 2px;
    background: var(--surface);
}

.intro-card .btn-outline {
    border-color: var(--primary);
}

.intro-card .btn-outline:hover {
    background: var(--primary);
}

.btn-nav-cta {
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
    border-radius: var(--radius-pill) !important;
    box-shadow: 0 4px 16px rgba(0, 184, 217, 0.35) !important;
    border: none !important;
}

/* ─── Header (inner pages) ─── */
body:not(.home-page) header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

body:not(.home-page) .site-header.sticky header {
    box-shadow: 0 8px 32px rgba(10, 35, 66, 0.08);
}

/* ─── Homepage header ─── */
body.home-page header {
    background: linear-gradient(180deg, rgba(5, 21, 37, 0.55) 0%, rgba(5, 21, 37, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-page .logo a {
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ─── Hero ─── */
.hero-slider {
    min-height: clamp(520px, 88vh, 820px);
    border-radius: 0 0 clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px);
}

.slide-img::after {
    background: linear-gradient(
        125deg,
        rgba(5, 21, 37, 0.88) 0%,
        rgba(10, 35, 66, 0.65) 45%,
        rgba(0, 150, 199, 0.15) 100%
    );
}

.slide-content h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 540px;
    line-height: 1.65;
}

.slide-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
}

.slider-controls {
    bottom: 28px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
}

.scroll-indicator {
    display: none;
}

/* ─── Overlap cards ─── */
.section.overlap-section {
    margin-top: -60px;
    padding-top: clamp(100px, 12vw, 140px);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    background: linear-gradient(180deg, transparent 0%, var(--muted) 25%, #fff 100%);
}

.hero-bottom-grid {
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
}

.glass-card,
.quote-card {
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(226, 232, 240, 0.5);
}

.glass-card::before,
.quote-card::before {
    height: 5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.intro-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.intro-icon-item {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

/* ─── Stats ─── */
.stats-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
    margin: 0;
    border-radius: var(--radius-lg);
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .stats-section {
        max-width: 1240px;
    }
}

.stat-card {
    border-radius: var(--radius);
}

.stat-number {
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Service cards ─── */
.services-grid {
    gap: clamp(20px, 2.5vw, 32px);
}

.service-card {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.service-card-img {
    height: 220px;
}

.service-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(5, 21, 37, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

.service-card-overlay {
    background: rgba(5, 21, 37, 0.55);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.service-card-content {
    padding: 28px;
}

.service-card-content h3 {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.service-card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.65;
}

.read-more {
    padding-top: 8px;
    border-top: 1px solid var(--muted-2);
    margin-top: auto;
}

/* ─── Why us ─── */
.why-us-section {
    background: var(--surface);
}

.why-card {
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
}

/* ─── Reviews ─── */
.review-item {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
}

.review-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    border-radius: 0 0 4px 4px;
}

/* ─── Regions & FAQ ─── */
.region-badge {
    font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
}

.faq-item {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.faq-item.active {
    box-shadow: var(--shadow-sm);
    border-color: rgba(0, 184, 217, 0.35);
}

/* ─── CTA banner ─── */
.cta-banner {
    border-radius: var(--radius-lg);
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 768px) {
    .cta-banner {
        max-width: 1240px;
    }
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

/* ─── Subpages ─── */
.page-hero {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

.breadcrumb-container {
    background: var(--surface);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-item.active {
    color: var(--secondary-dark);
}

/* ─── Optimized images (WebP picture) ─── */
picture {
    display: block;
    max-width: 100%;
}

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

.article-img picture,
.article-img picture img,
.blog-card-img picture,
.blog-card-img picture img,
.service-card-img picture,
.service-card-img picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo picture,
.logo picture img {
    height: 48px;
    width: auto;
    max-height: 48px;
}

/* ─── Article / sidebar ─── */
.page-layout {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    gap: clamp(24px, 4vw, 48px);
}

.page-layout > .article-content,
.page-layout > .sidebar {
    min-width: 0;
}

/* ─── Kontakt page ─── */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-info-card,
.contact-address-card {
    background: var(--surface);
    padding: clamp(18px, 4vw, 25px);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 12px;
    display: block;
}

.contact-info-card h4,
.contact-address-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-info-meta {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 10px;
    line-height: 1.5;
}

.contact-info-link {
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--primary);
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
}

.contact-address-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-address-card .contact-info-icon {
    margin-top: 4px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.contact-address-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 6px;
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: clamp(220px, 50vw, 350px);
    max-width: 100%;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-sidebar .quote-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-page-layout {
    align-items: start;
}

@media (max-width: 991px) {
    .page-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        width: 100%;
    }

    .page-layout > .article-content,
    .page-layout > .sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .contact-page,
    .contact-page .container {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
}

.article-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.sidebar-widget {
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.sidebar-links a {
    border-radius: var(--radius-sm);
}

.sidebar-links li.active a {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* ─── Blog ─── */
.blog-card {
    border-radius: var(--radius);
}

/* ─── Footer ─── */
footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(4rem, 8vw, 5.5rem);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark), var(--primary-light));
}

.footer-widget h3 {
    font-size: 1.15rem;
}

/* ─── Forms ─── */
.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
}

.form-control:focus {
    box-shadow: 0 0 0 4px var(--secondary-glow);
}

/* ─── Cookie ─── */
.cookie-popup {
    background: rgba(5, 21, 37, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Floating CTA ─── */
.floating-cta .cta-btn {
    width: 56px;
    height: 56px;
    box-shadow: var(--shadow-lg);
}

/* ─── Section CTA box ─── */
.section-cta-box {
    text-align: center;
    margin-top: 3.5rem;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.section-cta-box h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.section-cta-box p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ─── Mobile nav & contact ─── */
@media (max-width: 768px) {
    .page-hero {
        padding: clamp(2.5rem, 8vw, 3.5rem) 0;
    }

    .page-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

    .page-hero p {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        margin: 24px 0;
        gap: 16px;
    }

    .contact-address-card {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .contact-page .page-layout {
        padding: 2rem 0 2.5rem;
    }

    .contact-page-layout {
        gap: 28px;
    }

    .contact-sidebar .quote-card {
        padding: clamp(22px, 5vw, 32px);
    }

    .contact-sidebar .quote-card:hover {
        transform: none;
    }

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

    .captcha-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .captcha-row .form-control {
        max-width: none !important;
        flex: 1 1 100%;
    }

    .form-checkbox {
        align-items: flex-start;
    }

    .form-checkbox label {
        flex: 1;
        min-width: 0;
        line-height: 1.5;
    }

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

    .footer-grid .footer-widget {
        min-width: 0;
    }

    .footer-contact-item span,
    .footer-contact-item a {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }

    .nav-menu {
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 24px;
        border: 1px solid var(--border-color);
        border-top: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .nav-menu .btn-nav-cta {
        width: 100%;
        margin-top: 8px;
    }

    body.home-page .hero-slider {
        border-radius: 0 0 24px 24px;
    }

    .section.overlap-section {
        margin-top: -40px;
        padding-top: 72px;
    }

    .stats-section,
    .cta-banner {
        max-width: calc(100% - 32px);
        border-radius: var(--radius);
    }

    .slide-content {
        text-align: left;
    }

    .slide-content .btn-group {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-map {
        height: 220px;
    }

    .quote-card {
        padding: 24px 16px;
    }

    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
}
