/* ═══════════════════════════════════════════════════════════════════════
   HISS ERDBEWEGUNGEN & TRANSPORTE GMBH
   Mobile-First Stylesheet · Industrie-/Tiefbau-Look
   Tiefes Anthrazit · klares Weiß · scharfes Rot · Beton-/Grip-Texturen
   ═══════════════════════════════════════════════════════════════════════ */

/* Schriften lokal eingebunden (DSGVO: keine Verbindung zu Google Fonts).
   Barlow / Barlow Condensed, SIL Open Font License 1.1, Zeichensatz latin. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/barlow-condensed-900.woff2') format('woff2'); }

:root {
    /* Farben */
    --red:          #e30613;
    --red-dark:     #b8050f;
    --red-glow:     rgba(227,6,19,0.22);
    --ink:          #101216;   /* tiefstes Anthrazit – Hero, Footer, CTA-Flächen */
    --anthracite:   #1b1e24;   /* dunkle Flächen / Karten auf Dunkel */
    --anthracite-2: #262a33;   /* leicht angehobene dunkle Fläche */
    --line-dark:    rgba(255,255,255,0.12);
    --paper:        #f4f5f7;   /* helle Sektionsflächen */
    --paper-2:      #e9ebef;   /* helle Alternativfläche */
    --white:        #ffffff;
    --ink-text:     #14161a;   /* Fließtext auf Hell */
    --grey:         #5b616b;
    --grey-light:   #8b909a;
    --border:       rgba(16,18,22,0.12);
    --border-strong: rgba(16,18,22,0.22);
    --radius:       10px;
    --radius-lg:    16px;
    --tap:          48px;      /* Mindesthöhe für Touch-Targets */
    --t:            all 0.28s cubic-bezier(0.22,1,0.36,1);
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
    --shell-x:      5%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: hidden; max-width: 100%; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink-text);
    line-height: 1.6;
    font-size: 16px;                 /* verhindert iOS-Auto-Zoom in Formularen */
    padding-top: 68px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

/* Beton-/Rausch-Textur (feines Korn) – als wiederverwendbare Utility-Klasse */
.texture-noise {
    position: absolute; inset: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
}
/* Grip-/Riffelblech-Textur – Diamantmuster per CSS-Gradient (kein Bild, 0 Requests) */
.texture-grip {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        repeating-linear-gradient(45deg,  rgba(255,255,255,0.05) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px);
    opacity: 0.6;
}
.texture-grip.on-light {
    background-image:
        repeating-linear-gradient(45deg,  rgba(16,18,22,0.05) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(-45deg, rgba(16,18,22,0.05) 0 2px, transparent 2px 9px);
}

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4%;
    background: rgba(16,18,22,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    z-index: 1000;
    transition: var(--t);
}
.navbar.scrolled { box-shadow: 0 6px 30px rgba(0,0,0,0.35); }
.logo-container { text-decoration: none; display: flex; align-items: center; height: 100%; }
.logo-img { height: 42px; width: auto; object-fit: contain; }

.nav-links {
    list-style: none;
    position: fixed; top: 68px; left: -100%;
    width: 100%; height: calc(100vh - 68px);
    background: rgba(16,18,22,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; overflow-y: auto;
    transition: var(--t);
    z-index: 999;
}
.nav-links.active { left: 0; }
.nav-links a {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(255,255,255,0.8); text-decoration: none;
    padding: 14px 26px; border-radius: 7px;
    min-height: var(--tap); display: inline-flex; align-items: center;
    transition: var(--t); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--red); }
.nav-links .btn-contact {
    background: var(--red); color: var(--white) !important;
    border-radius: var(--radius);
    margin-top: 8px;
}
.nav-links .btn-contact:hover { background: var(--red-dark); }

.menu-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; background: none; border: none;
    width: var(--tap); height: var(--tap);
}
.menu-toggle span {
    display: block; width: 24px; height: 2.5px;
    background: var(--white); border-radius: 2px; transition: var(--t);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#home {
    position: relative;
    min-height: 88vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 64px 5% 64px;
    overflow: hidden;
    background: var(--ink);
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('../img/hero-bg.jpg') center center / cover no-repeat;
    opacity: 0.32;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; width: 100%; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--white);
    background: var(--red);
    padding: 8px 16px; border-radius: 100px;
    margin-bottom: 22px;
    animation: fadeUp 0.7s ease both;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--white); border-radius: 50%; }

#home h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 11vw, 6.5rem);
    font-weight: 900; line-height: 0.96;
    text-transform: uppercase; letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeUp 0.7s 0.08s ease both;
}
#home h1 .accent { color: var(--red); display: block; }
#home p {
    font-size: 1.02rem; color: rgba(255,255,255,0.72);
    max-width: 560px; margin: 0 auto 34px;
    font-weight: 400; line-height: 1.7;
    animation: fadeUp 0.7s 0.16s ease both;
}
.hero-cta-group {
    display: flex; flex-direction: column; gap: 12px;
    animation: fadeUp 0.7s 0.24s ease both;
}
.btn-main, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
    min-height: var(--tap); padding: 0 30px;
    font-family: var(--font-display); font-size: 1rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: var(--radius);
    transition: var(--t);
}
.btn-main { background: var(--red); color: var(--white); box-shadow: 0 6px 22px rgba(227,6,19,0.4); border: none; }
.btn-main:hover { background: var(--red-dark); }
.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); }

.scroll-indicator { display: none; }

/* ═══════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.stats-strip { position: relative; background: var(--anthracite); padding: 0; }
.stats-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(2, 1fr);
}
.stat-item {
    padding: 26px 18px; text-align: center;
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    border-top: 3px solid transparent;
    transition: var(--t);
}
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:hover { border-top-color: var(--red); background: rgba(255,255,255,0.03); }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem; font-weight: 900;
    color: var(--white); line-height: 1;
    margin-bottom: 4px;
}
.stat-number span { color: var(--red); }
.stat-label {
    font-size: 0.72rem; font-weight: 600;
    color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   SECTION GLOBALS
═══════════════════════════════════════ */
section {
    padding: 64px var(--shell-x);
    display: flex; flex-direction: column;
    align-items: center;
}
.section-label {
    font-family: var(--font-display);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--red);
    margin-bottom: 10px;
}
section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8vw, 3.2rem);
    font-weight: 900; text-transform: uppercase;
    letter-spacing: -0.5px; color: var(--ink-text);
    text-align: center; line-height: 1.05;
    margin-bottom: 14px;
}
section h2 em { color: var(--red); font-style: normal; }
.section-desc {
    font-size: 1rem; max-width: 640px; text-align: center;
    color: var(--grey); margin-bottom: 40px; line-height: 1.7;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════
   SAISONGRUSS (Weihnachten / Neujahr)
═══════════════════════════════════════ */
.season-greeting { background: var(--ink); }
.season-greeting[hidden] { display: none; }   /* sonst überschreibt section{display:flex} das hidden-Attribut */
.season-card {
    position: relative; width: 100%; max-width: 1200px;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    background: var(--anthracite);
    display: grid;
}
.season-img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.season-content {
    padding: 28px 22px 32px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.season-content h2 { color: var(--white); margin-bottom: 18px; }
.season-content h2 span { color: var(--red); display: block; }
.season-signature {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
@media (min-width: 880px) {
    .season-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .season-img { height: 100%; max-height: 720px; }
    .season-content { padding: 48px 56px; }
    .season-content h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
}

/* ═══════════════════════════════════════
   TEAM
═══════════════════════════════════════ */
#team { background: var(--paper-2); }

.team-hero {
    position: relative; width: 100%;
    min-height: 460px; border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    display: flex; align-items: flex-end;
}
.team-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.team-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,5,8,0.97) 0%, rgba(5,5,8,0.6) 55%, rgba(5,5,8,0.1) 100%);
}
.team-hero-content { position: relative; z-index: 2; padding: 32px 22px; max-width: 800px; }
.team-hero-content h3 {
    font-family: var(--font-display);
    font-size: 1.9rem; font-weight: 900;
    color: var(--white); text-transform: uppercase;
    letter-spacing: -0.5px; margin-bottom: 4px;
}
.team-hero-subtitle {
    font-family: var(--font-display);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    color: var(--red); text-transform: uppercase; margin-bottom: 18px;
}
.team-hero-content p { font-size: 0.93rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 12px; }
.team-hero-signature {
    font-weight: 600; color: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px; font-size: 0.92rem; font-style: italic;
}

.team-cards { display: grid; grid-template-columns: 1fr; gap: 18px; width: 100%; }
.team-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
}
.team-card-img { width: 100%; height: 240px; object-fit: cover; object-position: center 25%; display: block; }
.team-card-body { padding: 20px 22px; border-top: 3px solid var(--red); }
.team-card-body h4 {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
    color: var(--ink-text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.team-card-body p { font-size: 0.9rem; color: var(--grey); line-height: 1.65; }

.team-family-photo {
    position: relative; width: 100%;
    margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.team-family-img { width: 100%; display: block; height: 280px; object-fit: cover; object-position: center 30%; }
.team-family-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,5,8,0.88) 0%, transparent 100%);
    padding: 18px 20px;
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
    color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   VORHER / NACHHER SLIDER
═══════════════════════════════════════ */
.compare {
    position: relative; width: 100%; max-width: 900px;
    aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
    margin: 0 auto 40px; box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    touch-action: pan-y; /* horizontales Wischen bleibt dem Slider vorbehalten */
    -webkit-user-select: none; user-select: none;
    background: var(--anthracite);
}
.compare-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none; -webkit-user-drag: none;
}
.compare-after { z-index: 1; }
.compare-before-wrap {
    position: absolute; inset: 0; z-index: 2; overflow: hidden;
    width: 50%; /* wird per JS aktualisiert */
}
/* Breite des "Vorher"-Bildes wird per JS exakt auf die Containerbreite gesetzt
   (before-after-slider.js), damit es beim Aufdecken bündig zum "Nachher"-Bild liegt. */
.compare-before-wrap .compare-img { max-width: none; }
.compare-label {
    position: absolute; top: 14px; z-index: 3;
    font-family: var(--font-display); font-size: 0.7rem; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; color: var(--white);
    background: rgba(16,18,22,0.75); padding: 6px 12px; border-radius: 6px;
}
.compare-label.before { left: 14px; }
.compare-label.after { right: 14px; }
.compare-handle {
    position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
    width: 4px; background: var(--white);
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
    touch-action: none;
}
.compare-handle-grip {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red); border: 3px solid var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    cursor: ew-resize;
}
.compare-handle-grip svg { width: 22px; height: 22px; color: var(--white); }
.compare-caption {
    font-size: 0.85rem; color: var(--grey); text-align: center;
    max-width: 600px; margin: 0 auto 8px; font-style: italic;
}
/* Container für (potenziell mehrere) Vorher/Nachher-Vergleiche, dynamisch aus
   api.php befüllt (assets/js/comparisons.js). Leer, solange der Bereich im
   Admin-Dashboard ausgeblendet ist – nimmt dann keinen Platz ein. */
.comparisons-grid { display: flex; flex-direction: column; }
.comparisons-grid:empty { display: none; }
.compare-item { width: 100%; }

/* ═══════════════════════════════════════
   LEISTUNGEN
═══════════════════════════════════════ */
#leistungen { background: var(--paper); }

/* Flexbox statt CSS-Grid für das Auto-Fit-Layout: bei reinem Grid
   (repeat(auto-fit, minmax(...))) streckt sich eine unvollständig gefüllte
   LETZTE Zeile nicht über die Restbreite – genau die "Löcher"/ungleichmäßigen
   Ränder, die vermieden werden sollen (z. B. 10 Karten bei 3 Spalten pro Zeile
   ergibt eine letzte Zeile mit nur einer schmalen Karte). Flexbox mit
   flex-wrap + flex-grow auf den Karten verteilt die Restbreite jeder Zeile
   dagegen IMMER lückenlos auf die dort vorhandenen Karten – bei 1, 3 oder 10
   Einträgen gleichermaßen. */
.services-grid { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; align-items: stretch; }
.services-grid > .service-card { flex: 1 1 300px; }
.service-card {
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex; flex-direction: column; transition: var(--t);
}
.service-card:active { transform: scale(0.99); }
.service-img-container { width: 100%; height: 200px; overflow: hidden; position: relative; }
.service-img { width: 100%; height: 100%; object-fit: cover; }
.service-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--red); color: var(--white);
    font-family: var(--font-display);
    padding: 5px 12px; font-size: 0.72rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px;
}
.service-content { padding: 22px 22px; flex-grow: 1; display: flex; flex-direction: column; }
.service-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 800;
    color: var(--ink-text); text-transform: uppercase;
    letter-spacing: 0.3px; margin-bottom: 10px;
}
.service-content p { font-size: 0.9rem; color: var(--grey); line-height: 1.65; margin-bottom: 16px; }
.service-list { list-style: none; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.service-list li { position: relative; padding-left: 18px; font-size: 0.87rem; color: var(--grey); margin-bottom: 7px; }
.service-list li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

/* ═══════════════════════════════════════
   LEGOSTEINE PREISLISTE
═══════════════════════════════════════ */
#legosteine { background: var(--paper-2); }

.price-groups { display: grid; grid-template-columns: 1fr; gap: 18px; width: 100%; margin-bottom: 40px; }
.price-group { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.price-group-header {
    background: var(--ink); padding: 16px 22px;
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; color: var(--white);
}
.price-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table tr { border-bottom: 1px solid var(--border); }
.price-table tr:last-child { border-bottom: none; }
.price-table td { padding: 13px 22px; font-size: 0.92rem; color: var(--grey); white-space: nowrap; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--ink-text); }
.price-note { font-size: 0.82rem; color: var(--grey); text-align: center; margin-top: -18px; margin-bottom: 40px; font-style: italic; }

/* ── Legostein-Rechner ── */
.calculator {
    position: relative; width: 100%; max-width: 640px;
    background: var(--ink); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.calculator-header { position: relative; padding: 24px 22px 18px; overflow: hidden; }
.calculator-header h3 {
    position: relative; z-index: 1;
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
    color: var(--white); text-transform: uppercase; letter-spacing: 0.3px;
}
.calculator-header p { position: relative; z-index: 1; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 4px; }
.calculator-body { padding: 22px; background: var(--white); }

.calc-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.calc-row {
    border: 1.5px solid var(--border-strong); border-radius: var(--radius);
    padding: 14px; background: var(--paper);
}
.calc-row-head { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.calc-row-type {
    flex: 1; min-width: 0; min-height: var(--tap);
    padding: 10px 38px 10px 14px;
    border-radius: 8px; border: 1.5px solid var(--border-strong);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23101216' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none; -webkit-appearance: none;
    font-family: var(--font-body); font-size: 0.94rem; color: var(--ink-text);
}
.calc-row-remove {
    width: var(--tap); min-height: var(--tap); flex-shrink: 0;
    border: 1.5px solid var(--border-strong); background: var(--white);
    border-radius: 8px; color: var(--grey); cursor: pointer; transition: var(--t);
    display: flex; align-items: center; justify-content: center;
}
.calc-row-remove:hover { background: #fee2e2; border-color: #dc2626; color: #dc2626; }
.calc-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-stepper, .calc-stepper-small { display: flex; align-items: stretch; gap: 8px; }
.calc-stepper button, .calc-stepper-small button {
    width: var(--tap); min-height: var(--tap); flex-shrink: 0;
    border: 1.5px solid var(--border-strong); background: var(--white);
    border-radius: 8px; font-size: 1.3rem; font-weight: 700; color: var(--ink-text);
    cursor: pointer; transition: var(--t); line-height: 1;
}
.calc-stepper button:hover, .calc-stepper-small button:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.calc-stepper input, .calc-stepper-small input {
    width: 64px; min-width: 0; text-align: center;
    min-height: var(--tap); border-radius: 8px; border: 1.5px solid var(--border-strong);
    font-size: 1.05rem; font-weight: 700; color: var(--ink-text);
    background: var(--white);
}
.calc-row-subtotal { display: flex; align-items: center; gap: 8px; }
.calc-row-subtotal-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink-text); }

.calc-add-row {
    width: 100%; min-height: var(--tap); margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px dashed var(--border-strong); background: transparent;
    border-radius: var(--radius); color: var(--ink-text);
    font-family: var(--font-display); font-size: 0.9rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px; cursor: pointer; transition: var(--t);
}
.calc-add-row:hover { border-color: var(--red); color: var(--red); }
.calc-add-row:disabled { opacity: 0.4; cursor: not-allowed; }

.calc-results {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 20px; padding: 18px; border-radius: var(--radius);
    background: var(--paper-2);
}
.calc-result-item { text-align: center; }
.calc-result-item span { display: block; font-size: 0.7rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.calc-result-item strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-text); }
.calc-result-item.highlight strong { color: var(--red); }
.calc-result-item.full { grid-column: 1 / -1; }
.calc-note { font-size: 0.76rem; color: var(--grey-light); text-align: center; margin-bottom: 16px; }
.calc-cta {
    width: 100%; min-height: var(--tap); border: none; border-radius: var(--radius);
    background: var(--red); color: var(--white); font-family: var(--font-display);
    font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: var(--t);
}
.calc-cta:hover { background: var(--red-dark); }

/* ═══════════════════════════════════════
   STELLENANGEBOTE
═══════════════════════════════════════ */
#stellenangebote { background: var(--paper); }

/* Siehe Kommentar bei .services-grid: Flexbox statt Grid, damit auch eine
   unvollständige letzte Zeile (z. B. bei 10 Jobs) lückenlos bleibt. */
.jobs-grid { display: flex; flex-wrap: wrap; gap: 22px; width: 100%; margin-bottom: 20px; align-items: stretch; }
.jobs-grid > .job-card,
.jobs-grid > .hiss-edit-add-job { flex: 1 1 300px; }
.job-card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
}
.job-header { background: var(--ink); padding: 24px 24px 20px; position: relative; overflow: hidden; }
.job-badge {
    position: relative; z-index: 1;
    display: inline-block; background: var(--red); color: var(--white);
    font-family: var(--font-display); padding: 4px 12px;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; margin-bottom: 12px; margin-right: 6px;
}
.job-badge-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); }
.job-header h3 {
    position: relative; z-index: 1;
    font-family: var(--font-display); font-size: 1.4rem;
    font-weight: 900; color: var(--white);
    text-transform: uppercase; letter-spacing: -0.3px; margin-bottom: 6px;
}
.job-location { position: relative; z-index: 1; font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.job-body { padding: 22px 24px 24px; flex-grow: 1; display: flex; flex-direction: column; }
.job-body > p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; margin-bottom: 20px; }
.job-section { margin-bottom: 16px; }
.job-section h4 {
    font-family: var(--font-display); font-size: 0.76rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--red); margin-bottom: 10px;
}
.job-list { list-style: none; }
.job-list li { position: relative; padding-left: 18px; font-size: 0.87rem; color: var(--grey); margin-bottom: 7px; line-height: 1.5; }
.job-list li::before {
    content: ''; position: absolute; left: 0; top: 7px;
    width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn-job {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none; min-height: var(--tap);
    padding: 0 22px; font-family: var(--font-display); font-size: 0.92rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px;
    border-radius: var(--radius); transition: var(--t); cursor: pointer; border: none;
    background: var(--red); color: var(--white);
}
.btn-job:hover { background: var(--red-dark); }

.jobs-loading, .jobs-error {
    color: var(--grey); text-align: center; padding: 30px 0; font-size: 0.9rem; width: 100%;
}
.jobs-note { font-size: 0.86rem; color: var(--grey); text-align: center; margin-top: 8px; font-style: italic; max-width: 600px; }
.jobs-note a { color: var(--ink-text); font-weight: 600; text-decoration: none; }
.jobs-note a:hover { color: var(--red); }

/* ═══════════════════════════════════════
   FORMULARE (Kontakt, Bewerbungs-Modal)
═══════════════════════════════════════ */
#kontakt { background: var(--paper-2); }

.contact-layout { max-width: 1200px; width: 100%; display: flex; flex-direction: column; gap: 0; }
.contact-wrapper { display: flex; flex-direction: column; gap: 24px; width: 100%; }

.contact-form-container {
    background: var(--white); padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.contact-form, .apply-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
    font-family: var(--font-display);
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; color: var(--ink-text);
}
.form-group input, .form-group textarea, .form-group select {
    min-height: var(--tap);
    padding: 12px 16px;
    border-radius: 8px; border: 1.5px solid var(--border-strong);
    background: var(--paper); font-family: var(--font-body);
    font-size: 1rem; color: var(--ink-text); transition: var(--t);
    width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--red-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; padding-top: 12px; }
.form-group select {
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b616b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 40px;
}
.btn-submit {
    min-height: var(--tap);
    background: var(--ink); color: var(--white); border: none;
    padding: 0 20px; font-family: var(--font-display);
    font-size: 1rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; border-radius: 8px; cursor: pointer;
    transition: var(--t);
}
.btn-submit:hover { background: var(--red); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-privacy-note { font-size: 0.78rem; color: var(--grey); line-height: 1.5; margin-top: 12px; }
.form-privacy-note a { color: var(--ink-text); font-weight: 600; }

/* ── Datei-Upload (Quick-Bewerbung) ── */
.file-upload-input {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.file-upload {
    display: flex; align-items: center; gap: 10px;
    min-height: var(--tap); padding: 0 16px;
    border: 1.5px dashed var(--border-strong); border-radius: 8px;
    background: var(--paper); color: var(--grey);
    font-size: 0.92rem; cursor: pointer; transition: var(--t);
}
.file-upload:hover, .file-upload:focus-within { border-color: var(--red); color: var(--red); }
.file-upload.has-file { border-style: solid; border-color: var(--red); color: var(--ink-text); background: var(--white); }
.file-upload svg { flex-shrink: 0; }
.file-upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-upload-hint { font-size: 0.76rem; color: var(--grey-light); margin-top: 6px; }
.file-upload-error { font-size: 0.82rem; color: #dc2626; margin-top: 6px; font-weight: 600; }

/* ── Checkbox (DSGVO-Zustimmung etc.) ── */
.form-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    min-height: var(--tap); padding: 4px 0;
    font-size: 0.88rem; color: var(--grey); line-height: 1.5; cursor: pointer;
}
.form-checkbox input {
    width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
    accent-color: var(--red); cursor: pointer;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
    background: var(--white); padding: 20px 22px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.info-card h4 {
    font-family: var(--font-display);
    font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--red); margin-bottom: 8px;
}
.info-card p { color: var(--grey); font-size: 0.94rem; line-height: 1.65; }
.info-card a { color: var(--ink-text); font-weight: 600; text-decoration: none; }
.info-card a:hover { color: var(--red); }

.map-section {
    width: 100%; height: 300px; border-radius: var(--radius-lg);
    overflow: hidden; margin-top: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}
.map-section iframe { width: 100%; height: 100%; border: 0; }
/* 2-Klick-Platzhalter: Google Maps wird erst nach Klick geladen (DSGVO) */
.map-consent {
    height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 14px;
    padding: 24px; text-align: center; background: var(--paper);
}
.map-consent p { font-size: 0.85rem; color: var(--grey); line-height: 1.6; max-width: 460px; }
.map-consent a { color: var(--ink-text); font-weight: 600; }
.map-consent .btn-submit { width: auto; background: var(--red); color: var(--white); border: none; }

.success-banner {
    display: none; background: #0f9d58; color: white;
    padding: 14px; border-radius: 8px; font-weight: 600;
    margin-bottom: 16px; text-align: center; font-size: 0.92rem;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    position: relative;
    background: var(--ink); color: rgba(255,255,255,0.55);
    padding: 40px 5%; text-align: center; font-size: 0.86rem;
    overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
}
footer > * { position: relative; z-index: 1; }
.footer-logo {
    display: block; height: 38px; width: auto;
    margin: 0 auto 20px; opacity: 0.7; filter: brightness(0) invert(1);
}
.footer-info { max-width: 480px; width: 100%; margin: 0 auto; }
footer p { margin-bottom: 8px; }
footer span { color: var(--red); font-weight: 700; }
.footer-copy { font-weight: 600; color: rgba(255,255,255,0.75); }
.footer-tagline { color: rgba(255,255,255,0.5); }
.footer-contact { margin-top: 4px; }
.footer-contact a {
    color: rgba(255,255,255,0.65); text-decoration: none;
    display: inline-flex; align-items: center; min-height: var(--tap); padding: 4px 6px;
}
.footer-contact a:hover { color: var(--red); }
.footer-dot { color: rgba(255,255,255,0.25); margin: 0 2px; }
.legal-links { margin-top: 16px; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; align-items: center; }
.legal-links a {
    color: rgba(255,255,255,0.55); text-decoration: none; cursor: pointer;
    padding: 10px 10px; min-height: var(--tap); display: inline-flex; align-items: center;
}
.legal-links a:hover { color: var(--red); }
.legal-sep { color: rgba(255,255,255,0.2); }

.social-links { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem;
    font-weight: 600; min-height: var(--tap); padding: 0 16px;
    border-radius: 8px; border: 1px solid var(--line-dark);
}
.social-link:hover { color: var(--white); border-color: var(--red); background: rgba(227,6,19,0.12); }
.social-link svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal {
    display: none; position: fixed; z-index: 2000;
    inset: 0; background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px); overflow-y: auto;
}
.modal-content {
    background: var(--white); margin: 0 auto; padding: 28px 20px;
    border-radius: 0; width: 100%; min-height: 100vh;
    position: relative; color: var(--ink-text);
}
.modal-content h1 {
    font-family: var(--font-display);
    font-size: 1.7rem; font-weight: 900; text-transform: uppercase;
    margin-bottom: 20px; color: var(--ink-text); padding-right: 40px;
}
.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 800; text-transform: uppercase;
    margin: 24px 0 10px; color: var(--ink-text);
    border-bottom: 2px solid var(--red); padding-bottom: 6px;
}
.modal-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; color: var(--ink-text); }
.modal-content h4 { font-size: 0.93rem; font-weight: 700; margin: 12px 0 6px; color: var(--ink-text); }
.modal-content p { color: var(--grey); line-height: 1.75; margin-bottom: 12px; }
.modal-content ul { color: var(--grey); line-height: 1.75; margin: 0 0 12px 20px; }
.modal-content ul li { margin-bottom: 6px; }
.modal-content a { color: var(--red); word-break: break-all; }
.modal-content strong { color: var(--ink-text); }
.close-modal {
    position: absolute; top: 14px; right: 14px;
    width: var(--tap); height: var(--tap);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; cursor: pointer; color: var(--grey);
    background: var(--paper); border: none; border-radius: 8px; line-height: 1;
}
.close-modal:hover { color: var(--red); }

/* ── Bewerbungs-Modal ── */
.modal-content.apply-modal-content { min-height: 0; }
@media (min-width: 700px) {
    .modal-content.apply-modal-content { max-width: 480px; }
}
.apply-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 900; text-transform: uppercase;
    margin-bottom: 20px; color: var(--ink-text); padding-right: 40px;
}
.apply-success {
    background: #0f9d58; color: var(--white);
    padding: 16px; border-radius: 8px; font-weight: 600;
    margin-bottom: 16px; text-align: center; font-size: 0.95rem;
}
.apply-form input[readonly] { background: var(--paper-2); color: var(--grey); cursor: not-allowed; }

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINTS – MOBILE FIRST (min-width ergänzt/erweitert die Basis)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Kleine Tablets / große Handys (≥ 560px) ── */
@media (min-width: 560px) {
    .team-cards { grid-template-columns: 1fr 1fr; }
    .hero-cta-group { flex-direction: row; justify-content: center; }
    .calc-results { grid-template-columns: repeat(4, 1fr); }
    .job-header, .job-body { padding-left: 30px; padding-right: 30px; }
}

/* ── Tablets (≥ 700px) ── */
@media (min-width: 700px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .price-groups { grid-template-columns: repeat(2, 1fr); }
    .stats-inner { grid-template-columns: repeat(4, 1fr); }
    .stat-item:nth-child(2n) { border-right: 1px solid var(--line-dark); }
    .stat-item:nth-child(4n) { border-right: none; }
    .modal-content { margin: 4% auto; padding: 44px; border-radius: var(--radius-lg); max-width: 800px; min-height: 0; max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
    #home h1 { letter-spacing: -1px; }
    section { padding: 90px 5%; }
}

/* ── Ab hier klassisches Desktop-Layout (≥ 880px) ── */
@media (min-width: 880px) {
    body { padding-top: 80px; }
    .navbar { height: 80px; padding: 0 5%; }
    .navbar.scrolled { height: 68px; }
    .logo-img { height: 54px; }
    .menu-toggle { display: none; }
    .nav-links {
        position: static; width: auto; height: auto;
        background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
        flex-direction: row; gap: 4px; overflow: visible;
    }
    .nav-links a { font-size: 0.95rem; padding: 8px 13px; min-height: auto; }
    .nav-links .btn-contact { margin-top: 0; margin-left: 8px; }

    #home { min-height: 92vh; padding: 120px 5% 80px; }
    .scroll-indicator {
        display: flex; position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
        flex-direction: column; align-items: center; gap: 6px;
        color: rgba(255,255,255,0.35);
        font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 2px;
        text-transform: uppercase; z-index: 2;
        animation: fadeIn 1.5s 1s ease both;
    }
    .scroll-line {
        width: 1px; height: 40px;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
    }

    .contact-wrapper { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
}

/* ── Desktop groß (≥ 1024px) ── */
/* .services-grid / .jobs-grid bewusst OHNE feste Spaltenzahl: das Flex-Wrap-
   Layout oben verteilt Karten selbstständig neu, egal ob 1, 3 oder 10
   Einträge vorhanden sind – auch die letzte, unvollständige Zeile bleibt
   dabei immer lückenlos (siehe Kommentar bei .jobs-grid). */
@media (min-width: 1024px) {
    .price-groups { grid-template-columns: repeat(3, 1fr); }
    .team-hero { min-height: 580px; }
    .team-hero-content { padding: 55px 60px; }
    .team-hero-content h3 { font-size: 2.4rem; }
    .team-family-img { height: 500px; }
    section { max-width: 100%; }
    .services-grid, .price-groups, .jobs-grid, .contact-layout, .team-cards, .team-hero, .team-family-photo { max-width: 1200px; }
    .stats-inner { max-width: 1100px; margin: 0 auto; border-left: 1px solid var(--line-dark); }
}
