/* ==========================================================================
   D-4D Solution Company SARL – öffentliche Website
   Mobile zuerst aufgebaut; größere Bildschirme über min-width-Abfragen.
   Keine externen Schriften oder Bibliotheken (schnell auch bei langsamer Verbindung).
   ========================================================================== */

:root {
    --navy-900: #111a24;
    --navy-800: #17212d;
    --navy-700: #1f2d3d;
    --navy-600: #2c3e50;
    --red: #d63c2d;
    --red-600: #b93024;
    --gold: #f2b632;
    --wa: #128c4b;
    --ink: #17212d;
    --muted: #586676;
    --line: #e1e6ec;
    --soft: #f3f5f8;
    --white: #fff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(17, 26, 36, .10);
    --shadow-sm: 0 2px 10px rgba(17, 26, 36, .08);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 68px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
svg.ic { flex: none; vertical-align: -0.18em; }
a { color: var(--red-600); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- Schaltflächen ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .6em 1.25em;
    border: 2px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding-inline: 1.6em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { border-color: var(--navy-600); color: var(--navy-600); background: transparent; }
.btn--outline:hover { background: var(--navy-600); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--gold); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0e743e; color: #fff; }

/* ---------- Obere Info-Leiste (nur große Bildschirme) ---------- */
.topbar { display: none; background: var(--navy-900); color: #c9d2dc; font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 18px; }

.langs { display: flex; gap: 2px; }
.langs a { padding: 4px 9px; border-radius: 6px; color: inherit; text-decoration: none; font-weight: 700; font-size: .8125rem; letter-spacing: .04em; }
.langs a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.langs a[aria-current] { background: var(--red); color: #fff; }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .15s, transform .15s; }
.social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.social--sm { gap: 4px; }
.social--sm a { width: 30px; height: 30px; background: transparent; color: #c9d2dc; }
.social--dark a { background: var(--navy-700); }

/* ---------- Kopfzeile ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy-800); color: #fff; transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand__logo { flex: none; width: auto; max-height: 46px; border-radius: 6px; }
svg.brand__logo { border-radius: 50%; }
/* Hochgeladenes Logo: auf einem weißen Feld, damit es auf dem dunklen Kopf und Fuß lesbar bleibt */
img.brand__logo { box-sizing: border-box; padding: 3px 5px; border-radius: 8px; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__text small { font-size: .72rem; color: #f0b9b2; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: none; align-items: center; gap: 2px; }
.nav__link { position: relative; padding: 10px 13px; border-radius: 8px; color: rgba(255, 255, 255, .84); text-decoration: none; font-weight: 600; font-size: .97rem; white-space: nowrap; }
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link[aria-current]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--red); }
.nav__link[aria-current] { color: #fff; }
.nav__link--cta { margin-left: 8px; padding-inline: 18px; background: var(--red); color: #fff; border-radius: 999px; }
.nav__link--cta:hover { background: var(--red-600); }
.nav__link--cta[aria-current]::after { display: none; }

.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; color: #fff; }
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Mobiles Menü ---------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 22, .6); opacity: 0; transition: opacity .2s; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
    display: flex; flex-direction: column; gap: 18px;
    padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--navy-800); color: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .22s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; color: #fff; }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .12); }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 600; }
.drawer__nav a[aria-current] { color: #ff9d92; }
.langs--drawer { flex-wrap: wrap; gap: 8px; color: #c9d2dc; }
.langs--drawer a { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .9rem; letter-spacing: 0; }
.drawer__contact { display: grid; gap: 10px; margin-top: auto; }
.social--drawer { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff; background-color: var(--navy-700);
    background-image:
        radial-gradient(1100px 500px at 85% -10%, rgba(214, 60, 45, .38), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-600) 100%);
    background-size: cover; background-position: center;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 26px); }
.hero--image::before { background: linear-gradient(100deg, rgba(13, 20, 28, .9) 0%, rgba(13, 20, 28, .68) 55%, rgba(13, 20, 28, .4) 100%); }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; z-index: -1; width: 360px; height: 360px; border-radius: 50%; border: 46px solid rgba(214, 60, 45, .22); }
.hero__in { padding-block: clamp(64px, 13vw, 132px) clamp(96px, 15vw, 160px); max-width: var(--wrap); }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 4.1rem); max-width: 14ch; margin-bottom: .35em; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero__badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214, 60, 45, .3); }
.hero__text { max-width: 56ch; font-size: clamp(1.05rem, 2.3vw, 1.3rem); color: #dbe2ea; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kurzinfos unter dem Hero ---------- */
.facts { position: relative; z-index: 2; margin-top: -52px; }
.facts__grid { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.fact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; color: var(--ink); text-decoration: none; }
a.fact:hover { background: #fff7f6; color: var(--ink); }
.fact > svg { color: var(--red); }
.fact span { display: flex; flex-direction: column; min-width: 0; }
.fact small { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fact strong { font-size: 1rem; line-height: 1.35; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--soft { background: var(--soft); }
.section-title { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 48px); text-align: center; }
.section-title h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-title h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--red); }
.section-title p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section__more { margin: clamp(24px, 4vw, 40px) 0 0; text-align: center; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); }
.empty svg { display: inline-block; margin-bottom: 8px; opacity: .5; }

/* ---------- Seitenkopf der Unterseiten ---------- */
.page-head { color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); padding-block: clamp(28px, 6vw, 60px); }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .2em; }
.page-head p { margin: 0; max-width: 60ch; color: #d3dbe4; font-size: 1.08rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .875rem; color: #aab6c3; }
.crumbs a { color: #d3dbe4; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Kategorie-Karten ---------- */
.cat-grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow); }
.cat-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.cat-card__body h2, .cat-card__body h3 { font-size: 1.3rem; margin: 0; }
.cat-card__body h2 a, .cat-card__body h3 a { color: var(--ink); text-decoration: none; }
.cat-card__body h2 a:hover, .cat-card__body h3 a:hover { color: var(--red-600); }
.cat-card__body p { color: var(--muted); margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; text-decoration: none; }
.more span { font-weight: 600; color: var(--muted); }
.cat-card__empty { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #eef1f5 0 14px, #e6eaef 14px 28px); color: #9aa7b4; }
.cat-card__cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.cat-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card--link:hover .cat-card__cover img { transform: scale(1.04); }
.cat-card__cover .cat-card__empty { height: 100%; }
.cat-card__count { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 26, 36, .78); color: #fff; font-size: .8rem; font-weight: 700; }

/* ---------- Bild-Slider ---------- */
.slider { position: relative; background: var(--navy-900); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: always; }
.slide { overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; background: linear-gradient(transparent, rgba(10, 15, 22, .85)); color: #fff; font-weight: 700; font-size: 1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.slider__btn { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm); transition: background-color .15s; }
.slider__btn:hover { background: var(--red); color: #fff; }
.slider__prev { left: 10px; }
.slider__next { right: 10px; }
.slider__count { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(17, 26, 36, .72); color: #fff; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Leistungen ---------- */
.service-grid { display: grid; gap: clamp(14px, 2.5vw, 24px); grid-template-columns: 1fr; }
.service { padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 14px; background: #fdecea; color: var(--red-600); }
.service h2, .service h3 { font-size: 1.2rem; margin-bottom: .35em; }
.service p { margin: 0; color: var(--muted); }
.has-wa .footer__bottom-in { padding-right: calc(var(--gutter) + 68px); }

/* ---------- Videos / Beiträge ---------- */
.media-grid { display: grid; gap: clamp(18px, 3vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.media-card__title { margin: 12px 2px 0; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.media-card--tall, .media-card--post { grid-row: span 2; }
.media-card--tall .media-card__title { text-align: center; }
.embed { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); color: #fff; }
/* 16:9 über padding statt aspect-ratio: zusammen mit min-height würde aspect-ratio die Breite aufblähen */
.embed--wide { min-height: 250px; }
.embed--wide::before { content: ""; display: block; padding-top: 56.25%; }
.embed--tall { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.embed--post { height: 600px; }
.embed--feed { height: 640px; max-width: 500px; margin-inline: auto; }
.embed.is-loaded { min-height: 0; background: #000; }
.embed--video video { object-fit: contain; background: #000; }
.embed--post.is-loaded, .embed--feed.is-loaded { background: #fff; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: radial-gradient(600px 300px at 50% 0, rgba(214, 60, 45, .28), transparent 70%); }
.embed__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.embed__note { max-width: 40ch; margin: 0; font-size: .75rem; line-height: 1.4; color: #b7c2ce; }
.embed__link { color: #fff; font-size: .85rem; font-weight: 600; }
.embed__link:hover { color: var(--gold); }
.media-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: clamp(200px, 28vw, 250px); padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; text-decoration: none; text-align: center; font-weight: 700; transition: transform .15s; }
.media-link:hover { color: #fff; transform: translateY(-2px); }
.media-link__cta { display: inline-flex; align-items: center; gap: 6px; }

.follow { display: grid; gap: 32px; }
.follow__list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.follow__btn { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--navy-700); color: #fff; text-decoration: none; font-weight: 700; transition: background-color .15s; }
.follow__btn span { flex: 1; }
.follow__btn:hover { background: var(--red); color: #fff; }
.follow__btn--whatsapp { background: var(--wa); }

/* ---------- Standort ---------- */
.visit { color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); padding-block: clamp(48px, 8vw, 96px); }
.visit__grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.visit h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.visit__text > p { color: #d3dbe4; max-width: 56ch; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.visit__map { border-radius: var(--radius); overflow: hidden; background: var(--navy-600); box-shadow: var(--shadow); }
.visit__map iframe { display: block; width: 100%; height: clamp(280px, 50vw, 440px); border: 0; }
.visit__grid--light h2 { font-size: 1.5rem; }

.info-list { display: grid; gap: 16px; margin-top: 20px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { margin-top: 2px; color: var(--red); }
.visit .info-list svg { color: #ff8b7d; }
.info-list div { display: flex; flex-direction: column; min-width: 0; }
.info-list strong { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.info-list a { color: inherit; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { text-decoration: underline; }

/* ---------- Galerie einer Kategorie ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar__count { margin: 0; font-weight: 700; color: var(--muted); }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.share__btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); transition: background-color .15s, color .15s; }
.share__btn:hover { background: var(--navy-700); color: #fff; }
.share__btn--wa:hover { background: var(--wa); }
.share__btn--fb:hover { background: #1b5fd0; }
.share__btn[data-state="copied"]::after { content: attr(data-copied); position: absolute; right: 0; top: calc(100% + 6px); padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .8rem; white-space: nowrap; z-index: 5; }

.gallery { display: grid; gap: clamp(10px, 2vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.g-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.g-item__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.g-item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-item__name { padding: 10px 12px 12px; font-weight: 700; font-size: .95rem; line-height: 1.3; }
/* Fotoserie (mehrere Fotos eines Fahrzeugs): eine Kachel mit der Anzahl der Fotos; die übrigen Fotos öffnet die Großansicht */
.g-item[hidden] { display: none; }
.g-item__count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(8, 12, 18, .8); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.5; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(28px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.chips__label { font-weight: 700; color: var(--muted); margin-right: 4px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.chip:hover { border-color: var(--red); color: var(--red-600); }

/* ---------- Großansicht (Lightbox) ---------- */
.lb[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: rgba(8, 12, 18, .96); color: #fff; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; }
.lb__count { font-weight: 700; font-variant-numeric: tabular-nums; color: #c9d2dc; }
.lb__close, .lb__nav { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; }
.lb__close:hover, .lb__nav:hover { background: var(--red); }
.lb__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb__nav { position: absolute; top: 50%; margin-top: -24px; }
.lb__prev { left: 8px; }
.lb__next { right: 8px; }
.lb__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
.lb__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 240px; }
.lb__title { font-size: 1.15rem; }
.lb__view { font-size: 1rem; }
.lb__view:empty, .lb__desc:empty { display: none; }
.lb__desc { color: #c9d2dc; font-size: .95rem; white-space: pre-line; }
.lb__nav[hidden], .lb__thumbs[hidden] { display: none; }
.lb__thumbs { position: relative; display: flex; gap: 8px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: thin; }
.lb__thumb { flex: none; width: 76px; height: 57px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #1c2633; opacity: .55; }
.lb__thumb:first-child { margin-left: auto; }
.lb__thumb:last-child { margin-right: auto; }
.lb__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb__thumb:hover, .lb__thumb[aria-current] { opacity: 1; }
.lb__thumb[aria-current] { border-color: #fff; }
.lb__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lb__actions .btn { min-height: 44px; }

/* ---------- Über uns / Textseiten ---------- */
.about { display: grid; gap: clamp(24px, 5vw, 56px); align-items: start; }
.about__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__side { display: grid; gap: 20px; }
.slogan { margin: 0; padding: 20px 24px; border-left: 5px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--soft); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.prose { max-width: 70ch; font-size: 1.06rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--navy-600); }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .3em; }

/* ---------- Team ---------- */
/* Karten nebeneinander; eine unvollständige letzte Reihe steht mittig */
.team { --team-cols: 1; --team-gap: clamp(16px, 3vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--team-gap); }
.team__card { flex: 0 0 calc((100% - (var(--team-cols) - 1) * var(--team-gap)) / var(--team-cols)); min-width: 0; border-radius: var(--radius); }
.team__card .g-item__img img { object-position: 50% 25%; }
.team__card .g-item__name { padding: 14px 16px 0; font-size: 1.05rem; }
.team__card .g-item__name:last-child { padding-bottom: 16px; }
.team__role { padding: 2px 16px 16px; color: var(--muted); font-size: .95rem; }
.team--1 { max-width: 560px; margin-inline: auto; }

/* Foto links, Text rechts (Startseite) */
.split { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; }
.split__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.split__text h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.split__text h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--red); }
.split__text p { max-width: 52ch; color: var(--muted); font-size: 1.08rem; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(20px, 4vw, 36px); }
.contact h2 { font-size: 1.5rem; }
.contact__info h3 { margin: 28px 0 12px; font-size: 1.05rem; }
.contact__actions { display: grid; gap: 10px; margin-top: 24px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    border: 1.5px solid #c5ced8; border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(44, 62, 80, .16); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.form .btn { justify-self: start; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.alert p { margin: 0; }
.alert--ok { background: #e6f5ec; color: #0c5a31; border: 1px solid #b6dfc6; }
.alert--err { flex-direction: column; background: #fdecea; color: #8c231a; border: 1px solid #f3c2bc; }
.map-wide iframe { display: block; width: 100%; height: clamp(280px, 45vw, 440px); border: 0; }
.map-wide__link { padding-block: 12px; margin: 0; text-align: center; }
.map-wide__link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------- Aufruf am Seitenende ---------- */
.cta { padding-block: 0 clamp(48px, 8vw, 88px); }
.section--soft + .cta { padding-top: clamp(48px, 8vw, 88px); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(24px, 5vw, 48px); border-radius: calc(var(--radius) + 4px); color: #fff; background: radial-gradient(700px 300px at 100% 0, rgba(214, 60, 45, .45), transparent 65%), linear-gradient(135deg, var(--navy-900), var(--navy-600)); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.cta h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: .25em; }
.cta p { margin: 0; color: #d3dbe4; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 900; line-height: 1; color: var(--line); margin: 0; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--navy-900); color: #b7c2ce; font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 64px); }
.footer h2 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #d3dbe4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand .brand__text strong { font-size: 1.05rem; }
.footer__slogan { color: #ff9d92; font-weight: 700; font-style: italic; }
.footer__links { display: grid; gap: 8px; }
.footer__contact { display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { margin-top: 4px; color: #ff8b7d; }
.footer__contact a { overflow-wrap: anywhere; }
.footer .social a:hover { text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 16px calc(16px + env(safe-area-inset-bottom)); }
.footer__bottom p { margin: 0; font-size: .875rem; }
.footer__bottom .langs a:hover { text-decoration: none; }

/* ---------- WhatsApp-Schaltfläche ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #1fae5b; color: #fff; box-shadow: 0 8px 24px rgba(18, 140, 75, .45); transition: transform .15s; }
.wa-float:hover { color: #fff; transform: scale(1.07); }

/* ==========================================================================
   Größere Bildschirme
   ========================================================================== */
@media (min-width: 600px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts__grid { grid-template-columns: repeat(3, 1fr); }
    .form__row { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .team { --team-cols: 2; }
    .team--1 { --team-cols: 1; }
}

@media (min-width: 720px) {
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .slide { aspect-ratio: 16 / 11; }
}

@media (min-width: 900px) {
    .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .service-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .visit__grid { grid-template-columns: 1fr 1.1fr; }
    .about { grid-template-columns: 1.4fr 1fr; }
    .about--text { grid-template-columns: 1.6fr 1fr; }
    .team { --team-cols: 3; }
    .team--1 { --team-cols: 1; }
    .split { grid-template-columns: 1.1fr 1fr; }
    .contact { grid-template-columns: 1.5fr 1fr; }
    .follow--feed { grid-template-columns: 1fr 1fr; align-items: start; }
    .follow--feed .section-title { text-align: left; margin-left: 0; }
    .follow--feed .section-title h2::after { margin-left: 0; }
}

@media (min-width: 1020px) {
    .topbar { display: block; }
    .nav { display: flex; }
    .nav-toggle { display: none; }
    .drawer { display: none !important; }
    .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; }
    .footer__brand { grid-column: auto; }
}

@media (max-width: 420px) {
    .brand__text small { display: none; }
    .hero__actions .btn, .cta__actions .btn, .visit__actions .btn, .split__actions .btn { width: 100%; }
    .lb__nav { width: 42px; height: 42px; margin-top: -21px; }
    .lb__thumb { width: 60px; height: 45px; }
    .lb__actions { width: 100%; }
    .lb__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .topbar, .header, .drawer, .wa-float, .cta, .share, .slider__btn, .footer .social { display: none !important; }
    .hero, .page-head, .visit, .footer { background: #fff !important; color: #000 !important; }
}
