/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #7A0C2E;
    /* Deep Burgundy */
    --color-primary-hover: #911139;
    /* Lighter Burgundy for hovers */
    --color-primary-light: #FDE8EF;
    /* Soft red tint for backgrounds */
    --color-accent: #F59E0B;
    /* Electric Amber/Gold (Lightning symbol) */
    --color-accent-hover: #D97706;
    /* Darker Amber for hover */

    --color-dark: #0F172A;
    /* Rich Slate-900 (Main dark theme bg) */
    --color-dark-card: #1E293B;
    /* Slate-800 for card backgrounds */
    --color-dark-border: #334155;
    /* Slate-700 for dark borders */

    --color-light: #F8FAFC;
    /* Off-White (Slate-50) */
    --color-light-card: #FFFFFF;
    /* Clean White for light cards */
    --color-light-border: #E2E8F0;
    /* Slate-200 for light borders */

    --color-text-dark: #1E293B;
    /* Slate-800 for standard dark text */
    --color-text-muted: #64748B;
    /* Slate-500 for secondary text */
    --color-text-light: #F8FAFC;
    /* Light text */
    --color-text-light-muted: #94A3B8;
    /* Slate-400 for light secondary text */

    --color-success: #10B981;
    /* Emerald-500 for 'Bestanden' / Valid states */
    --color-success-bg: #D1FAE5;
    /* Emerald-100 */

    /* Layout & Spacing */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    --box-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(122, 12, 46, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-glow: 0 0 20px rgba(245, 158, 11, 0.25);

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container Width */
    --container-max-width: 1200px;
    --container-narrow-width: 800px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for floating header */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light-card);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

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

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   Reusable UI Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.container-narrow {
    max-width: var(--container-narrow-width);
}

.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-dark);
}

.bg-light-gradient {
    background: linear-gradient(180deg, var(--color-light-card) 0%, var(--color-light) 100%);
}

.text-light {
    color: var(--color-text-light);
}

.text-light h1,
.text-light h2,
.text-light h3,
.text-light h4 {
    color: var(--color-text-light);
}

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

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

.color-accent {
    color: var(--color-accent) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    font-size: 1rem;
    gap: 8px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 12, 46, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Badge */
.badge {
    display: inline-block;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: var(--border-radius-full);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bg-dark .badge {
    background-color: rgba(122, 12, 46, 0.3);
    color: #FFA3BE;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 22px;
    padding-left: 12px;
    border-left: 3px solid var(--color-accent);
    line-height: 1.5;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 28px;
    padding-bottom: 16px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}
.section-title.text-left::after {
    left: 0;
    transform: none;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

.bg-dark .section-lead {
    color: var(--color-text-light-muted);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2-equal {
    grid-template-columns: 1fr 1fr;
}

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

/* Cards Base */
.card {
    background-color: var(--color-light-card);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-light-border);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-light-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-img {
    height: 74px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    opacity: 0.85;
}

.logo-img-footer {
    height: 80px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:not(.btn):hover {
    color: var(--color-primary);
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }

    /* Remove the frosted-glass filter on mobile: it would turn the header into
       a containing block for the fixed nav sheet and break the overlay. */
    .main-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-menu {
        z-index: 1000;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-light-card);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 20px 26px 40px;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        border-top: 1px solid var(--color-light-border);
        overflow-y: auto;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 19px 4px;
        text-align: left;
    }

    .nav-link:not(.btn) {
        border-bottom: 1px solid var(--color-light-border);
    }

    .nav-link:not(.btn)::after {
        display: none;
        /* drop the desktop underline effect in the mobile sheet */
    }

    .nav-link.btn {
        margin-top: 28px;
        align-self: stretch;
        justify-content: center;
        font-size: 1.05rem;
        padding: 16px 24px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(122, 12, 46, 0.05) 0%, rgba(15, 23, 42, 0.03) 100%);
    overflow: hidden;
}

.hero-watermark {
    display: none;
    /* shown only on phones, where the orbit is hidden */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content,
.story-content,
.contact-info {
    min-width: 0;
    /* allow grid/flex columns to shrink so long words can wrap */
}

.hero-content h1 {
    margin-bottom: 24px;
    word-break: break-word;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* Hero lead has a full (desktop) and a condensed (mobile) variant */
.lead-mobile {
    display: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-actions .btn-secondary {
    color: var(--color-text-dark);
    border-color: var(--color-light-border);
    background-color: var(--color-light-card);
    box-shadow: var(--box-shadow-sm);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--color-light);
    border-color: var(--color-text-muted);
    color: var(--color-primary);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background-radius: var(--border-radius-full);
    background: radial-gradient(circle, rgba(122, 12, 46, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(20px);
}

.hero-svg-dashboard {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.circuit-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.flow-dot {
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.85));
}

.terminal-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: terminalPulse 2.4s ease-in-out infinite;
}

/* Central microcontroller chip */
.central-chip {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #eef1f6 100%);
    border: 1px solid var(--color-light-border);
    box-shadow: var(--box-shadow-lg), 0 0 50px rgba(122, 12, 46, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: chipFloat 6s ease-in-out infinite;
}

.chip-core {
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Gold pin contacts along each edge */
.chip-pins {
    position: absolute;
    pointer-events: none;
}

.chip-pins--top,
.chip-pins--bottom {
    left: 28px;
    right: 28px;
    height: 8px;
    background-image: repeating-linear-gradient(to right, #E0A43A 0, #E0A43A 4px, transparent 4px, transparent 11px);
}

.chip-pins--top {
    top: -6px;
}

.chip-pins--bottom {
    bottom: -6px;
}

.chip-pins--left,
.chip-pins--right {
    top: 28px;
    bottom: 28px;
    width: 8px;
    background-image: repeating-linear-gradient(to bottom, #E0A43A 0, #E0A43A 4px, transparent 4px, transparent 11px);
}

.chip-pins--left {
    left: -6px;
}

.chip-pins--right {
    right: -6px;
}

.lightning-glow {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
    animation: pulseLightning 3s ease-in-out infinite;
}

.tech-badge {
    position: absolute;
    background-color: var(--color-light-card);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--box-shadow-md);
    z-index: 10;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    animation: badgeFloat 5.5s ease-in-out infinite;
}

/* Status LED — makes each keyword chip read as a powered component */
.tech-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.85);
    flex-shrink: 0;
    animation: ledPulse 2s ease-in-out infinite;
}

.tech-badge:hover {
    border-color: var(--color-primary);
    box-shadow: var(--box-shadow-lg), 0 0 0 3px rgba(122, 12, 46, 0.06);
}

.badge-ico {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: inline-block;
}

.badge-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-dark);
    white-space: nowrap;
}

/* Placements around the circular layout — aligned to the orbit spoke nodes */
.badge-1 {
    top: 13%;
    left: 0;
    animation-delay: 0s;
}

.badge-2 {
    top: 13%;
    right: 0;
    animation-delay: 1.3s;
}

.badge-3 {
    bottom: 13%;
    left: 0;
    animation-delay: 2.6s;
}

.badge-4 {
    bottom: 13%;
    right: 0;
    animation-delay: 0.8s;
}

.badge-1::before {
    animation-delay: 0s;
}

.badge-2::before {
    animation-delay: 0.6s;
}

.badge-3::before {
    animation-delay: 1.2s;
}

.badge-4::before {
    animation-delay: 1.8s;
}

/* Animations for Dashboard */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes pulseLightning {
    0% {
        opacity: 0.8;
        filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
    }

    100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
    }
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(122, 12, 46, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(122, 12, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(122, 12, 46, 0);
    }
}

@keyframes chipFloat {

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

    50% {
        transform: translateY(-8px);
    }
}

@keyframes badgeFloat {

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

    50% {
        transform: translateY(-9px);
    }
}

@keyframes ledPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.85);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 3px rgba(245, 158, 11, 0.35);
    }
}

@keyframes terminalPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* ==========================================================================
   Warum DGUV V3? Section
   ========================================================================== */
.card-benefit {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--color-primary);
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.card-benefit h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
    padding-bottom: 12px;
    position: relative;
}

.card-benefit h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.card-benefit p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Leistungen & Ablauf Section
   ========================================================================== */
.scope-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    transition: var(--transition-smooth);
}

.scope-card:hover {
    background-color: var(--color-light-card);
    border-color: var(--color-primary-light);
    box-shadow: var(--box-shadow-lg);
}

.scope-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.scope-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.norm-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-top: 4px;
}

.scope-desc {
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.scope-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .scope-list {
        grid-template-columns: 1fr;
    }
}

.scope-list li {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scope-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: var(--border-radius-full);
}

/* Timeline Process */
.process-wrapper {
    margin-top: 80px;
    background-color: var(--color-dark);
    border-radius: var(--border-radius-lg);
    padding: 70px 60px;
}

@media (max-width: 768px) {
    .process-wrapper {
        padding: 50px 24px;
    }
}

.process-title {
    margin-bottom: 56px;
    color: var(--color-text-light);
    padding-bottom: 16px;
    position: relative;
}
.process-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background-color: var(--color-dark-border);
}

/* Scroll-linked progress line that fills as you move through the steps */
.timeline-progress {
    position: absolute;
    left: 24px;
    top: 20px;
    width: 2px;
    height: 0;
    max-height: calc(100% - 40px);
    background-color: var(--color-accent);
    z-index: 1;
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
    opacity: 0.72; /* Subtly dimmed by default to highlight scroll progress */
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2; /* opacity < 1 creates a stacking context at auto (≈0); explicit z-index
                   lifts it above .timeline-progress (z-index:1) so the line never
                   pierces the step-number circles */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    border: 2px solid var(--color-text-light-muted);
    color: var(--color-text-light);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover,
.timeline-item.step-active {
    opacity: 1;
}

.timeline-item:hover .timeline-number,
.timeline-item.step-active .timeline-number {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

.timeline-content h4 {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-phase {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.timeline-content p {
    color: var(--color-text-light-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Ladder-Style Timeline (for Leitern & Tritte)
   ========================================================================== */
.ladder-timeline::before {
    display: none; /* Hide standard single track line */
}

.ladder-timeline-track {
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 24px;
    /* Two vertical rails + horizontal rungs every 24px */
    background-image: 
        linear-gradient(to right, var(--color-dark-border) 4px, transparent 4px),
        linear-gradient(to left, var(--color-dark-border) 4px, transparent 4px),
        linear-gradient(to bottom, var(--color-dark-border) 2px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 100% 24px;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat-y;
    opacity: 0.35;
    z-index: 1;
}

.ladder-timeline .timeline-progress {
    left: 12px;
    width: 24px;
    background-color: transparent;
    overflow: hidden;
    z-index: 2;
    max-height: calc(100% - 40px);
}

.ladder-timeline .timeline-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3000px; /* Tall enough to cover timeline */
    /* Active color rails (Burgundy) + Active color rungs (Amber) */
    background-image: 
        linear-gradient(to right, var(--color-primary) 4px, transparent 4px),
        linear-gradient(to left, var(--color-primary) 4px, transparent 4px),
        linear-gradient(to bottom, var(--color-accent) 2px, transparent 2px);
    background-size: 100% 100%, 100% 100%, 100% 24px;
    background-position: 0 0, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, repeat-y;
}

/* Ensure timeline items (and their numbers) stack above the progress bar.
   opacity < 1 on .timeline-item creates a stacking context — without an explicit
   z-index the whole item sits at auto (≈ 0), below .timeline-progress (z-index:2).
   z-index: 4 here lifts the item's stacking context above the progress bar. */
.ladder-timeline .timeline-item {
    z-index: 4;
}

.ladder-timeline .timeline-number {
    z-index: 3; /* relative to the item's stacking context */
}

/* Mobile responsive centering for the ladder */
@media (max-width: 768px) {
    .ladder-timeline-track,
    .ladder-timeline .timeline-progress {
        left: 7px;
    }
}


/* ==========================================================================
   Qualitätsversprechen & USP Section
   ========================================================================== */
.usp-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-dark-border);
    padding: 40px;
    border-radius: var(--border-radius-md);
    transition: var(--transition-smooth);
}

.usp-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(122, 12, 46, 0.15);
    transform: translateY(-5px);
}

.usp-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(122, 12, 46, 0.2);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent);
}

.usp-icon {
    width: 26px;
    height: 26px;
}

.usp-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.usp-card p {
    color: var(--color-text-light-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Über Uns & Referenzen Section
   ========================================================================== */
.story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-text p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

.story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.signature {
    margin-top: 0;
}

.cert-seal {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.signature-line {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.signature-title {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
}

/* Standort-Karte (Google Maps) */
.map-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--color-light-border);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
    filter: grayscale(0.25) contrast(1.05);
}

.map-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-light-card);
    padding: 10px 16px;
    border-radius: var(--border-radius-full);
    box-shadow: var(--box-shadow-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark);
}

.map-chip svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Google Maps – Consent-Platzhalter (Zwei-Klick-Lösung) */
.map-consent {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 30% 25%, rgba(122, 12, 46, 0.07), transparent 55%),
        var(--color-light);
}

.map-consent-inner {
    max-width: 360px;
}

.map-consent-pin {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.map-consent-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.map-consent-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Footer Social / Profil-Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-dark-border);
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-review-btn {
    margin-top: 18px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
#faq {
    background-color: #FAF9F5 !important;
    background-image: 
        linear-gradient(rgba(122, 12, 46, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 12, 46, 0.04) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    border-top: 1px solid var(--color-light-border);
    border-bottom: 1px solid var(--color-light-border);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--color-light-card);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item:hover {
    border-color: var(--color-primary-light);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    cursor: pointer;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    padding: 0 30px 24px 30px;
}

.accordion-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Kontakt & Anfrage Section
   ========================================================================== */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.contact-detail-item a,
.contact-detail-item address {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    font-style: normal;
}

.contact-detail-item a:hover {
    color: var(--color-primary);
}

/* Form Styling */
.contact-form-wrapper {
    background-color: var(--color-light-card);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--color-light-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    transition: var(--transition-smooth);
    background-color: var(--color-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-light-card);
    box-shadow: 0 0 0 3px rgba(122, 12, 46, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 5px;
}

.form-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-feedback.success {
    display: block;
    color: var(--color-success);
}

.form-feedback.error {
    display: block;
    color: var(--color-primary);
}

/* ==========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */
.legal-content {
    max-width: var(--container-narrow-width);
    margin: 2.5rem auto 0;
    color: var(--color-text-dark);
    text-align: left;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin: 2.25rem 0 0.75rem;
    color: var(--color-primary);
}

.legal-content h3 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text-dark);
}

.legal-content p,
.legal-content ul {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.25rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--color-text-dark);
}

.legal-content address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    border-top: 1px solid var(--color-dark-border);
}

.footer-container {
    padding: 60px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-title {
    color: var(--color-text-light);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-text-light-muted);
    margin-top: 20px;
}

.footer-links-group h4 {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-light-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-dark-border);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copy-text,
.designer-text {
    font-size: 0.8rem;
    color: var(--color-text-light-muted);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}

/* ==========================================================================
   Brochure advantages & Ablauf Grid
   ========================================================================== */
.advantages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
    max-width: 980px;
    margin: 0 auto 80px auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 0;
    border-top: 1px solid var(--color-light-border);
}

.advantage-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 20px;
    height: 20px;
}

.advantage-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.advantage-body p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .advantages-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.scope-split {
    margin-bottom: 80px;
}

.process-lead-text {
    max-width: 600px;
    margin: 0 auto 48px auto;
    color: var(--color-text-light-muted);
    font-size: 1.05rem;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    background-color: var(--color-light-card);
    border-color: var(--color-primary-light);
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-3px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-phase {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .hero-svg-dashboard {
        margin: 40px auto 0 auto;
    }

    .badge-1 {
        left: 0;
    }

    .badge-2 {
        right: 0;
    }

    .badge-3 {
        left: 0;
    }

    .badge-4 {
        right: 0;
    }
}

@media (max-width: 480px) {
    .hero-svg-dashboard {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }

    .central-shield-node {
        width: 124px;
        height: 124px;
        padding: 15px;
    }

    .tech-badge {
        padding: 5px 10px;
    }

    .badge-label {
        font-size: 0.68rem;
    }

    .badge-ico {
        width: 12px;
        height: 12px;
    }

    .badge-1 {
        top: 7%;
        left: 0;
    }

    .badge-2 {
        top: 7%;
        right: 0;
    }

    .badge-3 {
        bottom: 7%;
        left: 0;
    }

    .badge-4 {
        bottom: 7%;
        right: 0;
    }
}

/* ==========================================================================
   Mobile typography & spacing polish
   ========================================================================== */
@media (max-width: 600px) {
    .section {
        padding: 56px 0;
    }

    h1 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
        line-height: 1.18;
    }

    .hero-content h1 {
        margin-bottom: 18px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-section {
        padding: 116px 0 70px 0;
    }

    .hero-lead {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 32px;
    }

    .lead-desktop {
        display: none;
    }

    .lead-mobile {
        display: inline;
    }

    .hero-actions {
        gap: 14px;
        margin-bottom: 36px;
    }

    /* Orbit feels disconnected stacked under the hero text on phones — hide it */
    .hero-visual {
        display: none;
    }

    /* Subtle brand watermark fills the hero background instead */
    .hero-watermark {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        width: 260px;
        height: 260px;
        opacity: 0.05;
        pointer-events: none;
        z-index: 0;
    }

    .hero-watermark svg {
        width: 100%;
        height: 100%;
    }

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

    .badge {
        font-size: 0.68rem;
        letter-spacing: 0.3px;
        white-space: normal;
        margin-bottom: 16px;
    }

    .process-wrapper {
        padding: 44px 20px;
    }

    .process-title {
        font-size: 1.4rem;
    }

    .process-lead-text {
        font-size: 0.95rem;
    }

    .timeline::before,
    .timeline-progress {
        left: 19px;
    }

    .timeline-item {
        padding-left: 58px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .card,
    .scope-card,
    .contact-form-wrapper {
        padding: 28px 24px;
    }

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

    .map-wrapper,
    .map-wrapper iframe {
        min-height: 320px;
    }

}

/* ==========================================================================
   Scroll reveal (progressive enhancement — only active when JS is present)
   ========================================================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Inline text link
   ========================================================================== */
.inline-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

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

/* ==========================================================================
   Subtle ambient & micro animations
   ========================================================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero entrance — staggered fade-up of the headline block */
.hero-content>* {
    animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.05s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.25s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.35s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 0.45s;
}

.hero-visual {
    animation: popIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Advantage list — icon reacts on hover */
.advantage-icon {
    transition: var(--transition-smooth);
}

.advantage-item:hover .advantage-icon {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Card icons — subtle tilt/scale when the card is hovered */
.card-icon-wrapper {
    transition: var(--transition-smooth);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
}

/* Contact detail icons lift on hover */
.detail-icon {
    transition: var(--transition-smooth);
}

.contact-detail-item:hover .detail-icon {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}

/* Certification seal — gentle tilt on hover */
.cert-seal {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-seal:hover {
    transform: rotate(-6deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {

    .hero-content>*,
    .hero-visual {
        animation: none;
    }
}

/* ==========================================================================
   Mobile Optimization Overrides
   ========================================================================== */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .grid-2,
    .grid-2-equal {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .contact-form button[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   Sticky Call Button (Mobile only)
   ========================================================================== */
.sticky-call-btn {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .sticky-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(120px); /* starts off-screen */
        z-index: 9999;
        background-color: var(--color-primary);
        color: #fff;
        text-decoration: none;
        padding: 14px 28px;
        border-radius: var(--border-radius-full);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 4px 20px rgba(122, 12, 46, 0.45);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        opacity: 0;
        white-space: nowrap;
    }

    .sticky-call-btn.visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .sticky-call-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}