/* =====================================================================
   PAPIEREVERLOREN.DE – Complete Premium Design System v3
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&display=swap');

/* =====================================================================
   1. RESETS & TOKENS
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root[data-theme="dark"],
:root {
    /* Surfaces */
    --bg: #07070a;
    --bg2: #0c0c12;
    --card: #111118;
    --secondary: #16161e;
    --muted: #1e1e28;
    --muted-fg: #8888a0;
    --border: rgba(255, 255, 255, .07);
    --border-hover: rgba(249, 115, 22, .4);
    /* Brand */
    --primary: #f97316;
    --primary-light: #fb923c;
    --primary-10: rgba(249, 115, 22, .10);
    --primary-15: rgba(249, 115, 22, .15);
    --primary-20: rgba(249, 115, 22, .20);
    --primary-30: rgba(249, 115, 22, .30);
    /* Text */
    --fg: #f4f4f8;
    --fg-muted: rgba(244, 244, 248, .65);
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .45);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, .60);
    --shadow-glow: 0 0 60px rgba(249, 115, 22, .22);
    /* Green confirm */
    --green: #4ade80;
    --green-10: rgba(74, 222, 128, .1);
}

:root[data-theme="light"] {
    --bg: #f9fafb;
    --bg2: #f1f3f5;
    --card: #ffffff;
    --secondary: #f3f4f6;
    --muted: #e5e7eb;
    --muted-fg: #6b7280;
    --border: rgba(0, 0, 0, .09);
    --border-hover: rgba(249, 115, 22, .45);
    --primary: #ea580c;
    --primary-light: #f97316;
    --primary-10: rgba(234, 88, 12, .08);
    --primary-15: rgba(234, 88, 12, .13);
    --primary-20: rgba(234, 88, 12, .20);
    --primary-30: rgba(234, 88, 12, .30);
    --fg: #111827;
    --fg-muted: #374151;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, .09);
    --shadow-glow: 0 0 40px rgba(234, 88, 12, .15);
    --green: #16a34a;
    --green-10: rgba(22, 163, 74, .08);
}

:root {
    --radius: .625rem;
    --radius-lg: .875rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.75rem;
    --radius-3xl: 2.25rem;
    --t: .22s cubic-bezier(.4, 0, .2, 1);
    --max-w: 80rem;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =====================================================================
   2. GLOBAL BASE
   ===================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t), color var(--t);
    overflow-x: hidden;
    line-height: 1.6;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: var(--font);
}

/* =====================================================================
   3. LAYOUT
   ===================================================================== */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width:640px) {
    .container {
        padding-inline: 2rem;
    }
}

@media (min-width:1024px) {
    .container {
        padding-inline: 2.5rem;
    }
}

/* =====================================================================
   4. HEADER & NAVIGATION
   ===================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(7, 7, 10, .85);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--t), border-color var(--t), background var(--t);
}

[data-theme="light"] .site-header {
    background: rgba(249, 250, 251, .88);
}

.site-header.scrolled {
    box-shadow: var(--shadow-card);
    border-bottom-color: var(--primary-15);
}

.nav-inner {
    height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 2.125rem;
    height: 2.125rem;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .875rem;
    color: #000;
    box-shadow: 0 0 18px rgba(249, 115, 22, .45);
    flex-shrink: 0;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    display: none;
}

@media (min-width:480px) {
    .logo-text {
        display: block;
    }
}

/* Desktop Nav */
.main-nav {
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

@media (min-width:900px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted-fg);
    transition: color var(--t);
    position: relative;
    white-space: nowrap;
    padding: .25rem 0;
}

.nav-link:hover,
.nav-link--active {
    color: var(--fg);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--t);
    transform-origin: left;
}

.nav-link:hover::after,
.nav-link--active::after {
    transform: scaleX(1);
}

/* CTA pill */
.btn-soforthilfe {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #ea580c);
    color: #000;
    font-size: .8125rem;
    font-weight: 800;
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font);
    box-shadow: 0 0 24px rgba(249, 115, 22, .38);
    transition: transform var(--t), box-shadow var(--t);
    white-space: nowrap;
}

.btn-soforthilfe:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(249, 115, 22, .6);
}

/* Theme toggle */
.theme-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    transition: transform var(--t), background var(--t);
    flex-shrink: 0;
}

.theme-btn:hover {
    transform: rotate(20deg) scale(1.1);
    background: var(--muted);
}

.theme-sun {
    display: none;
}

.theme-moon {
    display: block;
}

[data-theme="light"] .theme-sun {
    display: block;
}

[data-theme="light"] .theme-moon {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width:900px) {
    .hamburger {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 1.375rem;
    height: 2px;
    background: var(--fg);
    border-radius: 9999px;
    transition: transform var(--t), opacity var(--t);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.mobile-nav.open {
    display: flex;
}

@media (min-width:900px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav .nav-link {
    font-size: .9375rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    display: block;
}

.mobile-nav .nav-link:hover {
    background: var(--secondary);
    color: var(--fg);
}

/* =====================================================================
   5. ANIMATIONS
   ===================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .22;
        transform: scale(1);
    }

    50% {
        opacity: .42;
        transform: scale(1.07);
    }
}

@keyframes shimmer {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

@keyframes countUp {
    from {
        transform: scale(.9);
        opacity: .5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeUp .6s cubic-bezier(.4, 0, .2, 1) both;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.4, 0, .2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .08s;
    animation-delay: .08s;
}

.delay-2 {
    transition-delay: .16s;
    animation-delay: .16s;
}

.delay-3 {
    transition-delay: .24s;
    animation-delay: .24s;
}

.delay-4 {
    transition-delay: .32s;
    animation-delay: .32s;
}

/* =====================================================================
   6. BUTTONS
   ===================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--primary), #ea580c);
    color: #000;
    font-weight: 800;
    font-size: .9375rem;
    padding: .8125rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--t), box-shadow var(--t);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(249, 115, 22, .5);
}

.btn-primary--full {
    width: 100%;
}

.btn-primary--cta {
    font-size: 1.0625rem;
    padding: .9375rem 2.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: transparent;
    color: var(--fg);
    font-weight: 600;
    font-size: .9375rem;
    padding: .8125rem 2rem;
    border-radius: 9999px;
    border: 1px solid var(--border-hover);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t), transform var(--t), border-color var(--t);
}

.btn-secondary:hover {
    background: var(--primary-10);
    transform: translateY(-2px);
}

/* =====================================================================
   7. BADGES
   ===================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3125rem .875rem;
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-red {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, .25);
}

.badge-orange {
    background: rgba(249, 115, 22, .12);
    color: #f97316;
    border-color: rgba(249, 115, 22, .3);
}

.badge-green {
    background: rgba(74, 222, 128, .1);
    color: #4ade80;
    border-color: rgba(74, 222, 128, .25);
}

.badge-soon {
    background: var(--muted);
    color: var(--muted-fg);
    border-color: transparent;
    font-size: .75rem;
    padding: .2rem .6rem;
}

/* =====================================================================
   8. TEXT UTILITIES
   ===================================================================== */
.text-primary {
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--muted-fg);
}

.text-center {
    text-align: center;
}

.icon-primary {
    color: var(--primary);
}

.icon-muted {
    color: var(--muted-fg);
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

/* =====================================================================
   9. SECTION LABELS & HEADINGS
   ===================================================================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.875rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
    color: var(--fg);
}

.section-subtitle {
    font-size: clamp(.9375rem, 2vw, 1.125rem);
    color: var(--muted-fg);
    line-height: 1.7;
    max-width: 42rem;
    margin-top: .75rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.page-subtitle {
    font-size: clamp(.9375rem, 2vw, 1.125rem);
    color: var(--muted-fg);
    line-height: 1.7;
    margin-top: .75rem;
    max-width: 48rem;
}

.intro {
    font-size: 1.0625rem;
    color: var(--muted-fg);
    line-height: 1.75;
    max-width: 54rem;
    margin-top: .75rem;
}

/* =====================================================================
   10. BREADCRUMB
   ===================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    font-size: .8125rem;
    color: var(--muted-fg);
    margin-bottom: 2rem;
}

.breadcrumb-link {
    transition: color var(--t);
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-chevron {
    flex-shrink: 0;
    color: var(--border-hover);
}

.breadcrumb-current {
    color: var(--fg);
    font-weight: 500;
}

/* =====================================================================
   11. HERO – HOMEPAGE
   ===================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 9rem 0 8rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(249, 115, 22, .22) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1.04;
    margin: 1.5rem 0 1rem;
    max-width: 62rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted-fg);
    max-width: 42rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Trust Row */
.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted-fg);
}

.trust-item svg {
    color: var(--green);
    flex-shrink: 0;
}

/* Hero Wizard Card */
.wizard-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-3xl);
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    text-align: left;
    width: 100%;
    max-width: 34rem;
    overflow: hidden;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #fbbf24, var(--primary));
    background-size: 200%;
    animation: shimmer 3s linear infinite;
}

.wizard-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: var(--fg);
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .5rem;
}

.vehicle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9375rem 1.125rem;
    border-radius: var(--radius-lg);
    background: var(--secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--fg);
    transition: border-color var(--t), transform var(--t), background var(--t);
}

.vehicle-item:hover {
    border-color: var(--border-hover);
    transform: translateX(5px);
    background: var(--primary-10);
}

.vehicle-item--soon {
    opacity: .6;
    cursor: default;
}

.vehicle-item--soon:hover {
    transform: none;
    background: var(--secondary);
    border-color: var(--border);
}

.vehicle-label {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vehicle-label small {
    font-size: .8125rem;
    font-weight: 400;
    color: var(--muted-fg);
}

/* =====================================================================
   12. STATS BAR
   ===================================================================== */
.stats-bar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width:768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: border-color var(--t), box-shadow var(--t);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
}

.stat-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.stat-num {
    font-size: 2.125rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    animation: countUp .5s ease;
}

.stat-label {
    font-size: .8125rem;
    color: var(--muted-fg);
    font-weight: 500;
    line-height: 1.4;
}

/* =====================================================================
   13. FEATURES SECTION
   ===================================================================== */
.features-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (min-width:640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    gap: 1.125rem;
    align-items: flex-start;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon--orange {
    background: var(--primary-10);
    color: var(--primary);
}

.feature-icon--blue {
    background: rgba(59, 130, 246, .10);
    color: #60a5fa;
}

.feature-icon--green {
    background: rgba(74, 222, 128, .10);
    color: #4ade80;
}

.feature-icon--purple {
    background: rgba(167, 139, 250, .10);
    color: #a78bfa;
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .375rem;
}

.feature-text {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.65;
}

/* =====================================================================
   14. BRAND GRID
   ===================================================================== */
.brands-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.brand-overview {
    padding: 7.5rem 0 6rem;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width:640px) {
    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:900px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width:1200px) {
    .brand-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.brand-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--fg);
    transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--border-hover);
    background: var(--primary-10);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(249, 115, 22, .2);
}

.brand-emoji {
    font-size: 2rem;
    line-height: 1;
}

.brand-card-name {
    font-size: 1.0625rem;
    font-weight: 700;
}

.brand-card-sub {
    font-size: .75rem;
    color: var(--muted-fg);
}

.brand-arrow {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity var(--t);
}

.brand-card:hover .brand-arrow {
    opacity: 1;
}

/* Brand Overview */
.brand-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.25rem 0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted-fg);
    padding: .3rem .75rem;
}

.meta-pill svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* =====================================================================
   15. INTERNAL LINKS STRIP
   ===================================================================== */
.internal-links {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width:640px) {
    .internal-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:1024px) {
    .internal-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.int-link-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.375rem;
    display: flex;
    flex-direction: column;
    gap: .375rem;
    text-decoration: none;
    color: var(--fg);
    transition: border-color var(--t), transform var(--t), background var(--t);
}

.int-link-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    background: var(--primary-10);
}

.int-link-emoji {
    font-size: 1.625rem;
    line-height: 1;
}

.int-link-title {
    font-size: .9375rem;
    font-weight: 700;
    margin-top: .25rem;
}

.int-link-sub {
    font-size: .8125rem;
    color: var(--muted-fg);
}

/* =====================================================================
   16. CTA SECTION
   ===================================================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
}

.cta-card {
    background: linear-gradient(135deg, var(--card) 0%, rgba(249, 115, 22, .06) 100%);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-3xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: linear-gradient(rgba(249, 115, 22, .5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, .5) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.cta-icon {
    color: var(--primary);
    margin: 0 auto 1.5rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}

.cta-text {
    font-size: 1.0625rem;
    color: var(--muted-fg);
    max-width: 38rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* =====================================================================
   17. RELATED LINKS
   ===================================================================== */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
    align-items: center;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    padding: .375rem 1rem;
    border-radius: 9999px;
    transition: background var(--t), transform var(--t);
}

.related-link:hover {
    background: var(--primary-20);
    transform: translateY(-1px);
}

/* =====================================================================
   18. HERO – BRAND PAGES (rp-hero)
   ===================================================================== */
.rp-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
    border-bottom: 1px solid var(--border);
}

.rp-hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(249, 115, 22, .18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

.rp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width:1024px) {
    .rp-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.rp-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rp-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1.07;
    margin: 1rem 0;
}

.rp-hero-subtitle {
    font-size: 1.0625rem;
    color: var(--muted-fg);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.rp-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    margin-bottom: 2rem;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: .875rem 1.25rem;
    text-align: center;
    min-width: 5.5rem;
}

.info-card-num {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--primary);
}

.info-card-label {
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: .125rem;
}

/* =====================================================================
   19. WIZARD (BRAND PAGE INLINE)
   ===================================================================== */
.wizard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.wizard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #fbbf24, var(--primary));
    background-size: 200%;
    animation: shimmer 3s linear infinite;
}

.wizard-bg-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    font-size: 5rem;
    opacity: .05;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.wizard-title {
    font-size: 1.1875rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--fg);
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.wizard-progress-dot {
    height: 4px;
    flex: 1;
    border-radius: 9999px;
    background: var(--muted);
    transition: background var(--t);
}

.wizard-progress-dot.active {
    background: var(--primary);
}

/* Wizard Steps */
.wizard-step {
    flex-direction: column;
    gap: 1rem;
    animation: fadeUp .4s ease both;
}

.wizard-question {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fg);
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.wizard-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.125rem;
    cursor: pointer;
    color: var(--fg);
    font-family: var(--font);
    font-size: .9375rem;
    font-weight: 600;
    transition: border-color var(--t), background var(--t), transform var(--t);
    text-align: left;
}

.wizard-btn:hover {
    border-color: var(--border-hover);
    background: var(--primary-10);
    transform: translateX(3px);
}

.wizard-btn .btn-chevron {
    flex-shrink: 0;
    color: var(--muted-fg);
}

.wizard-back {
    background: none;
    border: none;
    color: var(--muted-fg);
    font-family: var(--font);
    font-size: .875rem;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    transition: color var(--t);
    align-self: flex-start;
}

.wizard-back:hover {
    color: var(--fg);
}

.wizard-result {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: .5rem;
}

.wizard-result-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: .625rem;
}

.wizard-result-text {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--primary-10);
    color: var(--primary);
    font-size: .875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.guide-step-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .625rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.guide-step-text {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.75;
}

/* =====================================================================
   20. GUIDE / ANLEITUNG SECTION
   ===================================================================== */
.guide-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.guide-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.guide-heading {
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    font-weight: 900;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.guide-intro {
    font-size: 1.0625rem;
    color: var(--muted-fg);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.guide-step-card {
    background: var(--card);
    padding: 1.875rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--t);
    position: relative;
}

.guide-step-card:last-child {
    border-bottom: none;
}

.guide-step-card.step-completed {
    background: rgba(74, 222, 128, .04);
    border-left: 3px solid var(--green);
}

.guide-step-card.step-completed .step-circle {
    background: var(--green-10);
    color: var(--green);
}

/* LocalStorage Checkboxes */
.ls-check-container {
    position: absolute;
    right: 1.375rem;
    top: 1.375rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.ls-check-label {
    font-size: .8125rem;
    color: var(--muted-fg);
    cursor: pointer;
    user-select: none;
}

input.ls-checkbox {
    width: 1.1875rem;
    height: 1.1875rem;
    accent-color: var(--green);
    cursor: pointer;
    border-radius: .25rem;
}

/* Progress Bar */
.guide-progress {
    background: var(--secondary);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: .5rem;
}

#guide-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #86efac);
    width: 0%;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
    border-radius: 9999px;
}

#guide-progress-text {
    font-size: .8125rem;
    color: var(--muted-fg);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* =====================================================================
   21. CHECKLIST
   ===================================================================== */
.checklist {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-width: 42rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.125rem 1.25rem;
    transition: border-color var(--t);
}

.check-item:hover {
    border-color: var(--border-hover);
}

.check-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--green-10);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: .1rem;
}

.check-text {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--fg);
}

.check-sub {
    font-size: .8125rem;
    color: var(--muted-fg);
    margin-top: .2rem;
}

/* =====================================================================
   22. COSTS TABLE
   ===================================================================== */
.costs-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.costs-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.costs-heading-row {
    display: flex;
    align-items: center;
    gap: .875rem;
    margin-bottom: 1.5rem;
}

.costs-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--primary-10);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.costs-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
}

.costs-table th {
    background: var(--secondary);
    font-size: .8125rem;
    font-weight: 700;
    text-align: left;
    padding: .875rem 1.25rem;
    color: var(--muted-fg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.costs-table td {
    padding: .875rem 1.25rem;
    font-size: .9375rem;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    vertical-align: middle;
}

.costs-table tr:last-child td {
    border-bottom: none;
}

.costs-table tbody tr:hover td {
    background: var(--secondary);
}

.td-cost {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.td-duration {
    color: var(--muted-fg);
    white-space: nowrap;
}

.tr-total td {
    background: var(--primary-10);
}

.td-total-cost {
    color: var(--primary);
    font-size: 1.0625rem;
    font-weight: 900;
}

/* =====================================================================
   23. FAQ ACCORDION
   ===================================================================== */
.faq-section {
    padding: 7.5rem 0 5rem;
    background: var(--bg);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    max-width: 54rem;
}

.accordion-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
}

.accordion-item.open,
.accordion-item:hover {
    border-color: var(--border-hover);
}

.accordion-item.open {
    box-shadow: 0 4px 20px rgba(249, 115, 22, .1);
}

.accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fg);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: color var(--t);
}

.accordion-btn span {
    flex: 1;
    line-height: 1.5;
}

.accordion-chevron {
    flex-shrink: 0;
    color: var(--muted-fg);
    transition: transform var(--t), color var(--t);
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.75;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding var(--t);
    padding: 0 1.5rem;
}

.accordion-body.open {
    max-height: 1000px;
    padding: 0 1.5rem 1.375rem;
}

.accordion-body strong {
    color: var(--fg);
}

/* =====================================================================
   24. RATGEBER PAGE
   ===================================================================== */
.ratgeber-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    text-decoration: none;
    color: var(--fg);
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.ratgeber-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.ratgeber-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--primary-10);
    color: var(--primary);
    border: 1px solid var(--primary-20);
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    align-self: flex-start;
}

.ratgeber-title {
    font-size: 1.1875rem;
    font-weight: 800;
    line-height: 1.4;
}

.ratgeber-excerpt {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.7;
    flex: 1;
}

.ratgeber-readmore {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

/* =====================================================================
   25. KOSTENRECHNER PAGE
   ===================================================================== */
.kosten-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 7.5rem 5rem;
}

@media (min-width:1024px) {
    .kosten-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.kosten-form {
    background: var(--card);
    padding: 2.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.kosten-result {
    background: var(--card);
    padding: 2.25rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--primary-30);
    box-shadow: 0 0 40px rgba(249, 115, 22, .12);
    align-self: start;
    position: sticky;
    top: 6rem;
}

.calc-group {
    margin-bottom: 1.75rem;
}

.calc-label {
    display: block;
    font-weight: 700;
    margin-bottom: .875rem;
    font-size: .9375rem;
}

.calc-select {
    width: 100%;
    padding: .875rem 1.125rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--fg);
    border-radius: var(--radius-lg);
    font-size: .9375rem;
    outline: none;
    font-family: var(--font);
    transition: border-color var(--t);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238888a0' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.calc-select:focus {
    border-color: var(--primary);
}

.radio-cards {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content {
    padding: 1rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    text-align: center;
    transition: border-color var(--t), color var(--t), background var(--t);
    line-height: 1.4;
}

.radio-card input:checked+.radio-content {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-10);
}

.calc-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    background: var(--secondary);
    padding: 1rem 1.125rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--t);
}

.calc-checkbox-row:hover {
    border-color: var(--border-hover);
}

.calc-checkbox-label {
    flex: 1;
    cursor: pointer;
}

.calc-checkbox-label strong {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: .2rem;
}

.calc-checkbox-label small {
    font-size: .8125rem;
    color: var(--muted-fg);
}

.generic-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: .25rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.result-row-label {
    font-weight: 600;
}

.result-row-sub {
    font-size: .8125rem;
    color: var(--muted-fg);
    margin-top: .125rem;
}

.result-row-val {
    font-weight: 700;
    white-space: nowrap;
}

.result-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-10);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-30);
    margin-top: 2rem;
    gap: 1rem;
}

.result-total-label {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--primary);
}

.result-total-sub {
    font-size: .75rem;
    color: var(--muted-fg);
    margin-top: .2rem;
}

.result-total-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

/* =====================================================================
   26. FORMULARE PAGE
   ===================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width:768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.form-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-10);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.form-title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
}

.form-excerpt {
    font-size: .9375rem;
    color: var(--muted-fg);
    line-height: 1.7;
    flex: 1;
}

/* =====================================================================
   27. ZWEIRAD / DETAIL PAGES
   ===================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.page-hero-glow {
    position: absolute;
    top: -20%;
    left: -5%;
    width: 700px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(249, 115, 22, .15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 5s ease-in-out infinite;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

/* Subpage Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr 340px;
    }
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.content-section {
    margin-bottom: 0;
}

.section-heading {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-30), transparent);
}

/* Link Cards Grid */
.card-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .card-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--fg);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
    background: var(--primary-10);
}

.link-card-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-card .icon-primary {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: var(--primary-10);
    border-radius: var(--radius-lg);
    transition: transform var(--t);
}

.link-card:hover .icon-primary {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary-15);
}

.link-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
}

/* Steps / How to Proceed */
.steps-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.steps-list {
    list-style: none;
    /* Fixes the '1. 1' issue */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3.25rem;
    bottom: -1.25rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-30), var(--border));
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    color: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    z-index: 1;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.step-text {
    font-size: 0.9375rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card--cta {
    background: linear-gradient(135deg, var(--primary), #ea580c);
    border: none;
    color: #000;
}

.sidebar-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.brand-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    background: var(--secondary);
    border: 1px solid var(--border);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--t);
}

.brand-link:hover {
    border-color: var(--border-hover);
    background: var(--primary-10);
    transform: translateX(4px);
}

.brand-link .icon-primary {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.sidebar-all-brands {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    transition: color var(--t);
}

.sidebar-all-brands:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.sidebar-cta-text {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
}

/* =====================================================================
   28. FOOTER
   ===================================================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: var(--bg2);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-copy {
    font-size: .8125rem;
    color: var(--muted-fg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.footer-link {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted-fg);
    transition: color var(--t);
}

.footer-link:hover {
    color: var(--fg);
}

/* =====================================================================
   29. 3D TILT (applied via JS, no transforms needed in CSS)
   ===================================================================== */
.brand-card,
.feature-card,
.int-link-card,
.ratgeber-card,
.form-card,
.stat-item,
.info-card {
    will-change: transform;
}

/* =====================================================================
   30. RESPONSIVE – MOBILE FIXES
   ===================================================================== */
@media (max-width:640px) {
    .hero-section {
        padding: 7.5rem 0 5rem;
        min-height: auto;
    }

    .rp-hero {
        padding: 6.5rem 0 4rem;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .rp-hero-btns {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .trust-row {
        gap: .75rem;
    }

    .info-cards {
        gap: .5rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-total-box {
        flex-direction: column;
        text-align: center;
    }
}

/* =====================================================================
   31. UTILITIES
   ===================================================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: .5rem;
}

.gap-3 {
    gap: .75rem;
}

.mt-auto {
    margin-top: auto;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.hidden {
    display: none;
}

/* Scrollbar (dark mode) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted-fg);
}

/* Selection */
::selection {
    background: var(--primary-30);
    color: var(--fg);
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: .25rem;
}

/* =====================================================================
   32. PRINT STYLES - PERFECT FOR GUIDES & CHECKLISTS
   ===================================================================== */
@media print {

    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .brand-arrow,
    .floating-cta,
    #floating-cta,
    .theme-btn,
    .hamburger,
    .mobile-nav,
    .internal-links,
    .costs-icon {
        display: none !important;
    }

    .guide-step-card,
    .brand-card,
    .kosten-form,
    .kosten-result,
    .form-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 20px;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    @page {
        margin: 2cm;
    }
}

/* =====================================================================
   ADVANCED INTERACTIVE ELEMENTS & ANIMATIONS
   ===================================================================== */

/* Floating Particles Background Effect */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(2px);
    animation: drift linear infinite;
}

@keyframes drift {
    from {
        transform: translateY(100vh) translateX(0);
    }

    to {
        transform: translateY(-10vh) translateX(50px);
    }
}

/* Glassmorphism Cards Upgrade */
.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Glare Effect for Cards */
.glare-effect {
    position: relative;
    overflow: hidden;
}

.glare-effect::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.glare-effect:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* Magnetic Button Feel */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Progress Bar Shine */
@keyframes barShine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#guide-progress-bar {
    background: linear-gradient(90deg, var(--primary), #fbbf24, var(--primary)) !important;
    background-size: 200% 100% !important;
    animation: barShine 3s linear infinite !important;
}

/* Special classes for inactive states */
.meta-pill--red {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, .3) !important;
}

.info-card--negative .info-card-num {
    color: #ef4444;
    font-size: clamp(0.75rem, 1.5vw, 1rem) !important;
    line-height: 1.2;
}

/* Ensure long text in info-cards doesn't break layout */
.info-card-num {
    word-break: break-word;
    max-width: 100%;
}

/* =====================================================================
   UNIFIED NAVIGATION & INTERACTIVE INFOGRAPHIC
   ===================================================================== */

.site-header {
    height: 4.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.nav-inner {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.process-infographic {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.info-step {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.info-step:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.2);
}

.info-step.active {
    background: var(--primary-10);
    border-color: var(--primary);
}

.info-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--primary-15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.info-step:hover .info-icon-wrapper {
    transform: rotateY(180deg);
}

.info-step-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.info-step-desc {
    font-size: 0.875rem;
    color: var(--muted-fg);
    line-height: 1.5;
}

@media (min-width: 1024px) {
    .infographic-grid::after {
        content: '';
        position: absolute;
        top: 45px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--border), transparent);
        z-index: -1;
    }
}


/* E-A-T and Status Badge Styles */
.header-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: auto;
    margin-right: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@media (max-width: 991px) {
    .header-status-badge {
        display: none;
    }
}

/* Über uns Page Layout */
.expert-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.expert-card-rich {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}

.expert-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.trust-signals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.trust-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--fg);
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--muted-fg);
    line-height: 1.5;
}

/* Wizard / Configurator Styles */
.wizard-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.wizard-option {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wizard-option:hover {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-5px);
}

.wizard-option.selected {
    border-color: var(--primary);
    background: rgba(249, 115, 22, 0.1);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.wizard-result {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Premium Interactive Visualizations & Infographics --- */
.infographic-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .infographic-dashboard {
        grid-template-columns: 1fr;
    }
}

.info-dash-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

.info-dash-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
}

.info-stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    color: var(--primary);
}

.info-stat-lbl {
    font-size: 0.875rem;
    color: var(--muted-fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-stat-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.viz-container {
    width: 100%;
    margin: 0;
    height: 400px;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        rgba(7, 7, 10, 0.4);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.viz-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.03), transparent);
    pointer-events: none;
}

/* Radar Animation (Rich) */
.viz-radar-wrap {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(249, 115, 22, 0.2);
    position: relative;
    background:
        repeating-radial-gradient(circle, transparent 0, transparent 40px, rgba(249, 115, 22, 0.1) 41px, transparent 42px),
        rgba(249, 115, 22, 0.02);
}

.viz-radar-wrap::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: conic-gradient(from 0deg, var(--primary) 0deg, transparent 120deg);
    border-radius: 50%;
    animation: rotate-conic 3s linear infinite;
    opacity: 0.4;
    -webkit-mask: radial-gradient(circle, transparent 40%, black 41%);
}

.viz-radar-wrap .scan-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 50%;
    background: var(--primary);
    transform-origin: top center;
    box-shadow: 0 0 15px var(--primary);
    animation: rotate-line 3s linear infinite;
}

.viz-radar-wrap .dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: blink-dot 2s infinite;
}

@keyframes blink-dot {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes rotate-conic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-line {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Piston Animation (Rich) */
.viz-piston-engine {
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.viz-cylinder {
    width: 120px;
    height: 180px;
    border: 4px solid #334155;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(to right, #1e293b, #334155, #1e293b);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.viz-piston-head {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #94a3b8, #475569);
    border-radius: 8px 8px 4px 4px;
    position: absolute;
    left: 10px;
    top: 50px;
    animation: piston-move-rich 0.6s ease-in-out infinite alternate;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.viz-piston-head::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.viz-con-rod {
    width: 20px;
    height: 120px;
    background: #64748b;
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

@keyframes piston-move-rich {
    from {
        transform: translateY(-40px);
    }

    to {
        transform: translateY(60px);
    }
}

/* Speedometer (Rich) */
.viz-gauge-box {
    width: 320px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.viz-gauge-body {
    width: 300px;
    height: 150px;
    border: 12px solid #1e293b;
    border-bottom: 0;
    border-radius: 300px 300px 0 0;
    position: relative;
    background: radial-gradient(circle at bottom, rgba(249, 115, 22, 0.05) 0%, transparent 80%);
}

.viz-gauge-ticks {
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 270deg at 50% 100%,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 1%, transparent 2%,
            rgba(255, 255, 255, 0.1) 10%, transparent 11%,
            rgba(255, 255, 255, 0.1) 20%, transparent 21%,
            rgba(255, 255, 255, 0.1) 30%, transparent 31%,
            rgba(239, 68, 68, 0.4) 40%, transparent 41%);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 80%, black 81%);
}

.viz-gauge-needle {
    width: 6px;
    height: 140px;
    background: linear-gradient(to top, #1e293b 20%, #ef4444);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-80deg);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    animation: speed-fast-premium 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 5;
}

.viz-gauge-center {
    width: 30px;
    height: 30px;
    background: #0f172a;
    border: 4px solid #334155;
    border-radius: 50%;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
}

@keyframes speed-fast-premium {

    0%,
    100% {
        transform: translateX(-50%) rotate(-85deg);
    }

    40% {
        transform: translateX(-50%) rotate(70deg);
    }

    60% {
        transform: translateX(-50%) rotate(60deg);
    }
}

/* Floating Document (Rich) */
.viz-doc-stack {
    width: 160px;
    height: 220px;
    position: relative;
    perspective: 1000px;
}

.viz-doc-main {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform-style: preserve-3d;
    animation: doc-float-rich 4s ease-in-out infinite;
}

.viz-doc-line {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.viz-doc-line--short {
    width: 40%;
}

.viz-doc-line--mid {
    width: 70%;
}

.viz-stamp-premium {
    position: absolute;
    bottom: 30px;
    right: 14px;
    width: 60px;
    height: 30px;
    border: 2px double #ef4444;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 10px;
    transform: rotate(-25deg) scale(2);
    opacity: 0;
    animation: stamp-slam-rich 4s ease-in-out infinite;
}

@keyframes doc-float-rich {

    0%,
    100% {
        transform: rotateY(-10deg) translateY(0);
    }

    50% {
        transform: rotateY(10deg) translateY(-20px);
    }
}

@keyframes stamp-slam-rich {

    0%,
    40% {
        opacity: 0;
        transform: rotate(-25deg) scale(3);
    }

    45% {
        opacity: 1;
        transform: rotate(-25deg) scale(1.5);
    }

    100% {
        opacity: 1;
        transform: rotate(-25deg) scale(1.5);
    }
}

/* Pulse Glow (Rich) */
.viz-core-pulse {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary) 0%, #ea580c 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.4);
}

.viz-core-pulse::after {
    content: "";
    position: absolute;
    inset: -20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ring-expand-rich 2s infinite;
}

@keyframes ring-expand-rich {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}