* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Light Mode = Default  |  Dark Mode = [data-theme="dark"]
   Kompatibel mit nav.html CSS-Bridge und pristine-shield.css
   ============================================ */

:root {
    /* Backgrounds */
    --bg:              #f8f9fa;
    --surface:         #ffffff;
    --surface-dim:     #eef0f2;
    --surface-variant: #e2e8f0;
    --surface-lowest:  #e8ecef;

    /* Text */
    --on-surface:         #191c1d;
    --on-surface-var:     #3d494d;   /* Alias kompatibel mit nav.html */
    --on-surface-variant: #3d494d;
    --on-surface-muted:   #718096;

    /* Brand */
    --primary:         #006399;
    --primary-dark:    #004e7a;
    --primary-mid:     #0077b8;
    --secondary:       #f97316;
    --accent:          #06d6a0;
    --danger:          #ef476f;

    /* Backwards-compat aliases (inline styles in HTML nutzen diese) */
    --dark:      #191c1d;
    --white:     #ffffff;
    --gray-900:  #191c1d;
    --gray-800:  #374151;
    --gray-700:  #4b5563;
    --gray-600:  #6b7280;
    --gray-500:  #9ca3af;
    --gray-400:  #d1d5db;
    --gray-300:  #e5e7eb;
    --gray-200:  #f3f4f6;
    --gray-100:  #f9fafb;

    /* Borders */
    --border:          rgba(0, 0, 0, 0.14);
    --outline-var:     rgba(188, 201, 206, 0.45);

    /* Effects */
    --accent-glow:     rgba(0, 99, 153, 0.18);
    --nav-bg:          rgba(255, 255, 255, 0.85);
    --header-bg:       rgba(255, 255, 255, 0.92);
    --glow-primary:    rgba(0, 99, 153, 0.04);
    --glow-secondary:  rgba(6, 214, 160, 0.02);
    --grid-line-color: rgba(0, 0, 0, 0.04);

    /* Primary subtle bg (card icons etc.) */
    --primary-subtle:        rgba(0, 99, 153, 0.08);
    --primary-subtle-border: rgba(0, 99, 153, 0.18);

    /* Shadows — subtler in light mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.07);
    --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);

    /* Logo: dunkel im Light-Mode */
    --logo-filter: brightness(0);
}

[data-theme="dark"] {
    /* Backgrounds */
    --bg:              #0a1628;
    --surface:         #111d32;
    --surface-dim:     #0d1b2e;
    --surface-variant: #162544;
    --surface-lowest:  #060d18;

    /* Text */
    --on-surface:         #e8edf5;
    --on-surface-var:     #b0c4d8;
    --on-surface-variant: #b0c4d8;
    --on-surface-muted:   #a8b8cc;

    /* Brand */
    --primary:         #00b4d8;
    --primary-dark:    #0077b6;
    --primary-mid:     #0096c7;

    /* Backwards-compat aliases */
    --dark:      #e8edf5;
    --white:     #0a1628;
    --gray-900:  #e8edf5;
    --gray-800:  #c8d3e0;
    --gray-700:  #a8b8cc;
    --gray-600:  #8899aa;
    --gray-500:  #6b7f96;
    --gray-400:  #4a5e74;
    --gray-300:  #2a4a6f;
    --gray-200:  #1e3a5f;
    --gray-100:  #111d32;

    /* Borders */
    --border:      #1e3a5f;
    --outline-var: rgba(0, 180, 216, 0.15);

    /* Effects */
    --accent-glow:     rgba(0, 180, 216, 0.3);
    --nav-bg:          rgba(10, 22, 40, 0.85);
    --header-bg:       rgba(10, 22, 40, 0.92);
    --glow-primary:    rgba(0, 180, 216, 0.06);
    --glow-secondary:  rgba(6, 214, 160, 0.03);
    --grid-line-color: rgba(30, 58, 95, 0.12);

    --primary-subtle:        rgba(0, 180, 216, 0.10);
    --primary-subtle-border: rgba(0, 180, 216, 0.20);

    /* Shadows — stärker in dark mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.30);
    --shadow:    0 4px 6px -1px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.50);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.50);

    /* Logo: weiß im Dark-Mode */
    --logo-filter: brightness(0) invert(1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--on-surface);
    background: var(--bg);
    line-height: 1.6;
}

/* Ambient glow effect — theme-aware via Variablen */
body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -2;
    background:
        radial-gradient(ellipse at 20% 50%, var(--glow-primary) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, var(--glow-primary) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, var(--glow-secondary) 0%, transparent 50%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}



h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--on-surface);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--on-surface-variant);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: #ea6a1e;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

/* FIX W120 2026-08-19: .cta-section trägt den grünen Verlauf
   (--primary-dark -> --primary). .btn-outline stand darauf mit
   color:var(--primary) — Grün auf Grün, gemessen 1,00:1. Im Hellmodus
   gilt jetzt dieselbe weiße Kontur wie im Dark-Mode: 4,65:1. */
.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Dark Mode: Hero/Page-Header/CTA btn-outline → weiß */
[data-theme="dark"] .hero .btn-outline,
[data-theme="dark"] .page-header .btn-outline,
[data-theme="dark"] .cta-section .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}

[data-theme="dark"] .hero .btn-outline:hover,
[data-theme="dark"] .page-header .btn-outline:hover,
[data-theme="dark"] .cta-section .btn-outline:hover {
    background: #ffffff !important;
    color: var(--bg) !important;
}

/* Nav wird komplett von /includes/nav.html gesteuert — keine Nav-Styles hier */

/* Footer Styles */
.footer {
    background: var(--surface-lowest);
    color: var(--on-surface-variant);
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-left img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: var(--logo-filter);
}

.footer-left span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--on-surface);
}

.footer-inner p {
    margin: 0;
    font-size: 0.875rem;
    flex-grow: 1;
    text-align: center;
    color: var(--on-surface-variant);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: transparent;
    color: var(--on-surface);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--on-surface);
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--on-surface) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--on-surface-variant);
}

/* Tool Banner */
.tool-banner {
    background: var(--surface-dim);
    border: 1px solid var(--border);
    border-left: 5px solid var(--secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
    color: var(--on-surface);
}

.tool-banner-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tool-banner-content {
    flex-grow: 1;
}

.tool-banner-content h3 {
    color: var(--on-surface);
    margin-bottom: 0.75rem;
}

.tool-banner-content p {
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tool-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tool-tag {
    background: var(--surface-variant);
    color: var(--on-surface-variant);
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-banner .btn-primary {
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 2rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Card header: icon + title side by side */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-subtle);
    border: 1px solid var(--primary-subtle-border);
    margin-bottom: 0;
    flex-shrink: 0;
}

.card h3 {
    margin-bottom: 0;
    color: var(--on-surface);
}

.card h4 {
    margin-bottom: 0;
    color: var(--on-surface);
}

.card p {
    color: var(--on-surface-variant);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card a {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Customer Logos */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    padding: 2rem;
    background: var(--surface-dim);
    border-radius: 0.75rem;
}

.customer-logo {
    height: 100px;
    width: 100%;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.customer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.customer-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--on-surface-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--surface);
    color: var(--on-surface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* W120 2026-08-19: tsmondo.css wird nach style.css geladen und setzt
   p{margin:0} mit gleicher Spezifität — der Absatzabstand aus p{} oben
   war damit weg. Zurück auf das Abstandsraster des Design-Systems:
   --space-4 = 1rem = 16px. Fallback für Seiten ohne tsmondo.css. */
.content-section p {
    margin-bottom: var(--space-4, 1rem);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    color: var(--on-surface);
}

.content-section ul {
    list-style: none;
    margin-left: 0;
}

.content-section ul li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.content-section ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tool-banner {
        flex-direction: column;
        text-align: center;
    }

    .tool-banner-icon {
        font-size: 2rem;
    }

    .tool-tags {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .customer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--surface);
        margin-top: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--on-surface-variant);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

/* ============================================
   PAGE HEADER (Unterseiten-Hero)
   Light: neutraler Seitenhintergrund
   Dark: dunkler Gradient
   ============================================ */
.page-header {
    background: var(--surface-dim);
    color: var(--on-surface);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #0d1b2e 0%, #111d32 100%);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .page-header h1 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.15rem;
    color: var(--on-surface-var);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Grid (Two columns) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Alt Background */
.alt-bg {
    background: var(--surface);
    padding: 3rem 2rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.alt-bg > * {
    max-width: 1200px;
    margin-left: max(0px, calc((100% - 1200px) / 2));
    margin-right: max(0px, calc((100% - 1200px) / 2));
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1.5rem auto 0;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Service List */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.service-list-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-list-item p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-top: 1px solid var(--border);
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
    margin: 3rem 0 0;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0d1b2e 0%, #162544 100%);
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Services Primary (Featured Service) */
.services-primary {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.service-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.service-featured-content {
    padding: 2.5rem 2rem;
}

.label-featured {
    display: inline-block;
    background: var(--secondary);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.benefit-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--on-surface-muted);
}

.benefit-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* All Services Grid */
.services-all {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.services-all h2 {
    margin-bottom: 1.5rem;
}

.services-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.service-card-full:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card-full img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.card-link:hover {
    color: var(--primary-dark);
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Content With Image */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-with-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Mapping Cards */
.mapping-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.mapping-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.mapping-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Misconception Grid */
.misconception-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.misconception-card {
    background: var(--surface);
    border-left: 4px solid var(--danger);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.standard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.standard-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0;
}

.use-case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.use-case-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 1010;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    /* --- Header & Hamburger Menu --- */
    .header {
        flex-direction: row !important;
        flex-wrap: wrap;
        padding: 0 !important;
        position: fixed !important;
        top: 0;
        justify-content: space-between;
    }

    .header-left {
        order: 1;
    }

    .header-left img {
        height: 50px;
        width: 50px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

    .menu-toggle {
        order: 2;
        display: flex;
    }

    nav {
        order: 3;
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding-top: 0;
        /* W120 2026-08-19: war 1px solid var(--border) — siehe margin-top */
        border-top: 0;
        /* W120 2026-08-19: Diese Regel stammt aus dem alten Header-Menü,
           trifft heute aber die globale Leiste <nav class="tsm-nav">.
           Die ist position:fixed bei top:0; margin-top 0.75rem und die
           obere Haarlinie schoben sie unter 769 px um 13 px nach unten und
           machten sie 69 px hoch gegen body padding-top:68px. Beides auf 0. */
        margin-top: 0;
        background: var(--bg);
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        animation: navSlideDown 0.25s ease;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    nav.open {
        display: flex;
    }

    nav > a,
    nav > .nav-dropdown > a {
        display: block;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid var(--border);
        color: var(--on-surface-muted) !important;
        font-weight: 500;
        font-size: 0.95rem;
        min-height: 44px;
        line-height: 1.4;
        text-align: left !important;
        width: 100%;
    }

    /* Top-level nav links (Service-Pakete, Referenzen) */
    nav > a:not(.nav-cta) {
        color: var(--on-surface-muted) !important;
        text-align: left !important;
        padding: 0.85rem 1.25rem !important;
        display: block;
        width: 100%;
    }

    nav > a:hover,
    nav > .nav-dropdown > a:hover {
        background: var(--surface);
    }

    nav > a.nav-cta {
        margin: 0.5rem 1rem 0.75rem;
        text-align: center;
        border-bottom: none;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        color: #ffffff !important;
        border-radius: 8px;
        padding: 0.75rem 1.5rem;
        box-shadow: 0 2px 12px var(--accent-glow);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--surface);
        margin-top: 0;
        padding: 0.25rem 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 0.65rem 1.25rem 0.65rem 2.25rem;
        font-size: 0.9rem;
        color: var(--on-surface-variant);
        min-height: 40px;
        display: block;
        border-bottom: 1px solid var(--border);
    }

    .nav-dropdown-menu a:hover {
        color: var(--primary);
        background: var(--surface-dim);
    }

    .nav-dropdown > a::after {
        content: ' ▾';
        font-size: 0.75rem;
    }

    /* --- Hero Section --- */
    .hero {
        padding: 2.5rem 1rem !important;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Override inline grid-template-columns for hero */
    .hero > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero .btn-primary,
    .hero .btn-outline {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        text-align: center;
    }

    /* --- About Section (Thorsten + Text) --- */
    .container > div[style*="grid-template-columns: 250px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- Page Header --- */
    .page-header {
        padding: 2.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* --- Service Featured (image + text) --- */
    .service-featured {
        grid-template-columns: 1fr !important;
    }

    .service-featured img {
        min-height: 200px;
    }

    .service-featured-content {
        padding: 1.5rem 1rem;
    }

    /* --- Content With Image --- */
    .content-with-image {
        grid-template-columns: 1fr !important;
    }

    /* --- All named grids → single column --- */
    .steps-grid,
    .features-grid,
    .services-grid-full,
    .checklist-grid,
    .pricing-grid,
    .mapping-cards,
    .misconception-grid,
    .standards-grid,
    .use-cases-grid,
    .comparison-grid,
    .service-list {
        grid-template-columns: 1fr !important;
    }

    /* --- Content Grid --- */
    .content-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem;
    }

    /* --- Generic inline grid override (catches remaining inline grids) --- */
    [style*="grid-template-columns: repeat"],
    [style*="grid-template-columns:repeat"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* --- Tool Banner --- */
    .tool-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .tool-banner-icon {
        font-size: 2rem;
    }

    .tool-tags {
        justify-content: center;
    }

    .tool-banner .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* --- CTA Section --- */
    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section .btn-primary,
    .cta-section .btn-secondary,
    .cta-section .btn-outline {
        display: block;
        width: 100%;
        margin: 0 auto !important;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary,
    .cta-buttons .btn-outline {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto !important;
        text-align: center;
    }

    /* --- Footer --- */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-inner p {
        order: 3;
        width: 100%;
        font-size: 0.8rem;
    }

    .footer-links {
        justify-content: center;
    }

    /* --- Customer Grid --- */
    .customer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .customer-logo {
        height: 70px;
    }

    /* --- Cards --- */
    .card {
        padding: 1.5rem;
    }

    /* --- Content Sections --- */
    .content-section {
        padding: 2rem 1rem;
    }

    /* --- Section padding --- */
    .section {
        padding: 2.5rem 1rem;
    }

    /* --- Services Primary / All --- */
    .services-primary,
    .services-all {
        padding: 0 1rem;
    }

    /* --- Contact form inline grid --- */
    div[style*="display: grid"][style*="gap: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- Badges section flex --- */
    div[style*="display: flex"][style*="gap: 3rem"] {
        gap: 1.5rem !important;
    }

    /* --- YouTube embeds --- */
    .content-section div[style*="max-width: 800px"] {
        max-width: 100% !important;
    }

    /* --- Typography tightening --- */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.15rem !important; }

    /* --- Images in hero --- */
    .hero img {
        max-height: 300px;
        object-fit: cover;
    }

    /* --- Feature tiles: vertical on mobile (icon top, text below) --- */
    .feature-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .feature-icon {
        margin-bottom: 0.25rem;
    }
}

/* Contrast fixes for card content */
.card p, .card span, .feature-item p, .content-section p {
    color: var(--on-surface-variant);
}

.content-section h2 {
    color: var(--on-surface);
}

/* ============================================
   DARK THEME: Overrides für Inline-Styles in HTML
   (nur in Dark-Mode aktiv)
   ============================================ */

/* Inline bg: white / #f9fafb → surface-dim */
[data-theme="dark"] section[style*="background: white"],
[data-theme="dark"] section[style*="background: #f9fafb"],
[data-theme="dark"] section[style*="background:#f9fafb"] {
    background: var(--surface-dim) !important;
}

[data-theme="dark"] form[style*="background: #f9fafb"],
[data-theme="dark"] div[style*="background: #f9fafb"] {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
}

/* Inline bg: var(--white) → surface */
[data-theme="dark"] div[style*="background: var(--white)"] {
    background: var(--surface) !important;
}

/* Inline color: #1e40af (altes Blau, unsichtbar auf dunklem Bg) → primary */
[data-theme="dark"] a[style*="color: #1e40af"],
[data-theme="dark"] h3[style*="color: #1e40af"],
[data-theme="dark"] span[style*="color: #1e40af"],
[data-theme="dark"] p[style*="color: #1e40af"] {
    color: var(--primary) !important;
}

/* Inline bg: var(--gray-100) → surface-variant */
[data-theme="dark"] div[style*="background: var(--gray-100)"] {
    background: var(--surface-variant) !important;
}

/* Inline color: var(--gray-500) / var(--gray-600) */
[data-theme="dark"] strong[style*="color: var(--gray-500)"],
[data-theme="dark"] p[style*="color: var(--gray-500)"],
[data-theme="dark"] span[style*="color: var(--gray-500)"] {
    color: var(--on-surface-muted) !important;
}

[data-theme="dark"] p[style*="color: var(--gray-600)"],
[data-theme="dark"] span[style*="color: var(--gray-600)"] {
    color: var(--on-surface-variant) !important;
}

/* Alle h2/h3/h4 in section-Elementen sichtbar */
section h2, section h3, section h4 {
    color: var(--on-surface);
}

/* Long word break in cards for mobile */
.card h3, .card h4, .card-title, .feature-title,
.service-card h3, .service-card h4,
.pricing-card h3, .pricing-card h4 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ===== YouTube 2-Klick-Datenschutz ===== */
.yt-consent {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--surface-dim);
}
.yt-consent img {
    width: 100%; height: 100%;
    display: block; border: 0;
    object-fit: cover;
}
.yt-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
    line-height: 1.4;
}
.yt-consent-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
    min-height: 44px;
    min-width: 220px;
}
.yt-consent-btn:hover { opacity: 0.85; }
.yt-consent-hint {
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    max-width: 320px;
    line-height: 1.4;
}
