/* ============================================================
   Dein Eventpartner – Design System
   ============================================================ */

/* ─── CSS Custom Properties – Dark Mode (Default) ─── */
:root,
[data-theme="dark"] {
    --bg:          #07090f;
    --surface:     #0c1120;
    --elevated:    #111827;
    --card:        #131d30;
    --accent:      #00aec7;
    --accent-h:    #00c8e6;
    --glow:        rgba(0, 174, 199, 0.12);
    --glow-md:     rgba(0, 174, 199, 0.22);
    --border:      rgba(160, 190, 220, 0.12);
    --border-a:    rgba(0, 174, 199, 0.30);
    --text:        #f0f5fb;
    --text-2:      #b8c6d8;
    --text-3:      #6a7f96;
    --shadow:      0 8px 32px rgba(0, 5, 15, 0.50);
    --shadow-sm:   0 2px 12px rgba(0, 5, 15, 0.30);
    --sidebar-w:   260px;
    --hero-overlay: linear-gradient(135deg, rgba(7, 9, 15, 0.85) 0%, rgba(0, 20, 50, 0.55) 100%);
}

[data-theme="light"] {
    --bg:          #f0f4f8;
    --surface:     #ffffff;
    --elevated:    #e8edf5;
    --card:        rgba(255, 255, 255, 0.95);
    --accent:      #0096ab;
    --accent-h:    #007d8f;
    --glow:        rgba(0, 150, 171, 0.10);
    --glow-md:     rgba(0, 150, 171, 0.18);
    --border:      rgba(0, 36, 78, 0.10);
    --border-a:    rgba(0, 150, 171, 0.28);
    --text:        #0f1e30;
    --text-2:      #3d5269;
    --text-3:      #7a8ea5;
    --shadow:      0 4px 24px rgba(0, 20, 50, 0.10);
    --shadow-sm:   0 2px 8px rgba(0, 20, 50, 0.07);
    --hero-overlay: linear-gradient(135deg, rgba(0, 15, 35, 0.82) 0%, rgba(0, 30, 60, 0.50) 100%);
}

/* ─── Accessibility Utilities ─── */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.70;
    color: var(--text);
    background: var(--bg);
    transition: background 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-h); }
ul, ol { padding-left: 1.5rem; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-2); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ─── */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
}

.container {
    width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: clamp(1.5rem, 4vw, 3rem);
}

section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* ─── Sidebar ─── */
.site-sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.sidebar-brand {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.sidebar-logo img {
    width: 140px;
    height: auto;
    max-width: 100%;
}

.sidebar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.sidebar-logo-sub {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
}

.sidebar-nav {
    padding: 1.25rem 0.875rem;
    flex: 1;
}

.sidebar-nav-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-3);
    padding: 0.5rem 0.625rem 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    margin-bottom: 0.125rem;
}

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

.sidebar-nav a.active {
    background: var(--glow);
    color: var(--accent);
    border: 1px solid var(--border-a);
}

.sidebar-nav a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav a:hover svg,
.sidebar-nav a.active svg {
    opacity: 1;
}

/* ── Submenu ───────────────────────────── */
.nav-item-group {
    display: flex;
    flex-direction: column;
}

.nav-subnav {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.55s ease, opacity 0.4s ease;
    padding-left: 0.5rem;
    margin-top: 0.125rem;
}

.nav-subnav.open {
    max-height: 12rem; /* enough for 3 items */
    opacity: 1;
}

.sidebar-nav .nav-subnav-link {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.75rem 0.2rem 1.375rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    margin-bottom: 0.0625rem;
}

.sidebar-nav .nav-subnav-link:hover {
    background: var(--elevated);
    color: var(--text);
}

.sidebar-nav .nav-subnav-link.active {
    color: var(--accent);
    background: var(--glow);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.sidebar-address {
    font-style: normal;
    font-size: 0.775rem;
    line-height: 1.7;
    color: var(--text-3);
    margin-bottom: 0.75rem;
}

.sidebar-address strong {
    color: var(--accent);
    font-weight: 600;
}

.sidebar-address a {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-address a:hover { color: var(--accent); }

.sidebar-footer-bottom {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sidebar-footer-bottom a {
    font-size: 0.7rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-footer-bottom a:hover { color: var(--accent); }

.sidebar-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
    margin-right: auto;
}

.sidebar-theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sidebar-theme-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Show sun in dark mode (click → switch to light), moon in light mode (click → switch to dark) */
.icon-moon { display: none; }
.icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: none; }

/* Mobile logo bar – static, scrolls with page */
.mobile-logo {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    height: 112px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.mobile-logo img {
    height: 95px;
    width: auto;
    display: block;
}

.mobile-logo span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

/* Mobile burger – static, inside mobile-logo row */
.sidebar-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.sidebar-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Compact mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 350;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s;
}

.mobile-nav-link:hover { color: var(--accent); }

.mobile-nav-address {
    margin-top: 2rem;
    text-align: center;
}

.mobile-nav-footer {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mobile-nav-footer .sidebar-theme-toggle {
    width: 32px;
    height: 32px;
    margin-right: 0;
}

.mobile-nav-footer a {
    font-size: 0.8125rem;
    color: var(--text-3);
    text-decoration: none;
}

.mobile-nav-footer a:hover { color: var(--accent); }


/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.625rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow-md);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-2);
    border: 1.5px solid var(--border);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ─── Section labels ─── */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.625rem;
    display: block;
}

.section-title,
.section-headline {
    margin-bottom: 1rem;
    color: var(--text);
}

.section-intro {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.70;
    max-width: 60ch;
    margin-bottom: 2.5rem;
}

/* ─── Hero Slider ─── */
.hero-slider {
    position: relative;
    height: 100svh;
    min-height: 480px;
    overflow: hidden;
    background: #000;
    /* bündig an Oberkante – kein Abstand */
    margin-top: 0;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.70s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* no overlay – pure image slideshow */

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 1;
    padding-block: 6rem 4rem;
}

.slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: rgba(0, 174, 199, 0.12);
    border: 1px solid rgba(0, 174, 199, 0.30);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.slide h1 {
    color: #f0f5fb;
    max-width: 18ch;
    margin-bottom: 1.125rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.slide p {
    font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
    color: rgba(240, 245, 251, 0.80);
    line-height: 1.65;
    max-width: 50ch;
    margin-bottom: 2rem;
}

.slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Slider controls */
.slider-arrows {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    gap: 0.625rem;
    z-index: 10;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(13, 21, 37, 0.65);
    border: 1px solid rgba(160, 190, 220, 0.20);
    color: #f0f5fb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-btn svg { width: 18px; height: 18px; }

.slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(240, 245, 251, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--accent);
    width: 24px;
}

/* Stats bar under slider */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding-block: 1.5rem;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-2);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 1.75rem;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── About / Trust section ─── */
.about-section {
    background: var(--bg);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 5rem;
    align-items: start;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--elevated);
    aspect-ratio: 4/5;
    position: sticky;
    top: 2rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 0.875rem;
}

.about-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.about-badge:hover { border-color: var(--border-a); }

.about-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--glow);
    border: 1px solid var(--border-a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-badge-icon svg { width: 18px; height: 18px; }

.about-badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

/* ─── Services ─── */
.services-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--border-a);
}

/* Support both old (.service-card-image) and new (.service-card-img) class names */
.service-card-img,
.service-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--elevated);
    position: relative;
}

.service-card-img img,
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img img,
.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-img-icon,
.service-card-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.4;
}

.service-card-img-icon svg,
.service-card-image-placeholder svg { width: 48px; height: 48px; }

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    background: var(--glow);
    border: 1px solid var(--border-a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-card-icon svg { width: 20px; height: 20px; }

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    transition: color 0.2s ease;
}

.service-card:hover h3 { color: var(--accent); }

.service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: auto;
}

.service-card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card:hover .service-card-link svg { transform: translateX(4px); }
[data-theme="light"] .service-card-link { color: #005f70; } /* contrast ≥ 4.5:1 on white */

/* ─── Benefits ─── */
.benefits-section {
    background: var(--bg);
}

.benefits-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 5rem;
    align-items: start;
}

.benefits-intro {
    position: sticky;
    top: 2rem;
}

.benefits-intro p {
    font-size: 1rem;
    line-height: 1.72;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
}

.benefit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
    border-color: var(--border-a);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--glow);
    border: 1px solid var(--border-a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 0.875rem;
}

.benefit-icon svg { width: 20px; height: 20px; }
.benefit-card h4 { margin-bottom: 0.375rem; color: var(--text); }
.benefit-card p { font-size: 0.875rem; line-height: 1.60; margin: 0; }

/* ─── Service Detail Sections ─── */
.service-detail-section {
    padding-block: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--border);
}

.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.125rem;
    margin-bottom: 2.5rem;
}

.service-detail-icon {
    width: 52px;
    height: 52px;
    background: var(--glow);
    border: 1px solid var(--border-a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.service-detail-icon svg { width: 24px; height: 24px; }

.service-detail-header h2 { margin-bottom: 0; }

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 5rem;
    align-items: start;
}

.service-detail-grid--reverse .service-detail-text { order: 2; }
.service-detail-grid--reverse .service-detail-images { order: 1; }

.service-detail-intro {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.72;
    color: var(--text-2);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-2);
    padding: 0.5rem 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.service-detail-content {
    color: var(--text-2);
    line-height: 1.72;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.service-detail-content p { margin-bottom: 0.875rem; }
.service-detail-content p:last-child { margin-bottom: 0; }

/* 3-Bilder-Collage */
.service-detail-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    position: sticky;
    top: 2rem;
    align-self: start;
}

.service-detail-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--elevated);
}

/* Erstes Bild nimmt die volle Breite ein */
.service-detail-img-wrap:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

/* Die beiden kleineren Bilder nebeneinander */
.service-detail-img-wrap:not(:first-child) {
    aspect-ratio: 4/3;
}

.service-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-detail-img-wrap:hover .service-detail-img {
    transform: scale(1.03);
}

.service-detail-image--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.25;
}

.service-detail-image--placeholder svg { width: 64px; height: 64px; }


/* ─── References ─── */
.references-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ref-main-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
}

.references-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 4rem;
}

.ref-col-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.ref-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ref-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
}

.ref-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.15em;
}


/* ─── Gallery ─── */
.gallery-section,
.gallery-preview-section {
    background: var(--bg);
}

.gallery-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.gallery-item--hidden { display: none; }

@media (max-width: 700px) {
    .gallery-item--hidden-mobile { display: none; }
}

/* Support both old (.gallery-masonry-item) and new (.gallery-item) class names */
.gallery-item,
.gallery-masonry-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--elevated);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
}

.gallery-item img,
.gallery-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-masonry-item:hover img { transform: scale(1.04); }

.gallery-item::after,
.gallery-masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover::after,
.gallery-masonry-item:hover::after { opacity: 0.10; }

.gallery-placeholder {
    background: var(--elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2rem;
}

.gallery-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.gallery-link:hover svg { transform: translateX(4px); }

/* ─── Contact / CTA ─── */
.contact-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 2rem;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info > p {
    font-size: 0.9375rem;
    line-height: 1.70;
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-2);
    margin-bottom: 0.625rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail:hover { color: var(--accent); }

.contact-detail svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Legacy contact detail list styles */
.contact-detail-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    background: var(--glow);
    border: 1px solid var(--border-a);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-detail-icon svg { width: 16px; height: 16px; }

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 0.875rem;
    color: var(--text-2);
}

.contact-detail-value a {
    color: var(--text-2);
    transition: color 0.2s ease;
}

.contact-detail-value a:hover { color: var(--accent); }

.cta-card {
    background: var(--elevated);
    border: 1px solid var(--border-a);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px var(--glow);
    margin-top: 2rem;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-md) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    position: relative;
    margin-bottom: 0.875rem;
    color: var(--text);
}

.cta-card > p {
    position: relative;
    font-size: 0.9375rem;
    max-width: 48ch;
    margin: 0 auto 2rem;
}

.cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2rem;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cta-phone:hover { color: var(--accent); }
.cta-phone svg { width: 18px; height: 18px; color: var(--accent); }
.cta-divider { color: var(--text-3); font-size: 0.875rem; }

/* ─── Contact Form ─── */
.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--accent);
    margin-left: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--glow);
}

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

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    accent-color: var(--accent);
}

.form-checkbox-label {
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.55;
}

.form-submit-row {
    margin-top: 0.5rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.form-message.success {
    display: block;
    background: var(--glow);
    border: 1px solid var(--border-a);
    color: var(--accent);
}

.form-message.error {
    display: block;
    background: rgba(220, 60, 60, 0.10);
    border: 1px solid rgba(220, 60, 60, 0.30);
    color: #e05555;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: 1.75rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-3);
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent); }

/* ─── Legal Modal ─── */
.legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 400;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.legal-modal.open { display: block; }

.legal-modal-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 3rem 2.5rem;
}

.legal-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--elevated);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.legal-modal-close svg { width: 16px; height: 16px; }

.legal-modal-body h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.legal-modal-body h2 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
}

.legal-modal-body p,
.legal-modal-body li {
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--text-2);
}

@media (max-width: 640px) {
    .legal-modal-inner { padding: 2rem 1.25rem; }
}

/* ─── Lightbox ─── */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(8, 13, 24, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 20px;
    height: 20px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ─── Fade animations ─── */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */

/* Tablet + Mobile: sidebar weg, mobile UI */
@media (max-width: 700px) {
    :root { --sidebar-w: 0px; }

    .main-content { margin-left: 0; }

    .site-sidebar { display: none !important; }

    .mobile-logo { display: flex; }

    /* Burger im Header-Flow — scrollt mit der Seite weg */
    .sidebar-mobile-toggle {
        display: flex;
        position: static;
        z-index: auto;
    }

    /* Wenn Menü offen: Burger per JS-Klasse fixieren damit er sichtbar bleibt */
    .sidebar-mobile-toggle.nav-open {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 400;
    }

    .mobile-nav { display: flex; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-inner,
    .benefits-inner,
    .references-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .references-cols { grid-template-columns: 1fr; }
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .benefits-intro { position: static; }
    .about-image { position: static; aspect-ratio: 3/2; }
    .contact-info { position: static; }

    .slider-arrows { display: none; }
    .slide h1 { max-width: 100%; }

    .hero-slider { height: 70svh; min-height: 380px; }

    .gallery-section-header { flex-direction: column; align-items: flex-start; }

    /* Service detail */
    .service-detail-grid,
    .service-detail-grid--reverse { grid-template-columns: 1fr; }
    .service-detail-grid--reverse .service-detail-text { order: 1; }
    .service-detail-grid--reverse .service-detail-images { order: 2; }
    .service-detail-images { position: static; }
}

@media (max-width: 480px) {
    .stats-bar-inner { gap: 1rem; }
}
