/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #f0f9ff;
    --primary-soft: #e0f2fe;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --border-soft: #f1f5f9;
    --accent: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 2px 4px rgba(15,23,42,0.04), 0 4px 8px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.06), 0 8px 24px rgba(15,23,42,0.04);
    --shadow-lg: 0 12px 32px rgba(15,23,42,0.08), 0 24px 48px rgba(15,23,42,0.06);
    --transition: 0.2s ease;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
}

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

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

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    background: var(--bg-alt);
    color: var(--primary);
    border-color: var(--primary-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border-soft);
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text-wrap {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    letter-spacing: -0.01em;
}

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

.header-cta {
    padding: 10px 20px;
    font-size: 14px;
}

/* ===== HERO (centered, with pre-heading badge) ===== */
.hero {
    padding: clamp(64px, 8vw, 104px) 0 clamp(80px, 10vw, 128px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 0%, var(--primary-light) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 30%, var(--primary-light) 0%, transparent 55%);
    z-index: -1;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 760px;
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

/* Pre-heading capsule (added via CSS, before H1) */
.hero h1::before {
    content: 'Notdienst · 24/7 verfügbar';
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
    background: var(--bg);
    border: 1px solid var(--primary-soft);
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
    text-transform: none;
}

.hero h1 {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-sub {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--text-light);
    margin: 0 auto 36px;
    line-height: 1.55;
    letter-spacing: -0.01em;
    max-width: 640px;
}

.hero-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
}

.hero-trust li svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 4px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    box-sizing: content-box;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    box-shadow: var(--shadow-xs);
}

.promo-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.promo-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.promo-note {
    font-size: 13px;
    color: var(--text-light);
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    background: var(--border-soft);
}

.hero-badge-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius);
    padding: 14px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255,255,255,0.6);
    min-width: 160px;
}

.badge-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
}

.badge-rating {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.badge-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.mobile-br {
    display: none;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: clamp(64px, 8vw, 112px) 0;
    position: relative;
}

.services {
    background: var(--bg-alt);
}

h2 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: clamp(16px, 1.3vw, 18px);
    max-width: 620px;
    margin: 0 auto 64px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

/* ===== SERVICES (4 cards, image on top, with counter) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: service-counter;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    counter-increment: service-counter;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-soft);
}

.service-img {
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    position: relative;
}

.service-img::after {
    content: '0' counter(service-counter);
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.95);
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s var(--ease-out);
    background: var(--border-soft);
}

.service-card:hover .service-img img {
    transform: scale(1.04);
}

.service-body {
    padding: 22px 22px 24px;
    flex: 1;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.service-card p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.55;
}

/* ===== BENEFITS (3-column cards with circle icon) ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-soft);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.benefit-icon svg {
    stroke: var(--primary);
    width: 26px;
    height: 26px;
}

.benefit-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
    color: var(--text);
}

.benefit-card p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.55;
}

/* ===== PROCESS (4 cards with filled number) ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-soft);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 18px;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px -4px var(--primary);
}

.process-step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.process-step p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.55;
}

/* ===== REVIEWS (uniform clean cards) ===== */
.reviews {
    background: var(--bg-alt);
}

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

.review-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-soft);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.65;
    margin-bottom: 24px;
    font-style: normal;
    letter-spacing: -0.005em;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.review-author strong {
    color: var(--text);
    font-weight: 600;
}

.review-author span {
    color: var(--text-muted);
}

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

.faq-item {
    border-bottom: 1px solid var(--border-soft);
    background: transparent;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-soft);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 4px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    letter-spacing: -0.015em;
    transition: color var(--transition);
}

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

.faq-chevron {
    transition: transform 0.35s var(--ease-out);
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--text-muted);
}

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

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
    padding: 0 4px 24px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.65;
}

/* ===== FOOTER (dark) ===== */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 64px 0 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand .logo-sub {
    color: #94a3b8;
}

.footer-brand p {
    font-size: 14px;
    max-width: 360px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255,255,255,0.92);
        backdrop-filter: saturate(180%) blur(16px);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--border);
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        justify-content: center;
    }
}

.bottom-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
    background: var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px -4px var(--primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

.bottom-bar-btn:hover,
.bottom-bar-btn:active {
    color: #fff;
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1::before {
        font-size: 12px;
        padding: 7px 14px;
        margin-bottom: 20px;
    }

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

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

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }

    .hero-image img {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .header-phone span {
        display: none;
    }

    .header-cta {
        padding: 9px 16px;
        font-size: 13px;
    }

    body {
        padding-bottom: 88px;
    }

    .mobile-br {
        display: block;
    }

    .hero-trust-row {
        gap: 16px;
    }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-badge-card {
        bottom: 14px;
        right: 14px;
        padding: 12px 14px;
        min-width: 130px;
    }

    .badge-rating {
        font-size: 18px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .faq-question {
        font-size: 16.5px;
        padding: 20px 4px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
}
