/* ==========================================================================
   companySoft – Webseite
   ========================================================================== */

:root {
    --red: #d9242f;
    --red-dark: #b51d27;
    --red-soft: #fdecee;
    --ink: #17191c;
    --text: #3b3f44;
    --muted: #6b7178;
    --slate: #575a5b;
    --line: #e5e7eb;
    --bg: #ffffff;
    --bg-muted: #f5f6f8;
    --green: #16a34a;
    --blue: #2563eb;
    --amber: #d97706;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
    --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, .25);

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --container: 1200px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, .h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.15rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible { outline: 3px solid rgba(217, 36, 47, .45); outline-offset: 2px; border-radius: 6px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }
.accent { color: var(--red); }

/* --------------------------------------------------------------------------
   Logo (wie im ERP)
   -------------------------------------------------------------------------- */
.cs-logo {
    display: inline-flex;
    align-items: flex-start;
    height: 1em;
    line-height: 1;
}
.cs-logo-mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .054em;
    width: .678em;
    height: .678em;
    margin-top: .064em;
    margin-right: .318em;
    flex-shrink: 0;
}
.cs-logo-tile {
    background-color: #575a5b;
    border-radius: 18%;
    transition: background-color .8s ease, border-radius .8s ease;
}
.cs-logo-tile.is-dot { background-color: var(--red); border-radius: 50%; }
.cs-logo-wordmark { height: 1em; width: auto; }

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 36, 47, .6); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--red-soft); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link .icon { transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }

.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
}
.pill .icon { width: 14px; height: 14px; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-blue { background: #dbeafe; color: #1e40af; }
.pill-red { background: var(--red-soft); color: var(--red-dark); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; font-size: 30px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav ul a {
    display: block; padding: 8px 14px; border-radius: 999px;
    color: var(--text); font-weight: 500; font-size: .98rem;
    transition: background-color .2s, color .2s;
}
.main-nav ul a:hover { background: var(--bg-muted); color: var(--ink); }
.main-nav ul a[aria-current="page"] { color: var(--ink); background: var(--bg-muted); font-weight: 600; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }

@media (max-width: 900px) {
    .brand { font-size: 26px; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 20px 24px 28px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open .nav-toggle-open { display: none; }
    .nav-open .nav-toggle-close { display: inline; }
}

/* --------------------------------------------------------------------------
   Sektionen
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }
.section-muted { background: var(--bg-muted); }

.section-head { max-width: 720px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow);
}

.check-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon {
    width: 22px; height: 22px; padding: 4px; margin-top: 2px;
    border-radius: 50%; background: var(--red-soft); color: var(--red); stroke-width: 3;
}

/* Hero (Startseite) */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(217, 36, 47, .09), transparent 60%),
        radial-gradient(700px 400px at 0% 100%, rgba(87, 90, 91, .07), transparent 60%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(23, 25, 28, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 0; padding: 0; list-style: none; font-size: .95rem; color: var(--muted); }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks .icon { color: var(--green); stroke-width: 3; width: 16px; height: 16px; }

/* Mockups (dekorative UI-Grafiken) */
.hero-visual { position: relative; min-height: 500px; }
.mock {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    font-size: .85rem;
}
.mock-title { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 700; color: var(--ink); }
.mock-title .icon { color: var(--red); }
.mock-btn {
    display: inline-block; padding: 8px 14px; border-radius: 999px;
    background: var(--red); color: #fff; font-weight: 600; font-size: .8rem;
}

.mock-shop { position: absolute; top: 0; right: 0; width: 88%; overflow: hidden; animation: float 7s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mock-bar i:first-child { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.mock-body { padding: 22px; }
.mock-product { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; }
.mock-phone {
    position: relative; aspect-ratio: 9 / 18; border-radius: 18px;
    background: linear-gradient(160deg, #2b2f35, #0d0f12);
    padding: 6px; box-shadow: inset 0 0 0 2px #3a3f46;
}
.mock-phone span {
    display: block; height: 100%; border-radius: 13px;
    background: linear-gradient(160deg, #ff8a8f 0%, var(--red) 45%, #5b1015 100%);
}
.mock-product-info b { display: block; font-size: 1rem; color: var(--ink); }
.mock-product-info small { display: block; color: var(--muted); margin-bottom: 12px; }
.mock-price strong { font-size: 1.8rem; color: var(--ink); letter-spacing: -.03em; }
.mock-price span { margin-left: 4px; color: var(--muted); }
.mock-once { margin-bottom: 14px; color: var(--muted); font-size: .8rem; }
.mock-tariffs { display: flex; gap: 8px; margin-top: 20px; }
.mock-tariffs span { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; color: var(--muted); font-size: .78rem; }
.mock-tariffs .is-active { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.mock-api {
    position: absolute; left: 0; bottom: 0; width: 60%;
    background: #121418; border-color: #23262c; color: #d6d9de;
    animation: float 7s ease-in-out -3.5s infinite;
}
.mock-api-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #23262c; font-family: var(--mono); font-size: .75rem; color: #9aa0a8; }
.mock-api pre { margin: 0; padding: 14px 16px 18px; font-family: var(--mono); font-size: .78rem; line-height: 1.7; white-space: pre; overflow: hidden; }
.mock-api .k { color: #ff9aa0; }
.mock-api .s { color: #9be3a9; }

.mock-badge {
    position: absolute; right: -8px; bottom: 70px;
    display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    animation: float 7s ease-in-out -1.5s infinite;
}
.mock-badge b { display: block; color: var(--ink); }
.mock-badge small { color: var(--muted); }
.badge-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #dcfce7; color: var(--green); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Leistungs-Saeulen */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
    position: relative; display: flex; flex-direction: column;
    padding: 32px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar .check-list { font-size: .98rem; flex: 1; }
.pillar-icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
    border-radius: 14px; background: var(--ink); color: #fff;
}
.pillar-icon .icon { width: 24px; height: 24px; }
.pillar:hover .pillar-icon { background: var(--red); }

/* Produkte */
.section-products { padding-top: 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: clamp(32px, 4vw, 52px); border-radius: 24px;
    background: var(--bg-muted); border: 1px solid var(--line);
}
.product-card p { flex: 1; margin-bottom: 28px; }
.product-card h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -.04em; margin: 0 0 16px; }
.product-tag {
    display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--muted);
}
.product-card-accent { background: linear-gradient(140deg, #e3343f, #a9151f); border-color: transparent; color: rgba(255, 255, 255, .88); }
.product-card-accent h3 { color: #fff; }
.product-card-accent .product-tag { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: #fff; }
.product-card::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%; border: 40px solid rgba(0, 0, 0, .04);
}
.product-card-accent::after { border-color: rgba(255, 255, 255, .08); }

/* Warum companySoft */
.feature-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; }
.feature-list li { display: flex; gap: 18px; }
.feature-list b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1.05rem; }
.feature-list p { margin: 0; color: var(--muted); }
.feature-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff; color: var(--red); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
    padding: 28px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
}
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); margin-bottom: 8px; }
.stat:first-child strong { color: var(--red); }
.stat > span { color: var(--muted); font-size: .95rem; }
.tech-logos { grid-column: 1 / -1; padding: 22px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.tech-logos > span { display: block; margin-bottom: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tech-logos div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tech-logos img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.tech-logos img:hover { filter: none; opacity: 1; }

/* Kundenlogos */
.section-clients { padding: 64px 0; border-bottom: 1px solid var(--line); }
.clients-title { text-align: center; margin-bottom: 28px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 48px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* Unterseiten-Hero */
.page-hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
    background: radial-gradient(800px 400px at 90% 0%, rgba(217, 36, 47, .07), transparent 60%);
}
.page-hero-compact { padding-bottom: 48px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero h1 { margin-bottom: 20px; }
.highlight-card .check-list { margin-bottom: 0; }

/* Feature-Zeilen (CS Shop) */
.feature-rows { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-row.is-reversed .feature-text { order: 2; }
.feature-num { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 800; color: var(--red); letter-spacing: .1em; }
.feature-text .strong { font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.feature-text p:not(.strong) { color: var(--muted); }

.feature-visual {
    position: relative; display: grid; place-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: 28px;
    background: linear-gradient(145deg, var(--bg-muted), #eceef1);
    overflow: hidden;
}
.feature-visual::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(23, 25, 28, .07) 1px, transparent 1px);
    background-size: 20px 20px;
}
.feature-visual .mock { position: relative; width: 100%; max-width: 400px; padding: 24px; box-shadow: var(--shadow); }

.calc-row, .calc-total { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.calc-row span { color: var(--muted); }
.calc-row b { color: var(--ink); }
.calc-row .neg { color: var(--green); }
.calc-total { border-bottom: 0; padding-top: 14px; font-size: 1rem; }
.calc-total b { color: var(--red); font-size: 1.2rem; }
.calc-bar { height: 8px; margin: 10px 0 12px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.calc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #ff7a82); }
.mock-calc small { color: var(--muted); }

.mock-pdf { display: grid; gap: 16px; }
.pdf-page { padding: 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.pdf-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.pdf-logo { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); }
.pdf-lines { flex: 1; display: grid; gap: 6px; }
.pdf-lines i { height: 7px; border-radius: 4px; background: var(--line); }
.pdf-lines i:last-child { width: 60%; }
.pdf-field { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.pdf-field small { color: var(--muted); }
.pdf-field span { padding: 5px 10px; border-radius: 6px; background: #eff6ff; color: #1e3a8a; font-family: var(--mono); font-size: .78rem; }
.pdf-sign { height: 30px; margin-top: 12px; border-bottom: 1px solid var(--ink); width: 55%; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M4 22c10-14 16-16 18-8s-4 10 2 4 10-14 14-8-2 12 6 6 12-10 16-6 4 8 12 4 14-6 20-4' fill='none' stroke='%231e3a8a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.pdf-flow { display: flex; flex-wrap: wrap; gap: 8px; }

.theme-swatches { display: flex; gap: 10px; margin-bottom: 18px; }
.theme-swatches span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px #fff; border: 2px solid transparent; }
.theme-swatches .is-active { border-color: var(--c); }
.theme-preview { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; }
.tp-nav { display: flex; gap: 8px; align-items: center; }
.tp-nav i { width: 22px; height: 22px; border-radius: 6px; background: var(--red); }
.tp-nav span { width: 40px; height: 7px; border-radius: 4px; background: var(--line); }
.tp-hero { height: 70px; border-radius: 8px; background: linear-gradient(120deg, var(--red), #ff8a90); }
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-cards i { height: 44px; border-radius: 8px; background: var(--bg-muted); }

.mock-pages ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mock-pages li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.mock-pages li small { margin-left: auto; color: var(--muted); font-weight: 400; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }

/* UAP */
.uap-diagram {
    display: grid; justify-items: center; gap: 0;
    padding: 40px 28px; border-radius: 28px;
    background: var(--ink); color: #fff;
    box-shadow: var(--shadow-lg);
}
.uap-node { padding: 12px 22px; border-radius: 12px; font-weight: 600; text-align: center; }
.uap-you { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.uap-core { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; background: #fff; color: var(--ink); font-size: 1.4rem; letter-spacing: -.02em; }
.cs-logo-mark.mini { font-size: 34px; margin: 0; }
.uap-line { position: relative; width: 2px; height: 46px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.uap-line i { position: absolute; left: 0; top: -14px; width: 2px; height: 14px; background: var(--red); animation: pulse-down 1.6s linear infinite; }
@keyframes pulse-down { to { transform: translateY(74px); } }
.uap-fan {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    width: 100%; margin-top: 46px;
}
/* Verteiler: senkrechte Linie von UAP, Querbalken ueber den Netzbetreibern, Abzweig je Netzbetreiber */
.uap-fan::before {
    content: ""; position: absolute; left: 12.5%; right: 12.5%; top: -24px;
    border-top: 2px solid rgba(255, 255, 255, .2);
}
.uap-fan::after { content: ""; position: absolute; left: 50%; top: -46px; width: 2px; height: 24px; background: rgba(255, 255, 255, .2); }
.uap-fan span { position: relative; }
.uap-fan span::before { content: ""; position: absolute; left: calc(50% - 1px); top: -25px; width: 2px; height: 24px; background: rgba(255, 255, 255, .2); }
.uap-fan span { padding: 12px 6px; border-radius: 12px; text-align: center; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }

.prose h2 { margin-top: 0; }
.uap-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.uap-benefits > div { padding: 20px; border-radius: var(--radius-sm); background: var(--bg-muted); }
.uap-benefits .feature-icon { margin-bottom: 12px; width: 40px; height: 40px; }
.uap-benefits b { display: block; color: var(--ink); }
.uap-benefits small { color: var(--muted); }

.callout {
    display: flex; align-items: center; gap: 24px;
    padding: 24px 28px; border-radius: var(--radius);
    background: var(--red-soft); color: var(--ink);
}
.callout p { margin: 0; }
.callout-num { font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: var(--red); white-space: nowrap; }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
.carrier-table { width: 100%; border-collapse: collapse; }
.carrier-table th, .carrier-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.carrier-table thead th { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.carrier-table th:first-child { text-align: left; }
.carrier-table tbody th { color: var(--ink); font-weight: 600; }
.carrier-table tbody tr:hover { background: var(--bg-muted); }
.status { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.status .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.status-yes { background: #dcfce7; color: var(--green); }
.status-wip { background: #dbeafe; color: var(--blue); }
.status-no { background: #f3f4f6; color: #9ca3af; }
.status-text { font-size: .85rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .status { width: 22px; height: 22px; }
.legend .status .icon { width: 13px; height: 13px; }

/* Ueber uns / Team */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.mini-stats strong { display: block; font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.mini-stats span { font-size: .85rem; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.team-card {
    display: flex; gap: 22px; align-items: flex-start;
    padding: 26px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card img { width: 104px; height: 104px; flex-shrink: 0; border-radius: 24px; background: var(--bg-muted); }
.team-card h3 { margin-bottom: 2px; font-size: 1.2rem; }
.team-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--bg-muted); font-size: .72rem; font-weight: 600; color: var(--muted); vertical-align: middle; letter-spacing: 0; }
.team-role { margin-bottom: 12px; font-size: .9rem; font-weight: 600; color: var(--red); }
.team-body > p:not(.team-role) { margin-bottom: 14px; font-size: .97rem; color: var(--muted); }
.team-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.team-contact li { display: flex; align-items: center; gap: 8px; }
.team-contact .icon { width: 15px; height: 15px; color: var(--muted); }
.team-card-you { border-style: dashed; border-width: 2px; background: transparent; }

/* Kontakt */
.section-contact { background: var(--ink); color: rgba(255, 255, 255, .75); }
.section-contact h2 { color: #fff; }
.section-contact .contact-list a { color: #fff; }
.section-contact .contact-list .icon { background: rgba(255, 255, 255, .08); color: #fff; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
.contact-list span, .contact-list a { padding-top: 7px; }
.contact-card { color: var(--text); }

.locations { display: grid; gap: 24px; }
.location .contact-list { margin-top: 18px; }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: 13px 15px;
    border: 1px solid #d5d8dd; border-radius: 12px;
    background: #fff; color: var(--ink);
    font: inherit; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 36, 47, .12); }
.field .is-invalid, .checkbox.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 36, 47, .12); }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--red); }
.checkbox.is-invalid { color: var(--red-dark); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.is-success { color: var(--green); font-weight: 600; }
.form-status.is-error { color: var(--red-dark); font-weight: 600; }
.notice { padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.notice-success { background: #dcfce7; color: #166534; }
.notice-error { background: var(--red-soft); color: var(--red-dark); }

/* Rechtstexte */
.legal { max-width: 860px; }
.legal h2 { margin: 2em 0 .6em; font-size: 1.3rem; letter-spacing: -.01em; }
.legal h2:first-child, .legal .h4:first-child { margin-top: 0; }
.legal .h4 { margin-top: 1.6em; }
.legal h3 { margin: 1.4em 0 .4em; font-size: 1.05rem; }
.legal ul { padding-left: 1.2em; }
.legal ul.plain { list-style: none; padding-left: 0; }
.legal li { margin-bottom: .3em; }
.legal-note { margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

.error-page { min-height: 50vh; display: flex; align-items: center; }

/* Footer */
.site-footer { padding: 72px 0 0; background: #fff; border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand { font-size: 28px; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); max-width: 26em; }
.site-footer h3 { margin-bottom: 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); }
.site-footer ul a:hover { color: var(--red); }
.footer-contact li { color: var(--text); }
.made-in { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink) !important; }
.flag { display: inline-flex; flex-direction: column; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #111; }
.flag i:nth-child(2) { background: #dd0000; }
.flag i:nth-child(3) { background: #ffce00; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }

/* Zaehler: gleich breite Ziffern, rechtsbuendig im reservierten Platz */
[data-count] { font-variant-numeric: tabular-nums; }
span[data-count] { display: inline-block; text-align: right; }

/* Scroll-Animationen */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .pillars { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero-grid, .page-hero-grid, .split, .feature-row, .contact-grid, .product-grid { grid-template-columns: 1fr; }
    .feature-row.is-reversed .feature-text { order: 0; }
    .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; }
    .container { padding: 0 20px; }
    .form-row, .uap-benefits { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px; }
    .tech-logos div { flex-wrap: wrap; justify-content: flex-start; }
    .tech-logos img { height: 32px; }
    .hero-visual { min-height: 360px; }
    .mock-shop { width: 100%; }
    .mock-product { grid-template-columns: 80px 1fr; gap: 16px; }
    .mock-api { width: 78%; bottom: 10px; }
    .mock-badge { display: none; }
    .team-card { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .callout { flex-direction: column; align-items: flex-start; gap: 10px; }
    .uap-fan { gap: 6px; }
    .uap-fan span { font-size: .72rem; padding: 10px 2px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Grid-Kinder duerfen schmaler als ihr Inhalt werden (verhindert horizontales Scrollen) */
.hero-grid > *, .page-hero-grid > *, .split > *, .feature-row > *, .contact-grid > *, .product-grid > *, .pillars > *, .footer-grid > * { min-width: 0; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
