/* =========================================================================
   A&J Studios — Stylesheet
   -------------------------------------------------------------------------
   Richtung: hell, ruhig, präzise. Farben und Schrift kommen aus dem
   Logo-Redesign vom 18.10.2026 (brand/redesign-2026-10/): Navy #0E2A47,
   Teal #14B8A6, Schrift Plus Jakarta Sans — extrafett für Überschriften
   wie „A&J" in der Wortmarke, normal für Fließtext wie „Studios".

   Kontraste (WCAG) rechnet `npm run qa` nach. Faustregeln:
     --teal-ink  → Text und Links auf hellem Grund
     --teal      → auf Navy auch als Text; auf Weiß NUR Flächen, Linien, Symbole
   Keine Farbe außerhalb dieses :root-Blocks verwenden.
   ========================================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2-variations"),
       url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --haze: #F5F7FA;
  --line: #DCE3EA;
  --ink: #0B1B2B;
  --muted: #3E4C5B;
  --navy: #0E2A47;
  --navy-2: #0B5A63;
  --navy-line: rgb(255 255 255 / 0.16);
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9D6E3;
  --teal: #14B8A6;
  --teal-ink: #0F766E;
  --teal-soft: #D5F3EF;
  --teal-light: #8FE0D6;
  --danger: #A3261B;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2rem, 1.5rem + 2.3vw, 3.25rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Basis ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* hidden muss immer gewinnen — sonst hebelt z. B. display:grid es aus */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

::selection { background: var(--teal-soft); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 8px;
  background: var(--ink); color: var(--on-navy);
}
.skip:focus { top: 1rem; }

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

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}

.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* --- Schaltflächen ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary { background: var(--ink); color: var(--on-navy); }
.btn--primary:hover { background: var(--teal-ink); color: var(--on-navy); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--light { background: var(--on-navy); color: var(--ink); }
.btn--light:hover { background: var(--teal-soft); color: var(--ink); }

.btn--teal { background: var(--teal); color: var(--ink); }
.btn--teal:hover { background: var(--teal-light); color: var(--ink); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--on-navy); }

.btn--small { min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Kopf ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand img { width: 38px; height: 38px; }
.brand__word { font-weight: 400; }
.brand__word b { font-weight: 800; letter-spacing: -0.04em; }
.brand:hover { color: var(--ink); }
.brand--light, .brand--light:hover { color: var(--on-navy); }
.brand-claim { display: flex; align-items: center; gap: 0.75rem; color: var(--on-navy-muted); font-weight: 500; }
.brand-claim::before { content: ""; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--teal); flex: none; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 480;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }

.header-cta { display: none; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: inline-flex; margin-left: auto; min-height: 2.5rem; padding: 0.45rem 1rem; }
  .site-header__inner { gap: 0.75rem; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding-block: 0.9rem; font-size: 1.1rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--teal-ink); }
  .site-nav .btn { width: 100%; }
}

/* --- Abschnitte ------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section--haze { background: var(--haze); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.section-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 2rem 4rem;
}
@media (max-width: 820px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background: var(--haze);
  padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(4rem, 3rem + 6vw, 7.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__text { display: grid; gap: 1.5rem; min-width: 0; }
.hero__text h1 { max-width: 12ch; }
.hero__text .lead { max-width: 30em; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  margin-top: 0.25rem;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__proof svg { width: 18px; height: 18px; flex: none; color: var(--teal-ink); }

/* Eyebrow mit Akzentlinie wie im Logo-Claim */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-ink);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; border-radius: 3px; background: var(--teal); flex: none; }
.eyebrow--light { color: var(--teal); }

/* Leistungs-Chips: nur mobil (Vorlage „Neu in Heiligenhaus") */
.chips { display: none; list-style: none; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
}

/* Duo-Kacheln: die Bildmarke als Bühne für die zwei Schwerpunkte */
.duo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 470px;
  justify-self: end;
}
.duo__tile {
  position: absolute;
  width: 64%;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border-radius: 24%;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.duo__tile--a { top: 0; left: 0; background: var(--navy); color: var(--on-navy); }
.duo__tile--j {
  right: 0; bottom: 0;
  justify-content: flex-end;
  background: var(--teal);
  color: var(--ink);
}
/* Überschneidung in Petrol wie im Logo */
.duo::after {
  content: ""; position: absolute; pointer-events: none;
  left: 36%; top: 36%; width: 28%; height: 28%;
  background: var(--navy-2);
  border-radius: 55% 0 55% 0;
  transition: transform 0.35s var(--ease);
}
.duo__kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.duo__tile--a .duo__kicker { color: var(--teal-light); }
.duo__title { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem); font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; max-width: 12ch; }
.duo__tile--j .duo__title, .duo__tile--j .duo__kicker { position: relative; z-index: 1; }
.duo__tile:hover { color: inherit; }
.duo__tile--a:hover { transform: translate(-6px, -6px); color: var(--on-navy); }
.duo__tile--j:hover { transform: translate(6px, 6px); color: var(--ink); }
.duo:has(.duo__tile:hover)::after { opacity: 0; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text h1 { max-width: 13ch; }
  .duo { justify-self: start; max-width: 420px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 2.25rem; }
  .hero__text { gap: 1.25rem; }
  .chips { display: flex; gap: 0.4rem; }
  .chips li { padding: 0.3rem 0.62rem; font-size: 0.8rem; }
  .hero__text .lead { display: none; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .duo { max-width: 340px; margin-inline: auto; justify-self: center; }
}

/* Such-Szene: der Moment, in dem ein Kunde sucht und die Anzeige erscheint */
.search-scene {
  margin: 0;
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--haze);
}
.search-scene__caption {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.search-box {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
  min-height: 3.25rem;
}
.search-box svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-box__query { white-space: nowrap; overflow: hidden; min-width: 0; }
.search-box__caret {
  width: 1.5px; height: 1.2em; flex: none;
  margin-left: -0.6rem;
  background: var(--ink);
  opacity: 0;
}
.results { display: grid; gap: 0.75rem; margin-top: 1rem; }
.result {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
}
.result--ad { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.result__meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.result__tag {
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--on-navy);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.result__title { margin-top: 0.35rem; font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--teal-ink); }
.result__text { margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.result__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.6rem; font-size: 0.85rem; color: var(--teal-ink); }
.result--organic .bar { height: 0.55rem; border-radius: 4px; background: var(--haze); }
.result--organic .bar + .bar { margin-top: 0.5rem; }
.result--organic .bar:nth-child(1) { width: 38%; }
.result--organic .bar:nth-child(2) { width: 72%; background: var(--line); }
.result--organic .bar:nth-child(3) { width: 58%; }

/* Animation nur mit JavaScript (html.js) und nur ohne Bewegungsreduzierung.
   Ohne beides steht die Szene sofort im Endzustand. */
@media (prefers-reduced-motion: no-preference) {
  .js .search-scene[data-animate] .result { opacity: 0; transform: translateY(10px); }
  .js .search-scene.is-done .result {
    opacity: 1; transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .js .search-scene.is-done .result:nth-child(2) { transition-delay: 0.12s; }
  .js .search-scene.is-done .result:nth-child(3) { transition-delay: 0.22s; }
  .js .search-scene.is-typing .search-box__caret { opacity: 1; animation: caret 0.9s steps(1) infinite; }
  .js .search-scene.is-typing .search-box__caret { margin-left: 0; }
}
@keyframes caret { 50% { opacity: 0; } }

/* --- Kanalleiste ----------------------------------------------------------- */

.channels {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
}
.channels__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2.5rem; }
.channels__label { font-size: var(--step--1); color: var(--muted); }
.channels ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem; list-style: none; }
.channels li { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

/* --- Leistungen ----------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}
.services > .service { grid-column: span 3; }
.services > .service--main { grid-column: span 2; }
@media (max-width: 1020px) {
  .services > .service, .services > .service--main { grid-column: span 3; }
  .services > .service--main:nth-child(3) { grid-column: span 6; }
}
.service {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  min-width: 0;
}
.service--main { background: var(--haze); border-color: transparent; }
.service__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.service:not(.service--main) .service__icon { background: var(--haze); }
.service__icon svg { width: 22px; height: 22px; }
.service h3 { font-size: var(--step-3); }
.service:not(.service--main) h3 { font-size: var(--step-2); }
.service p { color: var(--muted); max-width: 34em; }
.service__more { margin-top: 0.25rem; font-weight: 560; }
.badge {
  justify-self: start;
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.badge--plain { background: var(--haze); color: var(--muted); }

@media (max-width: 760px) { .services > .service, .services > .service--main, .services > .service--main:nth-child(3) { grid-column: 1 / -1; } }

/* --- Prinzipien ------------------------------------------------------------ */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  list-style: none;
}
.principles li { display: grid; gap: 0.75rem; align-content: start; padding-top: 1.5rem; border-top: 2px solid var(--ink); min-width: 0; }
.principles h3 { font-size: var(--step-1); line-height: 1.3; }
.principles p { color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* --- Ablauf (echte Reihenfolge, daher nummeriert) ------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid; gap: 0.6rem; align-content: start;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--haze);
  counter-increment: step;
  min-width: 0;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-navy);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--step-1); line-height: 1.3; }
.steps p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --- Angebotsband (dunkel) ------------------------------------------------- */

.band {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4.5rem);
}
.band-wrap { padding-bottom: var(--section); }

/* Banner-Variante: Kacheln laufen aus der rechten oberen Ecke */
.band--duo { position: relative; overflow: hidden; isolation: isolate; }
.band--duo::before, .band--duo::after { content: ""; position: absolute; z-index: -1; border-radius: 28%; pointer-events: none; }
.band--duo::before { width: 220px; height: 220px; top: -110px; right: 90px; background: rgb(255 255 255 / 0.07); }
.band--duo::after { width: 220px; height: 220px; top: -60px; right: -90px; background: var(--teal); opacity: 0.9; }
.band--duo .band__grid { position: relative; padding-right: clamp(0rem, 7vw, 7rem); }
@media (max-width: 860px) {
  .band--duo .band__grid { padding-right: 0; }
  .band--duo::before { width: 150px; height: 150px; top: -95px; right: 40px; }
  .band--duo::after { width: 150px; height: 150px; top: -70px; right: -75px; }
  .band--duo .band__text { padding-top: 2.75rem; }
}
.band h2 { font-size: var(--step-3); }
.band a:not(.btn) { color: var(--on-navy); }
.band .lead, .band .muted { color: var(--on-navy-muted); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.band__grid > * { min-width: 0; }
.band__text { display: grid; gap: 1.5rem; }
@media (max-width: 860px) { .band__grid { grid-template-columns: minmax(0, 1fr); } }

.band-list { list-style: none; display: grid; }
.band-list li { display: grid; gap: 0.3rem; padding-block: 1.25rem; border-top: 1px solid var(--navy-line); }
.band-list li:last-child { border-bottom: 1px solid var(--navy-line); }
.band-list h3 { font-size: var(--step-1); line-height: 1.3; }
.band-list h3::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.7rem; border-radius: 999px; background: var(--teal); vertical-align: 0.15em; }
.band-list p { color: var(--on-navy-muted); }

/* --- Referenzen ----------------------------------------------------------- */

.refs + .btn-row { margin-top: 2.5rem; }
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.25rem, 3vw, 2.5rem); }
.ref { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.ref__shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--haze);
  aspect-ratio: 16 / 10;
}
.ref__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref__meta { font-size: var(--step--1); color: var(--muted); }
.ref h3 { font-size: var(--step-2); }
.ref p { color: var(--muted); }
.ref ul { list-style: none; display: grid; gap: 0.4rem; margin-top: 0.25rem; }
.ref ul li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.ref ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 2px; background: var(--teal); }
@media (max-width: 760px) { .refs { grid-template-columns: minmax(0, 1fr); } }

/* --- FAQ ------------------------------------------------------------------ */

.faq { display: grid; border-top: 1px solid var(--line); max-width: 54rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.75rem; height: 0.75rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(15%) rotate(-135deg); }
.faq details > div { padding-bottom: 1.5rem; color: var(--muted); max-width: 44rem; display: grid; gap: 0.75rem; }

/* --- Abschluss-CTA -------------------------------------------------------- */

.closing { display: grid; gap: 2rem; justify-items: start; }
.closing h2 { max-width: 16ch; }

/* --- Unterseiten-Kopf ---------------------------------------------------- */

.page-head { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-head__inner { display: grid; gap: 1.5rem; max-width: 52rem; }
.page-head__inner > *, .closing > *, .prose > *, .center-page > *, .section-head > * { min-width: 0; max-width: 100%; }
.page-head h1 { font-size: var(--step-5); }

/* --- Leistungsdetail ------------------------------------------------------ */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.detail:first-child { border-top: 0; padding-top: 0; }
.detail__head { display: grid; gap: 1.1rem; align-content: start; }
.detail__head h2 { font-size: var(--step-3); }
.detail__body { display: grid; gap: 1.75rem; align-content: start; min-width: 0; }
.detail__body > p { color: var(--muted); }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; }
.checklist li { position: relative; padding-left: 1.9rem; min-width: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 999px;
  background: var(--teal-soft);
}
.checklist li::after {
  content: "";
  position: absolute; left: 0.38rem; top: 0.42em;
  width: 0.38rem; height: 0.62rem;
  border-right: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: rotate(45deg);
}
@media (max-width: 560px) { .checklist { grid-template-columns: minmax(0, 1fr); } }

.note {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--haze);
  color: var(--ink);
  font-size: 0.98rem;
}
.note strong { font-weight: 800; }

/* --- Team ---------------------------------------------------------------- */

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.person {
  display: grid; gap: 1rem; align-content: start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--haze);
  min-width: 0;
}
.person__initials {
  width: 4rem; height: 4rem;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-navy);
  font-weight: 800;
  font-size: 1.2rem;
}
.person h3 { font-size: var(--step-2); }
.person p { color: var(--muted); }
@media (max-width: 760px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* --- Zertifikat ------------------------------------------------------------ */

.cert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 52rem;
}
.cert__seal { width: 4.5rem; height: 4.5rem; color: var(--teal-ink); }
.cert__seal svg { width: 100%; height: 100%; }
.cert__body { display: grid; gap: 1rem; min-width: 0; }
.cert__body h3 { font-size: var(--step-2); }
.cert__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin: 0; }
.cert__facts dt { font-size: var(--step--1); color: var(--muted); }
.cert__facts dd { margin: 0; font-weight: 600; }
.cert__link { justify-self: start; font-weight: 560; }
@media (max-width: 560px) { .cert { grid-template-columns: minmax(0, 1fr); } .cert__seal { width: 3.5rem; height: 3.5rem; } }
.hero__proof a { color: inherit; text-decoration-color: var(--line); }
.hero__proof a:hover { color: var(--ink); }

/* --- Prosa (Rechtstexte) ------------------------------------------------- */

.prose { max-width: 46rem; display: grid; gap: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.25rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.prose address { font-style: normal; }
.placeholder {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--danger);
  color: var(--danger);
  background: var(--paper);
}
.placeholder strong { display: block; margin-bottom: 0.3rem; }

/* --- Formular ------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact--home { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 900px) { .contact, .contact--home { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 1.25rem; min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 0.45rem; min-width: 0; }
.field label, .field legend { font-weight: 560; font-size: 0.95rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) 55%, calc(100% - 1rem) 55%;
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 2px var(--teal-ink);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.88rem; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 1.5rem; font-size: 0.98rem; }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--teal-ink); }
.form button[disabled] { opacity: 0.6; cursor: progress; }

.contact__intro { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.contact__intro h2 { font-size: var(--step-4); }
.mini-steps { list-style: none; counter-reset: ms; display: grid; gap: 0.9rem; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: start; gap: 0.5rem; color: var(--muted); }
.mini-steps li::before {
  content: counter(ms);
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--haze);
  color: var(--ink);
  font-weight: 800; font-size: 0.85rem;
}

.aside { display: grid; gap: 2rem; }
.aside__block { display: grid; gap: 0.6rem; }
.aside__block h2 { font-size: var(--step-1); line-height: 1.3; }
.aside ol { list-style: none; counter-reset: a; display: grid; gap: 1rem; }
.aside ol li { counter-increment: a; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; color: var(--muted); }
.aside ol li::before { content: counter(a); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Fuß ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; max-width: 26rem; }
.site-footer__title { font-size: var(--step--1); font-weight: 600; letter-spacing: 0; color: var(--on-navy); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer__legal {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem;
  font-size: var(--step--1);
}
.site-footer__legal::before {
  content: "";
  position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--navy-line);
}
.site-footer .small { color: var(--on-navy-muted); }
.site-footer__legal ul { display: flex; gap: 1.5rem; }
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 360px) { .brand { font-size: 1.1rem; gap: 0.5rem; } .brand img { width: 32px; height: 32px; } }

/* --- 404 / Danke ---------------------------------------------------------- */

.center-page { min-height: 60vh; display: grid; align-content: center; gap: 1.75rem; padding-block: var(--section); }
.center-page h1 { max-width: 14ch; }

/* --- Cookie-Banner ---------------------------------------------------------
   Nicht modal: Die Seite bleibt lesbar und bedienbar. „Nur notwendige" ist
   gleich groß und gleich gestaltet wie „Alle akzeptieren".                 */

.consent {
  position: fixed;
  z-index: 80;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 34rem;
  margin-left: auto;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px -20px rgb(20 39 59 / 0.35);
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent__title { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
.consent__text { font-size: 0.92rem; color: var(--muted); }
.consent__links { display: flex; gap: 1.25rem; font-size: 0.9rem; }
@media (max-width: 560px) {
  .consent { padding: 1.1rem; gap: 0.75rem; max-height: 72vh; }
  .consent__text, .consent__row { font-size: 0.85rem; }
}
.consent__details { display: none; gap: 0.75rem; }
.consent.is-detailed .consent__details { display: grid; }
.consent__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 0.93rem; }
.consent__row input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--teal-ink); }
.consent__row strong { font-weight: 800; }
.consent__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.consent__actions .btn { width: 100%; }
.consent__save { display: none; }
.consent.is-detailed .consent__more { display: none; }
.consent.is-detailed .consent__save { display: inline-flex; }
.consent__more, .consent__save { grid-column: 1 / -1; }

.linkbutton {
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-navy);
  font: inherit;
  cursor: pointer;
}
.linkbutton:hover { color: var(--teal); }

/* --- Bewegung reduzieren -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }
