/* Projektbau Duisburg GmbH - Stylesheet
   Neuaufbau 2026-08-17, statisch, ohne Framework, ohne externe Schriften.
   Markenfarbe #c99e67 aus dem Bestand uebernommen. */

:root {
  --gold: #c99e67;
  --gold-dark: #a97a45;
  --gold-soft: #f3e7d7;
  --ink: #15120f;
  --ink-2: #3a332c;
  --ink-3: #6b6156;
  --paper: #ffffff;
  --sand: #faf7f2;
  --line: #e8ded1;
  --shadow: 0 1px 2px rgba(21, 18, 15, .06), 0 8px 24px rgba(21, 18, 15, .07);
  --shadow-lg: 0 2px 4px rgba(21, 18, 15, .06), 0 18px 48px rgba(21, 18, 15, .12);
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 68ch; }

.prose-2 { display: grid; gap: 0 3.5rem; grid-template-columns: 1fr; max-width: 95ch; }
.prose-2 p { font-size: 1.0625rem; }
@media (min-width: 880px) { .prose-2 { grid-template-columns: 1fr 1fr; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .85rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: .9rem;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Kopfbereich ---------- */

.topbar {
  background: var(--ink); color: #cfc6ba; font-size: .875rem;
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; justify-content: flex-end; }
.topbar a { color: #f0e9e0; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar span { color: #9a9086; }

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; margin-right: auto; }
.brand img { width: 128px; height: auto; }
.brand__text { display: none; }

.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav a:hover { background: var(--gold-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.masthead .btn { padding: .7rem 1.2rem; font-size: .95rem; }

/* Mobile Navigation, rein per CSS, kein JavaScript */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 960px) {
  .masthead__inner { min-height: 72px; flex-wrap: wrap; }
  .masthead .btn--primary { margin-left: auto; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 44px; padding: 10px; cursor: pointer; border-radius: 8px;
    border: 1px solid var(--line); order: 3;
  }
  .nav-toggle-label span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav { order: 4; flex-basis: 100%; display: none; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 0 1rem; }
  .nav a { padding: .85rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

@media (max-width: 480px) {
  .masthead__inner { gap: .75rem; }
  .brand img { width: 104px; }
  .masthead .btn--primary { padding: .6rem .9rem; font-size: .875rem; }
  .topbar__inner { justify-content: center; }
  .hero__actions .btn { width: 100%; }
}

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

.hero { position: relative; color: #fff; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(21,18,15,.92) 0%, rgba(21,18,15,.72) 45%, rgba(21,18,15,.42) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(4rem, 2rem + 9vw, 8.5rem) 0; }
.hero h1 { color: #fff; max-width: 19ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: #ded6cb; max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.facts {
  position: relative; z-index: 2; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14);
}
.facts div { background: var(--ink); padding: 1.5rem 1.25rem; }
.facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.facts dd { margin: .35rem 0 0; color: #fff; font-weight: 600; font-size: 1.0625rem; }

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

.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-3); font-size: 1rem; }

.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--gold-dark); border-bottom: 2.5px solid var(--gold-dark);
  transform: rotate(-45deg);
}
.card .ticks { margin-top: auto; }

/* ---------- Vermietung ---------- */

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

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

.faq { max-width: 900px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  margin-bottom: .85rem; overflow: hidden;
}
.faq details[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  font-weight: 700; color: var(--ink); position: relative; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--gold-dark); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq__answer { padding: 0 1.35rem 1.35rem; color: var(--ink-3); }
.faq .faq__answer > :last-child { margin-bottom: 0; }

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

.contact { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; } }

.contact__data { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact__data li { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.contact__data strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.contact__data a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.contact__data a:hover { color: var(--gold-dark); }

form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: .94rem; color: var(--ink); margin-bottom: .4rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8rem .95rem; font: inherit; color: var(--ink);
  background: var(--sand); border: 1px solid var(--line); border-radius: 9px;
}
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--gold); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .94rem; color: var(--ink-3); }
.check input { margin-top: .3rem; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--gold-dark); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .875rem; color: var(--ink-3); margin: 1rem 0 0; }

/* ---------- Fussbereich ---------- */

.footer { background: var(--ink); color: #b3a99d; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; font-size: .96rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer h2 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer img { width: 118px; margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #e2dad0; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .88rem;
}

/* ---------- Vorschau-Hinweis, entfaellt beim Umstellen ---------- */

.preview-flag {
  background: #7a1f1f; color: #fff; text-align: center;
  padding: .6rem 1rem; font-size: .875rem; font-weight: 600;
}
.preview-flag a { color: #ffd9d9; }

/* ==========================================================
   Unterseiten
   ========================================================== */

/* Brotkrumen */
.breadcrumb { background: var(--sand); border-bottom: 1px solid var(--line); font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: .85rem 0; }
.breadcrumb li { display: flex; align-items: center; gap: .45rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "\203A"; color: var(--gold-dark); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Kopfbild der Unterseiten, flacher als auf der Startseite */
.pagehead { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,18,15,.94) 0%, rgba(21,18,15,.74) 55%, rgba(21,18,15,.44) 100%);
}
.pagehead__inner { position: relative; z-index: 2; padding: clamp(2.75rem, 1.5rem + 5vw, 5rem) 0; }
.pagehead h1 { color: #fff; max-width: 22ch; margin-bottom: .7rem; }
.pagehead p { color: #ded6cb; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); max-width: 62ch; margin-bottom: 0; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Fliesstext auf Rechtsseiten */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.35rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); font-weight: 700; color: var(--ink); }
.prose .hinweis {
  border-left: 4px solid var(--gold); background: var(--sand);
  padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; margin-bottom: 1.5rem;
}
.prose .hinweis > :last-child { margin-bottom: 0; }

/* Leistungsdetails: Zwischenueberschrift plus Erklaerung */
.detail { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .detail { grid-template-columns: 1fr 1fr; } }
.detail__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.5rem 1.6rem;
}
.detail__item h3 { margin-bottom: .45rem; display: flex; align-items: baseline; gap: .6rem; }
.detail__item h3::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.detail__item p { color: var(--ink-3); margin-bottom: 0; font-size: 1rem; }

/* Vorteilsblock */
.vorteile { background: var(--ink); color: #ded6cb; border-radius: var(--radius); padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
.vorteile h2 { color: #fff; }
.vorteile ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .vorteile ul { grid-template-columns: 1fr 1fr; } }
.vorteile li { position: relative; padding-left: 1.9rem; }
.vorteile li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Verwandte Leistungen */
.weiter { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.weiter a {
  display: block; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 700;
  box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease;
}
@media (hover: hover) {
  .weiter a:hover { border-color: var(--gold); transform: translateY(-2px); }
}
.weiter span { display: block; font-weight: 400; font-size: .94rem; color: var(--ink-3); margin-top: .3rem; }

/* Abschluss-Aufforderung */
.cta { background: var(--gold-soft); border-block: 1px solid var(--line); }
.cta__inner { display: grid; gap: 1.5rem 3rem; align-items: center; grid-template-columns: 1fr; padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0; }
@media (min-width: 860px) { .cta__inner { grid-template-columns: 1.4fr auto; } }
.cta h2 { margin-bottom: .5rem; }
.cta p { margin-bottom: 0; color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Anschriftenblock, einheitlich auf allen Seiten */
.nap { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .nap { grid-template-columns: 1fr 1fr; } }
.nap address { font-style: normal; line-height: 1.85; }
.nap address strong { color: var(--ink); }
.nap a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nap a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Karte, selbst gehostet, ohne Verbindung zu Dritten ---------- */
.karte { margin-top: 3rem; }
.karte figure { margin: 0; }
.karte img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.karte figcaption {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  justify-content: space-between; margin-top: .85rem;
  font-size: .875rem; color: var(--ink-3);
}
.karte figcaption a { color: var(--gold-dark); }
.karte .routen { display: flex; flex-wrap: wrap; gap: .6rem; }
.karte .routen a {
  display: inline-flex; align-items: center; padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.karte .routen a:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ==========================================================
   Bewegung
   --------------------------------------------------------
   Grundsatz: animiert werden ausschliesslich 'transform' und
   'opacity'. Beides laeuft auf der Grafikkarte und veraendert
   das Layout nicht, der CLS-Wert bleibt bei 0.

   Alle Scroll-Effekte stehen in einem @supports-Block. Kennt
   ein Browser scroll-gesteuerte Animationen nicht, sieht er
   die Inhalte einfach normal. Es gibt keinen Fall, in dem
   etwas unsichtbar bleibt, weil eine Animation nicht startet.
   ========================================================== */

@keyframes einblenden {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes einblenden-klein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@keyframes wippen {
  /* rotate(45deg) muss mitlaufen, sonst hebt die Animation die Drehung auf.
     Nach der Drehung entspricht translate(d, d) einer Bewegung genau nach unten. */
  0%, 100% { transform: rotate(45deg) translate(0, 0);     opacity: .70; }
  50%      { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}
@keyframes kopfschatten {
  from { box-shadow: 0 0 0 rgba(21,18,15,0); }
  to   { box-shadow: 0 6px 20px rgba(21,18,15,.10); }
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- Hero: langsamer Zoom auf dem Standbild ---- */
  .hero__media img,
  .pagehead__media img { animation: kenburns 28s ease-in-out infinite alternate; }

  /* ---- Hero-Text: gestaffelt beim Laden ---- */
  .hero__inner > *      { animation: einblenden .7s cubic-bezier(.22,.61,.36,1) both; }
  .hero__inner > *:nth-child(1) { animation-delay: .05s; }
  .hero__inner > *:nth-child(2) { animation-delay: .16s; }
  .hero__inner > *:nth-child(3) { animation-delay: .28s; }
  .hero__inner > *:nth-child(4) { animation-delay: .40s; }
  .hero__inner > *:nth-child(5) { animation-delay: .55s; }

  .pagehead__inner > *  { animation: einblenden .6s cubic-bezier(.22,.61,.36,1) both; }
  .pagehead__inner > *:nth-child(1) { animation-delay: .05s; }
  .pagehead__inner > *:nth-child(2) { animation-delay: .14s; }
  .pagehead__inner > *:nth-child(3) { animation-delay: .24s; }
  .pagehead__inner > *:nth-child(4) { animation-delay: .34s; }

  /* ---- Faktenleiste: Felder nacheinander ---- */
  .facts > div { animation: einblenden-klein .55s ease-out both; }
  .facts > div:nth-child(1) { animation-delay: .50s; }
  .facts > div:nth-child(2) { animation-delay: .60s; }
  .facts > div:nth-child(3) { animation-delay: .70s; }
  .facts > div:nth-child(4) { animation-delay: .80s; }

  /* ---- Bild in der Leistungskarte zieht beim Zeigen leicht an ---- */
  .card__media img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
  @media (hover: hover) {
    .card:hover .card__media img { transform: scale(1.06); }
  }
  .card:focus-within .card__media img { transform: scale(1.06); }

  /* ---- Scrollhinweis unter dem Hero ---- */
  .scrollhint span { animation: wippen 2.2s ease-in-out infinite; }
}

/* ---- Scroll-gesteuerte Effekte, nur wo der Browser sie kennt ---- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    .section > .wrap > .eyebrow,
    .section > .wrap > h2,
    .section > .wrap > .lead,
    .section > .wrap > p,
    .section > .wrap > .prose-2,
    .section > .wrap.prose > *,
    .grid--3 > .card,
    .detail > .detail__item,
    .vorteile,
    .faq > details,
    .weiter > a,
    .karte figure,
    .contact > *,
    .split > *,
    .cta__inner > * {
      animation: einblenden .8s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }

    /* Innerhalb einer Reihe leicht versetzt, damit nicht alles zugleich kommt */
    .grid--3 > .card:nth-child(3n+2),
    .detail > .detail__item:nth-child(2n),
    .weiter > a:nth-child(2) { animation-range: entry 4% entry 52%; }
    .grid--3 > .card:nth-child(3n),
    .weiter > a:nth-child(3) { animation-range: entry 8% entry 58%; }

    /* Kopfzeile bekommt beim Scrollen einen feinen Schatten */
    .masthead {
      animation: kopfschatten linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }
  }
}

/* ---- Scrollhinweis ---- */
.scrollhint {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  width: max-content; margin: 2.5rem auto 0;
  color: #ded6cb; text-decoration: none; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
}
.scrollhint:hover { color: var(--gold); }
.scrollhint span {
  display: block; width: 22px; height: 22px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transform-origin: center;
}
@media (max-width: 700px) { .scrollhint { display: none; } }

/* ==========================================================
   Responsiver Feinschliff
   ========================================================== */

/* Sichere Bereiche bei Geraeten mit Rundungen und Kamerainsel.
   Ohne das rutschen Inhalte im Querformat unter die Rundung. */
.wrap {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Verhindert einzelne Woerter auf der letzten Zeile einer Ueberschrift */
h1, h2, h3 { text-wrap: balance; }
p, li      { text-wrap: pretty; }

/* Antippflaechen: 44 Pixel sind das Mindestmass fuer Barrierefreiheit
   und fuer die Mobilfreundlichkeit in der Google-Bewertung. */
@media (max-width: 960px) {
  .footer li a,
  .topbar a,
  .breadcrumb a { display: inline-block; min-height: 44px; line-height: 44px; }
  .footer li { margin-bottom: 0; }
  .faq summary { padding-block: 1.35rem; }
}

/* ---------- Aufmerksamkeitsring auf der wichtigsten Schaltflaeche ---------- */
@keyframes ring {
  0%      { box-shadow: 0 0 0 0 rgba(201,158,103,.55); }
  55%     { box-shadow: 0 0 0 16px rgba(201,158,103,0); }
  100%    { box-shadow: 0 0 0 0 rgba(201,158,103,0); }
}
@keyframes schimmer {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(320%)  skewX(-18deg); }
}

.btn--puls { position: relative; overflow: hidden; }
.btn--puls::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-120%) skewX(-18deg); pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Desktop: der Ring liegt auf "Kostenlose Beratung" */
  @media (min-width: 861px) and (hover: hover) {
    .hero__actions .btn--primary { animation: ring 6s ease-out 2s infinite; }
    .hero__actions .btn--primary:hover::after,
    .btn--puls:hover::after { animation: schimmer .85s ease-out; }
  }
  /* Handy: der Ring liegt auf der Anrufschaltflaeche */
  @media (max-width: 860px) {
    .aktionsleiste__ruf { animation: ring 6s ease-out 3s infinite; }
  }
}

/* ---------- Feste Aktionsleiste, nur auf dem Handy ---------- */
.aktionsleiste { display: none; }

@media (max-width: 860px) {
  .aktionsleiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .7rem max(.9rem, env(safe-area-inset-left))
             calc(.7rem + env(safe-area-inset-bottom))
             max(.9rem, env(safe-area-inset-right));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(21,18,15,.10);
  }
  .aktionsleiste a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 50px; border-radius: 10px; text-decoration: none;
    font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  }
  .aktionsleiste__ruf     { background: var(--gold); color: var(--ink); }
  .aktionsleiste__anfrage { border-color: var(--line); color: var(--ink); background: var(--paper); }

  /* Damit die Leiste nichts verdeckt */
  body { padding-bottom: 84px; }
  .footer { padding-bottom: 2rem; }
}

/* Beim Drucken stoert die Leiste */
@media print {
  .aktionsleiste, .scrollhint, .masthead, .topbar { display: none !important; }
}

/* ---------- Sechste Kachel: Aufforderung statt Leistung ---------- */
.card--akzent {
  background: var(--ink); border-color: var(--ink); color: #ded6cb;
}
.card--akzent .card__body { justify-content: flex-start; gap: 0; }
.card--akzent h3 { color: #fff; }
.card--akzent p  { color: #b9b0a5; }
.card__tel {
  display: inline-block; margin: .4rem 0 .3rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 700;
  color: var(--gold); text-decoration: none; letter-spacing: -.02em;
}
.card__tel:hover { color: #fff; }
.card__zeit { font-size: .9rem; margin-bottom: 1.5rem; }
@media (hover: hover) {
  .card--akzent:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
}
