/* Lokal gehostete Inter-Schrift (DSGVO-konform, keine Google-Fonts-Anbindung) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Color Palette */
    --color-primary: #0a2a43;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-accent-hover: #0891b2;
    --color-text: #475569;
    --color-text-light: #64748b;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --bw-check-radius-shell: 6px;
    --bw-check-radius-panel: 6px;
    --bw-check-radius-card: 6px;
    --bw-check-radius-control: 4px;
    --bw-check-border: #d7e1ea;
    --bw-check-border-soft: #e2e8f0;
    --bw-check-surface: #f8fafc;
    --bw-check-surface-muted: #f4f7fa;
    --bw-check-shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
    --bw-check-shadow-active: 0 8px 20px rgba(10, 42, 67, 0.10);
    --bw-check-focus: 0 0 0 3px rgba(10, 42, 67, 0.10);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;
    --container-width: 1200px;
    --section-padding: var(--space-8) 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================
   Leistungen & Preise
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html.menu-open,
body.menu-open {
    overflow: hidden;
}

body.menu-open {
    position: fixed;
    left: 0;
    width: 100%;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-dropdown__trigger:hover,
.nav-dropdown__trigger:focus-visible,
.nav-dropdown__trigger.active,
.nav-dropdown.is-open .nav-dropdown__trigger {
    color: #3b82f6;
}

.nav-dropdown__trigger:focus-visible {
    outline: none;
}

.nav-dropdown__chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-dropdown:hover .nav-dropdown__chevron,
.nav-dropdown:focus-within .nav-dropdown__chevron,
.nav-dropdown.is-open .nav-dropdown__chevron {
    transform: rotate(180deg);
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: 308px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.985);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(10, 42, 67, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(10, 42, 67, 0.1), 0 2px 10px rgba(10, 42, 67, 0.04);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, 16px, 0) scale(0.97);
    transform-origin: top center;
    transition:
        opacity 0.3s ease,
        transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s ease;
}

.nav-dropdown__panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel,
.nav-dropdown.is-open .nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0) scale(1);
}

.nav-dropdown__item {
    position: relative;
    display: block;
    padding: 14px 16px 14px 20px;
    border-radius: 7px;
    text-decoration: none;
    color: var(--color-primary);
    opacity: 0;
    transform: translate3d(0, 7px, 0);
    transition:
        background 0.24s ease,
        color 0.24s ease,
        opacity 0.28s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown__item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    border-radius: 999px;
    background: #3b82f6;
    opacity: 0;
    transform: scaleY(0.45);
    transform-origin: center;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown__item + .nav-dropdown__item {
    border-top: 1px solid rgba(10, 42, 67, 0.055);
}

.nav-dropdown:hover .nav-dropdown__item,
.nav-dropdown:focus-within .nav-dropdown__item,
.nav-dropdown.is-open .nav-dropdown__item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.nav-dropdown:hover .nav-dropdown__item:nth-child(1),
.nav-dropdown:focus-within .nav-dropdown__item:nth-child(1),
.nav-dropdown.is-open .nav-dropdown__item:nth-child(1) {
    transition-delay: 0.06s;
}

.nav-dropdown:hover .nav-dropdown__item:nth-child(2),
.nav-dropdown:focus-within .nav-dropdown__item:nth-child(2),
.nav-dropdown.is-open .nav-dropdown__item:nth-child(2) {
    transition-delay: 0.1s;
}

.nav-dropdown:hover .nav-dropdown__item:nth-child(3),
.nav-dropdown:focus-within .nav-dropdown__item:nth-child(3),
.nav-dropdown.is-open .nav-dropdown__item:nth-child(3) {
    transition-delay: 0.14s;
}

.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible,
.nav-dropdown__item.active {
    background: rgba(59, 130, 246, 0.055);
    color: var(--color-primary);
    outline: none;
}

.nav-dropdown__item:hover {
    transform: translate3d(2px, 0, 0);
}

.nav-dropdown__item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.nav-dropdown__title,
.nav-dropdown__subtitle {
    display: block;
}

.nav-dropdown__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary);
}

.nav-dropdown__subtitle {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.35;
    color: #64748b;
}

.nav-links a[href="wert-pruefen.html"] {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.nav-links a[href="wert-pruefen.html"]:hover,
.nav-links a[href="wert-pruefen.html"].active {
    color: var(--color-primary-light);
    background: none;
    background-image: none;
    -webkit-text-fill-color: currentColor;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.admin-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--color-primary);
    text-decoration: none;
    line-height: 1;
    opacity: 1;
    flex-shrink: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.admin-nav-trigger:hover,
.admin-nav-trigger:focus-visible {
    color: #3b82f6;
    opacity: 1;
    outline: none;
}

.admin-nav-trigger svg {
    width: 24px;
    height: 24px;
    display: block;
    overflow: visible;
    vertical-align: middle;
}

.admin-nav-trigger svg * {
    stroke-width: 1.6;
}

.admin-nav-label {
    display: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1a2e4c;
    box-shadow: 0 4px 12px rgba(10, 42, 67, 0.2);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-brand-motif {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    opacity: 0.05;
    z-index: 1;
    filter: blur(1px);
    pointer-events: none;
    animation: float 25s ease-in-out infinite;
}

.hero-brand-motif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.technical-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.25;
    /* Significantly increased for better visibility */
}

.technical-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    mix-blend-mode: darken;
    filter: contrast(1.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-55%) translateX(-20px);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 82px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-primary);
}

h1 .accent {
    background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: #64748b;
    margin-bottom: 48px;
    max-width: 600px;
}

.btn-large {
    background: var(--color-primary);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(10, 42, 67, 0.15);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 42, 67, 0.25);
}

.btn-large:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
}

/* === Hero · Digitale Fachanalysen – ruhige editorial Auswahl === */
.hero-actions-wrapper {
    width: 100%;
    max-width: 640px;
    /* Schiebt die Analysen vom Fließtext weg in den unteren Hero-Bereich.
       Da der Hero vertikal zentriert ist, drückt der große margin-top
       die Headline nach oben und lässt die Analysen unten „schweben". */
    margin-top: clamp(96px, 18vh, 220px);
}

.hero-services {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hero-services__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.hero-services__label::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: #e2e8f0;
    margin: 0 0 12px;
}

.hero-services__list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    font-size: 19px;
    color: var(--color-primary);
    font-weight: 500;
    letter-spacing: -0.005em;
}

.hero-services__link {
    position: relative;
    color: #475569;
    text-decoration: none;
    padding-bottom: 3px;
    transition: color 0.25s ease;
}

.hero-services__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-services__link:hover,
.hero-services__link:focus-visible {
    color: var(--color-primary);
    outline: none;
}

.hero-services__link:hover::after,
.hero-services__link:focus-visible::after {
    transform: scaleX(1);
}

/* WertCheck: subtil priorisiert – etwas dunkler, leicht kräftiger,
   und mit dezent dauerhaft sichtbarer Hairline. */
.hero-services__link--primary {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-services__link--primary::after {
    transform: scaleX(1);
    background: var(--color-primary);
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-services__link--primary:hover::after,
.hero-services__link--primary:focus-visible::after {
    opacity: 1;
}

.hero-services__sep {
    color: #cbd5e1;
    font-weight: 400;
    user-select: none;
}



.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 2px solid #3b82f6;
    font-weight: 800;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-text {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text .arrow {
    transition: transform 0.3s ease;
}

.btn-text:hover .arrow {
    transform: translateX(8px);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.services.services--subpage {
    padding-top: 0;
}

.page-services .services.services--subpage {
    background: white;
}

.services-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.15;
}

.services-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    mix-blend-mode: darken;
    filter: contrast(1.1);
}

.section-header {
    margin-bottom: var(--space-7);
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.tag.white {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.card {
    background: white;
    padding: var(--space-5);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 480px;
    text-decoration: none;
    color: var(--color-primary);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.08);
    border-color: #3b82f633;
}

.card.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: #3b82f6;
    flex-shrink: 0;
}

.card.active .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    min-height: 58px;
}

.card.active h3 {
    color: white;
}

.card p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: var(--space-5);
    line-height: 1.6;
    min-height: 192px;
}

.card.active p {
    color: #94a3b8;
}

.card-list {
    list-style: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list li {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--color-primary);
}

.card.active .card-list li {
    color: white;
}

.card-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 6px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.card.active .card-list li::before {
    background: white;
}

.card-link-cta {
    margin-top: auto;
    padding-top: var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-light);
    transition: all 0.3s ease;
}

.card.active .card-link-cta {
    color: white;
}

.card-link-cta svg {
    transition: transform 0.3s ease;
}

.card:hover .card-link-cta {
    color: var(--color-primary);
}

.card.active:hover .card-link-cta {
    color: white;
}

.card:hover .card-link-cta svg {
    transform: translateX(6px);
}

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

.section-subtext {
    font-size: 16px;
    color: var(--color-text-light);
    margin-top: 12px;
    font-weight: 400;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-card:hover {
    box-shadow: 0 16px 40px rgba(10, 25, 47, 0.08);
    transform: translateY(-4px);
}

.pricing-card--highlight {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.pricing-card--highlight .pricing-category,
.pricing-card--highlight .pricing-title,
.pricing-card--highlight .pricing-price,
.pricing-card--highlight .pricing-currency,
.pricing-card--highlight .pricing-features li {
    color: white;
}

.pricing-card--highlight .pricing-note {
    color: #94a3b8;
}

.pricing-card--highlight .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-card--highlight .pricing-addon {
    color: #7dd3fc;
}

.pricing-card--highlight .pricing-cta {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.pricing-card--highlight .pricing-cta:hover {
    background: #dbeafe;
}

.pricing-card-header {
    margin-bottom: 28px;
}

.pricing-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: 10px;
}

.pricing-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.pricing-price {
    font-size: 44px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1xl);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-bounce);
    position: relative;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--color-primary-light);
}

.pricing-card.highlighted {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(10 42 67 / 0.1), 0 8px 10px -6px rgb(10 42 67 / 0.1);
    z-index: 10;
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-8px);
}

@media (max-width: 1024px) {
    .pricing-card.highlighted {
        transform: scale(1);
    }

    .pricing-card.highlighted:hover {
        transform: translateY(-8px);
    }
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.pricing-card.highlighted .pricing-header h3 {
    color: var(--color-primary);
    font-weight: 800;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.payment-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.pricing-content {
    flex-grow: 1;
}

.pricing-desc {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.pricing-features li::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2a43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.pricing-footer {
    margin-top: 2.5rem;
}

.pricing-note {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.w-full {
    width: 100%;
}

.pricing-currency {
    font-size: 28px;
    font-weight: 700;
}

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

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--color-text);
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.5;
}

.pricing-addon {
    font-weight: 700;
    color: var(--color-primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.pricing-cta:hover {
    background: #1a3a5c;
    transform: translateY(-1px);
}

.pricing-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Pricing Tabs & Extended Cards --- */
.pricing-tabs-section {
    padding: var(--section-padding);
    background: var(--color-surface);
}

.page-prices .pricing-tabs-section {
    background: #ffffff;
    padding-top: 0;
}

.pricing-tabs-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: 0;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 34px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d9e2ec;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 14px 28px rgba(10, 25, 47, 0.05);
}

.tab-btn svg {
    color: var(--color-primary-light);
    transition: color 0.2s ease;
}

.tab-btn:hover {
    border-color: rgba(59, 130, 246, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(10, 25, 47, 0.08);
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 20px 36px rgba(10, 25, 47, 0.16);
}

.tab-btn.active svg {
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.pricing-grid-extended--balanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-prices .btn-primary,
.page-prices .sp-hero a.sp-cta,
.page-prices .tab-btn,
.page-prices .pricing-card-ex {
    border-radius: 0;
}

.pricing-card-ex {
    background: white;
    border: 1px solid #d6e0ea;
    border-radius: 0;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    min-height: 420px;
    box-shadow: 0 16px 34px rgba(10, 25, 47, 0.05);
}

.pricing-card-ex:hover {
    box-shadow: 0 22px 44px rgba(10, 25, 47, 0.08);
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.18);
}

.card-ex-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-5);
    line-height: 1.3;
    min-height: 52px;
}

.card-ex-features {
    list-style: none;
    margin-bottom: var(--space-5);
}

.card-ex-features li {
    font-size: 15px;
    color: var(--color-text);
    padding: 12px 0 12px 28px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #edf2f7;
}

.card-ex-features li::before {
    content: "•";
    color: var(--color-primary-light);
    position: absolute;
    left: 6px;
    font-weight: bold;
    font-size: 20px;
}

.card-ex-features li:last-child {
    border-bottom: none;
}

.card-ex-footer {
    margin-top: auto;
    padding-top: var(--space-5);
    border-top: 1px solid #e2e8f0;
}

.result-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #16a34a;
    /* Green success color like in screenshot */
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-ex-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.card-ex-price .currency {
    font-size: 22px;
    font-weight: 700;
}

.pricing-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.highlight-item {
    background: #f8fafc;
    border-style: dashed;
    border-width: 2px;
}

@media (max-width: 768px) {
    .pricing-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        justify-content: center;
    }

    .pricing-grid-extended--balanced {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-section {

    padding: var(--section-padding);
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.about-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 56px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
    margin-bottom: 56px;
}

.about-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-point svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 4px;
}

.about-point h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.about-point p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.about-cta {
    text-align: center;
}

/* Footer */
.tool-section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.tool-watermark {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(-10deg);
    width: 60%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

.tool-watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    filter: contrast(1.3) brightness(1.1);
}

.glass-card {
    background: var(--color-primary);
    border-radius: 40px;
    padding: 80px;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(-15deg);
}

.glass-card::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background-image: url('logo-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.07;
    filter: brightness(0) invert(1);
    z-index: 0;
    pointer-events: none;
}

.tool-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.tool-text {
    flex: 1;
}

.tool-text h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.tool-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 48px;
    max-width: 500px;
}

.steps-visual {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
}

.step.active {
    background: #3b82f6;
    border-color: #3b82f6;
}

.step-label {
    position: absolute;
    bottom: -32px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.step.active .step-label {
    color: white;
}

.step-divider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tool-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-white-large {
    background: white;
    color: var(--color-primary);
    padding: 24px 64px;
    border-radius: 16px;
    border: none;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-white-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.sub-note {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.footer {
    background: var(--color-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal-text-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards;
}

.reveal-fade {
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Unified Contact and Career Styles */
.sp-hero-bg.sp-hero-bg--abstract {
    background:
        linear-gradient(135deg, rgba(10, 42, 67, 0.94) 0%, rgba(10, 42, 67, 0.86) 50%, rgba(30, 64, 175, 0.78) 100%),
        radial-gradient(circle at top right, rgba(125, 211, 252, 0.28), transparent 42%),
        radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.2), transparent 48%);
    opacity: 1;
}

.sp-hero.sp-hero--compact {
    height: 320px;
    align-items: center;
}

.sp-hero.sp-hero--compact .container {
    padding-bottom: 0;
}

.sp-hero.sp-hero--compact h1 {
    margin-bottom: 0;
}

.sp-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.career-selection {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
}

.career-selection-head {
    max-width: 760px;
    margin-bottom: var(--space-6);
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--space-4);
}

.career-selection-head h2 {
    font-size: 42px;
    line-height: 1.18;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.career-selection-head p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--color-text);
}

.career-options-grid {
    align-items: stretch;
}

.sp-option-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: var(--space-5);
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.05);
}

.career-choice-card {
    min-height: 320px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.career-choice-card:hover {
    border-color: rgba(10, 42, 67, 0.22);
    box-shadow: 0 24px 48px rgba(10, 25, 47, 0.08);
    transform: translateY(-2px);
}

.career-choice-card.is-active {
    border-color: rgba(10, 42, 67, 0.25);
    box-shadow: 0 26px 54px rgba(10, 25, 47, 0.08);
}

.sp-option-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-primary);
}

.sp-option-card h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.sp-option-card p {
    flex-grow: 1;
    margin-bottom: var(--space-5);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.sp-option-card .sp-block-cta {
    margin-top: auto;
}

.sp-option-card .sp-block-cta .arrow {
    display: inline-block;
    margin-left: var(--space-1);
    transition: transform 0.2s ease;
}

.sp-option-card .sp-block-cta:hover .arrow {
    transform: translateX(6px);
}

.sp-form-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.career-detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.career-detail-heading {
    margin-bottom: var(--space-6);
}

.career-detail-copy {
    max-width: 860px;
    margin: 0 auto var(--space-6);
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #d9e2ec;
}

.career-detail-panel {
    display: none;
}

.career-detail-panel.is-active {
    display: block;
}

.career-detail-panel h3 {
    font-size: 32px;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.career-detail-panel>p {
    margin-bottom: var(--space-5);
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
}

.career-detail-panel .sp-list {
    margin-bottom: 0;
}

.sp-form-section.is-hidden {
    display: none;
}

.sp-form-heading {
    max-width: 720px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.sp-form-heading .sp-section-label {
    margin-bottom: var(--space-3);
}

.sp-form-heading h2 {
    font-size: 42px;
    color: var(--color-primary);
    line-height: 1.2;
}

.contact-form-container,
.sp-form-shell {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    padding: var(--space-6);
    border: 1px solid #d9e2ec;
    box-shadow: 0 24px 56px rgba(10, 25, 47, 0.06);
}

.page-contact .sp-form-section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
    background: #ffffff;
}

.page-contact .sp-block.sp-shaded {
    background: #ffffff;
}

.page-contact .sp-hero .container {
    width: 100%;
}

.page-contact .contact-detail-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.page-contact .sp-form-heading {
    width: 100%;
    max-width: none;
    margin: 0 0 var(--space-5);
    text-align: left;
}

.page-contact .sp-form-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px 48px;
    border: 1px solid #d6e0ea;
    box-shadow: 0 16px 34px rgba(10, 25, 47, 0.05);
}

.page-contact .form-row {
    gap: 20px;
}

.page-contact .form-group {
    margin-bottom: 20px;
}

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

.page-contact .form-control {
    padding: 15px 16px;
}

.page-contact textarea.form-control {
    min-height: 160px;
}

.page-contact .form-checkbox {
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

.page-contact .submit-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    text-align: left;
}

.page-contact .submit-btn-container .btn-large {
    width: auto;
    min-width: 280px;
    padding: 17px 32px;
}

.page-contact .submit-note {
    margin-top: 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
}

.form-feedback {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border: 1px solid #d9e2ec;
    font-size: 15px;
    line-height: 1.6;
}

.form-feedback.is-success {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.form-feedback.is-error {
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.07);
    color: #b91c1c;
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-text);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(10, 42, 67, 0.08);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23475569%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px auto;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid #e2e8f0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-primary-light);
    text-decoration: underline;
    font-weight: 600;
}

.form-checkbox a:hover {
    text-decoration: underline;
    color: #0A2A43;
}

.submit-btn-container {
    text-align: center;
}

.submit-btn-container .btn-large {
    width: 100%;
    padding: 18px 24px;
    border-radius: 0;
    border: none;
    font-size: 16px;
    box-shadow: none;
}

.submit-btn-container .btn-large:hover {
    transform: none;
    box-shadow: none;
}

.submit-btn-container .btn-large:disabled {
    opacity: 0.7;
    cursor: wait;
}

.submit-note {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 24px;
    border: 1px dashed #94a3b8;
    border-radius: 0;
    background: #f8fafc;
    color: var(--color-primary);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-upload:hover .file-upload-label {
    border-color: var(--color-primary-light);
    background: rgba(59, 130, 246, 0.05);
}

@media (max-width: 900px) {
    .sp-options-grid {
        grid-template-columns: 1fr;
    }

    .career-selection-head h2 {
        font-size: 36px;
    }

    .career-detail-copy {
        padding: var(--space-5);
    }

    .sp-form-shell {
        padding: var(--space-5);
    }

    .sp-form-heading h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .sp-hero.sp-hero--compact {
        height: 260px;
    }

    .career-selection {
        padding-top: var(--space-6);
        padding-bottom: var(--space-7);
    }

    .sp-block.career-selection {
        padding-top: var(--space-6) !important;
    }

    .career-selection-head {
        margin-bottom: var(--space-5);
        padding-left: var(--space-3);
    }

    .career-selection-head h2 {
        font-size: 30px;
    }

    .career-selection-head p {
        font-size: 16px;
    }

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

    .contact-form-container,
    .sp-form-shell {
        padding: var(--space-5) var(--space-4);
    }

    .sp-option-card {
        padding: var(--space-5) var(--space-4);
    }

    .career-choice-card {
        min-height: auto;
    }

    .career-detail-copy {
        margin-bottom: var(--space-4);
        padding: var(--space-4);
    }

    .career-detail-panel h3 {
        font-size: 26px;
    }

    .sp-block.sp-form-section {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7);
    }
}

/* ============================
   Subpage Layout System (sp-)
   ============================ */

/* ─── Full-width Hero ─── */
.sp-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin-top: 110px;
    overflow: hidden;
    background: var(--color-primary);
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    opacity: 0.22;
}

.sp-hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 56px;
    width: 100%;
}

.sp-hero-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 14px;
}

.sp-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 12px;
}

.sp-hero h1 .sp-first-line {
    display: block;
    color: white;
    -webkit-text-fill-color: white;
}

.sp-hero h1 .sp-accent {
    display: block;
    background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-hero-sub {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 32px;
}

.sp-hero a.sp-cta {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #60a5fa;
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.25s ease, color 0.25s ease;
}

.sp-hero a.sp-cta:hover {
    background: #60a5fa;
    color: var(--color-primary);
}

/* ─── Intro Text ─── */
.sp-intro {
    padding: var(--space-7) 0;
    background: white;
}

.sp-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 820px;
    margin-left: 0;
    margin-right: auto;
    border-left: 3px solid var(--color-primary-light);
    padding-left: 24px;
}

/* ─── Content Blocks ─── */
.sp-block {
    padding: var(--space-8) 0;
    background: white;
}

.sp-block.career-selection {
    padding-top: var(--space-7);
}

.sp-intro+.sp-block,
.sp-intro+.pricing-tabs-section,
.sp-intro+.services.services--subpage {
    padding-top: 0 !important;
}

.sp-block.sp-shaded {
    background: var(--color-surface);
}

.sp-block-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

.sp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: flex-start;
}

.sp-grid.sp-reverse .sp-text {
    order: 2;
}

.sp-grid.sp-reverse .sp-img {
    order: 1;
}

/* ─── Text Side ─── */
.sp-text .sp-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
    margin-bottom: var(--space-3);
}

.sp-text h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.sp-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.sp-label-small {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.sp-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6);
}

.sp-list li {
    font-size: 15px;
    color: var(--color-text);
    padding: var(--space-1) 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.sp-list li::before {
    content: '—';
    color: var(--color-primary-light);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.page-about .sp-list li {
    gap: 0;
}

.page-about .sp-list li::before {
    content: none;
}

.sp-block-cta {
    display: inline-block;
    padding: 13px 28px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sp-block-cta:hover {
    background: var(--color-primary);
    color: white;
}

/* ─── Image Side ─── */
.sp-img {
    position: relative;
}

.sp-img img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: none;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
}

.sp-img-caption {
    margin-top: 12px;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* ─── Final CTA Banner ─── */
.sp-cta-section {
    background: var(--color-primary);
    padding: 80px 0;
    text-align: center;
}

.sp-cta-section .eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 16px;
}

.sp-cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 32px;
}

.sp-cta-final {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sp-local-seo,
.sp-faq {
    padding: 82px 0;
    background: #fff;
}

.sp-local-seo {
    border-top: 1px solid rgba(10, 42, 67, 0.08);
}

.sp-local-seo .container,
.sp-faq .container {
    max-width: 1040px;
}

.sp-local-seo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 48px;
    align-items: start;
}

.sp-local-seo h2,
.sp-faq h2 {
    color: #0a2a43;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    margin: 0 0 22px;
}

.sp-local-seo p,
.sp-faq p {
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.sp-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.sp-districts li {
    border: 1px solid rgba(10, 42, 67, 0.14);
    color: #0a2a43;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    background: #f8fafc;
}

.sp-local-seo__box {
    background: #f8fafc;
    border: 1px solid rgba(10, 42, 67, 0.1);
    padding: 28px;
}

.sp-local-seo__box h3 {
    color: #0a2a43;
    font-size: 20px;
    margin: 0 0 14px;
}

.sp-faq {
    background: #f8fafc;
}

.sp-faq__grid {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.sp-faq__item {
    background: #fff;
    border: 1px solid rgba(10, 42, 67, 0.1);
    padding: 24px 26px;
}

.sp-faq__item h3 {
    color: #0a2a43;
    font-size: 19px;
    margin: 0 0 10px;
}

.sp-faq__item p {
    font-size: 15.5px;
    margin: 0;
}

/* Valuation Page */
.page-valuation .sp-hero {
    height: 420px;
    margin-top: 110px;
    align-items: flex-end;
    padding: 0;
    background: var(--color-primary);
}

.page-valuation .sp-hero::before {
    content: none;
}

.page-valuation .sp-hero-bg {
    opacity: 0.22;
    background-position: center center;
    transform: none;
}

.page-valuation .sp-hero .container {
    width: 100%;
    padding-bottom: 56px;
}

.page-career .sp-hero .container {
    width: 100%;
}

.page-valuation .sp-hero-sub {
    margin-bottom: 32px;
}

.page-valuation .sp-tool-section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-8);
    background: #ffffff;
}

.page-valuation .sp-tool-intro {
    max-width: 760px;
    margin-bottom: var(--space-5);
    border-left: 3px solid var(--color-primary-light);
    padding-left: var(--space-4);
}

.page-valuation .sp-tool-intro .sp-section-label {
    display: block;
    margin-bottom: var(--space-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.page-valuation .sp-tool-intro h2 {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.page-valuation .sp-tool-intro p {
    max-width: 760px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.page-valuation .sp-tool-intro .sp-tool-kicker {
    margin-bottom: var(--space-3);
    font-size: 16px;
    line-height: 1.6;
    color: #657489;
}

.page-valuation .sp-tool-layout {
    display: block;
}

.page-valuation .sp-tool-embed {
    border: 1px solid #d7e1eb;
    background: #f7f9fb;
    box-shadow: 0 24px 54px rgba(10, 25, 47, 0.06);
    overflow: hidden;
}

.page-valuation .sp-tool-embed iframe {
    display: block;
    width: 100%;
    min-height: 820px;
    border: 0;
    background: #f7f9fb;
    transition: height 220ms ease;
}

.page-flaechencheck .flaechen-tool-section {
    background: #ffffff;
    padding-top: var(--space-7);
}

.flaechen-hero-bg {
    background-image: url("wert prüfen 2.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.fc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: var(--space-5);
    align-items: start;
    overflow: visible;
}

.fc-calculator {
    display: grid;
    gap: var(--space-4);
}

.fc-tool-header {
    grid-column: 1 / -1;
    padding: 0 0 12px;
    border-bottom: 3px solid var(--color-primary);
}

.fc-tool-product {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
}

.fc-panel,
.fc-result,
.fc-report-section .sp-form-shell {
    background: #ffffff;
    border: 1px solid #d7e1eb;
    box-shadow: 0 24px 54px rgba(10, 25, 47, 0.06);
}

.fc-panel,
.fc-result {
    padding: var(--space-5);
}

.fc-panel h3,
.fc-room-header h3 {
    margin: 0 0 var(--space-4);
    font-size: 22px;
    line-height: 1.25;
    color: var(--color-primary);
}

.fc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.fc-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.fc-secondary-button,
.fc-report-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--color-primary);
    color: #ffffff;
    padding: 13px 18px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.fc-secondary-button:hover,
.fc-report-link:hover {
    background: #061d2f;
}

.fc-address-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: -4px;
    margin-bottom: var(--space-3);
}

.fc-geocode-status {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.fc-geocode-status.is-success {
    color: #047857;
    font-weight: 700;
}

.fc-geocode-status.is-error {
    color: #b91c1c;
    font-weight: 700;
}

.fc-map {
    height: 280px;
    border: 1px solid #d7e1eb;
    background: #f8fafc;
    margin-top: var(--space-3);
    overflow: hidden;
}

.fc-map-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.fc-map-marker {
    width: 22px;
    height: 22px;
    border: 3px solid #ffffff;
    background: var(--color-primary);
    box-shadow: 0 8px 18px rgba(10, 42, 67, 0.24);
}

.fc-table-wrap {
    overflow-x: auto;
    max-width: 100%;
}

.fc-room-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.fc-room-table th {
    padding: 12px 10px;
    border-bottom: 1px solid #d7e1eb;
    text-align: left;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #64748b;
}

.fc-room-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

.fc-room-table input,
.fc-room-table select {
    width: 100%;
    border: 1px solid #cbd5e1;
    padding: 12px;
    font: inherit;
    color: var(--color-text);
    background: #ffffff;
}

.fc-room-table input:focus,
.fc-room-table select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(10, 42, 67, 0.08);
}

.fc-room-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
}

.fc-remove-room {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fc-remove-room:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.fc-add-room-bottom {
    display: none;
}

.fc-room-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 3px solid #f97316;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #9a3412;
    margin-top: 6px;
}

.fc-room-warning[hidden] {
    display: none;
}

.fc-room-warning::before {
    content: "⚠";
    flex-shrink: 0;
    font-size: 14px;
}

.fc-keller-warning {
    margin: 0 0 var(--space-3);
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.fc-help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.fc-help-grid div {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    padding: var(--space-3);
}

.fc-help-grid div:nth-child(2) {
    border-color: #fde68a;
    background: #fffbeb;
}

.fc-help-grid strong,
.fc-help-grid span {
    display: block;
}

.fc-help-grid strong {
    margin-bottom: 6px;
    color: var(--color-primary);
}

.fc-help-grid span {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.fc-result {
    position: sticky;
    top: 108px;
}

.fc-result-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
}

.fc-status {
    margin-bottom: var(--space-4);
    padding: 14px 16px;
    border: 1px solid;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

.fc-status.is-plausibel {
    color: #065f46;
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.fc-status.is-pruefenswert {
    color: #92400e;
    border-color: #fde68a;
    background: #fffbeb;
}

.fc-status.is-auffaellig {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.fc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.fc-result-grid div {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: var(--space-3);
}

.fc-result-grid span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.fc-result-grid strong {
    display: block;
    font-size: 20px;
    color: var(--color-primary);
}

.fc-summary {
    margin: var(--space-4) 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}

.fc-report-link {
    width: 100%;
}

.fc-info-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.fc-info-head {
    max-width: 780px;
    margin-bottom: var(--space-5);
}

.fc-info-head h2 {
    margin: 8px 0 var(--space-3);
    font-size: 38px;
    line-height: 1.25;
    color: var(--color-primary);
}

.fc-info-head p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.fc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.fc-info-card {
    background: #ffffff;
    border: 1px solid #d7e1eb;
    padding: var(--space-5);
}

.fc-info-card h3 {
    margin: 0 0 var(--space-3);
    font-size: 20px;
    line-height: 1.25;
    color: var(--color-primary);
}

.fc-info-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.fc-source-note {
    margin: var(--space-4) 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.fc-source-note a {
    color: var(--color-primary-light);
    font-weight: 700;
}

.fc-report-section .sp-form-heading {
    max-width: 760px;
    margin-bottom: var(--space-5);
}

.fc-report-section .sp-form-heading h2 {
    margin: 8px 0 var(--space-3);
    font-size: 38px;
    line-height: 1.25;
    color: var(--color-primary);
}

.fc-report-section .sp-form-heading p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

.fc-report-section .sp-form-shell {
    padding: var(--space-5);
}

@media (max-width: 1120px) {
    .page-valuation .sp-tool-embed iframe {
        min-height: 720px;
    }

    .fc-shell {
        grid-template-columns: 1fr;
    }

    .fc-result {
        position: static;
        max-width: none;
    }
}

@media (max-width: 768px) {
    /* Mobile WertCheck: native App-Feel — kein Hero, kompaktere Navbar, Tool sitzt direkt unter dem Header */
    .page-valuation .navbar {
        padding: 8px 0;
        background: rgba(255, 255, 255, 0.92);
    }

    .page-valuation .logo-img {
        height: 80px;
    }

    .page-valuation .sp-hero {
        position: relative;
        height: auto;
        min-height: 220px;
        padding: 28px 0 24px;
        margin: 0;
        overflow: hidden;
        clip: auto;
        white-space: normal;
        background: var(--color-primary);
    }

    .page-valuation .sp-hero .container {
        padding-bottom: 0;
    }

    .page-valuation .sp-hero h1 {
        font-size: clamp(2rem, 8vw, 2.55rem) !important;
        margin-bottom: 12px;
    }

    .page-valuation .sp-hero-sub {
        max-width: 32rem;
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.55;
    }

    .page-valuation .sp-hero a.sp-cta {
        display: none;
    }

    .page-valuation .sp-tool-section {
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 24px;
        background: #ffffff;
    }

    .page-valuation .sp-tool-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-valuation .sp-tool-intro {
        display: none;
    }

    .page-valuation .sp-tool-embed {
        border: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .page-valuation .sp-tool-embed iframe {
        min-height: 240px;
        background: transparent;
    }

    .fc-grid-2,
    .fc-help-grid,
    .fc-info-grid,
    .fc-result-grid {
        grid-template-columns: 1fr;
    }

    .fc-room-header {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-address-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-panel,
    .fc-result,
    .fc-report-section .sp-form-shell {
        padding: var(--space-4);
    }
}

@media (max-width: 640px) {
    .fc-table-wrap {
        overflow-x: visible;
    }

    /* === Top-Add-Button auf Mobile verstecken === */
    .fc-room-header #fc-add-room {
        display: none;
    }

    .fc-room-header {
        margin-bottom: 4px;
    }

    /* === Tabelle als Card-Liste === */
    .fc-room-table,
    .fc-room-table thead,
    .fc-room-table tbody,
    .fc-room-table tr,
    .fc-room-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .fc-room-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .fc-room-table thead {
        display: none;
    }

    /* === Card pro Raum === */
    .fc-room-table tbody tr {
        position: relative;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 14px 14px 12px;
        margin-bottom: 10px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    /* Alle Default-Labels unsichtbar */
    .fc-room-table td::before {
        display: none;
    }

    .fc-room-table td {
        padding: 0;
        border: none;
    }

    /* === Zeile 1: Raumname (groß, prominent) === */
    .fc-room-table td:nth-child(1) {
        padding-right: 36px;
        margin-bottom: 12px;
    }

    .fc-room-table td:nth-child(1) input {
        width: 100%;
        font-size: 16px;
        font-weight: 700;
        color: #0A2A43;
        border: none;
        border-bottom: 1.5px solid #e2e8f0;
        border-radius: 0;
        padding: 4px 0 6px;
        background: transparent;
    }

    .fc-room-table td:nth-child(1) input:focus {
        border-bottom-color: #0A2A43;
        outline: none;
    }

    /* === Löschen-Button: absolute oben rechts (Button direkt positioniert) === */
    .fc-room-table tbody tr td:nth-child(5) {
        display: contents;
    }

    .fc-room-table tbody tr .fc-remove-room {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-size: 16px;
        line-height: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #94a3b8;
        z-index: 2;
    }

    /* Mehr Platz rechts vom Namen-Input damit X nicht überlappt */
    .fc-room-table td:nth-child(1) {
        padding-right: 44px;
    }

    /* === Zeile 2: Grundfläche → Wohnfläche (nebeneinander) === */
    .fc-room-table td:nth-child(2) {
        display: inline-block;
        width: 48%;
        vertical-align: bottom;
    }

    .fc-room-table td:nth-child(4) {
        display: inline-block;
        width: 48%;
        vertical-align: bottom;
        text-align: right;
    }

    .fc-room-table td:nth-child(2)::before,
    .fc-room-table td:nth-child(4)::before {
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .fc-room-table td:nth-child(2)::before {
        content: "Grundfläche m²";
    }

    .fc-room-table td:nth-child(4)::before {
        content: "→ Wohnfläche";
    }

    .fc-room-table td:nth-child(2) input {
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        padding: 8px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #f8fafc;
    }

    .fc-room-table td:nth-child(4) strong {
        font-size: 18px;
        font-weight: 800;
        color: #0A2A43;
        line-height: 1.4;
        display: inline-block;
        padding: 8px 0;
    }

    /* === Zeile 3: Anrechnung-Select (volle Breite) === */
    .fc-room-table td:nth-child(3) {
        margin-top: 12px;
    }

    .fc-room-table td:nth-child(3)::before {
        display: block;
        content: "Anrechnung";
        margin-bottom: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .fc-room-table td:nth-child(3) select {
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        padding: 9px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        background: #ffffff;
    }

    .fc-room-hint {
        margin-top: 6px;
        font-size: 11px;
        color: #64748b;
    }

    /* === Keller-Warnung als eigene Zeile unter der Card === */
    .fc-room-table tbody tr + tr:has(.fc-room-warning) {
        border: none;
        background: transparent;
        padding: 0;
        margin-top: -6px;
        margin-bottom: 10px;
        box-shadow: none;
    }

    /* === "Raum hinzufügen"-Button unter der Liste === */
    .fc-add-room-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px;
        margin-top: 4px;
        font-size: 15px;
        font-weight: 700;
        color: #0A2A43;
        background: #ffffff;
        border: 1.5px dashed #94a3b8;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .fc-add-room-bottom:hover,
    .fc-add-room-bottom:active {
        background: #f1f5f9;
        border-color: #0A2A43;
        border-style: solid;
    }

    .fc-map {
        height: 240px;
    }

    .fc-status {
        font-size: 25px;
    }

    .fc-result-grid strong {
        font-size: 18px;
    }

    .fc-info-head h2,
    .fc-report-section .sp-form-heading h2 {
        font-size: 30px;
    }
}

/* BAUWERT Check System: FlaechenCheck refinement */
.page-flaechencheck .flaechen-tool-section {
    background: #ffffff;
}

.page-flaechencheck .sp-tool-intro {
    max-width: 820px;
    margin-bottom: var(--space-4);
}

.fc-shell {
    gap: var(--space-4);
    min-width: 0;
}

.fc-calculator,
.fc-panel,
.fc-result {
    min-width: 0;
}

.fc-panel,
.fc-result,
.fc-info-card,
.fc-report-section .sp-form-shell {
    border-color: var(--bw-check-border);
    border-radius: var(--bw-check-radius-panel);
    box-shadow: var(--bw-check-shadow-panel);
}

.fc-panel,
.fc-result {
    padding: 28px;
}

.fc-panel h3,
.fc-room-header h3 {
    margin-bottom: var(--space-3);
    font-size: 20px;
    letter-spacing: 0;
}

.fc-secondary-button,
.fc-report-link,
.fc-add-room-bottom,
.fc-report-section .btn-large {
    min-height: 46px;
    border-radius: var(--bw-check-radius-control);
    box-shadow: none;
}

.fc-secondary-button,
.fc-report-link {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
}

.fc-report-section .btn-large {
    width: 100%;
}

.page-flaechencheck .form-control,
.fc-room-table input,
.fc-room-table select {
    min-height: 46px;
    border-color: #cbd5e1;
    border-radius: var(--bw-check-radius-control);
    background: #ffffff;
}

.page-flaechencheck .form-control:focus,
.fc-room-table input:focus,
.fc-room-table select:focus {
    border-color: var(--color-primary);
    box-shadow: var(--bw-check-focus);
}

.fc-table-wrap {
    border: 1px solid var(--bw-check-border-soft);
    border-radius: var(--bw-check-radius-panel);
    background: #ffffff;
}

.fc-room-table {
    min-width: 680px;
}

.fc-room-table th {
    background: var(--bw-check-surface);
    border-bottom-color: var(--bw-check-border-soft);
    letter-spacing: 0.08em;
}

.fc-room-table td {
    border-bottom-color: #edf2f7;
}

.fc-room-table tbody tr:last-child td {
    border-bottom: 0;
}

.fc-room-hint {
    color: #64748b;
}

.fc-remove-room {
    border-radius: var(--bw-check-radius-control);
}

.fc-help-grid div {
    border-color: var(--bw-check-border-soft);
    border-radius: var(--bw-check-radius-card);
    background: #f4f8ff;
}

.fc-help-grid div:nth-child(2) {
    border-color: #eadca8;
    background: #fffaf0;
}

.fc-help-grid div:first-child {
    border-color: #c9d8ee;
}

.fc-result {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.fc-status {
    border-radius: var(--bw-check-radius-card);
    font-size: 24px;
    letter-spacing: 0;
}

.fc-status.is-plausibel {
    color: #065f46;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.fc-status.is-pruefenswert {
    color: #854d0e;
    border-color: #fde68a;
    background: #fffbeb;
}

.fc-status.is-auffaellig {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.fc-result-grid {
    gap: var(--space-2);
}

.fc-result-grid div {
    border-color: var(--bw-check-border-soft);
    border-radius: var(--bw-check-radius-card);
    background: #ffffff;
}

.fc-result-grid strong {
    font-size: 18px;
}

.fc-summary {
    color: #475569;
}

.fc-report-section .sp-form-shell {
    max-width: 760px;
}

.fc-report-section .form-row {
    gap: var(--space-3);
}

.fc-report-section .form-checkbox {
    align-items: flex-start;
    border: 1px solid var(--bw-check-border-soft);
    border-radius: var(--bw-check-radius-card);
    background: var(--bw-check-surface);
    padding: var(--space-3);
}

.fc-report-section .form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.fc-report-section .form-checkbox a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .page-flaechencheck {
        overflow-x: hidden;
    }

    .page-flaechencheck main,
    .page-flaechencheck .flaechen-tool-section,
    .page-flaechencheck .flaechen-tool-section .container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .page-flaechencheck .sp-hero {
        min-height: 0;
        padding: 24px 0 22px;
    }

    .page-flaechencheck .sp-hero-content {
        max-width: 100%;
    }

    .page-flaechencheck .sp-hero h1 {
        max-width: 10ch;
        font-size: clamp(2rem, 11vw, 2.75rem) !important;
        line-height: 1.04;
    }

    .page-flaechencheck .sp-hero-sub {
        max-width: 31ch;
        font-size: 15px;
        line-height: 1.5;
    }

    .page-flaechencheck .flaechen-tool-section {
        padding-top: var(--space-3);
    }

    .fc-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-3);
        width: 100%;
        max-width: 100%;
    }

    .fc-calculator,
    .fc-panel,
    .fc-result,
    .fc-grid-2,
    .fc-address-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .fc-grid-2,
    .fc-help-grid,
    .fc-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .fc-panel,
    .fc-result,
    .fc-report-section .sp-form-shell {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        padding: var(--space-4);
    }

    .fc-panel:first-child {
        border-top: 1px solid var(--bw-check-border-soft);
    }

    .fc-panel h3,
    .fc-room-header h3 {
        font-size: 19px;
        text-align: left;
    }

    .page-flaechencheck .form-group,
    .page-flaechencheck .form-control {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .fc-secondary-button,
    .fc-report-link,
    .fc-add-room-bottom,
    .fc-report-section .btn-large {
        width: 100%;
        min-height: 48px;
    }

    .fc-geocode-status {
        display: block;
        min-height: 0;
    }

    .fc-result {
        background: #ffffff;
    }

    .fc-status {
        margin-bottom: var(--space-3);
        padding: 12px 14px;
        font-size: 21px;
    }

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

    .fc-report-section .form-row {
        grid-template-columns: 1fr;
    }

    .fc-report-section .submit-btn-container {
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .fc-table-wrap {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .fc-room-table tbody {
        display: grid;
        gap: var(--space-3);
    }

    .fc-room-table tbody tr.fc-room-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 12px;
        margin: 0;
        padding: 14px;
        border: 1px solid var(--bw-check-border-soft);
        border-radius: var(--bw-check-radius-card);
        background: #ffffff;
        box-shadow: none;
    }

    .fc-room-cell-name {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }

    .fc-room-cell-action {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .fc-room-table tbody tr .fc-remove-room {
        position: static;
        width: 40px;
        height: 40px;
        border-radius: var(--bw-check-radius-control);
        background: var(--bw-check-surface);
        font-size: 22px;
    }

    .fc-room-table td:nth-child(1) input {
        min-height: 42px;
        border: 1px solid transparent;
        border-bottom-color: var(--bw-check-border-soft);
        border-radius: 0;
        padding: 7px 0;
        font-size: 16px;
    }

    .fc-room-table td:nth-child(2),
    .fc-room-table td:nth-child(4) {
        display: block;
        width: auto;
        text-align: left;
    }

    .fc-room-cell-area {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .fc-room-cell-type {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 0 !important;
    }

    .fc-room-cell-result {
        grid-column: 1 / -1;
        grid-row: 4;
        padding: 12px 14px !important;
        border: 1px solid var(--bw-check-border-soft) !important;
        border-radius: var(--bw-check-radius-card);
        background: var(--bw-check-surface);
    }

    .fc-room-table td:nth-child(2)::before,
    .fc-room-table td:nth-child(3)::before,
    .fc-room-table td:nth-child(4)::before {
        margin-bottom: 6px;
        letter-spacing: 0.08em;
        color: #64748b;
    }

    .fc-room-table td:nth-child(2)::before {
        content: "Grundfläche";
    }

    .fc-room-table td:nth-child(4)::before {
        content: "Wohnfläche";
    }

    .fc-room-table td:nth-child(2) input,
    .fc-room-table td:nth-child(3) select {
        min-height: 48px;
        padding: 11px 12px;
        border-color: #cbd5e1;
        border-radius: var(--bw-check-radius-control);
        background: #ffffff;
    }

    .fc-room-table td:nth-child(4) strong {
        padding: 0;
        font-size: 20px;
    }

    .fc-add-room-bottom {
        margin-top: var(--space-3);
        border-radius: var(--bw-check-radius-card);
        border-color: #94a3b8;
        background: #ffffff;
    }

    .fc-result-grid {
        grid-template-columns: 1fr;
    }

    .fc-report-section .form-checkbox {
        padding: 14px;
    }
}

@media (max-width: 900px) {
    .sp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-local-seo,
    .sp-faq {
        padding: 58px 0;
    }

    .sp-local-seo__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sp-grid.sp-reverse .sp-text,
    .sp-grid.sp-reverse .sp-img {
        order: unset;
    }

    .sp-hero h1 {
        font-size: 36px;
    }

    .sp-intro {
        padding: 48px 0 0;
    }
}


.subpage-hero {
    padding: 160px 0 100px;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.subpage-hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    filter: blur(60px);
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.subpage-hero-content h1 {
    font-size: 52px;
    margin-bottom: 24px;
}

.subpage-hero-content p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 40px;
    line-height: 1.7;
}

.subpage-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(10, 42, 67, 0.1);
}

.subpage-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.content-section {
    padding: 100px 0;
    background: white;
}

.content-section.bg-surface {
    background: var(--color-surface);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-grid.reverse .content-text {
    order: 2;
}

.content-grid.reverse .content-visual {
    order: 1;
}

.content-text h2 {
    font-size: 36px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.content-text p {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 24px;
}

.content-text ul {
    list-style: none;
    margin-top: 32px;
}

.content-text ul li {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.content-text ul li svg {
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 4px;
}

.content-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08);
    aspect-ratio: 4/3;
    background: var(--color-surface);
}

.content-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================
   Global Angular UI
   ============================ */

.btn-primary,
.btn-large,
.btn-secondary,
.btn-white-large,
.tag,
.popular-badge,
.card,
.card-icon,
.pricing-card,
.pricing-cta,
.tab-btn,
.pricing-card-ex,
.glass-card,
.step,
.sp-hero a.sp-cta,
.sp-block-cta,
.sp-cta-final,
.contact-form-container,
.sp-form-shell,
.file-upload-label,
.subpage-hero-image,
.content-visual {
    border-radius: 0 !important;
}

.card-list li::before,
.pricing-card.highlighted,
.pricing-card.highlighted:hover {
    border-radius: 0 !important;
}

.content-visual:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {

    .subpage-hero .container,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .content-grid.reverse .content-text,
    .content-grid.reverse .content-visual {
        order: unset;
    }

    .subpage-hero-content h1 {
        font-size: 40px;
    }

}

/* ============================
   Unified Mobile Optimization
   ============================ */

/* Global Mobile Fixes */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
        /* Offset for anchor links */
        overflow-x: hidden;
    }

    body {
        font-size: 15px;
        overflow-x: hidden;
        width: 100%;
        position: relative;
        padding-top: 80px;
        /* Offset for fixed header on mobile */
    }

    section {
        scroll-margin-top: 100px;
        /* Ensure sections don't start under header */
    }

    * {
        box-sizing: border-box;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 32px !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-4);
    }

    .card {
        padding: var(--space-5) var(--space-4) !important;
        min-height: auto !important;
    }

    .card p {
        margin-bottom: var(--space-4);
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 15px;
        /* Increased touch target */
        margin-right: -10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Nav Links Mobile Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(85vw, 360px);
        max-width: 100%;
        height: 100dvh;
        min-height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
            visibility 0s linear 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        /* Increased to ensure visibility above all content */
        padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        /* Allow menu to scroll if links exceed height */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        will-change: transform;
    }

    .nav-links.active {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links:not(.active) .nav-dropdown__panel {
        visibility: hidden;
    }

    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        min-height: 100vh;
        background: rgba(10, 42, 67, 0.5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 1500;
        pointer-events: none;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @supports (-webkit-touch-callout: none) {
        .nav-links {
            min-height: -webkit-fill-available;
        }

        .nav-backdrop {
            min-height: -webkit-fill-available;
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown__trigger {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 10px;
        font-size: 18px;
        font-weight: 600;
    }

    .nav-dropdown__panel {
        position: static;
        width: 100%;
        max-height: 0;
        margin-top: 0;
        padding: 0 8px;
        overflow: hidden;
        border-radius: 10px;
        background: rgba(248, 250, 252, 0.92);
        border: 1px solid rgba(10, 42, 67, 0.08);
        box-shadow: none;
        opacity: 0;
        visibility: visible;
        pointer-events: none;
        transform: none;
        transition:
            max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.24s ease,
            padding 0.28s ease,
            margin 0.28s ease;
    }

    .nav-dropdown__panel::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown__panel,
    .nav-dropdown:focus-within .nav-dropdown__panel {
        max-height: 0;
        margin-top: 0;
        padding: 0 8px;
        opacity: 0;
        pointer-events: none;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown__panel {
        max-height: 320px;
        margin-top: 4px;
        padding: 8px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown__chevron {
        transform: rotate(180deg);
    }

    .nav-dropdown__item {
        text-align: left;
        padding: 13px 14px;
    }

    .nav-dropdown__item::before {
        display: none;
    }

    .nav-dropdown__title {
        font-size: 15px;
    }

    .nav-dropdown__subtitle {
        font-size: 12px;
    }

    .nav-links a {
        font-size: 18px;
        font-weight: 600;
        display: block;
        padding: 10px;
    }

    .nav-links .admin-nav-item {
        display: flex;
        justify-content: center;
    }

    .nav-links .admin-nav-trigger {
        display: inline-flex;
        width: 100%;
        min-height: 48px;
        height: auto;
        gap: 8px;
        padding: 10px;
        font-size: 18px;
        font-weight: 600;
    }

    .nav-links .admin-nav-label {
        display: inline;
    }

    .nav-links .admin-nav-trigger svg {
        width: 22px;
        height: 22px;
    }

    [data-aos="fade-left"],
    [data-aos="fade-right"],
    [data-aos="fade-up-left"],
    [data-aos="fade-up-right"],
    [data-aos="fade-down-left"],
    [data-aos="fade-down-right"] {
        transform: translate3d(0, 16px, 0) !important;
    }

    [data-aos="fade-left"].aos-animate,
    [data-aos="fade-right"].aos-animate,
    [data-aos="fade-up-left"].aos-animate,
    [data-aos="fade-up-right"].aos-animate,
    [data-aos="fade-down-left"].aos-animate,
    [data-aos="fade-down-right"].aos-animate {
        transform: translate3d(0, 0, 0) !important;
    }

    /* Hero Mobile Adjustments */
    .hero {
        height: auto;
        min-height: 85svh;
        /* Using svh for better mobile UA support */
        padding-top: 60px;
        padding-bottom: 60px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3rem) !important;
        /* Slightly smaller to prevent cutoffs */
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        line-height: 1.5;
    }

    .hero-actions-wrapper {
        max-width: 100%;
        margin: clamp(40px, 9vh, 80px) auto 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-services {
        align-items: center;
        gap: 18px;
    }

    .hero-services__label {
        font-size: 10.5px;
    }

    /* Hairline mittig zur zentrierten mobilen Komposition ausrichten */
    .hero-services__label::before {
        margin: 0 auto 12px;
    }

    .hero-services__list {
        justify-content: center;
        gap: 12px 16px;
        font-size: 17px;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        padding: 18px 24px;
        font-size: 16px;
    }

    .card h3,
    .card p,
    .card-ex-title {
        min-height: 0;
    }

    /* Brand Motif Mobile */
    .hero-brand-motif {
        width: 300px;
        height: 300px;
        right: -50px;
        opacity: 0.03;
    }

    /* Pricing Section Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Services & About Section Spacing */
    .services,
    .about-section,
    .pricing-section,
    .pricing-tabs-section,
    .sp-block {
        padding: var(--space-7) 0 !important;
        text-align: center;
    }

    .section-header {
        text-align: center;
        margin-bottom: var(--space-6);
    }

    .tag {
        margin-left: auto;
        margin-right: auto;
    }

    /* Subpages Mobile */
    .sp-hero {
        height: auto;
        min-height: 400px;
        margin-top: 0;
        padding: 64px 0 48px;
        text-align: left;
        align-items: flex-end;
    }

    .sp-hero .container {
        padding-bottom: 0;
    }

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

    .sp-hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
        margin-bottom: 16px;
    }

    .sp-hero-sub {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .sp-hero a.sp-cta {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 16px 20px;
    }

    .sp-intro {
        padding: var(--space-6) 0;
    }

    .sp-intro p {
        font-size: 16px;
        padding-left: var(--space-3);
        text-align: left;
        max-width: 100%;
    }

    .sp-block {
        padding: var(--space-7) 0;
    }

    .sp-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .sp-text,
    .pricing-tabs-section,
    .sp-form-heading,
    .sp-form-shell {
        text-align: left;
    }

    .page-contact .sp-form-heading {
        margin-bottom: var(--space-5);
    }

    .page-contact .sp-form-shell {
        max-width: 100%;
        padding: var(--space-4);
    }

    .page-contact .submit-btn-container {
        display: block;
        text-align: center;
    }

    .page-contact .submit-btn-container .btn-large {
        width: 100%;
        min-width: 0;
    }

    .page-contact .submit-note {
        max-width: none;
        margin-top: 12px;
    }

    .sp-text h2 {
        font-size: 24px;
        text-align: left;
    }

    .sp-text p,
    .sp-list,
    .sp-list li,
    .sp-label-small,
    .sp-section-label,
    .sp-img-caption {
        text-align: left;
    }

    .sp-block .sp-block-cta,
    .pricing-actions .btn-large,
    .sp-cta-final {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .sp-img img {
        aspect-ratio: 16 / 11;
    }

    .pricing-tabs-section {
        padding-top: var(--space-6) !important;
        padding-bottom: var(--space-6) !important;
    }

    .pricing-tabs-nav {
        gap: var(--space-2);
        margin-top: 0;
        margin-bottom: var(--space-5);
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 18px;
        font-size: 15px;
    }

    .pricing-grid-extended {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }

    .pricing-card-ex {
        min-height: auto;
        padding: var(--space-4);
        text-align: left;
    }

    .card-ex-title,
    .card-ex-features,
    .card-ex-features li,
    .card-ex-footer,
    .card-ex-price,
    .result-label {
        text-align: left;
    }

    .pricing-actions {
        justify-content: stretch;
    }

    .sp-form-heading {
        margin-bottom: var(--space-5);
    }

    .sp-form-heading h2 {
        font-size: 30px;
    }

    .sp-form-shell {
        padding: var(--space-4);
    }

    .form-label,
    .form-checkbox,
    .form-checkbox label,
    .submit-btn-container,
    .submit-note {
        text-align: left;
    }

    .submit-btn-container .btn-large {
        max-width: none;
    }

    .sp-cta-section {
        padding: var(--space-7) 0;
    }

    .sp-cta-section h2 {
        font-size: 28px !important;
        margin-bottom: 24px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-column {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column p,
    .footer-column h4 {
        text-align: center;
        width: 100%;
    }

    .footer {
        padding: 60px 0 calc(30px + env(safe-area-inset-bottom));
        /* Add safe area for iPhones */
        text-align: center;
    }

    .legal-page {
        max-width: 100% !important;
        margin: 104px auto 56px !important;
        padding: 0 20px !important;
        overflow-wrap: anywhere;
    }

    .legal-page h1 {
        font-size: clamp(2rem, 11vw, 2.5rem) !important;
        line-height: 1.15;
        margin-bottom: 28px !important;
    }

    .legal-page h2 {
        font-size: 24px !important;
        line-height: 1.25;
        margin-top: 36px !important;
    }

    .legal-page h3 {
        font-size: 19px !important;
        line-height: 1.35;
    }

    .legal-page p,
    .legal-page ul,
    .legal-page li {
        font-size: 15px;
        line-height: 1.7;
    }

    .legal-page ul {
        margin-left: 18px !important;
    }

    .legal-page a {
        overflow-wrap: anywhere;
    }

    .back-link {
        display: inline-flex !important;
        align-items: center;
        min-height: 44px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    h1 {
        font-size: 32px !important;
        /* Further shrunk to avoid overflow-x */
    }

    .sp-hero {
        min-height: 360px;
        padding: 56px 0 40px;
    }

    .sp-hero h1 {
        font-size: 30px !important;
    }

    .sp-hero-sub,
    .sp-intro p,
    .sp-text p,
    .card-ex-features li {
        font-size: 15px;
    }

    .tab-btn,
    .sp-hero a.sp-cta,
    .sp-block .sp-block-cta,
    .sp-cta-final {
        font-size: 14px;
    }

    .btn-large {
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* ── Cookie Notice ──────────────────────────────────────────── */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    color: #475569;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(10, 42, 67, 0.12);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: cookie-slide-up 0.24s ease-out both;
}

.cookie-notice.is-hidden {
    animation: cookie-slide-down 0.2s ease-in both;
}

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookie-slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.cookie-notice__content {
    flex: 1;
    min-width: 0;
}

.cookie-notice__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
}

.cookie-notice__icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #eaf2fb;
    color: #0a2a43;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-notice__title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0a2a43;
    margin: 0;
    line-height: 1.25;
}

.cookie-notice__text {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.cookie-notice__text a {
    color: #475569;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-notice__text a:hover {
    color: #0a2a43;
}

.cookie-notice__actions {
    display: flex;
    gap: 8px;
}

.cookie-notice__button {
    flex: 1;
    background: #0a2a43;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-notice__button:hover {
    background: #11324d;
}

.cookie-notice__button--secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cookie-notice__button--secondary:hover {
    background: #f1f5f9;
    color: #0a2a43;
}

@media (max-width: 560px) {
    .cookie-notice {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 16px;
    }
}

/* FlaechenCheck mobile stability patch: prevent horizontal drag/scroll traps */
@media (max-width: 768px) {
    html,
    body,
    .page-flaechencheck,
    .page-flaechencheck main {
        max-width: 100%;
        overflow-x: clip;
    }

    .page-flaechencheck .navbar {
        min-width: 0;
    }

    .page-flaechencheck .sp-hero {
        min-height: 0 !important;
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .page-flaechencheck .sp-hero h1 {
        max-width: 10.5ch;
        font-size: clamp(1.95rem, 10.5vw, 2.6rem) !important;
        line-height: 1.05 !important;
    }

    .page-flaechencheck .sp-hero-sub {
        max-width: 32ch;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .page-flaechencheck .container,
    .page-flaechencheck .flaechen-tool-section .container,
    .page-flaechencheck .fc-shell,
    .page-flaechencheck .fc-calculator,
    .page-flaechencheck .fc-panel,
    .page-flaechencheck .fc-result,
    .page-flaechencheck .fc-report-section .sp-form-shell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .page-flaechencheck .fc-panel,
    .page-flaechencheck .fc-result {
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .page-flaechencheck .fc-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    .page-flaechencheck .fc-room-table,
    .page-flaechencheck .fc-room-table thead,
    .page-flaechencheck .fc-room-table tbody,
    .page-flaechencheck .fc-room-table tr,
    .page-flaechencheck .fc-room-table td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .page-flaechencheck .fc-room-table {
        table-layout: fixed;
        border-spacing: 0;
    }

    .page-flaechencheck .fc-room-table thead {
        display: none;
    }

    .page-flaechencheck .fc-room-table tbody {
        display: grid;
        gap: 14px;
    }

    .page-flaechencheck .fc-room-table tbody tr.fc-room-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        column-gap: 10px;
        row-gap: 12px;
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px !important;
        margin: 0 !important;
        overflow: hidden;
        border-radius: var(--bw-check-radius-card);
    }

    .page-flaechencheck .fc-room-cell-name {
        grid-column: 1;
        grid-row: 1;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-flaechencheck .fc-room-cell-action {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 0 !important;
    }

    .page-flaechencheck .fc-room-cell-area,
    .page-flaechencheck .fc-room-cell-type,
    .page-flaechencheck .fc-room-cell-result {
        grid-column: 1 / -1;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .page-flaechencheck .fc-room-cell-area {
        grid-row: 2;
    }

    .page-flaechencheck .fc-room-cell-type {
        grid-row: 3;
    }

    .page-flaechencheck .fc-room-cell-result {
        grid-row: 4;
        padding: 12px 14px !important;
        border: 1px solid var(--bw-check-border-soft) !important;
        border-radius: var(--bw-check-radius-card);
        background: var(--bw-check-surface);
    }

    .page-flaechencheck .fc-room-table td::before {
        display: none !important;
    }

    .page-flaechencheck .fc-room-cell-area::before,
    .page-flaechencheck .fc-room-cell-type::before,
    .page-flaechencheck .fc-room-cell-result::before {
        display: block !important;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #64748b;
    }

    .page-flaechencheck .fc-room-cell-area::before {
        content: "Grundfläche";
    }

    .page-flaechencheck .fc-room-cell-type::before {
        content: "Anrechnung";
    }

    .page-flaechencheck .fc-room-cell-result::before {
        content: "Wohnfläche";
    }

    .page-flaechencheck .fc-room-table input,
    .page-flaechencheck .fc-room-table select,
    .page-flaechencheck .form-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 48px;
        font-size: 16px;
    }

    .page-flaechencheck .fc-room-cell-name input {
        min-height: 42px;
        padding: 7px 0;
        border: 0;
        border-bottom: 1px solid var(--bw-check-border-soft);
        border-radius: 0;
        background: transparent;
        font-size: 16px;
        font-weight: 800;
    }

    .page-flaechencheck .fc-room-hint {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 7px;
        font-size: 12px !important;
        line-height: 1.4;
        color: #64748b;
        overflow-wrap: anywhere;
    }

    .page-flaechencheck .fc-room-cell-result strong {
        display: block;
        padding: 0 !important;
        font-size: 20px !important;
        line-height: 1.2;
    }

    .page-flaechencheck .fc-remove-room {
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: var(--bw-check-radius-control) !important;
    }
}

/* ==========================================================================
   BAUWERT Blueprint Wasserzeichen — Variante 2 (minimalistisch)
   Reversibel: Block komplett entfernbar; index.html restaurierbar aus
   _hero_backup_20260516/. Kein Eingriff in andere Selektoren.
   ========================================================================== */

.bw-blueprint {
    position: absolute;
    top: 50%;
    right: -8%;
    transform: translateY(-50%);
    width: min(720px, 55vw);
    aspect-ratio: 560 / 520;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 32%, #000 70%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 32%, #000 70%);
}

.bw-blueprint__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bw-blueprint line,
.bw-blueprint rect {
    fill: none;
    stroke: #0a2a43;
    vector-effect: non-scaling-stroke;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

/* Raster — sehr leise, fadet einmalig ein */
.bw-grid line {
    stroke-width: 0.5;
    opacity: 0;
    animation: bw-fade-grid 1400ms ease-out 100ms forwards;
}

/* Gebäudekontur + Geschossebenen — zeichnen sich gemeinsam */
.bw-frame .bw-draw {
    stroke-width: 0.8;
    opacity: 0.26;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: bw-draw 1800ms cubic-bezier(0.45, 0, 0.2, 1) 400ms forwards;
}

@keyframes bw-fade-grid {
    to { opacity: 0.12; }
}

@keyframes bw-draw {
    to { stroke-dashoffset: 0; }
}

/* Desktop-only: unter 1024px komplett aus dem Layout, Animation gestoppt. */
@media (max-width: 1023px) {
    .bw-blueprint { display: none; }
    .bw-blueprint .bw-grid line,
    .bw-blueprint .bw-frame .bw-draw {
        animation: none !important;
    }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    .bw-grid line { opacity: 0.12; animation: none; }
    .bw-frame .bw-draw { stroke-dashoffset: 0; animation: none; }
}
