/* ==========================================================================
   format-X GmbH - Website-Basis (site.css)
   Statisch, ohne Build-Tool, ohne externe Ressourcen.
   Aufbau:
     1. Design-Tokens (hell / dunkel)
     2. Reset & Grundtypografie
     3. Layout (Container, Sektion, Raster)
     4. Bausteine: Header/Nav, Hero, Buttons, Karten, Karussell, Tabs,
        Akkordeon, Zaehler, Vorher/Nachher, Ablauf, CTA-Band, Formular, Footer
     5. Scroll-Reveal & Reduced-Motion
   Theme: <html data-theme="light|dark"> (ohne Attribut = Systemeinstellung).
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --ink: #14140F;
  --paper: #F3F4F0;
  --signal: #A3CCAB;
  --deep: #053D38;

  --bg: #F6F7F3;
  --bg-alt: #ECEEE7;
  --surface: #FFFFFF;
  --text: #14140F;
  --muted: #565A4E;
  --border: #D6D9CE;
  --link: #2D6A5E;            /* >= 4.5:1 auf --bg */
  --accent: #053D38;
  --focus: #2D6A5E;
  --btn-bg: #053D38;
  --btn-fg: #F3F4F0;
  --header-bg: rgba(246, 247, 243, .86);
  --shadow: 0 10px 30px rgba(20, 20, 15, .08);

  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --gutter: 20px;
  --maxw: 1160px;
  --header-h: 64px;
}
/* Dunkel: Systemeinstellung (sofern nicht ausdruecklich "light" gewaehlt) ... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14140F; --bg-alt: #181914; --surface: #1C1D18;
    --text: #F3F4F0; --muted: #A7AB9F; --border: #2C2E26;
    --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
    --btn-bg: #A3CCAB; --btn-fg: #14140F;
    --header-bg: rgba(20, 20, 15, .86);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
/* ... oder per Umschalter erzwungen (gleiche Werte, bewusst dupliziert). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14140F; --bg-alt: #181914; --surface: #1C1D18;
  --text: #F3F4F0; --muted: #A7AB9F; --border: #2C2E26;
  --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
  --btn-bg: #A3CCAB; --btn-fg: #14140F;
  --header-bg: rgba(20, 20, 15, .86);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* 2. RESET & BASIS --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 7.5vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 5vw, 48px); }
.section__head p { color: var(--muted); font-size: 1.15rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }

/* 4a. HEADER / NAVIGATION -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); }
/* Blur auf Pseudo-Element, damit position:fixed im Menue nicht am Header haengt */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--accent); font-weight: 800; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.nav { display: flex; flex-direction: column; gap: 4px; padding: 16px var(--gutter); }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nav .btn { margin-top: 8px; color: var(--btn-fg); text-align: center; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
.js .nav-toggle { display: inline-grid; }
/* Mobile: Off-Canvas-Menue von rechts (Wisch nach rechts schliesst) */
.js .nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); padding-top: calc(var(--header-h) + 8px);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow);
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; touch-action: pan-y; z-index: 60; overflow-y: auto;
}
.js .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 55; }
.nav-open .nav { transform: none; visibility: visible; }
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-open .site-header__inner > :not(.nav) { position: relative; z-index: 70; }
@media (min-width: 960px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .js .nav, .nav { position: static; flex-direction: row; align-items: center; gap: 2px; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; transform: none; visibility: visible; overflow: visible; }
  .nav a { padding: 8px 12px; font-size: .95rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .nav .btn { margin: 0 0 0 8px; padding: 9px 16px; }
  .js .nav-backdrop { display: none; }
  .brand { margin-right: 0; }
  .site-header__inner { justify-content: space-between; }
  .site-header__inner .nav { margin-left: auto; }
}

/* 4b. BUTTONS -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* 4c. HERO + SPOTLIGHT ----------------------------------------------------- */
/* Hero ist in beiden Designs dunkel (Buehnen-Look). */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #F3F4F0; background: #14140F; min-height: min(86svh, 780px); display: flex; align-items: center; touch-action: pan-y; }
.hero__bg { position: absolute; inset: 0; z-index: -3;
  /* BILD: Hero-Hintergrund. Fallback-Verlauf liegt unter dem Foto. */
  background: linear-gradient(160deg, #1C1D18 0%, #0c2a27 55%, #14140F 100%); }
.hero__bg[data-photo] { background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,20,15,.55) 0%, rgba(20,20,15,.35) 40%, rgba(20,20,15,.85) 100%); pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero__inner { padding-block: calc(var(--header-h) + 24px) 72px; max-width: 52rem; }
.hero .eyebrow { color: #A3CCAB; }
.hero h1 em { font-style: normal; color: #A3CCAB; }
.hero p.lead { font-size: clamp(1.1rem, 2.6vw, 1.35rem); color: #D9DBD2; max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { --btn-bg: #A3CCAB; --btn-fg: #14140F; }
.hero .btn--ghost { background: rgba(20,20,15,.35); color: #F3F4F0; border-color: rgba(243,244,240,.35); }
.hero .btn--ghost:hover { border-color: #A3CCAB; }
.hero__hint { position: absolute; right: var(--gutter); bottom: 16px; font-size: .8rem; color: #A7AB9F; }
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 42rem; }
.page-hero--dark { background: #14140F; color: #F3F4F0; position: relative; overflow: hidden; isolation: isolate; }
.page-hero--dark p.lead { color: #D9DBD2; }
.page-hero--dark .eyebrow { color: #A3CCAB; }

/* 4d. KARTEN + TILT -------------------------------------------------------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .icon-wrap { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-alt); color: var(--accent); margin-bottom: 8px; }
.card .icon-wrap .icon { width: 26px; height: 26px; }
.card .link-arrow { margin-top: auto; padding-top: 12px; color: var(--link); }
a.card:hover { border-color: var(--accent); }
/* Tilt: JS setzt --rx/--ry (Grad) und --mx/--my (Glanzpunkt in %) */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .2s; will-change: transform; }
[data-tilt].is-tilting { transition: transform .06s linear, border-color .2s; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(163,204,171,.22), transparent 60%); }
[data-tilt].is-tilting::after { opacity: 1; }
.card--feature { padding: 28px; }
.card--feature .badge { align-self: flex-start; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--accent); border: 1px solid var(--border); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .6em; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checklist .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* Bildplatzhalter (BILD: ... im HTML-Kommentar markiert die Einsatzstelle) */
.ph { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 16 / 10; display: grid; place-items: end start; padding: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(163,204,171,.08) 14px 15px), linear-gradient(145deg, var(--bg-alt), var(--surface)); color: var(--muted); font-size: .8rem; }
.ph[data-label]::after { content: "Platzhalter: " attr(data-label); background: var(--bg); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.examples { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* 4e. KARUSSELL (Swipe) ---------------------------------------------------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 2px 14px; margin: -10px -2px 0; cursor: grab; position: relative; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 min(80%, 320px); scroll-snap-align: start; display: flex; }
.carousel__slide > * { flex: 1; }
.carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.carousel__dots { display: flex; gap: 4px; flex-wrap: wrap; }
.carousel__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .25s, background .25s; }
.carousel__dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
.carousel__arrows { display: flex; gap: 8px; }
.carousel__arrows .icon-btn[disabled] { opacity: .35; cursor: default; }
@media (min-width: 700px) { .carousel__slide { flex-basis: 300px; } }

/* 4f. TABS ----------------------------------------------------------------- */
.tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list [role="tab"] { flex: none; padding: 12px 16px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tabs__list [role="tab"]:hover { color: var(--text); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__panel { touch-action: pan-y; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-enter-next { animation: tabIn-next .35s ease; }
.tabs__panel.is-enter-prev { animation: tabIn-prev .35s ease; }
@keyframes tabIn-next { from { opacity: 0; transform: translateX(24px); } }
@keyframes tabIn-prev { from { opacity: 0; transform: translateX(-24px); } }
.tabs__hint { font-size: .8rem; color: var(--muted); margin: 0 0 12px; display: none; }
@media (hover: none) { .tabs__hint { display: block; } }

/* 4g. AKKORDEON ------------------------------------------------------------ */
.acc { border-bottom: 1px solid var(--border); }
.acc:first-of-type { border-top: 1px solid var(--border); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 4px; font-weight: 700; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.acc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc__body { padding: 0 4px 18px; color: var(--muted); }
.acc__body p:last-child { margin-bottom: 0; }

/* 4h. ZAEHLER -------------------------------------------------------------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.stat { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat__num { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* 4i. VORHER / NACHHER ----------------------------------------------------- */
.compare { --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.compare__layer { position: absolute; inset: 0; display: grid; place-items: end start; padding: 14px; font-size: .85rem; font-weight: 700; }
.compare__layer--before { background: linear-gradient(135deg, #5b5f52, #8a8e80); color: #fff; }
.compare__layer--after { background: linear-gradient(135deg, #053D38, #A3CCAB); color: #14140F; clip-path: inset(0 0 0 var(--pos)); place-items: end end; }
.compare__layer span { background: rgba(255,255,255,.85); color: #14140F; padding: 3px 10px; border-radius: 99px; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314140F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 4j. ABLAUF / ZEITLEISTE -------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--btn-bg); color: var(--btn-fg); }
.steps li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--border); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }
@media (min-width: 900px) {
  .steps--row { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 20px; }
  .steps--row li { padding: 54px 0 0; }
  .steps--row li::after { left: 42px; right: -20px; top: 18px; bottom: auto; width: auto; height: 2px; }
}

/* 4k. CTA-BAND ------------------------------------------------------------- */
.cta-band { background: #14140F; color: #F3F4F0; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(163,204,171,.22), transparent 65%); pointer-events: none; }
.cta-band .eyebrow { color: #A3CCAB; }
.cta-band p { color: #D9DBD2; }
.cta-band a:not(.btn) { color: #A3CCAB; }
.cta-band .btn { --btn-bg: #A3CCAB; --btn-fg: #14140F; }
.cta-band .btn--ghost { background: transparent; color: #F3F4F0; border-color: rgba(243,244,240,.35); }
.cta-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 56px; } }
.cta-contact { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cta-contact li { display: flex; gap: 10px; align-items: center; }

/* 4l. FORMULAR ------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.form small { color: var(--muted); font-weight: 400; }
.form--dark input, .form--dark select, .form--dark textarea { background: #1C1D18; color: #F3F4F0; border-color: #2C2E26; }
.form--dark small { color: #A7AB9F; }
.form--dark { --focus: #A3CCAB; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }

/* 4m. SERVICE-ABSCHNITT (dienstleistungen.html) ---------------------------- */
.service { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--border); }
.service__grid { display: grid; gap: 28px; }
.service__head .icon-wrap { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-alt); color: var(--accent); margin-bottom: 16px; }
.service__head .icon-wrap .icon { width: 30px; height: 30px; }
.service__head .lead { color: var(--muted); font-size: 1.1rem; }
.service__body h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: 1.6em; }
.service__body h3:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .service__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .service__head { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* 4n. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 48px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* 5. SCROLL-REVEAL & REDUCED MOTION ---------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-26px); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s !important; }
[data-reveal-delay="2"] { transition-delay: .16s !important; }
[data-reveal-delay="3"] { transition-delay: .24s !important; }
[data-reveal-delay="4"] { transition-delay: .32s !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-tilt] { transform: none !important; }
  .btn:hover { transform: none; }
}

/* 6. ERP-INTEGRATION (nur im PHP-Rahmen, nicht im statischen Entwurf) ----------- */
.brand svg.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); }
.nav-wrap { display: contents; }
/* Sprachumschalter */
.lang-switch { height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 7.5rem; }
.lang-switch:hover { background: var(--surface); }
/* "Mehr"-Gruppe (weitere Seiten des Verbunds) */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; font-weight: 600; padding: 12px 14px; border-radius: 10px; color: var(--text); }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-more > summary:hover { background: var(--bg-alt); }
.nav-more[open] > summary { color: var(--accent); }
.nav-more__list { display: flex; flex-direction: column; gap: 2px; padding: 0 0 0 10px; }
.nav-more__list a { padding: 10px 14px; }
@media (min-width: 960px) {
  .nav-more > summary { padding: 8px 12px; font-size: .95rem; }
  .nav-more__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
}
/* Hauptmenue (6 Punkte inkl. Portfolio): Eintraege nie umbrechen; zwischen 960 und 1199 px Markenname ausblenden und enger setzen */
@media (min-width: 960px) {
  .nav a, .nav-more > summary, .nav .btn { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .brand > span { display: none; }
  .nav a { padding: 8px 9px; }
  .nav-more > summary { padding: 8px 9px; }
  .nav .btn { padding: 9px 13px; margin-left: 4px; }
}
/* Bildplaetze: Illustration jetzt, spaeter Foto 1:1 (gleiches Seitenverhaeltnis, object-fit: cover) */
.ph { margin: 0; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--wide { aspect-ratio: 12 / 5; margin: 1.2em 0 1.6em; }
.examples__note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.ph img { background: var(--bg-alt); }
.compare__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__layer span { position: relative; z-index: 1; }
.page-hero--dark .hero__bg { opacity: .6; }
.region-art { aspect-ratio: 5 / 2; margin: 0 0 1.6em; }
/* Team-Avatare */
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--border); background: var(--bg-alt); }
.card--center { text-align: center; align-items: center; }
.team-role { color: var(--accent); font-weight: 700; font-size: .95rem; }
/* Betreute Websites */
.ref-slide { flex-basis: min(86%, 380px); }
@media (min-width: 700px) { .ref-slide { flex-basis: 380px; } }
.ref-card { padding: 0; overflow: hidden; gap: 0; }
.ref-card > h3, .ref-card > p, .ref-card > .link-arrow { margin-inline: 22px; }
.ref-card > h3 { margin-top: 18px; }
.ref-card > p { margin-top: 6px; }
.ref-card > .link-arrow { margin-bottom: 20px; }
.ref-card__shot { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 14px; }
.ref-card__shot img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
/* Footer-Erweiterungen */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social .icon { width: 18px; height: 18px; }
.cta-band .cta-contact a { color: #A3CCAB; }
