/* ============================================================
   Heimbach Bedachungen - Hauptstylesheet
   ============================================================ */

/* === Theme Variables === */
:root {
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter Tight', -apple-system, sans-serif;

    /* Brand Colors */
    --accent: #ff6b1a;           /* Heimbach Orange */
    --accent-hover: #ff8533;
    --accent-dark: #cc4e00;
    --accent-glow: rgba(255, 107, 26, 0.15);

    /* Spacing */
    --container: 1280px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 280ms var(--ease);
}

/* Dark Theme (default) */
[data-theme="dark"] {
    --bg: #0a0a0c;
    --bg-soft: #141417;
    --bg-card: #1a1a1f;
    --bg-elevated: #222228;
    --border: #27272e;
    --border-strong: #363640;
    --text: #f5f5f7;
    --text-muted: #9797a2;
    --text-dim: #5c5c68;
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    --grid-color: rgba(255, 255, 255, 0.03);
}

/* Light Theme */
[data-theme="light"] {
    --bg: #fafaf8;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: #f5f5f0;
    --border: #e8e8e2;
    --border-strong: #d4d4cc;
    --text: #1a1a1f;
    --text-muted: #5c5c68;
    --text-dim: #9797a2;
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.2);
    --grid-color: rgba(0, 0, 0, 0.03);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background 400ms var(--ease), color 400ms var(--ease);
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
ul { list-style: none; }

/* === Typography === */
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }

/* === Container === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Light Theme: Blauer Header-Balken mit Verlauf */
[data-theme="light"] .site-header {
    background: linear-gradient(to right, rgba(39, 116, 203, 1) 0%, rgba(39, 116, 203, 0.6) 50%, rgba(255, 255, 255, 0.95) 90%, rgba(255, 255, 255, 1) 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(39, 116, 203, 0.2);
}

[data-theme="light"] .main-nav a {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .main-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .main-nav a.active::after {
    background: #fff;
}

[data-theme="light"] .phone-btn {
    background: rgba(39, 116, 203, 0.15);
    color: #2774cb;
    border-color: rgba(39, 116, 203, 0.3);
}

[data-theme="light"] .phone-btn:hover {
    background: rgba(39, 116, 203, 0.25);
}

[data-theme="light"] .theme-toggle {
    color: #2774cb;
}

[data-theme="light"] .menu-toggle span {
    background: #2774cb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 280px;
    display: block;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin: -20px 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

/* Dark Theme zeigt dunkles Logo, Light Theme zeigt helles Logo */
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="light"] .logo-dark { display: none !important; }

@media (max-width: 768px) {
    .logo-img { height: 70px; max-width: 200px; margin: -14px 0; }
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 700;
    font-size: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav {
    display: flex;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav a {
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    position: relative;
}

.main-nav a:hover { color: var(--text); background: var(--bg-elevated); }

.main-nav a.active {
    color: var(--text);
    background: var(--bg-elevated);
}
.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}
.phone-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}
.phone-btn svg { color: var(--accent); }

.theme-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   HERO (Landingpage)
   ============================================================ */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, var(--accent-glow) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeUp 0.6s var(--ease) both;
}
.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 12px #4ade80;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    animation: fadeUp 0.7s var(--ease) 0.1s both;
}
.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    display: inline-block;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    animation: fadeUp 0.7s var(--ease) 0.2s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================
   KONFIGURATOR-CARDS
   ============================================================ */
.configurators {
    padding: 60px 0 120px;
    position: relative;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.section-label::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 60px;
    max-width: 720px;
}
.section-title em { font-style: italic; color: var(--accent); }

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.config-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 400ms var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    animation: fadeUp 0.7s var(--ease) both;
}
.config-card:nth-child(1) { animation-delay: 0.3s; }
.config-card:nth-child(2) { animation-delay: 0.4s; }
.config-card:nth-child(3) { animation-delay: 0.5s; }

.config-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 40%);
    opacity: 0;
    transition: opacity 400ms var(--ease);
    pointer-events: none;
}

.config-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.config-card:hover::before { opacity: 1; }

.config-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--accent);
    margin-bottom: 24px;
    transition: all var(--transition);
}
.config-card:hover .config-icon {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: rotate(-5deg) scale(1.05);
}

.config-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.config-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.config-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--accent);
    transition: gap var(--transition);
}
.config-card:hover .card-cta { gap: 14px; }

.config-card .card-cta svg {
    transition: transform var(--transition);
}
.config-card:hover .card-cta svg { transform: translateX(4px); }

.config-number {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-dim);
    opacity: 0.3;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.feature h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}
.feature p { color: var(--text-muted); font-size: 15px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 80px 0 40px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

/* Light Theme: Footer mit blauem Verlauf */
[data-theme="light"] .site-footer {
    background: linear-gradient(to right, rgba(39, 116, 203, 1) 0%, rgba(39, 116, 203, 0.6) 50%, rgba(255, 255, 255, 0.95) 90%, rgba(255, 255, 255, 1) 100%);
    border-top: 1px solid rgba(39, 116, 203, 0.2);
}

[data-theme="light"] .footer-tagline {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .footer-col h4 {
    color: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .footer-col ul li,
[data-theme="light"] .footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .footer-col ul li a:hover {
    color: #fff;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 14px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-col ul li a { transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ============================================================
   WIZARD (Konfigurator-Seiten)
   ============================================================ */
.wizard-page { padding: 60px 0 100px; }

.wizard-header {
    text-align: center;
    margin-bottom: 60px;
}

.wizard-header h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.wizard-header h1 em { font-style: italic; color: var(--accent); }

.wizard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-wrap {
    max-width: 800px;
    margin: 0 auto 48px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.progress-info strong { color: var(--text); font-weight: 500; }

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 100px;
    transition: width 500ms var(--ease);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Wizard Card */
.wizard-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.wizard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
    min-height: 500px;
}

.wizard-step { display: none; animation: fadeIn 400ms var(--ease); }
.wizard-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1rem;
}

/* Option Cards (Radio-Buttons als Karten) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* Kompakte Grids für Ja/Nein/Weiß nicht Auswahl */
.option-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

/* Zweier-Grid für Ja/Nein */
.option-grid-yesno {
    grid-template-columns: repeat(2, 1fr);
}

.option-card {
    position: relative;
    padding: 24px 20px;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-width: 0;
    word-wrap: break-word;
}
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.option-card.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.option-card .opt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.option-card:hover .opt-icon,
.option-card.selected .opt-icon {
    color: var(--accent);
}

/* Deaktivierte Option */
.option-card.option-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}
.option-card.option-disabled .opt-title {
    text-decoration: line-through;
}
.option-card .opt-title {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
}
.option-card .opt-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Form Fields */
.field-group { margin-bottom: 20px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.field-label .required { color: var(--accent); }

.field-input,
.field-textarea,
.field-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-soft);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    transition: all var(--transition);
    font-family: inherit;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.field-textarea { resize: vertical; min-height: 120px; }

/* Upload Zone */
.upload-zone {
    padding: 48px 24px;
    background: var(--bg-soft);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.upload-zone svg {
    margin: 0 auto 16px;
    color: var(--text-muted);
}
.upload-zone h4 { font-size: 16px; margin-bottom: 6px; }
.upload-zone p { font-size: 13px; color: var(--text-muted); }
.upload-zone input[type="file"] { display: none; }

.upload-preview {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.upload-preview .file-chip {
    position: relative;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}
.upload-preview .file-chip .remove {
    margin-left: auto;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.upload-preview .file-chip .remove:hover { color: var(--accent); }

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px var(--accent-glow);
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}

.btn-lg { padding: 18px 36px; font-size: 16px; }

/* Sidebar Price Summary */
.price-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.price-sidebar h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.price-sidebar .price-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-list {
    margin-bottom: 24px;
}
.price-list .price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.price-list .price-row:last-child { border-bottom: none; }
.price-list .label { color: var(--text-muted); }
.price-list .value { font-weight: 500; }

.price-total {
    padding: 20px 0;
    border-top: 2px solid var(--border-strong);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.price-total .label { font-size: 14px; color: var(--text-muted); }
.price-total .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.price-total .value small {
    font-size: 0.55em;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.price-note {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Zubehör Anzahl-Feld */
.extra-qty {
    display: none !important;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 13px;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.extra-qty span {
    color: var(--text);
    font-weight: 500;
}
.extra-qty input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: #fff;
    color: #111;
}
.extra-qty input[type="number"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.option-card.selected .extra-qty {
    display: flex !important;
}

/* Transparenz-Slider */
.transparenz-slider {
    max-width: 600px;
}
.transparenz-track {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.9) 0%, 
        rgba(200,200,200,0.6) 25%, 
        rgba(150,150,150,0.5) 50%, 
        rgba(80,80,80,0.7) 75%, 
        rgba(20,20,20,0.95) 100%);
    border-radius: 24px;
    border: 1px solid var(--border);
}
.transparenz-track input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    cursor: pointer;
}
.transparenz-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: grab;
}
.transparenz-track input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: grab;
}
.transparenz-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
}
.transparenz-labels span {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    flex: 1;
    transition: all var(--transition);
}
.transparenz-labels span.active {
    color: var(--accent);
    font-weight: 600;
}
.transparenz-info {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* Bedingungen / AGB Blöcke */
.terms-block {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.terms-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}
.terms-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-muted);
    max-height: 220px;
    overflow-y: auto;
    padding-right: 10px;
}
.terms-text p {
    margin-bottom: 10px;
}
.terms-text ul {
    margin: 8px 0 12px 20px;
    list-style: disc;
}
.terms-text ul li {
    margin-bottom: 4px;
    list-style: disc;
}
.terms-text strong {
    color: var(--text);
}

/* Material Cards mit Bildern */
.option-grid-material {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.material-card {
    padding: 0 !important;
    overflow: hidden;
}
.material-card .material-img {
    width: 100%;
    height: 110px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.material-card .material-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}
.material-card:hover .material-img img {
    transform: scale(1.08);
}
.material-card .opt-title,
.material-card .opt-sub {
    padding: 0 16px;
}
.material-card .opt-title {
    padding-top: 12px;
}
.material-card .opt-sub {
    padding-bottom: 14px;
}
.material-card .opt-icon {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Farb-Auswahl */
.color-card {
    padding: 16px 12px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.color-card:hover .color-dot {
    transform: scale(1.15);
    border-color: var(--text-muted);
}
.color-card.selected .color-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1.15);
}

/* DSGVO Card mit sichtbarer Checkbox */
.dsgvo-card {
    display: flex !important;
    align-items: flex-start;
    gap: 20px;
    text-align: left !important;
    padding: 28px !important;
}
.dsgvo-card .dsgvo-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-strong);
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: all var(--transition);
    background: var(--bg);
}
.dsgvo-card .dsgvo-check svg {
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}
.dsgvo-card.selected .dsgvo-check {
    background: var(--accent);
    border-color: var(--accent);
}
.dsgvo-card.selected .dsgvo-check svg {
    opacity: 1;
    transform: scale(1);
}

/* Summary step */
.summary-section { margin-bottom: 32px; }
.summary-section h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--accent);
}
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 24px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    font-size: 14px;
}
.summary-grid dt { color: var(--text-muted); }
.summary-grid dd { font-weight: 500; }

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 60px 40px;
}
.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
    animation: bounceIn 0.6s var(--ease);
}
.success-icon svg { color: white; }
.success-screen h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.success-screen p { color: var(--text-muted); font-size: 1.1rem; max-width: 480px; margin: 0 auto 32px; }

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .wizard-layout { grid-template-columns: 1fr; }
    .price-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .phone-btn span { display: none; }
    .phone-btn { padding: 10px; }
    .hero { padding: 60px 0 40px; }
    .configurators { padding: 40px 0 80px; }
    .wizard-card { padding: 28px 20px; }
    .wizard-page { padding: 32px 0 60px; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .config-number { font-size: 40px; }
    .option-grid-material { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
}

@media (max-width: 480px) {
    .option-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
    .option-grid-material { grid-template-columns: 1fr 1fr !important; }
    .option-grid-compact { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important; }
    .wizard-card { padding: 20px 16px; }
    .step-title { font-size: 1.4rem; }
}

/* Mobile Menu Open State */
.main-nav.mobile-open {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px;
    transform: none;
}
.main-nav.mobile-open a { padding: 16px; border-radius: var(--radius); }

/* Rollo-Farben: Hover-Zoom Vorschau */
#rollo-farben-block .option-card {
    transition: transform 0.2s ease, z-index 0s;
    position: relative;
}
#rollo-farben-block .option-card:hover {
    transform: scale(1.8);
    z-index: 50;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
#rollo-farben-block .option-card:hover img {
    border-radius: 4px;
}

/* Kalender/Date-Input Icon sichtbar machen */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
    opacity: 0.8;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz, Rechtliches)
   ============================================================ */
.legal-page {
    padding: 60px 0 100px;
    position: relative;
}

.legal-container {
    max-width: 860px;
}

.legal-header {
    text-align: left;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.legal-header .section-label {
    margin-bottom: 12px;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-sub {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Adress-Karte (Impressum/Datenschutz Top) */
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.legal-card h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
}

.legal-subheading {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.legal-address {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.addr-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.addr-item svg {
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.addr-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.addr-item a:hover {
    color: var(--accent);
}

/* Section Blöcke */
.legal-section {
    padding: 0;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.3;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.legal-num {
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    min-width: 28px;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.legal-section a:hover {
    border-bottom-color: var(--accent);
}

/* Listen */
.legal-list {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.legal-list li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    padding: 4px 0 4px 28px;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Zwei-Spalten Grid für kleine Blöcke */
.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Abschlussbereich (Stand, Änderungen) */
.legal-footer-note {
    padding: 28px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.legal-footer-note h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 700px) {
    .legal-grid { grid-template-columns: 1fr; }
    .legal-card { padding: 24px; }
    .legal-address { grid-template-columns: 1fr; }
}

/* ============================================================
   INHALTSSEITEN (Über uns, Leistungen, Referenzen, Jobs) - 11/2026
   ============================================================ */

/* --- Navigation: Gruppen mit Aufklappmenü --- */
.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.nav-gruppe { position: relative; }
.nav-gruppe-knopf {
    padding: 10px 18px;
    border-radius: 100px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: 0;
    cursor: pointer;
    transition: all var(--transition);
}
.nav-gruppe-knopf::after { content: " \25BE"; font-size: 11px; opacity: 0.7; }
.nav-gruppe:hover .nav-gruppe-knopf,
.nav-gruppe:focus-within .nav-gruppe-knopf,
.nav-gruppe.active .nav-gruppe-knopf { color: var(--text); background: var(--bg-elevated); }
.nav-menue {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 8px;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
}
.nav-menue::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-gruppe:hover .nav-menue,
.nav-gruppe:focus-within .nav-menue { display: block; }
.main-nav .nav-menue a { display: block; border-radius: var(--radius-sm); color: var(--text-muted); }
.main-nav .nav-menue a:hover,
.main-nav .nav-menue a.active { color: var(--text); background: var(--bg-elevated); }
.main-nav .nav-menue a.active::after { display: none; }
[data-theme="light"] .nav-gruppe-knopf { color: rgba(255, 255, 255, 0.9); }
[data-theme="light"] .nav-gruppe:hover .nav-gruppe-knopf,
[data-theme="light"] .nav-gruppe:focus-within .nav-gruppe-knopf,
[data-theme="light"] .nav-gruppe.active .nav-gruppe-knopf { color: #fff; background: rgba(255, 255, 255, 0.18); }
[data-theme="light"] .main-nav .nav-menue a { color: var(--text-muted); }
[data-theme="light"] .main-nav .nav-menue a:hover,
[data-theme="light"] .main-nav .nav-menue a.active { color: var(--text); background: var(--bg-elevated); }

/* Ab hier wird das Menü zu breit für eine Zeile -> Hamburger-Menü */
@media (max-width: 1240px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
}
.main-nav.mobile-open { max-height: calc(100vh - 80px); overflow-y: auto; }
.main-nav.mobile-open .nav-gruppe-knopf {
    padding: 16px 16px 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: none;
    cursor: default;
}
.main-nav.mobile-open .nav-gruppe-knopf::after { content: ""; }
.main-nav.mobile-open .nav-menue {
    display: block;
    position: static;
    margin: 0;
    padding: 0 0 0 12px;
    background: none;
    border: 0;
    box-shadow: none;
}
[data-theme="light"] .main-nav.mobile-open a,
[data-theme="light"] .main-nav.mobile-open .nav-gruppe-knopf { color: var(--text); }

/* --- Seitenkopf --- */
.page-hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, var(--accent-glow) 0%, transparent 45%);
    pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 880px; }
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, 5.4vw, 4.4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-wrap: balance;
    animation: fadeUp 0.7s var(--ease) both;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.anker-leiste { display: flex; flex-wrap: wrap; gap: 8px; }
.anker-leiste a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.anker-leiste a:hover { color: var(--accent); border-color: var(--accent); }

/* --- Abschnitte --- */
.content-section { padding: 80px 0; }
.content-section--soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.block-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-wrap: balance;
}
.block-lead { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin-bottom: 24px; }
.block-sub { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.prose p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; max-width: 65ch; }
.prose strong { color: var(--text); }
.prose-schmal { max-width: 820px; }

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.split--umgekehrt { grid-template-columns: 0.9fr 1.1fr; }
.split-bild:empty { display: none; }
.split:has(.split-bild:empty) { grid-template-columns: 1fr; }
.split-bild img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

/* --- Zahlen --- */
.zahlen-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.zahl { padding: 24px 0; border-top: 2px solid var(--accent); }
.zahl-wert {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.zahl-text { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Listen --- */
.check-list { list-style: none; display: grid; gap: 12px; margin: 8px 0 0; padding: 0; }
.check-list--zwei { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
    line-height: 1.6;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
}
.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 5px;
    height: 8px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-list strong { color: var(--text); }
.chip-liste { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.chip-liste li {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
}

/* --- Zeitstrahl --- */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 860px; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 150px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-strong);
}
.timeline li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding-bottom: 32px;
    position: relative;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: 145px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline-zeit {
    font-family: var(--font-display);
    font-size: 20px;
    text-align: right;
    padding-right: 4px;
    line-height: 1.2;
}
.timeline p { color: var(--text-muted); line-height: 1.75; margin: 0; }

/* --- Leistungskarten --- */
.leistung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.leistung-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    scroll-margin-top: 140px;
    transition: border-color var(--transition), transform var(--transition);
}
.leistung-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.leistung-card:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.leistung-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.leistung-card p { color: var(--text-muted); line-height: 1.7; flex: 1; }
.leistung-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 500;
    font-size: 15px;
    transition: gap var(--transition);
}
.leistung-link:hover { gap: 12px; }

/* --- Bilderband --- */
.bild-band { padding: 0; }
.bild-band-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.bild-band img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* --- Aufklapp-Texte --- */
.mehr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 12px;
}
.mehr summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.mehr summary::-webkit-details-marker { display: none; }
.mehr summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.mehr[open] summary::after { content: "\2013"; }
.mehr .prose { padding: 0 24px 8px; }

/* --- Kontakt-Band --- */
.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 8px;
    text-wrap: balance;
}
.cta-band p { color: var(--text-muted); max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Galerie --- */
.galerie-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.galerie-filter button {
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    scroll-margin-top: 140px;
}
.galerie-filter button span { margin-left: 4px; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.galerie-filter button:hover { border-color: var(--border-strong); color: var(--text); }
.galerie-filter button.is-aktiv { background: var(--accent); border-color: var(--accent); color: #fff; }
.galerie-filter button.is-aktiv span { color: rgba(255, 255, 255, 0.8); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.galerie-bild {
    padding: 0;
    border: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.galerie-bild[hidden] { display: none; }
.galerie-bild img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease); }
.galerie-bild:hover img,
.galerie-bild:focus-visible img { transform: scale(1.05); }
.galerie-bild:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(5, 5, 8, 0.92);
    padding: 40px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-zu, .lightbox-pfeil {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-zu { top: 20px; right: 20px; }
.lightbox-pfeil { top: 50%; transform: translateY(-50%); }
.lightbox-zurueck { left: 16px; }
.lightbox-vor { right: 16px; }
.lightbox-zu:hover, .lightbox-pfeil:hover { background: var(--accent); }

/* --- Fußzeile: Facebook --- */
.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.footer-social:hover { color: #fff; background: #1877f2; border-color: #1877f2; }

@media (prefers-reduced-motion: reduce) {
    .page-hero h1 { animation: none; }
    .leistung-card, .galerie-bild img, .leistung-link { transition: none; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .split, .split--umgekehrt { grid-template-columns: 1fr; gap: 36px; }
    .split--umgekehrt .split-bild { order: -1; }
    .bild-band-inner { grid-template-columns: 1fr 1fr; }
    .bild-band-inner img:first-child { grid-column: 1 / -1; }
    .bild-band img { height: 220px; }
    .check-list--zwei { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-hero { padding: 56px 0 44px; }
    .content-section { padding: 56px 0; }
    .zahlen-band { grid-template-columns: 1fr; gap: 0; }
    .timeline::before { left: 5px; }
    .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
    .timeline li::before { left: 0; }
    .timeline-zeit { text-align: left; }
    .cta-band { padding: 28px 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .lightbox { padding: 16px; }
    .lightbox-pfeil { top: auto; bottom: 20px; transform: none; }
}

/* ============================================================
   TAG/NACHT-SCHALTER (Header oben rechts) - 11/2026
   ============================================================ */
.tn-schalter {
    --tn-weg: 30px;
    position: relative;
    flex-shrink: 0;
    width: 66px;
    height: 36px;
    padding: 3px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    background: #07070b;
    box-shadow:
        inset 0 2px 7px rgba(0, 0, 0, 0.85),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.tn-knopf {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -2px 0 rgba(150, 160, 255, 0.95),
        0 5px 16px -3px rgba(110, 122, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.09);
    transition: background 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}
.tn-knopf canvas { width: 22px; height: 22px; display: block; }
.tn-schalter:hover .tn-knopf {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -2px 0 rgba(170, 180, 255, 1),
        0 6px 22px -2px rgba(120, 132, 255, 1),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}
.tn-schalter:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[data-theme="light"] .tn-schalter {
    background: #e7e3dc;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.16),
        inset 0 -1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .tn-knopf {
    transform: translateX(var(--tn-weg));
    background: linear-gradient(160deg, #fffefb, #f2ece2);
    box-shadow:
        inset 0 2px 0 rgba(255, 178, 40, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 -3px 16px -3px rgba(255, 168, 30, 0.85),
        0 3px 8px rgba(0, 0, 0, 0.14);
}
[data-theme="light"] .tn-schalter:hover .tn-knopf {
    box-shadow:
        inset 0 2px 0 rgba(255, 178, 40, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 -4px 22px -2px rgba(255, 168, 30, 1),
        0 3px 8px rgba(0, 0, 0, 0.14);
}

/* Beim Umschalten blendet die ganze Seite weich über (nur kurz aktiv) */
.theme-blende,
.theme-blende *,
.theme-blende *::before,
.theme-blende *::after {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease, stroke 0.5s ease, box-shadow 0.5s ease !important;
}

@media (prefers-reduced-motion: reduce) {
    .tn-schalter, .tn-knopf { transition: none; }
}

/* Richtpreis Dach-Check auf der Inspektionsseite (11/2026) */
.insp-preis {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--accent-glow);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    font-size: 14px;
    line-height: 1.5;
}
.insp-preis strong { color: var(--accent); white-space: nowrap; }

/* ============================================================
   HERO MIT BILD (Startseite, 11/2026)
   Werkzeug im Gegenlicht aus dem Werbevideo. Desktop: rechts
   angeschnitten bis an den Rand, links und unten weich ausgeblendet.
   Handy: als breiter Streifen unter dem Text.
   ============================================================ */
.hero-mit-bild {
    display: flex;
    align-items: center;
    min-height: clamp(480px, 42vw, 640px);
}
.hero-mit-bild .hero-inner {
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    text-align: left;
}
.hero-mit-bild .hero-text {
    max-width: 620px;
}
.hero-mit-bild .hero-lead {
    margin-left: 0;
    margin-right: 0;
}
.hero-bild {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(54vw, 900px);
    pointer-events: none;
    animation: heroBildEin 1.6s var(--ease) 0.15s both;
}
.hero-bild img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 42%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
        linear-gradient(to right, transparent 0%, #000 42%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 70%, transparent 100%);
            mask-composite: intersect;
}
/* im Dunkelmodus etwas gedämpft, damit der helle Himmel nicht blendet */
:root:not([data-theme="light"]) .hero-bild img {
    filter: brightness(0.85) contrast(1.06);
}
@keyframes heroBildEin {
    from { opacity: 0; transform: scale(1.03); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bild { animation: none; }
}
@media (max-width: 900px) {
    .hero-mit-bild {
        display: block;
        min-height: 0;
        padding-bottom: 0;
    }
    .hero-mit-bild .hero-inner {
        text-align: center;
    }
    .hero-mit-bild .hero-text {
        max-width: none;
    }
    .hero-mit-bild .hero-lead {
        margin: 0 auto 8px;
    }
    .hero-bild {
        position: relative;
        width: 100%;
        height: 320px;
    }
    .hero-bild img {
        object-position: 50% 30%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 72%, transparent 100%);
        -webkit-mask-composite: source-over;
                mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 72%, transparent 100%);
                mask-composite: add;
    }
}
