/* CSS Variables for B2B Tech Theme */
:root {
    --bg-dark: #121214;
    --bg-darker: #0a0a0b;
    --bg-card: #1c1c1f;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    --text-main: #e0e0e0;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --accent: #FF5E00; /* Industrial Orange */
    --accent-hover: #e65500;
    
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--bg-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.light-section h2, .light-section h3, .light-section h4 {
    color: var(--text-dark);
}

.light-section p {
    color: #4b5563;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Inline Text Links */
.text-link {
    color: var(--accent);
    position: relative;
    font-weight: 600;
    transition: color 0.2s ease;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.text-link:hover {
    color: var(--accent-hover);
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: var(--accent-hover);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* Soft inner glow at edges so the boundary feels intentional, not cut off */
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), 0 -4px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
}

.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Ghost background image for Problem section */
.problem {
    position: relative;
    overflow: hidden;
}

.problem-bg-image {
    position: absolute;
    top: 0;
    right: -80px;
    width: 55%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Fade: left→transparent, right→transparent (vanishes at screen edge) */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.6) 15%,
        rgba(0,0,0,0.9) 50%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.6) 15%,
        rgba(0,0,0,0.9) 50%,
        transparent 100%
    );
}

.problem-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(40%) contrast(0.95);
    opacity: 0.75;
}

.problem .container {
    position: relative;
    z-index: 1;
}

.text-center { text-align: center; }
.text-center .divider { margin: 1.5rem auto; }

/* ============================================= */
/* PAGE INTRO ANIMATION                          */
/* ============================================= */

/* --- Curtain Overlay --- */
.page-curtain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.curtain-panel {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--bg-darker);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.curtain-top    { top: 0; }
.curtain-bottom { bottom: 0; }

.curtain-open .curtain-top    { transform: translateY(-100%); }
.curtain-open .curtain-bottom { transform: translateY(100%); }

/* --- Logo flash in center of curtain --- */
.curtain-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: curtainLogoFlash 0.7s ease forwards;
}

.curtain-logo img {
    height: 140px;
    width: auto;
    /* make the logo appear bright/white against the dark curtain */
    filter: brightness(0) invert(1);
}

@keyframes curtainLogoFlash {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.75); }
    40%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

/* Fade logo out as curtain opens */
.curtain-open .curtain-logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Navbar slide-in --- */
.navbar {
    animation: navbarReveal 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s both;
}

@keyframes navbarReveal {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero headline line reveal --- */
.hero h1 {
    overflow: hidden;
}

.hero-line {
    display: block;
    clip-path: inset(0 0 100% 0);
    animation: heroLineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroLineReveal {
    to { clip-path: inset(0 0 0% 0); }
}

/* --- Generic hero fade-up (subheadline, actions, badges) --- */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent);
    margin: 1.5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 64px;
}

.nav-btn {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-icon {
    display: none;
}

.navbar.scrolled .btn-text {
    display: none;
}

.navbar.scrolled .btn-icon {
    display: block;
}

.navbar.scrolled .nav-btn {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand:hover {
    opacity: 0.85;
}

.brand-icon {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
}

.navbar.scrolled .brand-icon {
    height: 48px;
}

.brand-icon img {
    height: 100%;
    width: auto;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-name {
    font-size: 1.2rem;
}

.logo-title {
    font-size: 0.9rem;
    color: var(--accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-title {
    font-size: 0.75rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px; /* Offset for navbar + breathing room */
    background: radial-gradient(circle at 80% 20%, #1a1a1f 0%, var(--bg-darker) 100%);
    overflow: hidden;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--accent);
}

.hero .subheadline {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.trust-badges svg {
    color: var(--accent);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards */
.card {
    padding: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.problem-card {
    background-color: var(--bg-white);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.solution-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

.solution-card > * {
    position: relative;
    z-index: 2;
    transform: translateZ(20px);
}

.solution-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 94, 0, 0.05),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.solution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.1),
        transparent 40%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease, background 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.solutions .grid-3:hover .solution-card::before,
.solutions .grid-3:hover .solution-card::after {
    opacity: 1;
}

.solutions .grid-3:hover .solution-card:hover::after {
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 94, 0, 0.8),
        transparent 40%
    );
}

.solutions .grid-3:hover .solution-card:hover::before {
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 94, 0, 0.12),
        transparent 40%
    );
}

/* Background glow for the entire section */
.solutions {
    position: relative;
    z-index: 1;
    overflow: hidden;
}



.dark-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        1200px circle at var(--c-mouse-x, 50%) var(--c-mouse-y, 50%),
        rgba(255, 94, 0, 0.05),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.dark-section:hover::before {
    opacity: 1;
}



.card-icon {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.card-icon.accent {
    color: var(--accent);
}

.target-group {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

/* About Section */
.about {
    position: relative;
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4.5rem;
    align-items: center;
}

/* ============================================= */
/* ABOUT VISUAL — Layered Depth Cutout & Ambient Animation */
/* ============================================= */

.about-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;

    /* Entrance animation on scroll */
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-visual.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Layer 1: Dark Tech Backdrop Card (Starts lower down so Philipp's head pops out) */
.about-backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 82%;
    border-radius: 20px;
    background: linear-gradient(165deg, #1d1d22 0%, #101012 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 45px -10px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 94, 0, 0.12),
        0 0 50px rgba(255, 94, 0, 0.04);
    overflow: hidden;
    z-index: 1;
}

/* Ambient warm orange core glow behind Philipp with gentle breathing animation */
.backdrop-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.24) 0%, rgba(255, 94, 0, 0.05) 55%, transparent 70%);
    filter: blur(32px);
    pointer-events: none;
    animation: glowBreathe 6s ease-in-out infinite;
}

@keyframes glowBreathe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateX(-50%) scale(1.18);
        opacity: 1;
    }
}

/* Blueprint dot-grid pattern */
.backdrop-blueprint {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.7;
    pointer-events: none;
}

/* Layer 2: Transparent Cutout Portrait (Head and tools overlap the backdrop boundaries) */
.about-portrait-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    pointer-events: none;
}

.about-portrait-cutout {
    width: 95%;
    height: auto;
    display: block;
    /* Clean natural drop-shadow tracing Philipp's silhouette onto the backdrop and page */
    filter:
        drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* Layer 3: Floating High-End Glass Badges (Self-running floating animation) */
.about-float-badge {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.05rem;
    background: rgba(18, 18, 22, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 94, 0, 0.18);
    color: #ffffff;
    pointer-events: auto;
    will-change: transform;
}

.badge-top-right {
    top: 14%;
    right: -24px;
    animation: floatBadgeA 5s ease-in-out infinite;
}

.badge-bottom-left {
    bottom: 12%;
    left: -32px;
    animation: floatBadgeB 5.5s ease-in-out 1s infinite;
}

@keyframes floatBadgeA {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes floatBadgeB {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

.badge-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 94, 0, 0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-val {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-lbl {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 1px;
    white-space: nowrap;
}




.highlight-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Contact Section */
.contact-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.agenda-list {
    list-style: none;
    margin-bottom: 2rem;
}

.agenda-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.agenda-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

.agenda-list strong {
    color: var(--bg-white);
}

.contact-alternatives {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mail-link, .phone-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--bg-white);
    font-weight: 600;
}

.mail-link:hover, .phone-link:hover {
    color: var(--accent);
}

/* Contact Form Flip Animation */
.contact-form-container {
    perspective: 1000px;
    width: 100%;
}

.form-flipper {
    position: relative;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.form-flipper.flipped {
    transform: rotateY(180deg);
}

.form-front, .form-back {
    width: 100%;
    backface-visibility: hidden;
}

.form-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
}

.form-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 2.5rem;
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.success-message h3 {
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(0,0,0,0.4);
}

.w-100 {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--bg-white);
}

/* ==============================================
   RESPONSIVE — MOBILE FIRST
   Desktop (>768px) stays exactly as designed.
   ============================================== */

/* --- Mobile carousel elements: hidden by default on desktop --- */
.problem-cards-mobile,
.solutions-cards-mobile,
.carousel-dots,
.carousel-hint {
    display: none;
}

@media (max-width: 768px) {

    /* ---- General ---- */
    section {
        padding: 3.5rem 0;
    }

    /* Disable Desktop Glow & Hover Effects */
    .dark-section::before,
    .solution-card::before,
    .solution-card::after {
        display: none !important;
    }
    
    .solution-card {
        transform: none !important;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* ---- Navbar ---- */
    .nav-container .btn {
        display: none;
    }

    .nav-container {
        height: 64px;
    }

    .brand-icon {
        height: 44px;
    }

    .logo-name {
        font-size: 1.15rem;
    }

    .logo-title {
        font-size: 0.75rem;
    }

    /* ---- Hero ---- */
    .hero {
        padding-top: 100px;
        min-height: 100svh;
        align-items: flex-start;
        padding-bottom: 3rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.6rem);
        letter-spacing: -0.5px;
        margin-bottom: 1rem;
    }

    .hero .subheadline {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .trust-badges span {
        font-size: 0.78rem;
    }

    /* ---- Problem Section — Horizontal Scroll Carousel ---- */
    .problem {
        overflow: hidden; /* clip ghost image */
    }

    .problem-bg-image {
        display: none; /* ghost image clutters mobile */
    }

    /* Hide the grid on mobile, show the carousel wrapper instead */
    .problem .grid-2 {
        display: none;
    }

    .problem-cards-mobile {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.25rem 1.5rem;
        margin: 1.5rem -1.25rem 0;
        scrollbar-width: none;
    }

    .problem-cards-mobile::-webkit-scrollbar {
        display: none;
    }

    .problem-cards-mobile .card {
        flex: 0 0 82vw;
        max-width: 320px;
        scroll-snap-align: center;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    /* Scroll hint fade at the right edge */
    .problem-cards-mobile::after {
        content: '';
        flex: 0 0 0.5rem;
    }

    /* ---- Solutions Section — Horizontal Scroll Carousel ---- */
    .solutions .grid-3 {
        display: none;
    }

    .solutions-cards-mobile {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem 1.25rem 1.5rem;
        margin: 1.5rem -1.25rem 0;
        scrollbar-width: none;
    }

    .solutions-cards-mobile::-webkit-scrollbar {
        display: none;
    }

    .solutions-cards-mobile .card {
        flex: 0 0 82vw;
        max-width: 320px;
        scroll-snap-align: center;
    }

    .solutions-cards-mobile::after {
        content: '';
        flex: 0 0 0.5rem;
    }

    /* Scroll indicator dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 1rem;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255,255,255,0.2);
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--accent);
        transform: scale(1.3);
    }

    /* Mobile swipe hint label */
    .carousel-hint {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.72rem;
        font-family: var(--font-mono);
        color: var(--text-muted);
        margin-top: 0.75rem;
        justify-content: center;
        opacity: 0.7;
    }

    .carousel-hint svg {
        animation: swipeHint 1.8s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); }
        50%       { transform: translateX(5px); }
    }

    /* ---- About Section ---- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        max-width: 280px;
        margin: 0 auto;
    }

    .badge-top-right {
        right: -4px;
        top: 10%;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .badge-bottom-left {
        left: -4px;
        bottom: 6%;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .badge-icon-wrap {
        width: 26px;
        height: 26px;
    }

    .badge-val {
        font-size: 0.72rem;
    }

    .badge-lbl {
        font-size: 0.6rem;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .highlight-box {
        padding: 1.25rem;
    }

    /* ---- Contact Section ---- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-alternatives {
        padding-top: 1.5rem;
    }

    /* ---- Section Headers ---- */
    .section-header h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    /* ---- Footer ---- */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin-left: 0.75rem;
    }
}

/* Legal Pages (Impressum / Datenschutz) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 80px;
}
.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--bg-white);
}
.legal-content h2, .legal-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--bg-white);
}
.legal-content p, .legal-content li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-content a:hover {
    color: var(--accent-hover);
}

