﻿/* ========================================================================
   Modern Base Design System - "Fresh & Trustworthy"
   Ziel: minimalistisch, hohe Lesbarkeit, starke Kontraste, feine Details
   Hinweis: Klassenbezeichnungen bleiben kompatibel zu deinem bestehenden Markup.
   ======================================================================== */

/* === 1. DESIGN TOKENS =================================================== */
:root {
    color-scheme: light dark;
    /* Brand (Dunkelblau/Petrol aus PDF) */
    --brand-50: #f0f7f9;
    --brand-100: #d9edf2;
    --brand-200: #b3dbe5;
    --brand-300: var(--text);
    --brand-400: #4da8bc;
    --brand-500: #1a4d5e; /* Primär - Dunkelblau aus Logo */
    --brand-600: #153d4a; /* Hover */
    --brand-700: #102e37;
    --brand-800: #0c2229;
    --brand-900: #08151a;
    /* Neutral - grauer Hintergrund wie im PDF */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e0e0e0;
    --neutral-300: #c2c2c2;
    --neutral-400: #9e9e9e;
    --neutral-500: #757575;
    --neutral-600: #616161;
    --neutral-700: #424242;
    --neutral-800: #2c2c2c;
    --neutral-900: #1a1a1a;
    --white: #ffffff;
    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    /* Semantik Light - Grauer Hintergrund */
    --bg: #c9c9c9;
    --text: #17233f;
    --text-muted: #17233f;
    --border: rgba(0, 0, 0, 0.12);
    --card-bg: #e8e8e8;
    --elev-1: 0 2px 4px rgba(0, 0, 0, 0.1);
    --elev-2: 0 4px 12px rgba(0, 0, 0, 0.15);
    --elev-3: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* Radius & Spacing */
    --radius-sm: .5rem;
    --radius-md: .875rem;
    --radius-lg: 1.25rem;
    /* Fokus- und Interaktionsfarben */
    --focus: var(--brand-500);
    --focus-ring: 0 0 0 4px rgba(26,77,94,.20);
    /* Typografie (Fluid) */
    --fs-100: clamp(0.875rem, .82rem + .2vw, .95rem);
    --fs-200: clamp(1rem, .96rem + .25vw, 1.075rem);
    --fs-300: clamp(1.125rem, 1.08rem + .35vw, 1.25rem);
    --fs-400: clamp(1.35rem, 1.2rem + .8vw, 1.75rem);
    --fs-500: clamp(1.9rem, 1.5rem + 1.8vw, 2.5rem);
    --fs-600: clamp(2.4rem, 1.8rem + 3vw, 3.2rem);
    /* Subtile Akzent-Verläufe */
    --grad-brand: linear-gradient(90deg, var(--brand-600), var(--brand-500));
    --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(26,77,94,.06), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(77,168,188,.04), transparent 35%);
    --floating-nav-bg: #153d4a;
    --floating-nav-hover: #102e37;
}

/* === 1b. DARK MODE (Auto via OS) ======================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1b3e;
        --text: white;
        --text-muted: #8a94a8;
        --border: rgba(160,175,200,.12);
        --card-bg: #152244;
        --elev-1: 0 1px 2px rgba(0,0,0,.35);
        --elev-2: 0 10px 30px rgba(0,0,0,.45);
        --elev-3: 0 6px 24px rgba(0,0,0,.40);
        --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(30,60,114,.25), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(30,60,114,.20), transparent 35%);
        --floating-nav-bg: #1e3c72;
        --floating-nav-hover: #2a52a0;
    }
}

/* Optional: manueller Dark Mode via .theme-dark */
.theme-dark {
    --bg: #0d1b3e;
    --text: white;
    --text-muted: #8a94a8;
    --border: rgba(160,175,200,.12);
    --card-bg: #152244;
    --elev-1: 0 1px 2px rgba(0,0,0,.35);
    --elev-2: 0 10px 30px rgba(0,0,0,.45);
    --elev-3: 0 6px 24px rgba(0,0,0,.40);
    --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(30,60,114,.25), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(30,60,114,.20), transparent 35%);
    --floating-nav-bg: #1e3c72;
    --floating-nav-hover: #2a52a0;
}

/* Manueller Light Mode - überschreibt OS-Dark-Mode */
html.theme-light {
    --bg: #c9c9c9;
    --text: #17233f;
    --text-muted: #17233f;
    --border: rgba(0, 0, 0, 0.12);
    --card-bg: #e8e8e8;
    --elev-1: 0 2px 4px rgba(0, 0, 0, 0.1);
    --elev-2: 0 4px 12px rgba(0, 0, 0, 0.15);
    --elev-3: 0 4px 16px rgba(0, 0, 0, 0.15);
    --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(26,77,94,.06), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(77,168,188,.04), transparent 35%);
    --floating-nav-bg: #153d4a;
    --floating-nav-hover: #102e37;
}

/* === 2. RESET / NORMALIZE ============================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

body {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    background-image: var(--grad-card);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
    display: block;
/*    max-width: 100%;
*/    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* === 3. TYPOGRAFIE ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 750;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: .75rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--fs-600);
    letter-spacing: -0.02em;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    -webkit-hyphens: none;
    hyphens: none;
}

h2 {
    font-size: var(--fs-500);
}

h3 {
    font-size: var(--fs-400);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: var(--fs-200);
}

.lead {
    font-size: var(--fs-300);
    line-height: 1.2;
    color: var(--text-muted);
    font-weight: 400;
    font-style:italic;
}

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

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

strong, b {
    font-weight: 700;
}

/* Links - hohe Erkennbarkeit + Underline on hover */
a {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: .08em;
    transition: color .18s ease, text-decoration-color .18s ease;
}

    a:hover {
        color: var(--brand-700);
        text-decoration-color: currentColor;
    }

    a:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
        border-radius: 6px;
    }

.link {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}

    .link:hover {
        color: var(--brand-700);
        text-decoration: underline;
    }

/* === 4. LAYOUT ========================================================== */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
}

.section {
    padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.grid {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
}

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

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

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

/* === 5. NAVIGATION ====================================================== */
:root {
    --logo-h: clamp(28px, 5.5vw, 42px);
    --navbar-pad-y: 0.85rem;
    --navbar-bg: color-mix(in srgb, var(--bg) 82%, transparent);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--navbar-pad-y) 0;
    /*    backdrop-filter: saturate(140%) blur(8px);
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--border);*/
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}

    .navbar__brand:hover {
        color: var(--brand-600);
    }

.navbar__logo {
    line-height: 0;
    display: block;
}

    .navbar__logo img {
        height: var(--logo-h);
        width: auto;
        object-fit: contain;
        object-position: left center;
        display: block;
    }

.navbar__menu {
    display: flex;
    align-items: center;
    padding-right: 10px;
    gap: 1.25rem;
    list-style: none;
}

.navbar__item {
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-200);
    padding: .375rem .5rem;
    border-radius: .5rem;
    transition: color .18s ease;
}

    .navbar__item:hover {
        color: var(--brand-700);
        background: color-mix(in srgb, var(--brand-50) 65%, transparent);
    }

@media (max-width: 768px) {
    .navbar__menu {
        gap: .75rem;
        font-size: .95rem;
    }
}

/* === 6. BUTTONS ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    min-height: 44px;
    /*    border-radius: var(--radius-md);
*/ font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    will-change: transform;
}

    .btn:active {
        transform: translateY(0);
    }

    .btn--primary, .btn:not([class*="--"]) {
        background: var(--grad-brand);
        color: var(--white);
        box-shadow: var(--elev-1);
    }

        .btn--primary:hover,
        .btn:not([class*="--"]):hover {
            box-shadow: var(--elev-2);
            transform: translateY(-1px);
        }

        .btn--primary:focus-visible,
        .btn:not([class*="--"]):focus-visible {
            outline: none;
            box-shadow: var(--focus-ring), var(--elev-2);
        }

.btn--secondary {
    background: color-mix(in srgb, var(--brand-50) 40%, transparent);
    color: #17233f;
    border-color: #17233f;
}

    .btn--secondary:hover {
        background: color-mix(in srgb, var(--brand-50) 75%, transparent);
        border-color: var(--brand-500);
    }

.btn--ghost {
    background: transparent;
    color: var(--brand-600);
    padding: .5rem .9rem;
}

    .btn--ghost:hover {
        background: color-mix(in srgb, var(--brand-50) 60%, transparent);
    }

/* === 7. FORMULARE ======================================================= */
.form-group {
    margin-bottom: 1.15rem;
}

.form-help {
    display: block;
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.input, .select, .textarea {
    width: 100%;
    padding: .75rem 1rem;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .input::placeholder, .textarea::placeholder {
        color: #9aa3b2;
    }

    .input:focus, .select:focus, .textarea:focus {
        outline: none;
        border-color: var(--focus);
        box-shadow: var(--focus-ring);
        background: color-mix(in srgb, var(--bg) 98%, transparent);
    }

.textarea {
    resize: vertical;
    min-height: 120px;
}

/* Validierung */
.is-valid {
    border-color: var(--success);
}

    .is-valid:focus {
        box-shadow: 0 0 0 4px rgba(16,185,129,.18);
    }

.is-invalid {
    border-color: var(--error);
}

    .is-invalid:focus {
        box-shadow: 0 0 0 4px rgba(239,68,68,.18);
    }

.invalid-feedback {
    display: block;
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--error);
}

/* === 8. CARDS =========================================================== */
.card {
    background: linear-gradient( 135deg, rgb(195, 195, 195) 0%, rgb(186, 186, 186) 40%, rgb(176, 176, 176) 100% );
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding-bottom: clamp(1.25rem, 2vw, 2rem);
    padding-top: clamp(1.25rem, 2vw, 2rem);
    box-shadow: var(--elev-1);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Dark Mode Cards */
.theme-dark .card {
    background: linear-gradient(135deg, #152244 0%, #1a2d5a 100%);
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .card {
        background: linear-gradient(135deg, #152244 0%, #1a2d5a 100%);
    }
}

    .card:hover {
        transform: translateY(-3px);
        box-shadow: var(--elev-3);
        border-color: color-mix(in srgb, var(--brand-300) 55%, var(--border));
    }

.card__header {
    margin-bottom: 1rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
}

.card__body {
    margin-bottom: .5rem;
}

.card__footer {
    margin-top: 1.25rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
}

/* === 9. TABLES ========================================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: var(--fs-100);
}

    .table thead {
        background: color-mix(in srgb, var(--card-bg) 70%, transparent);
    }

    .table th {
        font-weight: 700;
        text-align: left;
        padding: .75rem 1rem;
        border-bottom: 2px solid var(--border);
    }

    .table td {
        padding: .7rem 1rem;
        border-bottom: 1px solid var(--border);
    }

    .table tbody tr {
        transition: background-color .18s ease;
    }

        .table tbody tr:nth-child(even) {
            background: color-mix(in srgb, var(--brand-50) 22%, transparent);
        }

        .table tbody tr:hover {
            background: color-mix(in srgb, var(--brand-50) 55%, transparent);
        }

.table--compact th, .table--compact td {
    padding: .5rem .75rem;
    font-size: .92rem;
}

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* === 10. BADGES ========================================================= */
.badge {
    display: inline-block;
    padding: .25rem .75rem;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-100) 80%, transparent);
    color: var(--brand-800);
    border: 1px solid color-mix(in srgb, var(--brand-300) 65%, transparent);
}

/* === 11. ALERTS ========================================================= */
.alert {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    border-left: 4px solid;
    box-shadow: var(--elev-1);
}

.alert--info {
    background: color-mix(in srgb, var(--brand-50) 85%, transparent);
    border-color: var(--brand-600);
    color: color-mix(in srgb, var(--brand-900) 80%, var(--text));
}

.alert--success {
    background: #d1fae5;
    border-color: var(--success);
    color: #065f46;
}

.alert--warning {
    background: #fef3c7;
    border-color: var(--warning);
    color: #92400e;
}

.alert--error {
    background: #fee2e2;
    border-color: var(--error);
    color: #991b1b;
}

/* === 12. FOOTER ========================================================= */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 3.5rem;
    background: linear-gradient( 135deg, rgb(195, 195, 195) 0%, rgb(186, 186, 186) 40%, rgb(176, 176, 176) 100% );
}

/* Dark Mode Footer */
.theme-dark .footer {
    background: linear-gradient(135deg, #0a1530 0%, #112040 100%);
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .footer {
        background: linear-gradient(135deg, #0a1530 0%, #112040 100%);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 2rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: .9rem;
    color: var(--text);
}

.footer ul {
    list-style: none;
}

    .footer ul li {
        margin-bottom: .55rem;
    }

.footer a {
    color: var(--text-muted);
    font-size: .95rem;
    text-decoration: none;
}

    .footer a:hover {
        color: var(--brand-600);
        text-decoration: underline;
    }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-muted);
}

    .footer-bottom p {
        margin-bottom: .45rem;
    }

/* === 13. UTILITIES ====================================================== */
.mt-1 {
    margin-top: .5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: .5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.pt-1 {
    padding-top: .5rem;
}

.pt-2 {
    padding-top: 1rem;
}

.pt-3 {
    padding-top: 1.5rem;
}

.pt-4 {
    padding-top: 2rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-1 {
    padding-bottom: .5rem;
}

.pb-2 {
    padding-bottom: 1rem;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.p-1 {
    padding: .5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.p-5 {
    padding: 3rem;
}

.hidden {
    display: none !important;
}

.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;
}

/* === 14. HERO =========================================================== */
.hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 3vw, 4rem);
    text-align: center;
}

    .hero h1 {
        margin-bottom: 1rem;
        -webkit-background-clip: text;
        background-clip: text;
    }

    .hero .lead {
        font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
        max-width: 52rem;
        margin-inline: auto;
        color: var(--text-muted);
    }

/* === 15. FOKUS & MOTION ================================================ */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === 16. NAVBAR - LOGO BREAKPOINTS ===================================== */
/* Deutlich größere Logo-Höhen für alle Ansichten */

@media (min-width: 1600px) {
    :root {
        --logo-h: 102px; /* 4K / Widescreen */
    }
}

@media (min-width: 1280px) {
    :root {
        --logo-h: 84px; /* Desktop-Standard */
    }
}

@media (max-width: 1280px) and (min-width: 1024px) {
    :root {
        --logo-h: 78px; /* Laptop */
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    :root {
        --logo-h: 68px; /* Tablet quer */
    }
}

@media (max-width: 768px) and (min-width: 600px) {
    :root {
        --logo-h: 60px; /* Tablet hoch / große Smartphones */
    }
}

@media (max-width: 600px) and (min-width: 480px) {
    :root {
        --logo-h: 64px; /* Smartphone groß */
    }
}

@media (max-width: 480px) {
    :root {
        --logo-h: 56px; /* Sehr kleine Geräte */
    }
}

/* Optional: invert helles PNG-Logo im Dark-Mode */
@media (prefers-color-scheme: dark) {
    .navbar__logo img[data-invert-on-dark="true"] {
        filter: brightness(0) invert(1);
    }
}

/* === 17. NAVBAR: Responsive Burger-Menü ================================ */
.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    padding-right: 8px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.navbar__toggle-line {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.navbar__toggle.is-active .navbar__toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.is-active .navbar__toggle-line:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.is-active .navbar__toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1000px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        padding: 1rem 1.25rem;
        border-top: 1px solid var(--border);
        display: none;
        box-shadow: var(--elev-2);
    }

        .navbar__menu.is-open {
            display: flex;
            animation: slideDown .25s ease forwards;
        }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

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

    .navbar__item, .btn {
        width: 100%;
    }
}

/* === 18. TABLE/FORM KONTRAST-VERBESSERUNG BEI HOHEM KONTRAST ===========
   Achtung: nur wenn Nutzer*in explizit hohen Kontrast wünscht */
@media (prefers-contrast: more) {
    :root {
        --border: color-mix(in srgb, var(--text) 22%, transparent);
    }

    .btn--secondary {
        border-color: var(--brand-600);
    }

    .table thead {
        background: color-mix(in srgb, var(--brand-50) 90%, transparent);
    }
}

/* === 19. ACCESSIBILITY DETAILS ========================================= */
abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

mark {
    background: #fff3a3;
    color: inherit;
    padding: 0 .2em;
    border-radius: .2em;
}

kbd {
    background: color-mix(in srgb, var(--bg) 70%, #000);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    padding: .1rem .35rem;
    border-radius: .4rem;
}

/* === Fix: Burger-Menü wieder sichtbar & nicht geclippt ================== */

/* 1) Navbar darf nichts clippen und ist Anker für das absolute Menü */
.navbar {
    position: sticky; /* bleibt wie gehabt */
    top: 0;
    z-index: 1000; /* vor dem Inhalt */
    overflow: visible; /* wichtig: Dropdown nicht abschneiden */
}

    /* 2) Falls der globale Overflow-Fix zu streng war:
   Überschreibe max-width nur innerhalb der Navbar,
   damit das Dropdown sich auf volle Breite legen kann. */
    .navbar, .navbar * {
        max-width: none; /* hebt evtl. * { max-width:100% } innerhalb der Navbar auf */
    }

        /* 3) Container in der Navbar darf nicht clippen */
        .navbar .container {
            overflow: visible;
        }

/* 4) Mobile Menü-Layout - mit hoher Priorität und korrekter Layering */
@media (max-width: 1000px) {
    .navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none; /* Standard: zu */
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        background: var(--bg);
        border-top: 1px solid var(--border);
        box-shadow: var(--elev-2);
        z-index: 1100; /* über der Navbar selbst */
        will-change: transform, opacity;
    }

        .navbar__menu.is-open {
            display: flex !important; /* hebt evtl. frühere Regeln sicher auf */
            animation: slideDown 0.25s ease forwards;
        }
}

/* 5) (Optional) Minimales Touch-Friendly Padding,
   falls das große Logo die Navbar höher macht */
.navbar__item,
.navbar__toggle {
    touch-action: manipulation;
}

/* 6) (Optional) Etwas mehr Raum bei großem Logo */
:root {
    --navbar-pad-y: 1rem; /* falls Logo stark vergrößert ist (z. B. 102px) */
}

/* Überschriften: nur an Wortgrenzen umbrechen, nie mitten im Wort */
h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    min-width: 0; /* verhindert min-content-Ausbeulen in Flex/Grid */
}

h1 {
    min-width: 0;
}

/* Inline-Code: nicht aus dem Layout drücken */
code, kbd, samp {
    white-space: normal; /* statt nowrap */
    overflow-wrap: anywhere;
}

/* Code-Blöcke: lokal scrollen, Seite bleibt fix */
pre {
    white-space: pre-wrap; /* Zeilenumbruch erlauben */
    word-break: break-word;
    overflow-x: auto; /* falls wirklich nötig, nur der Block scrollt */
    -webkit-overflow-scrolling: touch;
}

/* Sicherheitsnetz in typischen Layouts */
.grid, .flex, .container, .section {
    min-width: 0;
}

/* === Custom: Zentrierter Footer ====================================== */
.footer {
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .footer .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


/* === Custom Footer Layout: 3 Columns Centered ======================== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center; /* zentriert die Inhalte horizontal */
    text-align: center; /* Text bleibt innerhalb jeder Spalte linksbündig */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* untereinander auf mobilen Geräten */
        text-align: center;
        justify-items: center;
    }
}
/* Höhe der Navbar aus bestehenden Variablen ableiten */
:root {
    --nav-h: calc(var(--logo-h) + (var(--navbar-pad-y) * 2));
}

/* Fixierte Navbar */
.navbar--fixed {
    opacity: 0;
    /*    position: fixed !important;
*/ top: 0;
    left: 0;
    right: 0;
    z-index: 3000; /* höher als der Rest */
    /*background: var(--navbar-bg);*/ /* aus deinem Designsystem */
    /*backdrop-filter: saturate(140%) blur(8px);*/ /* bleibt wie gehabt */
    margin: 24px;
}

/* Abstand unter der fixierten Navbar schaffen, damit nichts „drunter“ rutscht */
main, body > .section:first-child {
    /*    padding-top: var(--nav-h);*/
}

.logo--dark {
    display: none;
}

/* Manueller Toggle via Klassen am <html> */
.theme-dark .logo--light {
    display: none;
}

.theme-dark .logo--dark {
    display: block;
}

.theme-light .logo--light {
    display: block;
}

.theme-light .logo--dark {
    display: none;
}

/* Ohne manuelle Wahl -> OS-Theme gelten lassen */
html:not(.theme-dark):not(.theme-light) .logo--light {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-dark):not(.theme-light) .logo--light {
        display: none;
    }

    html:not(.theme-dark):not(.theme-light) .logo--dark {
        display: block;
    }
}


.case-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.case-slider__container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
}

    .case-slider__container::-webkit-scrollbar {
        display: none;
    }

.case-card {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 320px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .case-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px var(--shadow);
        border-color: var(--brand-300);
    }

.case-card__badge {
    display: inline-block;
    background: var(--brand-600);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.case-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

.case-card__client {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.case-card__kpis {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.case-card__kpi {
    flex: 1;
    padding: 0.875rem;
    border-radius: 0.5rem;
    text-align: center;
}

.case-card__kpi--primary {
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
}

.case-card__kpi--success {
    background: #d1fae5;
    border: 1px solid #86efac;
}

.case-card__kpi-value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.case-card__kpi-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.case-card__description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.case-card .btn {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
}

/* Slider Navigation */
.case-slider__nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.case-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--brand-300);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.case-slider__dot--active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    transform: scale(1.2);
}

.case-slider__dot:hover {
    background: var(--brand-400);
    border-color: var(--brand-400);
    transform: scale(1.15);
}

.case-slider__dot:focus {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 calc(100%);
        min-width: 280px;
    }

    .case-slider__container {
        gap: 1rem;
    }

    .hero .grid {
        grid-template-columns: 1fr !important;
    }

    .section .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }
}
/* --- Case Cards: konsistente Elevation & Hover im Dark/Light Mode --- */
.case-card {
    /* Basis-Schatten aus dem Design System statt unbekanntem --shadow */
    box-shadow: var(--elev-1);
}

    .case-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--elev-3);
        /* sanfter, token-basierter Border-Farbton */
        border-color: color-mix(in srgb, var(--brand-300) 55%, var(--border));
    }

/* --- KPI Chips: Dark-Mode-kontrastierte Flächen --- */
/* LIGHT: (dein Status quo bleibt) */

/* DARK (greift bei .theme-dark ODER OS-Dark ohne manuelle Theme-Override) */
.theme-dark .case-card__kpi--primary,
@media (prefers-color-scheme: dark) {
    html: not(.theme-light) .case-card__kpi--primary

{
    /* statt brand-50/200 -> dezente Tönung auf dunklem BG */
    background: color-mix(in srgb, var(--brand-600) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-600) 45%, transparent);
}

html:not(.theme-light) .case-card__kpi--success {
    /* nutze Status-Token --success; gemischt für ruhige Flächen */
    background: color-mix(in srgb, var(--success) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
}
/* KPI-Typografie minimal aufhellen für Lesbarkeit */
html:not(.theme-light) .case-card__kpi-value {
    color: color-mix(in srgb, var(--text) 92%, transparent);
}

html:not(.theme-light) .case-card__kpi-label {
    color: color-mix(in srgb, var(--text-muted) 90%, transparent);
}

}

/* --- Slider Dots: bessere Erkennbarkeit auf dunklem Untergrund --- */
@media (prefers-color-scheme: dark) {
    html: not(.theme-light) .case-slider__dot {
        border-color: color-mix(in srgb, var(--brand-300) 70%, transparent);
    }

    html:not(.theme-light) .case-slider__dot--active {
        background: var(--brand-600);
        border-color: var(--brand-600);
    }
}

/* --- Kleinigkeit: Media-Query Tippfehler korrigieren --- */
/* In deinem Snippet steht @media - korrekt ist @media */
@media (max-width: 1024px) {
    .case-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 calc(100%);
        min-width: 280px;
    }

    .case-slider__container {
        gap: 1rem;
    }
}

/* Einheitlicher Hover-Schatten */
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elev-3);
    border-color: color-mix(in srgb, var(--brand-300) 55%, var(--border));
}

/* 1) Dark Mode via manueller Klasse */
.theme-dark .case-card__kpi--primary {
    background: color-mix(in srgb, var(--brand-600) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-600) 45%, transparent);
}

.theme-dark .case-card__kpi--success {
    background: color-mix(in srgb, var(--success) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
}

.theme-dark .case-card__kpi-value {
    color: color-mix(in srgb, var(--text) 96%, transparent);
}

.theme-dark .case-card__kpi-label {
    color: color-mix(in srgb, var(--text-muted) 92%, transparent);
}

.theme-dark .btn--primary,
.theme-dark .btn:not([class*="--"]),
.theme-dark .contact-submit {
    background: color-mix(in srgb, var(--brand-600) 26%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-500) 70%, transparent);
    box-shadow: none;
}

    .theme-dark .btn--primary:hover,
    .theme-dark .btn:not([class*="--"]):hover,
    .theme-dark .contact-submit:hover {
        background: color-mix(in srgb, var(--brand-600) 36%, transparent);
        border-color: var(--brand-500);
        box-shadow: none;
    }

.theme-dark .btn--secondary {
    background: color-mix(in srgb, var(--brand-600) 26%, transparent);
    border-color: color-mix(in srgb, var(--brand-500) 70%, transparent);
    color: var(--white);
}

    .theme-dark .btn--secondary:hover {
        background: color-mix(in srgb, var(--brand-600) 36%, transparent);
        border-color: var(--brand-500);
    }

    .theme-dark .btn--secondary:focus-visible {
        box-shadow: var(--focus-ring);
    }

/* 2) Dark Mode via OS (nur wenn KEINE explizite theme-light Klasse gesetzt ist) */
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .case-card__kpi--primary {
        background: color-mix(in srgb, var(--brand-600) 16%, transparent);
        border: 1px solid color-mix(in srgb, var(--brand-600) 45%, transparent);
    }

    html:not(.theme-light) .case-card__kpi--success {
        background: color-mix(in srgb, var(--success) 16%, transparent);
        border: 1px solid color-mix(in srgb, var(--success) 45%, transparent);
    }

    html:not(.theme-light) .case-card__kpi-value {
        color: color-mix(in srgb, var(--text) 96%, transparent);
    }

    html:not(.theme-light) .case-card__kpi-label {
        color: color-mix(in srgb, var(--text-muted) 92%, transparent);
    }

    html:not(.theme-light) .btn--primary,
    html:not(.theme-light) .btn:not([class*="--"]),
    html:not(.theme-light) .contact-submit {
        background: color-mix(in srgb, var(--brand-600) 26%, transparent);
        border: 1px solid color-mix(in srgb, var(--brand-500) 70%, transparent);
        box-shadow: none;
    }

        html:not(.theme-light) .btn--primary:hover,
        html:not(.theme-light) .btn:not([class*="--"]):hover,
        html:not(.theme-light) .contact-submit:hover {
            background: color-mix(in srgb, var(--brand-600) 36%, transparent);
            border-color: var(--brand-500);
            box-shadow: none;
        }

    html:not(.theme-light) .btn--secondary {
        background: color-mix(in srgb, var(--brand-600) 26%, transparent);
        border-color: color-mix(in srgb, var(--brand-500) 70%, transparent);
        color: var(--white);
    }

        html:not(.theme-light) .btn--secondary:hover {
            background: color-mix(in srgb, var(--brand-600) 36%, transparent);
            border-color: var(--brand-500);
        }

        html:not(.theme-light) .btn--secondary:focus-visible {
            box-shadow: var(--focus-ring);
        }

    /* Slider-Dots Kontrast */
    html:not(.theme-light) .case-slider__dot {
        border-color: color-mix(in srgb, var(--brand-300) 70%, transparent);
    }

    html:not(.theme-light) .case-slider__dot--active {
        background: var(--brand-600);
        border-color: var(--brand-600);
    }
}


/* Auto-Dark nur, wenn KEIN manueller Modus gesetzt ist */
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) {
        --bg: #0d1b3e;
        --text: white;
        --text-muted: #8a94a8;
        --border: rgba(160,175,200,.12);
        --card-bg: #152244;
        --elev-1: 0 1px 2px rgba(0,0,0,.35);
        --elev-2: 0 10px 30px rgba(0,0,0,.45);
        --elev-3: 0 6px 24px rgba(0,0,0,.40);
        --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(30,60,114,.25), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(30,60,114,.20), transparent 35%);
    }
}

/* Manueller Dark Mode */
.theme-dark {
    --bg: #0d1b3e;
    --text: white;
    --text-muted: #8a94a8;
    --border: rgba(160,175,200,.12);
    --card-bg: #152244;
    --elev-1: 0 1px 2px rgba(0,0,0,.35);
    --elev-2: 0 10px 30px rgba(0,0,0,.45);
    --elev-3: 0 6px 24px rgba(0,0,0,.40);
    --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(30,60,114,.25), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(30,60,114,.20), transparent 35%);
}

/* NEU: Manueller Light Mode (erzwingt Light selbst wenn OS=Dark ist) */
.theme-light {
    /* dieselben Light-Token wie in :root */
    --bg: var(--white);
    --text: var(--neutral-900);
    --text-muted: #5b677a;
    --border: rgba(15, 23, 42, 0.12);
    --card-bg: #fcfcfe;
    --elev-1: 0 1px 2px rgba(3, 7, 18, 0.06);
    --elev-2: 0 6px 20px rgba(3, 7, 18, 0.08);
    --elev-3: 0 18px 40px rgba(3, 7, 18, 0.10);
    --grad-card: radial-gradient(1200px 600px at 0% -10%, rgba(37,99,235,.06), transparent 40%), radial-gradient(900px 400px at 100% 110%, rgba(59,130,246,.04), transparent 35%);
}


.typing {
    font-size: 2.2rem;
    font-weight: 600;
    max-width: 580px;
    line-height: 1.2;
}

.changing-word {
    white-space: nowrap;
}

/* Cursor NUR nach dem Wort */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em; /* <-- macht ihn sichtbar */
    background: var(--text, #111);
    margin-left: 4px;
    vertical-align: -0.1em; /* leicht zur Grundlinie */
    animation: cursor-blink 1s steps(1, end) infinite;
    opacity: 1; /* <-- startet sichtbar */
}

@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}
/* Sichtbare "Qualitäts-Checkbox" als eigenständiges Inline-Element */
.check {
    display: inline-block; /* wichtig, sonst greifen width/height bei <span> nicht */
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .40rem; /* Abstand zum Text */
    border-radius: .3rem;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    vertical-align: text-top; /* schönerer Align neben Text */
}

    .check::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 6px;
        width: 6px;
        height: 10px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

/* Optional: dunkles Theme leicht anpassen */
@media (prefers-color-scheme: dark) {
    .check {
        box-shadow: 0 2px 8px rgba(0,0,0,.4);
    }
}










/* ==============================================================
   Victorsolutions - Services Cards (Full & Mini)
   - Sauberes, konsolidiertes Stylesheet
   - Light/Dark-Mode (auto + manueller Toggle)
   - Keine JS-Abhängigkeiten
   ============================================================== */

/* ---------------------- ROOT THEME TOKENS ---------------------- */
/* Light (Default) */
:root {
    --vsx-bg: #f9fbfd;
    --vsx-text: #0a1320;
    --vsx-muted: #465469;
    --vsx-border: rgba(10,19,32,0.07);
    --vsx-card-bg: #ffffff;
    --vsx-shadow: 0 6px 20px rgba(10,19,32,.06);
    --vsx-shadow-hover: 0 10px 28px rgba(10,19,32,.08);
    /* Default-Akzente (werden pro Karte überschrieben) */
    --vsx-accent-100: #e6eefc;
    --vsx-accent-500: #9eb4ff;
    --vsx-accent-600: #7f96ff;
    /* Icon-Box Intensität (nur Full-Variant benötigt) */
    --vsx-icon-bg-alpha: 1;
    --vsx-icon-shadow-alpha: .22;
}

/* Dark (Auto) */
@media (prefers-color-scheme: dark) {
    :root {
        --vsx-bg: #0d1b3e;
        --vsx-text: #b0b8c8;
        --vsx-muted: #8a94a8;
        --vsx-border: rgba(160,175,200,0.12);
        --vsx-card-bg: #152244;
        --vsx-shadow: 0 8px 26px rgba(0,0,0,.40);
        --vsx-shadow-hover: 0 12px 34px rgba(0,0,0,.48);
        --vsx-accent-100: #1e3460;
        --vsx-accent-500: #7f96ff;
        --vsx-accent-600: #9eb4ff;
        --vsx-icon-bg-alpha: .14;
        --vsx-icon-shadow-alpha: .32;
    }
}

/* Dark (Manueller Toggle) */
[data-theme="dark"], .theme-dark {
    --vsx-bg: #0d1b3e;
    --vsx-text: white;
    --vsx-muted: #8a94a8;
    --vsx-border: rgba(160,175,200,0.12);
    --vsx-card-bg: #152244;
    --vsx-shadow: 0 8px 26px rgba(0,0,0,.40);
    --vsx-shadow-hover: 0 12px 34px rgba(0,0,0,.48);
    --vsx-accent-100: #1e3460;
    --vsx-accent-500: #7f96ff;
    --vsx-accent-600: #9eb4ff;
    --vsx-icon-bg-alpha: .14;
    --vsx-icon-shadow-alpha: .32;
}

/* Light (Manueller Override) - WICHTIG für iPhone! */
[data-theme="light"], .theme-light {
    --vsx-bg: #f9fbfd;
    --vsx-text: #0a1320;
    --vsx-muted: #465469;
    --vsx-border: rgba(10,19,32,0.07);
    --vsx-card-bg: #ffffff;
    --vsx-shadow: 0 6px 20px rgba(10,19,32,.06);
    --vsx-shadow-hover: 0 10px 28px rgba(10,19,32,.08);
    --vsx-accent-100: #e6eefc;
    --vsx-accent-500: #9eb4ff;
    --vsx-accent-600: #7f96ff;
    --vsx-icon-bg-alpha: 1;
    --vsx-icon-shadow-alpha: .22;
}

/* ==============================================================
   FULL VARIANT (vsx-services)
   ============================================================== */

.vsx-services {
    background: var(--vsx-bg);
    margin: 0 -20px;
    padding: clamp(40px, 6vw, 72px) 20px;
}

.vsx-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vsx-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2vw, 24px);
}

@media (min-width: 760px) {
    .vsx-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.vsx-card {
    border-radius: 16px;
    padding: clamp(20px, 2vw, 28px);
    background: var(--vsx-card-bg);
    border: 1px solid var(--vsx-border);
    box-shadow: var(--vsx-shadow);
    color: var(--vsx-text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

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

/* Header: Icon + Titel */
.vsx-card__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.vsx-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--vsx-accent-100) calc(100% * var(--vsx-icon-bg-alpha)), transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vsx-accent-600) 40%, transparent), 0 6px 14px color-mix(in srgb, var(--vsx-accent-600) calc(100% * var(--vsx-icon-shadow-alpha)), transparent);
}

.vsx-icon {
    width: 24px;
    height: 24px;
    fill: var(--vsx-accent-600);
    transition: transform .3s ease;
}

.vsx-card:hover .vsx-icon {
    transform: translateY(-1px) scale(1.05);
}

/* Typo */
.vsx-card__title {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 700;
    color: var(--vsx-text);
}

.vsx-card__text {
    margin: 0 0 1rem;
    color: var(--vsx-muted);
    font-size: clamp(.95rem, 1.35vw, 1.05rem);
    line-height: 1.6;
}

/* Feature-List */
.vsx-card__list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

    .vsx-card__list li {
        position: relative;
        padding-left: 1.2rem;
        font-size: .96rem;
        color: color-mix(in srgb, var(--vsx-text) 85%, transparent);
        margin-bottom: .35rem;
    }

        .vsx-card__list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .45rem;
            width: .6rem;
            height: .6rem;
            border-radius: 5px;
            background: var(--vsx-accent-600);
        }

/* Button */
.vsx-btn {
    display: inline-block;
    padding: .55rem .9rem;
    background: var(--vsx-accent-600);
    color: #ffffff;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--vsx-accent-600) 38%, transparent);
}

    .vsx-btn:hover {
        background: var(--vsx-accent-500);
        transform: translateY(-1px);
    }

/* Farbwelten (Full) */
.vsx-card--o365 {
    --vsx-accent-100: #d3f7ee;
    --vsx-accent-500: #4fd1b6;
    --vsx-accent-600: #1bb195;
}

.vsx-card--appdev {
    --vsx-accent-100: #e2e7ff;
    --vsx-accent-500: #9eb4ff;
    --vsx-accent-600: #7f96ff;
}

.vsx-card--cloud {
    --vsx-accent-100: #fff2cc;
    --vsx-accent-500: #ffd88e;
    --vsx-accent-600: #f7b650;
}

/* Full - Dark Akzenttuning (weniger „shiny“) */
@media (prefers-color-scheme: dark) {
    .vsx-card--o365 {
        --vsx-accent-100: #103c33;
        --vsx-accent-500: #39c6a8;
        --vsx-accent-600: #56e1c5;
    }

    .vsx-card--appdev {
        --vsx-accent-100: #21274a;
        --vsx-accent-500: #92a6ff;
        --vsx-accent-600: #b7c5ff;
    }

    .vsx-card--cloud {
        --vsx-accent-100: #2d2612;
        --vsx-accent-500: #f2c06b;
        --vsx-accent-600: #ffd58a;
    }
}

[data-theme="dark"] .vsx-card--o365,
.theme-dark .vsx-card--o365 {
    --vsx-accent-100: #103c33;
    --vsx-accent-500: #39c6a8;
    --vsx-accent-600: #56e1c5;
}

[data-theme="dark"] .vsx-card--appdev,
.theme-dark .vsx-card--appdev {
    --vsx-accent-100: #21274a;
    --vsx-accent-500: #92a6ff;
    --vsx-accent-600: #b7c5ff;
}

[data-theme="dark"] .vsx-card--cloud,
.theme-dark .vsx-card--cloud {
    --vsx-accent-100: #2d2612;
    --vsx-accent-500: #f2c06b;
    --vsx-accent-600: #ffd58a;
}

/* ==============================================================
   MINI VARIANT (grid grid-3 vsx-mini)
   ============================================================== */

.grid.grid-3.vsx-mini {
    --mini-text: var(--vsx-text);
    --mini-muted: var(--vsx-muted);
    --mini-border: var(--vsx-border);
    --mini-card-bg: var(--vsx-card-bg);
    --mini-shadow: var(--vsx-shadow);
    --mini-shadow-hover: var(--vsx-shadow-hover);
    display: grid;
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}

    /* Card (Mini) */
    .grid.grid-3.vsx-mini > .card {
        --accent-100: #e6eefc; /* default - je Karte überschreiben */
        --accent-500: #9eb4ff;
        --accent-600: #7f96ff;
        border-radius: 16px;
        padding: clamp(18px, 2vw, 24px);
        background: radial-gradient(140% 140% at 110% -10%, var(--accent-100), var(--mini-card-bg) 60%), var(--mini-card-bg);
        border: 1px solid var(--mini-border);
        box-shadow: var(--mini-shadow);
        color: var(--mini-text);
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
        display: flex;
        flex-direction: column;
        gap: .6rem;
        min-height: 100%;
    }

        .grid.grid-3.vsx-mini > .card:hover {
            transform: translateY(-3px);
            box-shadow: var(--mini-shadow-hover);
            border-color: color-mix(in srgb, var(--mini-text) 10%, transparent);
        }

        /* Typo (Mini) */
        .grid.grid-3.vsx-mini > .card h3 {
            margin: 0 0 .35rem;
            font-size: clamp(1.05rem, 1.6vw, 1.25rem);
            font-weight: 700;
            color: var(--mini-text);
        }

        .grid.grid-3.vsx-mini > .card p {
            margin: 0 0 1rem;
            color: var(--mini-muted);
            font-size: clamp(.95rem, 1.35vw, 1.05rem);
            line-height: 1.6;
        }

        /* Button (Mini) */
        .grid.grid-3.vsx-mini > .card .btn {
            margin-top: auto;
            display: inline-block;
            padding: .55rem .9rem;
            background: var(--accent-600);
            color: #fff;
            font-weight: 600;
            font-size: .95rem;
            border-radius: 8px;
            text-decoration: none;
            transition: background .2s ease, transform .2s ease;
            box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-600) 35%, transparent);
        }

            .grid.grid-3.vsx-mini > .card .btn:hover {
                background: var(--accent-500);
                transform: translateY(-1px);
            }

    /* Farben pro Karte (Mini) */
    .grid.grid-3.vsx-mini .vsx-mini--o365 {
        --accent-100: #d3f7ee;
        --accent-500: #4fd1b6;
        --accent-600: #1bb195;
    }

    .grid.grid-3.vsx-mini .vsx-mini--appdev {
        --accent-100: #e2e7ff;
        --accent-500: #9eb4ff;
        --accent-600: #7f96ff;
    }

    .grid.grid-3.vsx-mini .vsx-mini--cloud {
        --accent-100: #fff2cc;
        --accent-500: #ffd88e;
        --accent-600: #f7b650;
    }

/* Mini - Dark Entschärfung (flacher Look) */
@media (prefers-color-scheme: dark) {
    .grid.grid-3.vsx-mini {
        --mini-text: #e2e8f0;
        --mini-muted: #94a3b8;
        --mini-border: #ffffff10;
        --mini-card-bg: #0f172a;
        --mini-shadow: 0 4px 14px rgba(0,0,0,.35);
        --mini-shadow-hover: 0 8px 18px rgba(0,0,0,.45);
    }

        .grid.grid-3.vsx-mini > .card {
            background: var(--mini-card-bg);
            border: 1px solid --mini-border;
            box-shadow: var(--mini-shadow);
        }

            .grid.grid-3.vsx-mini > .card:hover {
                box-shadow: var(--mini-shadow-hover);
                border-color: #ffffff1a;
            }

            .grid.grid-3.vsx-mini > .card .btn {
                box-shadow: none;
            }

        .grid.grid-3.vsx-mini .vsx-mini--o365 {
            --accent-100: #112a25;
            --accent-500: #3aa690;
            --accent-600: #54c2ac;
        }

        .grid.grid-3.vsx-mini .vsx-mini--appdev {
            --accent-100: #1a2038;
            --accent-500: #5f74c6;
            --accent-600: #7c90d8;
        }

        .grid.grid-3.vsx-mini .vsx-mini--cloud {
            --accent-100: #2a2314;
            --accent-500: #d2a455;
            --accent-600: #e6bb6a;
        }
}

/* Mini - Dark (Manuell) */
[data-theme="dark"] .grid.grid-3.vsx-mini,
.theme-dark .grid.grid-3.vsx-mini {
    --mini-text: #e2e8f0;
    --mini-muted: #94a3b8;
    --mini-border: #ffffff10;
    --mini-card-bg: #0f172a;
    --mini-shadow: 0 4px 14px rgba(0,0,0,.35);
    --mini-shadow-hover: 0 8px 18px rgba(0,0,0,.45);
}

    [data-theme="dark"] .grid.grid-3.vsx-mini > .card,
    .theme-dark .grid.grid-3.vsx-mini > .card {
        background: var(--mini-card-bg);
        border: 1px solid var(--mini-border);
        box-shadow: var(--mini-shadow);
    }

        [data-theme="dark"] .grid.grid-3.vsx-mini > .card:hover,
        .theme-dark .grid.grid-3.vsx-mini > .card:hover {
            box-shadow: var(--mini-shadow-hover);
            border-color: #ffffff1a;
        }

    [data-theme="dark"] .grid.grid-3.vsx-mini .vsx-mini--o365,
    .theme-dark .grid.grid-3.vsx-mini .vsx-mini--o365 {
        --accent-100: #112a25;
        --accent-500: #3aa690;
        --accent-600: #54c2ac;
    }

    [data-theme="dark"] .grid.grid-3.vsx-mini .vsx-mini--appdev,
    .theme-dark .grid.grid-3.vsx-mini .vsx-mini--appdev {
        --accent-100: #1a2038;
        --accent-500: #5f74c6;
        --accent-600: #7c90d8;
    }

    [data-theme="dark"] .grid.grid-3.vsx-mini .vsx-mini--cloud,
    .theme-dark .grid.grid-3.vsx-mini .vsx-mini--cloud {
        --accent-100: #2a2314;
        --accent-500: #d2a455;
        --accent-600: #e6bb6a;
    }

/* ==============================================================
   OPTIONAL: Altes vs-services (falls noch im Einsatz)
   ============================================================== */
.vs-services {
    --vs-bg: color-mix(in srgb, var(--card-bg, #0b0f14) 90%, transparent);
}

@media (prefers-color-scheme: dark) {
    .vs-services {
        --vs-bg: #0d1b3e;
    }
}

[data-theme="dark"] .vs-services, .theme-dark .vs-services {
    --vs-bg: #0d1b3e;
}


/* korrekt */
.grid.grid-3.vsx-mini > .card {
    background: var(--mini-card-bg);
    border: 1px solid var(--mini-border);
    box-shadow: var(--mini-shadow);
}


/* ================== Techs Section (scoped) ================== */
/* Light defaults */
.vsx-techs {
    --techs-bg: #f7f9fc;
    --techs-fg: #0b1220;
    --techs-muted: #465469;
    /* Chip Farben (helle, freundliche Palette mit gutem Kontrast) */
    --chip-bg: #e7efff; /* Grundfläche der Chips */
    --chip-fg: #0b1220; /* Textfarbe */
    --chip-border: #c7d6ff; /* dezenter Rand für Sichtbarkeit */
    --chip-hover-bg: #dbe8ff; /* Hover */
    --chip-shadow: 0 1px 0 rgba(10,19,32,.06), 0 6px 14px rgba(10,19,32,.05);
    margin: 0;
    padding: clamp(40px, 6vw, 64px) 20px;
    background: var(--techs-bg);
    color: var(--techs-fg);
    text-align: center;
}

.vsx-techs__container {
    max-width: 800px;
    margin: 0 auto;
}

.vsx-techs__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    letter-spacing: .2px;
    color: var(--techs-fg);
}

.vsx-techs__lead {
    margin: 1.2rem auto 0;
    color: var(--techs-muted);
    font-size: clamp(.98rem, 1.6vw, 1.06rem);
    line-height: 1.6;
}

.vsx-techs__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .7rem;
    justify-content: center;
    margin-top: 1.6rem;
}

.vsx-chip {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--chip-fg);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid var(--chip-border);
    box-shadow: var(--chip-shadow);
    transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
    user-select: none;
}

    .vsx-chip:hover {
        background: var(--chip-hover-bg);
        transform: translateY(-1px);
        border-color: color-mix(in srgb, var(--chip-border) 70%, transparent);
    }

/* ===== Dark Mode (auto) ===== */
@media (prefers-color-scheme: dark) {
    .vsx-techs {
        --techs-bg: #0b111a;
        --techs-fg: #e7edf6;
        --techs-muted: #a6b1c2;
        /* Chips in Dark: matter, klar lesbar, ohne „Shine“ */
        --chip-bg: #1a2433;
        --chip-fg: #e7edf6;
        --chip-border: #2c3950;
        --chip-hover-bg: #223049;
        --chip-shadow: none;
    }
}

/* ===== Dark Mode (manueller Toggle) - optional ===== */
[data-theme="dark"] .vsx-techs,
.theme-dark .vsx-techs {
    --techs-bg: #0b111a;
    --techs-fg: #e7edf6;
    --techs-muted: #a6b1c2;
    --chip-bg: #1a2433;
    --chip-fg: #e7edf6;
    --chip-border: #2c3950;
    --chip-hover-bg: #223049;
    --chip-shadow: none;
}

/* Bewegungspräferenz respektieren */
@media (prefers-reduced-motion: reduce) {
    .vsx-chip {
        transition: none;
    }
}

/* ================== Header Navigation Styling ================== */
/* Navbar Container Fix */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    /*    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);*/
}

    .navbar .container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1.25rem;
    }

/* Logo Styling */
.navbar__brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

    .navbar__brand:hover {
        color: var(--text) !important;
    }

    .navbar__brand > span {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.1 !important;
    }

/* Navigation Menu */
.navbar__menu {
    display: flex !important;
    align-items: center !important;
    gap: 0.02rem !important;
    padding-right: 24px !important;
}

.navbar__item {
    text-decoration: none !important;
    padding: 0.5rem 0.875rem !important;
    font-weight: 800 !important;
    font-style: italic;
    letter-spacing: 0.05em !important;
    color: var(--text) !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
    position: relative !important;
    background: transparent !important;
}

.navbar__item::before {
    content: '';
    position: absolute;
    inset: 2px 4px;
    background: transparent;
    border-radius: .5rem;
    transform: skewX(-12deg);
    transition: background .2s ease;
    z-index: -1;
    pointer-events: none;
}

.navbar__item:hover::before {
    background: color-mix(in srgb, var(--brand-50) 65%, transparent) !important;
}

.navbar__seperator {
    text-decoration: none !important;
    font-weight: 800 !important;
    font-style: italic;
    color: var(--text) !important;
    white-space: nowrap !important;
}

.navbar__item:hover {
    color: var(--brand-600) !important;
}


/* Dark Mode Toggle */
#darkmode-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem 0.875rem !important;
    font-size: 1.25rem !important;
}

/* ================== Responsive Adjustments ================== */
@media (max-width: 1000px) {
    /* Mobile Header */
    .navbar__menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg) !important;
        border-top: 1px solid var(--border) !important;
        flex-direction: column !important;
        gap: 0 !important;
        display: none !important;
        box-shadow: var(--elev-2) !important;
    }

        .navbar__menu.is-open {
            display: flex !important;
        }

        .navbar__menu > span {
            display: none !important;
        }

    .navbar__item {
        width: 100% !important;
        text-align: left !important;
        padding: 0.75rem 1.25rem !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .navbar__brand svg {
        width: 32px !important;
        height: 32px !important;
    }

    .navbar__brand > span {
        font-size: 1rem !important;
    }

        .navbar__brand > span > span {
            font-size: 0.7rem !important;
        }

    /* Hero Section anpassen */
    .hero h1 {
/*        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
*/    }

    .hero p {
        font-size: clamp(1rem, 4vw, 1.25rem) !important;
    }

    /* Grid Layouts auf 1 Spalte reduzieren */
    .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Service Cards volle Breite */
    .case-slider__container > article,
    .case-slider__container > .card {
        flex: 0 0 100% !important;
        min-width: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Technologie Chips kleinere Schrift */
    .vsx-chip {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    /* Projekt Cards Bildverhältnis anpassen */
    .card div[style*="aspect-ratio"] {
        aspect-ratio: 16/9 !important;
    }
}

/* Tablet-Ansicht */
@media (min-width: 769px) and (max-width: 1024px) {
    .case-slider__container > article,
    .case-slider__container > .card {
        flex: 0 0 calc(50% - 1rem) !important;
        min-width: 280px !important;
    }
}

/* Extra große Bildschirme */
@media (min-width: 1600px) {
    .container,
    .vsx-container,
    section > div {
        max-width: 1400px;
    }
}


/* === HERO / HOME === */
.hero--home {
    position: relative;
    text-align: center;
    padding: 160px 0 48px !important;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.hero__title {
    font-size: 80px !important;
    text-align: start;
    font-style: italic;
    margin-bottom: 16px;
    padding-left: 280px;
    line-height: 76px;
    letter-spacing: -0.02em;
    color: var(--text);
    font-weight: 900;
    text-shadow: 1px 0 currentColor, -1px 0 currentColor, 0 1px currentColor, 0 -1px currentColor, 2px 0 currentColor, -2px 0 currentColor, 0 2px currentColor, 0 -2px currentColor !important;
}

/* Subtitle */
.hero__subtitle {
    width: 100%;
    font-size: 30px !important;
    text-align: start;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
    font-style: italic;
    padding-left: 280px;

    
}
    .hero__subtitle > .diso {
        font-size: var(--fs-300);
        line-height: 1.2;
        color: var(--text-muted);
        font-weight: 400;
        font-style: italic;
    }

.hero__subtitle-accent {
    font-size: 26px !important;
    text-align: start;
    font-weight: 600;
    color: var(--text);
    font-style: italic;
}

/* Nav buttons */
.hero__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    margin-top: 48px;
}

.hero__nav-btn {
    font-style: italic;
    padding: 9px 35px;
}

/* Logos - bleiben als Overlay */
.hero__logos {
    position: absolute;
    z-index: 10;
    top: 136px;
    left: 774px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero__logo-img {
    width: 360px !important;
    height: auto;
    opacity: 0.95;
}

/* Tablet portrait (bis 992px) */
@media (max-width: 1000px) {
    .hero--home {
        padding: 140px 0 72px !important;
    }

    .hero__title {
        font-size: 68px !important;
        line-height: 66px;
        padding-left: 140px;
        text-shadow: 0.9px 0 currentColor, -0.9px 0 currentColor, 0 0.9px currentColor, 0 -0.9px currentColor, 1.6px 0 currentColor, -1.6px 0 currentColor, 0 1.6px currentColor, 0 -1.6px currentColor !important;
    }

    .hero__subtitle {
        width: 80%;
        font-size: 30px !important;
        padding-left: 140px;
        line-height: 1.4;
    }



    .hero__subtitle-accent {
        font-size: 26px !important;
    }

    .hero__logos {
        left: 68%;
        top: 100px;
    }

    .hero__logo-img {
        width: 360px !important;
    }

    .hero__nav {
        gap: 16px;
        margin-top: 40px;
    }

    .hero__nav-btn {
        padding: 8px 28px;
        font-size: 14px;
    }
}

/* Mobile landscape / small tablets (bis 768px) */
@media (max-width: 768px) {
    .hero--home {
        padding: 120px 0 64px !important;
    }

    .hero__title {
        font-size: 60px !important;
        line-height: 58px;
        padding-left: 70px;
        margin-bottom: 12px;
        text-shadow: 0.8px 0 currentColor, -0.8px 0 currentColor, 0 0.8px currentColor, 0 -0.8px currentColor, 1.4px 0 currentColor, -1.4px 0 currentColor, 0 1.4px currentColor, 0 -1.4px currentColor !important;
    }

    .hero__subtitle {
        width: 100%;
        font-size: 28px !important;
        padding-left: 70px;
        line-height: 1.5;
    }

        .hero__subtitle > .diso {
            font-size: var(--fs-200);
        }

    .hero__subtitle-accent {
        font-size: 24px !important;
    }

    .hero__logos {
        left: 68%;
        top: 88px;
    }

    .hero__logo-img {
        width: 300px !important;
    }

    .hero__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 32px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__nav-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
    }
}

/* Mobile portrait (bis 576px) */
@media (max-width: 576px) {
    .hero--home {
        padding: 100px 0 56px !important;
    }

    .hero__inner {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 46px !important;
        line-height: 50px;
        padding-left: 35px;
        margin-bottom: 10px;
        text-shadow: 0.7px 0 currentColor, -0.7px 0 currentColor, 0 0.7px currentColor, 0 -0.7px currentColor, 1.2px 0 currentColor, -1.2px 0 currentColor, 0 1.2px currentColor, 0 -1.2px currentColor !important;
    }

    .hero__subtitle {
        width: 100%;
        font-size: 24px !important;
        padding-left: 35px;
        line-height: 1.5;
    }

        .hero__subtitle > .diso {
            font-size: var(--fs-200);
        }

    .hero__subtitle-accent {
        font-size: 20px !important;
    }

    .hero__logos {
        left: 76%;
        top: 74px;
    }

    .hero__logo-img {
        width: 240px !important;
    }

    .hero__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 28px;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero__nav-btn {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
}

/* Very small mobile (bis 400px) */
@media (max-width: 400px) {
    .hero__title {
        font-size: 44px !important;
        line-height: 42px;
        padding-left: 25px;
        text-shadow: 0.6px 0 currentColor, -0.6px 0 currentColor, 0 0.6px currentColor, 0 -0.6px currentColor, 1px 0 currentColor, -1px 0 currentColor, 0 1px currentColor, 0 -1px currentColor !important;
    }

    .hero__subtitle {
        width: 100%;
        font-size: 20px !important;
        padding-left: 25px;
        line-height: 1.6;
    }

        .hero__subtitle > .diso {
            font-size: var(--fs-200);
        }

    .hero__subtitle-accent {
        font-size: 18px !important;
    }

    .hero__logos {
        left: 76%;
        top: 68px;
    }

    .hero__logo-img {
        width: 190px !important;
    }

    .hero__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 24px;
    }

    .hero__nav-btn {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .hero__title {
        font-size: 38px !important;
        line-height: 42px;
        padding-left: 25px;
        text-shadow: 0.6px 0 currentColor, -0.6px 0 currentColor, 0 0.6px currentColor, 0 -0.6px currentColor, 1px 0 currentColor, -1px 0 currentColor, 0 1px currentColor, 0 -1px currentColor !important;
    }

    .hero__subtitle {
        width: 100%;
        font-size: 20px !important;
        padding-left: 25px;
        line-height: 1.6;
    }
        .hero__subtitle > .diso {
            font-size: var(--fs-200);
        }

    .hero__subtitle-accent {
        font-size: 18px !important;
    }

    .hero__logos {
        left: 76%;
        top: 68px;
    }

    .hero__logo-img {
        width: 190px !important;
    }

    .hero__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 24px;
    }

    .hero__nav-btn {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }
}

.sectionHeader {
    word-break: keep-all;
    overflow-wrap: break-word;
}

@media (max-width: 1000px) {
    .sectionButton {
        width: 200px;
        align-items: center;
        text-align: center;
        align-self: center;
        display: flex;
        margin: auto;
    }
}

/* === LEGAL PAGES (AGB, Impressum, Datenschutz) ========================== */
.legal-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.legal-page__container {
    margin: 0 auto;
}

.legal-page__title {
    font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.legal-page__subtitle {
    text-align: center;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-page__content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-page__source {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === KONTAKT PAGE ======================================================= */
.kontakt-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.kontakt-page__watermark {
    position: absolute;
    bottom: -20px;
    right: 5%;
    width: 280px;
    height: 300px;
    color: var(--text);
    pointer-events: none;
    z-index: 0;
}

.kontakt-page__container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.kontakt-page__logo {
    margin-bottom: 3rem;
}

.kontakt-page__logo img {
    max-width: 360px;
    margin: 0 auto;
}

.kontakt-page__info {
    margin-bottom: 3rem;
}

.kontakt-page__name {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.kontakt-page__detail {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.8;
}

.kontakt-page__social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.kontakt-page__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kontakt-page__social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--elev-2);
}

.kontakt-page__social-link--reddit {
    background-color: #FF4500;
}

.kontakt-page__social-link--github {
    background-color: #24292e;
}

.kontakt-page__social-link--linkedin {
    background-color: #0A66C2;
}

/* === ANFRAGE PAGE ======================================================= */
.anfrage-page {
    padding: 3rem 1rem;
}

.anfrage-page__container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
}

.anfrage-page__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    font-style: italic;
    text-align: center;
    color: var(--brand-500);
    margin-bottom: 2rem;
}

.anfrage-page__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.anfrage-page__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.anfrage-page__field {
    display: flex;
    flex-direction: column;
}

.anfrage-page__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-500);
    margin-bottom: 0.35rem;
}

.anfrage-page__input,
.anfrage-page__textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.anfrage-page__input:focus,
.anfrage-page__textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: var(--focus-ring);
}

.anfrage-page__textarea {
    resize: vertical;
    min-height: 120px;
}

.anfrage-page__captcha-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.anfrage-page__captcha {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    background: var(--bg);
}

.anfrage-page__captcha-images {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.anfrage-page__captcha-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.anfrage-page__captcha-icon:hover {
    opacity: 1;
}

.anfrage-page__checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.anfrage-page__checkbox {
    margin-top: 0.15rem;
}

.anfrage-page__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.anfrage-page__submit {
    padding: 0.7rem 2rem;
    background: var(--brand-500);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anfrage-page__submit:hover {
    background: var(--brand-600);
}

.anfrage-page__system-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .anfrage-page__container {
        padding: 1.5rem;
    }

    .anfrage-page__row {
        grid-template-columns: 1fr;
    }
}


.card{
    padding-left:10px;
    padding-right:10px;
}

/* ===================================================================
   FEEDBACK CHANGES
   =================================================================== */

/* CHANGE 1 - Remove text-shadow outline from hero title */
.hero__title {
    text-shadow: none !important;
}

/* CHANGE 2 - Legal page layout: headings, section spacing, paragraph spacing */
.legal-page__container h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.legal-page__container h3 {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Section blocks */
.legal-section {
    margin-top: clamp(2rem, 4vh, 3.5rem);
    scroll-margin-top: 90px;
}
.legal-section + .legal-section {
    padding-top: clamp(1.5rem, 3vh, 2.5rem);
    border-top: 1px solid var(--border);
}

/* Paragraph and list spacing inside legal content */
.legal-content p,
.legal-page__lead {
    margin-bottom: 1.1rem;
    line-height: 1.8;
}
.legal-content ul,
.legal-content ol {
    margin-bottom: 1.1rem;
    padding-left: 1.5rem;
}
.legal-content li {
    margin-bottom: 0.45rem;
    line-height: 1.75;
}

/* CHANGE 3 - Sidebar active color: match btn--secondary / hero__nav-btn in dark mode */
html.theme-dark .floating-nav-item.active,
.theme-dark .floating-nav-item.active {
    background: color-mix(in srgb, var(--brand-600) 26%, transparent);
    border-color: color-mix(in srgb, var(--brand-500) 70%, transparent);
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) .floating-nav-item.active {
        background: color-mix(in srgb, var(--brand-600) 26%, transparent);
        border-color: color-mix(in srgb, var(--brand-500) 70%, transparent);
    }
}

/* CHANGE 6 - Dark mode link visibility */
html.theme-dark a,
.theme-dark a {
    color: #7ab8d4;
}
html.theme-dark a:hover,
.theme-dark a:hover {
    color: #9fcfe3;
    text-decoration-color: currentColor;
}
html.theme-dark .legal-page__container a,
.theme-dark .legal-page__container a {
    color: #7ab8d4;
}
@media (prefers-color-scheme: dark) {
    html:not(.theme-light) a {
        color: #7ab8d4;
    }
    html:not(.theme-light) a:hover {
        color: #9fcfe3;
    }
    html:not(.theme-light) .legal-page__container a {
        color: #7ab8d4;
    }
}

/* CHANGE 7 - Contact form checkbox: match input background */
.contact-privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.contact-privacy input[type="checkbox"]:checked {
    background: var(--brand-500);
    border-color: var(--brand-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
.contact-privacy input[type="checkbox"]:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* CHANGE 8 - Carousel chevron: more space from sidebar */
.slider-arrow--next {
    right: 44px;
}
@media (max-width: 768px) {
    .slider-arrow--next {
        right: 36px;
    }
}

/* CHANGE 9 - Carousel text: prevent mid-word breaks */
.card h3,
.case-card__title {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.card p,
.case-card__description {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

/* CHANGE 10 - Carousel card: maintain flex column so button stays at bottom */
article.card {
    display: flex;
    flex-direction: column;
}

/* CHANGE 11 - Technology tiles: fixed 4-column × 2-row grid */
.tech-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}
.tech-tile {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--elev-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
    text-align: center;
}
@media (max-width: 640px) {
    .tech-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .tech-tile {
        min-height: 100px;
    }
}

/* CHANGE 14 - Mobile sidebar collapsed size: increase touch targets */
@media (max-width: 768px) {
    .floating-nav-wrapper {
        right: -44px;
    }
    .floating-nav-sidebar .floating-nav-hint {
        min-height: 44px;
        min-width: 44px;
    }
    .floating-nav-sidebar .floating-nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}
@media (max-width: 480px) {
    .floating-nav-wrapper {
        right: -44px;
    }
}

/* CHANGE 15 - Mobile about section: center text */
@media (max-width: 768px) {
    .about-grid > div:last-child {
        text-align: center;
    }
    .about-grid > div:last-child h3,
    .about-grid > div:last-child p,
    .about-grid > div:last-child .sectionHeader {
        text-align: center;
    }
    .about-grid > div:last-child .btn {
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* CHANGE 16 - Mobile carousel: stack cards vertically */
@media (max-width: 640px) {
    .case-slider__container {
        display: flex !important;
        flex-direction: column !important;
        overflow-x: visible !important;
        scroll-snap-type: none !important;
        gap: 1.5rem;
    }
    .case-slider__container .card {
        flex: none !important;
        width: 100% !important;
        min-width: unset !important;
    }
    .slider-arrow {
        display: none !important;
    }
    .case-slider__container .card img {
        aspect-ratio: 16 / 9;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        object-position: center;
    }
}

/* CHANGE 17 - Tablet hero nav buttons: not full-width */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero__nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero__nav-btn {
        width: auto;
        min-width: 160px;
        max-width: 240px;
    }
}

/* CHANGE 19 - Tablet about section: image above text */
@media (max-width: 1024px) {
    .about-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    .about-grid > div:first-child {
        width: 100%;
        max-width: 480px;
        order: -1;
    }
    .about-grid > div:last-child {
        max-width: 600px;
        width: 100%;
        text-align: center;
    }
    .about-grid > div:last-child .btn {
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* CHANGE 20 - Carousel card images: prevent squashing */
.card > div img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: center top;
}
@media (min-width: 769px) and (max-width: 1024px) {
    .card > div img {
        aspect-ratio: 4 / 3;
    }
}

/* CHANGE 22 - Global: responsive section spacing */
.section:not(.legal-page) {
    padding-top: clamp(100px, 13vh, 160px);
    padding-bottom: clamp(100px, 13vh, 160px);
}
@media (max-width: 1024px) {
    .section:not(.legal-page) {
        padding-top: clamp(80px, 11vh, 130px);
        padding-bottom: clamp(80px, 11vh, 130px);
    }
}
@media (max-width: 768px) {
    .section:not(.legal-page) {
        padding-top: clamp(70px, 9vh, 100px);
        padding-bottom: clamp(70px, 9vh, 100px);
    }
}
@media (max-width: 480px) {
    .section:not(.legal-page) {
        padding-top: clamp(56px, 7vh, 80px);
        padding-bottom: clamp(56px, 7vh, 80px);
    }
}

/* === SECTION PREVIEW EFFECT ============================================= */

/* Sections starten bereits bei 0.2 - kein Flackern beim Laden */
.section-preview-active .section:not(.legal-page) {
    opacity: 0.2;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

/* Hero bleibt sichtbar bis JS explizit section--preview setzt */
.section-preview-active .hero--home {
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.section-preview-active .section.section--active,
.section-preview-active .hero--home.section--active {
    opacity: 1;
}

.section-preview-active .section.section--preview,
.section-preview-active .hero--home.section--preview {
    opacity: 0.2;
}
