/* Bauelemente Darwich – Stylesheet
   Gestaltung: ruhig, neutral, flach. Keine Schlagschatten, keine Verläufe,
   eine einzige dunkle Akzentfarbe, Flächen werden durch Haarlinien getrennt. */

:root {
  /* Neutrale Flächen */
  --bg:         #ffffff;
  --flaeche:    #f7f8f9;
  --flaeche-2:  #f1f2f4;

  /* Text */
  --text:       #15181c;
  --text-mute:  #5c636b;
  --text-leise: #868c94;

  /* Linien */
  --linie:      #e4e6ea;
  --linie-kraeftig: #d2d6dc;

  /* Dunkler Akzent (Buttons, Hervorhebungen) */
  --ink:        #1c232c;
  --ink-hover:  #0d1218;

  --fokus:      #2a6ad4;
  --gold:       #e0a32e;
  --whatsapp:   #1da851;
  --fehler:     #a8231f;

  /* Kompatibilitaet mit aelteren Inline-Styles der Unterseiten */
  --blau-900: var(--text);
  --blau-800: var(--text);
  --blau-700: var(--ink);
  --blau-600: var(--linie-kraeftig);
  --blau-500: var(--linie-kraeftig);
  --blau-100: var(--flaeche-2);
  --blau-50:  var(--flaeche);
  --akzent:      var(--ink);
  --akzent-dark: var(--ink-hover);
  --gruen:       var(--ink);
  --weiss:       #ffffff;

  --r:    10px;
  --r-sm: 8px;

  --breite: 1140px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);

  /* Bewegung: ein Satz Kurven und Dauern fuer die ganze Seite.
     ease-out fuer alles, was herein- oder herauskommt, ease fuer Farbwechsel. */
  --ease-out:   cubic-bezier(.215, .61, .355, 1);  /* Menue, FAQ, Druck */
  --ease-sanft: cubic-bezier(.25, .46, .45, .94);  /* lange Einblendungen */
  --t-druck:    .13s;   /* Druckfeedback – bleibt kurz, sonst fuehlt es sich traege an */
  --t-hover:    .22s;   /* Farb- und Randwechsel */
  --t-panel:    .26s;   /* Menue und FAQ: aufklappen */
  --t-panel-zu: .22s;   /* zuklappen – Ausgaenge duerfen schneller sein */
  --t-rein:     .65s;   /* Einblenden beim Scrollen */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 600;
  margin: 0 0 .55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 4.6vw, 3.1rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: 1.14rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}

.schmal { max-width: 740px; }

section { padding: 88px 0; }

/* Sprungziele nicht unter die klebende Kopfzeile schieben */
section[id], div[id] { scroll-margin-top: 88px; }

.flaeche { background: var(--flaeche); }

.lead {
  font-size: 1.1rem;
  color: var(--text-mute);
  max-width: 62ch;
  margin-bottom: 0;
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-leise);
  margin: 0 0 18px;
}

.kopfzeile { margin-bottom: 44px; }

/* ---------- Icons ---------- */

.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--t-hover) ease,
              border-color var(--t-hover) ease,
              color var(--t-hover) ease,
              transform var(--t-druck) var(--ease-out);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

.btn-ghost,
.btn-weiss,
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--linie-kraeftig);
}
.btn-ghost:hover,
.btn-weiss:hover,
.btn-outline:hover { background: var(--flaeche); border-color: var(--ink); }

.btn .ic { width: 18px; height: 18px; }

/* ---------- Kopfzeile ---------- */

.topbar {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  color: var(--text-mute);
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}
.topbar a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar a:hover { text-decoration: underline; }
.topbar .ic { width: 16px; height: 16px; color: var(--text-leise); }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.logo-mark {
  width: 46px;
  height: 46px;
  flex: none;
}
/* Der Schriftzug darf nicht umbrechen – sonst wird die Kopfzeile zweizeilig,
   sobald die Bildmarke mit danebensteht. */
.logo-wort { white-space: nowrap; }
.logo-wort span {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-leise);
  font-weight: 600;
  margin-top: 3px;
}

nav.haupt { display: flex; align-items: center; gap: 30px; }
nav.haupt a {
  color: var(--text-mute);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
nav.haupt a:hover { color: var(--text); }
nav.haupt a[aria-current="page"] { color: var(--text); border-bottom-color: var(--ink); }
nav.haupt a.btn { border-bottom: 1px solid var(--ink); color: #fff; }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--linie-kraeftig);
  border-radius: var(--r-sm);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background-color var(--t-hover) ease,
              border-color var(--t-hover) ease,
              transform var(--t-druck) var(--ease-out);
}
.menu-btn .ic { width: 22px; height: 22px; }

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

.hero {
  padding: 76px 0 84px;
  border-bottom: 1px solid var(--linie);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { max-width: 15ch; margin-bottom: .42em; }
.hero p.sub {
  font-size: 1.13rem;
  color: var(--text-mute);
  max-width: 48ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

.hero-fakten {
  list-style: none;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .95rem;
  color: var(--text-mute);
}
.hero-fakten li { display: flex; align-items: center; gap: 8px; }
.hero-fakten .ic { width: 17px; height: 17px; color: var(--text-leise); }

/* ---------- Vertrauensleiste ---------- */

.trust {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding: 24px 0;
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 28px;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--text);
}
.trust .ic { color: var(--text-leise); width: 18px; height: 18px; }

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

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  overflow: hidden;
}
/* Die Trennlinien zeichnet jede Kachel selbst (1 px Schatten in die Luecke),
   nicht der Hintergrund des Rasters. Sonst bliebe bei einer Kachelzahl, die
   nicht aufgeht - sieben Leistungen in drei Spalten - der Rest der letzten
   Reihe als graue Flaeche stehen. */
.leistung {
  background: #fff;
  box-shadow: 0 0 0 1px var(--linie);
  padding: 32px 30px 34px;
  display: flex;
  flex-direction: column;
  transition: background-color .16s ease;
}
.leistung:hover { background: var(--flaeche); }
.leistung .icon { margin-bottom: 20px; color: var(--text); }
.leistung .icon .ic { width: 26px; height: 26px; stroke-width: 1.4; }
.leistung h3 { margin-bottom: .45em; }
.leistung p { color: var(--text-mute); font-size: .97rem; flex: 1; margin-bottom: 1.2em; }
.leistung .mehr {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--linie-kraeftig);
  padding-bottom: 2px;
  align-self: flex-start;
}
.leistung .mehr:hover { border-bottom-color: var(--ink); }
.leistung .mehr .ic { width: 15px; height: 15px; }

/* Bildkacheln (optional) */
.kachel {
  border: 1px solid var(--linie);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.kachel img { height: 190px; object-fit: cover; width: 100%; }
.kachel .inhalt { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.kachel p { color: var(--text-mute); font-size: .97rem; flex: 1; }

/* ---------- Ablauf ---------- */

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.schritt { border-top: 2px solid var(--ink); padding-top: 20px; }
.schritt .nr {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-leise);
  margin-bottom: 12px;
}
.schritt h3 { font-size: 1.08rem; margin-bottom: .4em; }
.schritt p { color: var(--text-mute); font-size: .95rem; margin: 0; }

/* ---------- Zwei-Spalten ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--r); }

.haken { list-style: none; padding: 0; margin: 28px 0 32px; }
.haken li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--linie);
  font-size: 1rem;
}
.haken li:first-child { border-top: 1px solid var(--linie); }
.haken .ic { color: var(--text-leise); margin-top: 3px; width: 18px; height: 18px; }

/* ---------- Einzugsgebiet ---------- */

.orte-gruppen {
  display: grid;
  gap: 26px;
  margin-top: 30px;
}
.orte-gruppe h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.orte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.orte-gruppe .orte { margin-top: 12px; }
.ort {
  background: #fff;
  border: 1px solid var(--linie);
  color: var(--text-mute);
  border-radius: var(--r-sm);
  padding: 8px 15px;
  font-size: .92rem;
}

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

.faq { max-width: 820px; margin-top: 38px; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 1.6px solid var(--text-leise);
  border-bottom: 1.6px solid var(--text-leise);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--text-mute); max-width: 68ch; }

/* ---------- Kontakt ---------- */

.kontakt-bg {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.kontakt-info a { color: var(--text); font-weight: 500; text-decoration: none; }
.kontakt-info a:hover { text-decoration: underline; }
.kontakt-zeile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--linie);
}
.kontakt-zeile:first-of-type { border-top: 1px solid var(--linie); }
.kontakt-zeile .ic { color: var(--text-leise); margin-top: 3px; }
.kontakt-zeile small {
  display: block;
  color: var(--text-leise);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: 2px;
}

form.anfrage {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 34px;
  color: var(--text);
}
form.anfrage h3 { margin-top: 0; margin-bottom: 1.2em; }
.feld { margin-bottom: 18px; }
.feld label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
  color: var(--text);
}
.feld input,
.feld select,
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--linie-kraeftig);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.feld input::placeholder,
.feld textarea::placeholder { color: var(--text-leise); }
.feld input:focus,
.feld select:focus,
.feld textarea:focus {
  outline: none;
  border-color: var(--fokus);
  box-shadow: 0 0 0 3px rgba(42, 106, 212, .15);
}
.feld textarea { min-height: 120px; resize: vertical; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dsgvo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 20px 0;
}
.dsgvo input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--ink); }

form.anfrage .btn { width: 100%; }
.formhinweis { font-size: .88rem; color: var(--text-mute); text-align: center; margin: 14px 0 0; }
.formhinweis a { color: var(--text); }

/* ---------- Fuss ---------- */

footer.site {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  color: var(--text-mute);
  padding: 56px 0 30px;
  font-size: .95rem;
}
.fuss-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 38px;
}
footer.site h4 {
  color: var(--text);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin: 0 0 16px;
}
footer.site a { color: var(--text-mute); text-decoration: none; }
footer.site a:hover { color: var(--text); text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 10px; }
.fuss-unten {
  border-top: 1px solid var(--linie);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .87rem;
  color: var(--text-leise);
}

/* ---------- Mobile Anrufleiste ---------- */

.rufleiste {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--linie);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  gap: 10px;
}
.rufleiste a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: .97rem;
  border: 1px solid transparent;
  transition: transform var(--t-druck) var(--ease-out);
}
.ruf-tel { background: var(--ink); color: #fff; }
.ruf-wa  { background: #fff; color: var(--text); border-color: var(--linie-kraeftig); }
.ruf-wa .ic { color: var(--whatsapp); }

/* ---------- Rechtstexte ---------- */

.rechtstext { max-width: 740px; }
.rechtstext h2 { margin-top: 1.9em; font-size: 1.32rem; }
.rechtstext dl { margin: 0 0 1.6em; }
.rechtstext dt { font-weight: 600; color: var(--text); margin-top: 18px; }
.rechtstext dd { margin: 4px 0 0; color: var(--text-mute); }

.seitenkopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding: 60px 0;
}
.seitenkopf h1 { margin-bottom: .25em; }
.seitenkopf p { color: var(--text-mute); margin: 0; }

/* ---------- Brotkrumen der Leistungsseiten ---------- */
/* Zeigt den Weg von der Startseite zur Leistung. Suchmaschinen lesen ihn
   zusaetzlich aus den strukturierten Daten der jeweiligen Seite. */

.brotkrumen { border-bottom: 1px solid var(--linie); font-size: .84rem; }
.brotkrumen ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  color: var(--text-leise);
}
.brotkrumen li + li::before {
  content: "›";
  margin: 0 .5em;
  color: var(--linie-kraeftig);
}
.brotkrumen a { color: var(--text-mute); text-decoration: none; }
.brotkrumen a:hover { color: var(--text); text-decoration: underline; }
.brotkrumen [aria-current="page"] { color: var(--text); }

/* ---------- Bildband ---------- */

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- Formular: Spamschutz & Fehlerhinweis ---------- */

.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formfehler {
  background: #fdf1f1;
  border: 1px solid #f0c9c8;
  color: var(--fehler);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: .94rem;
  margin: 0 0 18px;
}

/* ---------- Responsiv ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 20ch; }
  .split, .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .fuss-grid { grid-template-columns: 1fr 1fr; }
}

/* Die Navigation klappt schon ab 1000 px ins Menue: mit der Bildmarke daneben
   wird die Kopfzeile sonst zweizeilig und das Angebots-Feld rutscht hinaus. */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  /* Immer im Dokument, aber unsichtbar und nicht fokussierbar, damit es
     weich ein- und ausklappen kann. visibility schaltet erst am Ende der
     Transition zurueck, deshalb bleibt das Ausblenden sichtbar. */
  nav.haupt {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 20px;
    border-bottom: 1px solid var(--linie);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-panel-zu) var(--ease-out),
                transform var(--t-panel-zu) var(--ease-out),
                visibility var(--t-panel-zu);
  }
  nav.haupt.offen {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-duration: var(--t-panel);
  }
  nav.haupt a { padding: 14px 0; border-bottom: 1px solid var(--linie); }
  nav.haupt a.btn { margin-top: 14px; border-bottom: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .logo { gap: 10px; }
  .logo-mark { width: 40px; height: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .topbar { display: none; }
  .rufleiste { display: flex; }
  body { padding-bottom: 76px; }
  .zwei { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  form.anfrage { padding: 26px 22px; }
  .fuss-grid { grid-template-columns: 1fr; gap: 30px; }
  .galerie { grid-template-columns: 1fr; }
  .kopfzeile { margin-bottom: 32px; }
}

/* ---------- Referenzen & Projekte ---------- */

.projekte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.projekt {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.projekt-bild { position: relative; }
.projekt-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.symbolbild {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.93);
  border: 1px solid var(--linie);
  color: var(--text-mute);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
}
.projekt .inhalt { padding: 20px 22px 24px; }
.projekt h3 { font-size: 1.04rem; margin-bottom: .35em; }
.projekt p { color: var(--text-mute); font-size: .94rem; margin: 0; }

/* ---------- Bewertungen ---------- */

.sterne { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.sterne svg { width: 17px; height: 17px; fill: var(--gold); stroke: none; }

.bewertung-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 18px 0 0;
}
.bewertung-kopf .wert { font-weight: 600; }
.bewertung-kopf .anzahl { color: var(--text-mute); font-size: .95rem; }

.stimmen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.stimme {
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  padding: 28px 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.stimme .sterne { margin-bottom: 18px; }
.stimme blockquote { margin: 0 0 22px; font-size: 1.02rem; line-height: 1.55; flex: 1; }
.stimme figcaption { font-size: .9rem; color: var(--text-mute); }
.stimme figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 1px; }

.bewertung-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--linie-kraeftig);
  padding-bottom: 3px;
}
.bewertung-link:hover { border-bottom-color: var(--ink); }
.bewertung-link .ic { width: 16px; height: 16px; }

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

/* Grundregeln:
   – animiert werden ausschliesslich opacity und transform,
   – hereinkommende Elemente mit ease-out, Farbwechsel mit ease,
   – alle Scroll-Einblendungen haengen an der Klasse .anim auf <html>.
     Die setzt ein kleines Inline-Skript im <head> – und zwar nur, wenn
     JavaScript laeuft, der IntersectionObserver vorhanden ist und keine
     reduzierte Bewegung gewuenscht wird. Fehlt die Klasse, ist jeder
     Inhalt sofort und vollstaendig sichtbar. */

/* Einblenden beim Scrollen: .erscheint fuer einzelne Bloecke,
   .erscheint-reihe fuer Karten-Gruppen (die Kinder kommen gestaffelt). */
.anim .erscheint,
.anim .erscheint-reihe > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-rein) var(--ease-sanft),
              transform var(--t-rein) var(--ease-sanft);
}
.anim .erscheint.sichtbar,
.anim .erscheint-reihe.sichtbar > * {
  opacity: 1;
  transform: none;
}

/* Staffelung: 75 ms pro Karte, ab der fuenften bleibt es bei 300 ms –
   sonst haengt die letzte Karte zu weit hinterher */
.anim .erscheint-reihe > :nth-child(2) { transition-delay: 75ms; }
.anim .erscheint-reihe > :nth-child(3) { transition-delay: 150ms; }
.anim .erscheint-reihe > :nth-child(4) { transition-delay: 225ms; }
.anim .erscheint-reihe > :nth-child(n+5) { transition-delay: 300ms; }

/* Bilder kommen beim Laden weich dazu statt hart aufzuschlagen.
   Das Hero-Bild bleibt ausgenommen – es soll ohne Umweg da sein. */
.anim .projekt-bild img,
.anim .split img,
.anim .galerie img,
.anim .kachel img {
  opacity: 0;
  transition: opacity .8s var(--ease-sanft);
}
.anim .projekt-bild img.geladen,
.anim .split img.geladen,
.anim .galerie img.geladen,
.anim .kachel img.geladen { opacity: 1; }

/* Druckfeedback: kurz und knapp, nur auf wirklich klickbaren Flaechen */
.btn:active { transform: scale(.98); }
.menu-btn:active { transform: scale(.94); }
.rufleiste a:active { transform: scale(.98); }

/* Pfeile ruecken beim Zeigen ein Stueck mit – nur mit echtem Zeigegeraet,
   damit auf dem Touchscreen nichts beim Antippen haengen bleibt. */
@media (hover: hover) and (pointer: fine) {
  .leistung .mehr .ic,
  .bewertung-link .ic {
    transition: transform var(--t-hover) ease;
  }
  .leistung .mehr:hover .ic,
  .bewertung-link:hover .ic { transform: translateX(2px); }
}

/* FAQ: die Antwort blendet beim Aufklappen ein und beim Zuklappen aus.
   Das allein braucht kein JavaScript – [open] genuegt. Die Hoehe des Kastens
   bewegt main.js dazu (siehe dort), das ist die einzige Stelle der Seite, an
   der etwas anderes als transform und opacity animiert wird. */
.faq details[open] > p {
  animation: faq-auf var(--t-panel) var(--ease-out);
}
@keyframes faq-auf {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.faq details[open].schliesst > p {
  animation: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--t-panel-zu) ease, transform var(--t-panel-zu) ease;
}
.faq details[open].schliesst summary::after {
  transform: rotate(45deg);
  margin-top: 0;
}

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

/* Muss am Dateiende stehen, damit es alles davor ueberschreibt. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Nichts darf unsichtbar haengen bleiben */
  .anim .erscheint,
  .anim .erscheint-reihe > *,
  .anim .projekt-bild img,
  .anim .split img,
  .anim .galerie img,
  .anim .kachel img {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .anim .erscheint-reihe > * { transition-delay: 0s; }

  .faq details[open] > p { animation: none; }
  .faq details[open].schliesst > p { opacity: 1; transform: none; transition: none; }

  .btn:active,
  .menu-btn:active,
  .rufleiste a:active,
  .leistung .mehr:hover .ic,
  .bewertung-link:hover .ic { transform: none; }

  nav.haupt { transition: none; }

  /* Sicherheitsnetz, auch fuer die Inline-Styles der Unterseiten */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
