:root {
    --bg: #f4f7fb;
    --white: #ffffff;
    --navy: #0f172a;
    --navy-dark: #0c1929;
    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --green: #16a34a;
    --green-soft: #ecfdf3;
    --violet: #6366f1;
    --accent: #2563eb;
    --accent-light: #60a5fa;
    --accent-soft: #eff6ff;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
    --landing-nav-height: 68px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.landing-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ── Navigation ── */
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-nav .logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing-nav .logo span {
    color: var(--green);
}

.landing-nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.landing-nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.landing-nav-links a:hover,
.landing-nav-links a.active {
    color: var(--accent);
}

.landing-nav .nav-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.landing-nav .btn-ghost {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.landing-nav .btn-ghost:hover {
    background: rgba(26, 43, 60, 0.06);
}

.landing-nav .btn-secondary-nav {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.landing-nav .btn-secondary-nav:hover {
    background: var(--accent-soft);
}

.landing-nav .btn-primary {
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.landing-nav .btn-primary:hover {
    background: #c62828;
}

/* Wichtige CTAs (rot) – Rest des Themes bleibt blau/grün */
.btn-important,
.landing-nav .btn-primary.btn-important {
    background: linear-gradient(135deg, #ef5350, #e53935) !important;
    color: var(--white) !important;
    border: none;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.btn-important:hover,
.landing-nav .btn-primary.btn-important:hover {
    background: linear-gradient(135deg, #e53935, #c62828) !important;
}

/* ── Hero (Hintergrundbild mit nur CTA-Buttons) ── */
.hero--fresh {
    position: relative;
    min-height: calc(100vh - var(--landing-nav-height));
    min-height: calc(100dvh - var(--landing-nav-height));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bg);
}

.hero--fresh.hero--bg-image {
    background-color: #f4f7fb;
    background-image: url('/images/hintergrund.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    height: calc(100vh - var(--landing-nav-height));
    height: calc(100dvh - var(--landing-nav-height));
    max-height: calc(100vh - var(--landing-nav-height));
    max-height: calc(100dvh - var(--landing-nav-height));
}

.hero--bg-image .hero-cta--overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 3vw, 2rem);
    margin-left: clamp(0.5rem, 2vw, 1rem);
}

.hero--fresh .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem 3rem clamp(1.5rem, 5vw, 4.5rem);
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.65rem;
}

.hero-headline .hl-line {
    display: block;
    color: var(--navy);
}

.hero-headline .hl-blue {
    color: var(--blue);
}

.hero-headline .hl-green {
    color: var(--green);
}

.hero-brand-line {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.hero--fresh .subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    max-width: 400px;
}

.hero-pills {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.hero-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    max-width: 320px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-pill:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-hover);
}

.hero-pill strong {
    display: block;
    font-size: 0.92rem;
    color: var(--navy);
}

.hero-pill span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-pill-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-pill-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-pill-icon--green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.hero-pill-icon--blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.hero-pill-icon--violet {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.hero--fresh .btn-hero-primary.btn-important {
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hero--fresh .btn-hero-primary.btn-important:hover {
    box-shadow: 0 4px 18px rgba(229, 57, 53, 0.45);
}

.hero--fresh .btn-hero-secondary {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(255, 255, 255, 0.9);
}

.hero--fresh .btn-hero-secondary:hover {
    background: var(--blue-soft);
}

/* Legacy hero (Unterseiten-Fallback) */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 72px);
    max-height: 860px;
    overflow: hidden;
    background: var(--bg);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2.5rem 2.5rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    max-width: 540px;
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    line-height: 1.65;
    max-width: 460px;
}

.hero-checklist {
    list-style: none;
    margin-bottom: 1.75rem;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.65rem;
}

.hero-checklist .check-icon {
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.hero-checklist .check-icon svg {
    width: 11px;
    height: 9px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--white);
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-card .card-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-card .card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-card .card-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.7rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-hero-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-hero-primary:hover {
    background: #4f7a71;
}

.btn-hero-secondary {
    background: var(--white);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-hero-secondary:hover {
    background: var(--accent-soft);
}

/* Hero image */
.hero-image {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-image img {
    width: 200%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: right top;
}

.hero-image-fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(95, 141, 131, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #e8ecef 0%, #d5dde3 100%);
}

.hero-badge {
    position: absolute;
    bottom: 16%;
    left: -28px;
    width: 158px;
    height: 158px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    box-shadow: 0 8px 28px rgba(95, 141, 131, 0.45);
    z-index: 3;
}

.hero-badge .badge-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.45rem;
}

.hero-badge .badge-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
}

.hero-badge p {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.35;
}

/* ── Feature bar ── */
.feature-bar {
    background: var(--navy-dark);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.25rem 3rem;
    margin: 0 2rem 0;
    border-radius: var(--radius-lg);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-1.5rem);
}

.feature-bar--fresh {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.feature-bar--fresh .feature-item .feature-icon svg {
    stroke: #4ade80;
}

.feature-item {
    text-align: center;
    color: var(--white);
}

.feature-item .feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item .feature-icon svg {
    width: 34px;
    height: 34px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature-item p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 220px;
    margin: 0 auto;
}

/* ── Footer tagline ── */
.footer-tagline {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    background: var(--bg);
}

.footer-tagline h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.footer-tagline p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green);
}

.footer-copyright {
    text-align: center;
    padding: 1.25rem 1.5rem 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg);
}

.footer-copyright a {
    color: var(--blue);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* ── Subpages (Leistungen, Preise) ── */
.page-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: var(--bg);
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.pricing-campaign-banner {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfdf3, #eff6ff);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--navy);
    font-size: 0.95rem;
}

.pricing-amount--sale {
    color: #16a34a;
}

.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

.feature-group {
    margin-bottom: 2rem;
}

.feature-group h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--navy);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.pricing-grid.pricing-grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1400px;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-hover);
}

.pricing-card--highlight,
.pricing-card--border {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 28px rgba(95, 141, 131, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.pricing-card li {
    padding: 4px 0;
    padding-left: 1.1rem;
    position: relative;
    color: var(--navy);
}

.pricing-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.btn-pricing {
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.btn-pricing:hover {
    background: var(--accent-soft);
}

.btn-pricing-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-pricing-primary:hover {
    background: #1d4ed8;
    color: var(--white);
}

.btn-pricing.btn-important {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: var(--white);
    border-color: transparent;
}

.btn-pricing.btn-important:hover {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: var(--white);
}

.matrix-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 700px;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}

.matrix-table th {
    background: var(--accent-soft);
    color: var(--navy);
    font-weight: 600;
}

.matrix-group {
    background: #eef1f4;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.matrix-check {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
}

.cta-band {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--navy-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 1280px;
    margin: 2rem auto;
}

.cta-band h2 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

.cta-band p {
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.cta-band .btn-hero-primary {
    background: var(--white);
    color: var(--accent);
}

.cta-band .btn-hero-primary:hover {
    background: #f0f0f0;
}

.cta-band .btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero--fresh.hero--bg-image {
        height: calc(100vh - var(--landing-nav-height));
        height: calc(100dvh - var(--landing-nav-height));
        max-height: calc(100vh - var(--landing-nav-height));
        max-height: calc(100dvh - var(--landing-nav-height));
        align-items: flex-end;
    }

    .hero--bg-image .hero-cta--overlay {
        padding-bottom: 1.25rem;
    }

    .hero--fresh .hero-content {
        max-width: none;
        padding: 2.5rem 1.5rem 1rem;
    }

    .pricing-grid.pricing-grid--five {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .pricing-grid--five .pricing-card {
        flex: 0 0 min(240px, 82vw);
        scroll-snap-align: start;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .hero-content {
        padding: 2rem 1.75rem;
    }

    .feature-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        transform: none;
    }

    .landing-nav {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.1rem;
    }

    .hero-pill {
        max-width: none;
    }

    .feature-bar {
        grid-template-columns: 1fr;
    }

    .landing-nav-links {
        display: none;
    }
}

/* ── Admin FAB (Startseite) ── */
.landing-admin-fab {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
}

.landing-admin-fab svg {
    width: 1.25rem;
    height: 1.25rem;
}

.landing-admin-fab:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: var(--shadow-hover);
    color: var(--accent);
    background: var(--accent-soft);
}

.landing-admin-fab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .landing-admin-fab {
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }

    .landing-admin-fab:hover {
        transform: scale(1.06);
    }
}
