/* ==========================================================================
   Lewinski-Service — Entwurf 2026
   Palette und Schrift sind aus dem vorhandenen Löwen-Logo abgeleitet:
   Gold auf Graphit, warmes Papierweiß, eine Serife für die Überschriften.
   Schriften liegen lokal (keine Verbindung zu Google Fonts).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #141a21;
  --graphite-2: #1d252e;
  --paper: #f6f3ed;
  --paper-2: #ede8df;
  --white: #fffdf9;
  --ink: #1c2128;
  --muted: #736c62;
  --line: #ddd6ca;
  --line-dark: rgba(255, 255, 255, .12);
  --gold: #c89446;
  --gold-2: #e2b96b;
  --gold-ink: #8a6222;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
/* height:auto hebt das height-Attribut der Bilder auf — sonst wird ein Foto
   auf die Attributhöhe gezogen und mit object-fit brutal beschnitten. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
p { margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 40; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.dark .eyebrow { color: var(--gold-2); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(32px, 4.5vw, 56px);
}
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 0 0 .3rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.6rem; font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; border-radius: 4px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: #1a1205; }
.btn--gold:hover { background: var(--gold-2); }
.btn--line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--line:hover { border-color: #fff; }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }

/* --- Kopfzeile ---------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 26, 33, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.brand { display: block; line-height: 0; }
.brand img { height: 60px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.nav a { color: #d5d0c6; text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .01em; }
.nav a:hover { color: var(--gold-2); }
.nav .btn { padding: .65rem 1.1rem; font-size: .92rem; }
.nav-toggle {
  margin-left: auto; display: none; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-dark); border-radius: 4px; color: #fff; cursor: pointer;
}

/* --- Dunkle Flächen ----------------------------------------------------- */
.dark { background: var(--graphite); color: #ebe6dc; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: #c3bdb1; }

/* --- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 85% 15%, rgba(200, 148, 70, .14), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; padding-top: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-2); }
.hero__text p { font-size: 1.15rem; max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__figure { position: relative; margin: 0; }
.hero__figure img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%;
  border-radius: 4px; filter: saturate(.9);
}
.hero__figure::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); border-radius: 4px; z-index: -1; opacity: .7;
}
.hero__caption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(20, 26, 33, .86); backdrop-filter: blur(6px);
  border-left: 3px solid var(--gold); padding: .7rem 1rem; font-size: .86rem; color: #c3bdb1; max-width: 32ch;
}
.hero__caption strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: #fff; }

.stats {
  margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats div { padding: 1.4rem 1.4rem 1.6rem 0; border-right: 1px solid var(--line-dark); }
.stats div + div { padding-left: 1.4rem; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 600; color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .9rem; color: #b3ada2; }

/* --- Leistungen --------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.service { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; }
.service__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service__img img { transform: scale(1.04); }
.service__num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--display); font-size: .95rem; font-weight: 600; color: var(--gold-2);
  background: rgba(20, 26, 33, .8); padding: .25rem .6rem; border-radius: 3px; letter-spacing: .04em;
}
.service__body { padding-top: 1.3rem; border-top: 1px solid var(--gold); margin-top: 1.3rem; }
.service__body h3 { margin-bottom: .5rem; }
.service__body p { color: var(--muted); font-size: .98rem; }
.service__body ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.service__body li { display: flex; gap: .6rem; align-items: baseline; }
.service__body li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; transform: translateY(-2px); }

.band {
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.band h3 { margin-bottom: .25rem; }
.band p { margin: 0; color: var(--muted); }

/* --- Ablauf ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.step { padding: 1.8rem 1.6rem 0 0; border-right: 1px solid var(--line-dark); }
.step + .step { padding-left: 1.6rem; }
.step:last-child { border-right: 0; }
.step__num { font-family: var(--display); font-size: 2.4rem; font-weight: 400; color: var(--gold-2); line-height: 1; display: block; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: .96rem; margin: 0; }

/* --- Über uns ----------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about blockquote {
  margin: 0 0 1.6rem; font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500; font-style: italic; line-height: 1.25; color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.about blockquote::before { content: "„"; color: var(--gold); }
.about blockquote::after { content: "“"; color: var(--gold); }
.owner { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.owner img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.owner strong { display: block; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.owner span { font-size: .9rem; color: var(--muted); }

.values { border-top: 1px solid var(--line); }
.values > div {
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start;
}
.values .k { font-family: var(--display); font-size: 1.6rem; color: var(--gold); font-weight: 400; line-height: 1; padding-top: .15rem; }
.values strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin-bottom: .3rem; }
.values p { margin: 0; color: var(--muted); font-size: .97rem; }

/* --- Schiene (Partner und Bewertungen) ---------------------------------- */
.rail { position: relative; }
.rail__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.rail__head h2 { margin-bottom: 0; }
.rail__head .lead { margin: .8rem 0 0; }
.rail__nav { display: flex; gap: .5rem; padding-bottom: .3rem; }
.rail__btn {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.rail__btn:hover { background: var(--ink); color: var(--gold-2); border-color: var(--ink); transform: translateY(-2px); }
.rail__btn:disabled { opacity: .35; cursor: default; transform: none; }
.dark .rail__btn { border-color: var(--line-dark); background: transparent; color: #fff; }
.dark .rail__btn:hover { background: var(--gold); color: #1a1205; border-color: var(--gold); }
.rail__track {
  display: flex; gap: clamp(16px, 2.2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px 8px 24px; margin: -8px -8px 0;
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
/* Wenige Karten füllen die Reihe, viele Karten laufen über und scrollen. */
.rail__track > * { flex: 1 0 clamp(280px, 30vw, 380px); max-width: 560px; scroll-snap-align: start; }
.rail__dots { display: flex; gap: .45rem; justify-content: center; margin-top: .2rem; }
.rail__dots:empty { display: none; }
.rail__dots button { width: 26px; height: 3px; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; padding: 0; transition: background-color .25s, width .25s; }
.rail__dots button.is-active { background: var(--gold); width: 44px; }
.dark .rail__dots button { background: var(--line-dark); }
.dark .rail__dots button.is-active { background: var(--gold); }

.pcard {
  display: grid; grid-template-rows: auto 1fr; background: var(--white);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(28, 33, 40, .35); }
.pcard__img { aspect-ratio: 4 / 3; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { padding: 1.3rem 1.4rem 1.5rem; }
.pcard__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.pcard__body p { font-size: .95rem; color: var(--muted); margin: 0 0 .9rem; }
.pcard__tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); position: relative; padding-bottom: .3rem; }
.pcard__tag::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(.35); transform-origin: left; transition: transform .4s; }
.pcard:hover .pcard__tag::after { transform: scaleX(1); }
.pcard--cta { background: var(--graphite); color: #ebe6dc; border-color: var(--graphite); }
.pcard--cta .pcard__img { display: grid; place-items: center; background: linear-gradient(160deg, var(--graphite-2), var(--graphite)); }
.pcard--cta .pcard__img span { font-family: var(--display); font-size: 4.5rem; color: var(--gold); font-weight: 400; line-height: 1; }
.pcard--cta h3 { color: #fff; }
.pcard--cta p { color: #c3bdb1; }
.pcard--cta .pcard__tag { color: var(--gold-2); }

/* --- Bewertungen -------------------------------------------------------- */
.gsum {
  display: none; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px); padding: 1.1rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
}
.gsum.is-on { display: flex; }
.gsum__score { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.gsum__meta { display: grid; gap: .2rem; font-size: .93rem; color: var(--muted); }
.gsum__meta a { color: var(--gold-ink); font-weight: 700; text-decoration: none; }
.gsum__meta a:hover { text-decoration: underline; }
.gsum__logo { margin-left: auto; font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.stars svg.off { color: var(--line); }
.rcard {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(22px, 2.6vw, 32px); display: grid; grid-template-rows: auto 1fr auto; gap: 1.1rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.rcard:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(28, 33, 40, .3); }
.rcard blockquote { margin: 0; font-family: var(--display); font-size: 1.14rem; line-height: 1.5; font-weight: 500; font-variation-settings: "opsz" 40; }
.rcard blockquote::before { content: "„"; color: var(--gold); }
.rcard blockquote::after { content: "“"; color: var(--gold); }
.rcard figcaption { display: flex; align-items: center; gap: .9rem; font-size: .92rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.rcard figcaption img, .quote__mark { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__mark { display: grid; place-items: center; background: var(--graphite); color: var(--gold-2); font-family: var(--display); font-weight: 600; }
.rcard figcaption strong { display: block; }
.rcard figcaption span { color: var(--muted); font-size: .86rem; }
.rcard figcaption time { margin-left: auto; color: var(--muted); font-size: .82rem; white-space: nowrap; }

/* --- Kontakt ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: baseline; }
.contact-list li:first-child { border-top: 1px solid var(--line-dark); }
.contact-list span { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #a59f93; font-weight: 700; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold-2); }
.contact-list strong { color: #fff; font-weight: 600; }
.contact-list small { display: block; color: #a59f93; font-size: .88rem; margin-top: .15rem; }

.form { background: var(--white); color: var(--ink); border-radius: 4px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 1.1rem; }
.form h3 { margin-bottom: .2rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: 2px solid rgba(200, 148, 70, .35); outline-offset: 0; }
.form textarea { min-height: 140px; resize: vertical; }
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form__hint a { color: var(--gold-ink); }

/* --- Fußzeile ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-dark); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 64px; margin-bottom: 1.2rem; }
.footer h4 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer a { color: #d5d0c6; text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer p { font-size: .95rem; max-width: 36ch; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #a59f93; }

/* --- Rechtstexte -------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin-top: 2.4rem; font-size: 1.45rem; }
.legal p, .legal li { color: #3f4650; }
.legal ul { padding-left: 1.2rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; margin-bottom: 2rem; color: var(--gold-ink); }

/* --- Responsiv ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid, .about, .contact, .section-head, .rail__head { grid-template-columns: 1fr; }
  .rail__nav { padding-bottom: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .stats, .steps { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2), .step:nth-child(2) { border-right: 0; }
  .stats div:nth-child(n+3), .step:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stats div:nth-child(3), .step:nth-child(3) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__figure::after { display: none; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .1rem; background: var(--graphite); padding: .8rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line-dark); }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: .7rem 0; font-size: 1.05rem; }
  .nav .btn { margin-top: .8rem; }
  .services, .footer__grid { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: 1fr; }
  .stats div, .step { border-right: 0; padding-left: 0; }
  .stats div + div, .step + .step { border-top: 1px solid var(--line-dark); }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .rail__track > * { flex-basis: 84%; }
  .hero__caption { position: static; margin-top: .8rem; max-width: none; }
}
/* --- Korrekturen ---------------------------------------------------------- */
/* Porträt im Kreis: Ausschnitt so gesetzt, dass das Gesicht von Stirn bis Kinn drin ist */
.owner img { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 50%; object-fit: cover; object-position: 50% 50%; }
.dark .form h3 { color: var(--ink); }

/* --- Logo im Hero ---------------------------------------------------------- */
.hero__logo {
  height: clamp(96px, 11vw, 136px); width: auto; margin-bottom: 1.6rem;
  filter: drop-shadow(0 0 18px rgba(226, 185, 107, .25));
}
.hero__mark {
  position: absolute; right: -6vw; bottom: -12vw; width: clamp(420px, 52vw, 820px);
  opacity: .045; pointer-events: none; user-select: none; z-index: 0;
  filter: grayscale(1) brightness(3);
}
.hero__inner { z-index: 1; }

/* --- Bewegung --------------------------------------------------------------
   Alles ist ohne JavaScript sichtbar. Erst wenn <html class="js"> gesetzt ist,
   werden Elemente mit .reveal ausgeblendet und beim Sichtbarwerden eingeblendet. */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes glowLogo {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(226, 185, 107, .18)); }
  50% { filter: drop-shadow(0 0 30px rgba(226, 185, 107, .42)); }
}
@keyframes driftMark { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-3vw, -2vw, 0) rotate(-3deg); } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

.js .hero__logo { animation: fadeUp .9s .05s both, floatLogo 7s 1.2s ease-in-out infinite, glowLogo 5s 1.2s ease-in-out infinite; }
.js .hero__text .eyebrow { animation: fadeUp .8s .25s both; }
.js .hero__text h1 { animation: fadeUp .9s .4s both; }
.js .hero__text p { animation: fadeUp .9s .55s both; }
.js .hero__actions { animation: fadeUp .9s .7s both; }
.js .hero__figure { animation: fadeUp 1.1s .5s both; }
.js .stats { animation: fadeIn 1s 1s both; }
.js .hero__mark { animation: driftMark 24s ease-in-out infinite alternate; }

.header { transition: background-color .3s, box-shadow .3s; }
.brand img { transition: height .3s ease; }
.header.is-scrolled { background: rgba(20, 26, 33, .98); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.header.is-scrolled .header__inner { min-height: 68px; }
.header.is-scrolled .brand img { height: 46px; }

/* --- Feinschliff ------------------------------------------------------------ */
.stats strong { font-variant-numeric: tabular-nums; }
.header.is-scrolled .brand img { height: 52px; }
.hero__logo { height: clamp(84px, 9vw, 116px); }
@media (min-width: 981px) {
  .hero__figure img { aspect-ratio: 4 / 4.7; object-position: 50% 50%; }
}

/* Feine Körnung auf den dunklen Flächen — Fläche wirkt wie Material, nicht wie Farbe. */
.dark {
  background-color: var(--graphite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Goldener Übergang, wo eine dunkle Sektion auf eine helle folgt. */
.section.dark, .footer.dark {
  border-style: solid; border-width: 1px 0 0; border-color: transparent;
  border-image: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%) 1;
}

/* Scroll-Fortschritt unter der Kopfzeile */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); pointer-events: none; }

/* Navigation: Goldlinie wächst von links */
.nav a:not(.btn) { position: relative; padding-bottom: 2px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* Goldene Buttons: Lichtreflex beim Hover */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.btn--gold:hover::after { transform: translateX(130%); }

/* Leistungen: Strich zieht durch, Titel wird gold */
.service__body { position: relative; }
.service__body::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--gold); transition: width .55s cubic-bezier(.2,.7,.2,1); }
.service:hover .service__body::before { width: 100%; }
.service__body h3 { transition: color .3s; }
.service:hover .service__body h3 { color: var(--gold-ink); }

/* Bewertungen: großes Anführungszeichen als Dekor */
.rcard { position: relative; overflow: hidden; }
.rcard::before { content: "\201D"; position: absolute; right: 18px; top: -14px; font-family: var(--display); font-size: 8rem; line-height: 1; color: var(--gold); opacity: .13; pointer-events: none; }

/* Zahlen der Leiste: Goldlinie unter der Zahl */
.stats strong::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: .55rem 0 .35rem; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .btn--gold::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail__track { scroll-behavior: auto; }
  .btn:hover, .pcard:hover, .rcard:hover { transform: none; }
  .service:hover .service__img img, .pcard:hover .pcard__img img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__logo, .js .hero__text .eyebrow, .js .hero__text h1, .js .hero__text p, .js .hero__actions,
  .js .hero__figure, .js .stats, .js .hero__mark { animation: none; }
}
