/* malerbetrieb-wuensch.de – Stylesheet (von Hand gepflegt).
   Nach Änderungen: python3 scripts/build.py (setzt den ?v=<hash> in allen Seiten). */

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo: dunkler Grund, Pinselstreifen in Rot, Orange und Violettblau */
  --coal-950: #15110f;
  --coal-900: #1f1a17;   /* Hintergrund des Logos – Kopfzeile muss exakt so sein */
  --coal-800: #2a2420;
  --coal-700: #3a322d;
  --coal-500: #6f655e;
  --coal-300: #b9b0a8;
  --coal-100: #ebe6df;
  --paper: #f6f2ea;
  --white: #fffdfa;
  --ink: #1f1a17;
  --muted: #5d544d;
  --red: #d81921;
  --red-bright: #ed1c24;
  --red-dark: #b3131a;
  --orange: #f58322;
  --orange-soft: #ffd9b3;
  --indigo: #231359;
  --indigo-bright: #4a36c2;
  --stripes: linear-gradient(180deg, var(--red-bright) 0 33.3%, var(--orange) 33.3% 66.6%, var(--indigo-bright) 66.6%);
  --line: rgba(255, 255, 255, .13);
  --line-dark: rgba(31, 26, 23, .13);
  --radius: 10px;
  --shadow: 0 22px 44px -22px rgba(31, 26, 23, .5);
  --wrap: 1180px;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
picture img { width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .18em; }
a:hover { color: var(--indigo); }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  text-decoration: none; line-height: 1;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--coal-900); color: #fff; }
.btn-dark:hover { background: var(--indigo); color: #fff; }
.btn-call { background: var(--orange); color: var(--coal-900); padding: .7rem 1.1rem; font-size: 1rem; }
.btn-call:hover { background: #fff; color: var(--coal-900); }
/* Lichtkante, die beim Überfahren über den Button läuft */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  translate: -120% 0;
}
.btn:hover::after { translate: 120% 0; transition: translate .7s var(--ease); }

.more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; color: var(--red-dark);
}
.more .icon { transition: transform .25s var(--ease); }
a.more:hover .icon, .card:hover .more .icon { transform: translateX(5px); }
.more-quiet { color: var(--muted); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coal-300); }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-weight: 700; font-size: .92rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-dark); margin: 0 0 .9rem;
}
/* kleiner Pinselstrich in den drei Logo-Farben */
.eyebrow::before { content: ""; width: 2.2rem; height: 9px; background: var(--stripes); border-radius: 2px; flex: none; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 46rem; }

/* ---------- Pinselstreifen aus dem Logo ---------- */
.stripes { position: absolute; left: 0; right: 0; bottom: 0; display: grid; pointer-events: none; }
.stripes i { display: block; height: 6px; transform-origin: left; }
.stripes i:nth-child(1) { background: var(--red-bright); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--indigo-bright); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--coal-900);
  border-bottom: 1px solid var(--line);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: block; margin-right: auto; }
.brand img { height: 72px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.nav ul { display: flex; gap: .2rem; }
.nav a {
  position: relative; display: block; padding: .6rem .8rem;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--coal-100); white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 6px;
  background: var(--stripes); border-radius: 2px;
  scale: 0 1; transform-origin: left; transition: scale .3s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a:hover::after, .nav a[aria-current]::after { scale: 1 1; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }

/* ---------- Hero ---------- */
.hero, .page-head {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60rem 34rem at 92% -12%, rgba(245, 131, 34, .26), transparent 62%),
    radial-gradient(46rem 30rem at -8% 112%, rgba(237, 28, 36, .2), transparent 60%),
    radial-gradient(40rem 26rem at 55% 120%, rgba(74, 54, 194, .28), transparent 62%),
    var(--coal-900);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7.5rem);
}
.hero .eyebrow, .page-head .eyebrow { color: var(--orange-soft); }
.hero h1 { margin-bottom: .4em; }
.hero h1 .w { display: inline-block; }
.hero h1 .farbe {
  font-style: italic; padding-right: .06em;
  background: linear-gradient(100deg, var(--red-bright) 5%, var(--orange) 55%, #ffc46b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead, .page-head .lead { color: var(--coal-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero-media { position: relative; padding: 0 0 13% 12%; }
.hero-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-main { border: 1px solid var(--line); }
.hero-side { position: absolute; left: 0; bottom: 0; width: 44%; border: 5px solid var(--coal-900); }
.hero-badge {
  position: absolute; right: -.8rem; top: -1.4rem; margin: 0;
  display: grid; place-content: center; text-align: center;
  width: 7.6rem; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase;
  border: 5px solid var(--orange);
}
.hero-badge strong {
  font-family: var(--head); font-size: 2rem; letter-spacing: 0; line-height: 1.05;
  font-variant-numeric: tabular-nums lining-nums; color: var(--red);
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--paper); }
.section-dark { background: var(--coal-900); color: #fff; }
.section-dark .lead { color: var(--coal-300); }
.section-dark .eyebrow { color: var(--orange-soft); }
.section-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1em; }

/* Foto mit versetztem Rahmen in Orange */
.frame { margin: 0; }
.frame-hoch { max-width: 440px; margin-inline: auto; }
.frame-pic { position: relative; }
.frame picture { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame-pic::before {
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; z-index: -1;
  border: 3px solid var(--orange); border-radius: var(--radius);
}
figcaption { font-size: .92rem; color: var(--muted); margin-top: 1.9rem; }
.frame figcaption { padding-left: 1.1rem; border-left: 4px solid var(--red-bright); line-height: 1.3; }
.split-media, .service-media { position: relative; isolation: isolate; }

/* ---------- Drei Versprechen ---------- */
.facts { background: var(--indigo); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts-grid li { padding: 2.6rem 2rem; border-left: 1px solid var(--line); display: grid; gap: .4rem; align-content: start; }
.facts-grid li:first-child { border-left: 0; padding-left: 0; }
.facts-grid li:last-child { padding-right: 0; }
.facts-grid .icon { width: 3.2rem; height: 3.2rem; padding: .7rem; border-radius: 50%; margin-bottom: .6rem; color: var(--coal-900); background: var(--orange); }
.facts-grid li:nth-child(1) .icon { background: #fff; }
.facts-grid li:nth-child(3) .icon { background: var(--red-bright); color: #fff; }
.facts-grid strong { font-family: var(--head); font-size: 1.5rem; line-height: 1.15; }
.facts-grid span { color: #dcd6f5; font-size: 1.02rem; line-height: 1.5; }

/* ---------- Leistungskarten ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.card-media { overflow: hidden; position: relative; }
.card-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: var(--stripes);
  scale: 0 1; transform-origin: left; transition: scale .45s var(--ease);
}
.card:hover .card-media::after { scale: 1 1; }
.card-media img { transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.32rem; hyphens: auto; }
.card-body p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.card-body .more { margin-top: auto; }

/* ---------- Referenzbilder ---------- */
.shot {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--coal-800); color: #fff;
}
.shot picture, .shot img { width: 100%; height: 100%; }
.shot img { object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: brightness(.8); }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .7rem;
  font-size: .92rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(21, 17, 15, .88));
  opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s var(--ease);
}
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; translate: 0 0; }
.shots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.shots-grid .shot { aspect-ratio: 4 / 3; }

/* Referenzen: Zeilen gleicher Höhe, jedes Foto in seinem Seitenverhältnis (kein Beschnitt) */
.shots-flow { display: flex; flex-wrap: wrap; gap: .9rem; --row: 250px; }
.shots-flow::after { content: ""; flex-grow: 1000; }
.shots-flow .shot { flex: var(--r) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); }
.r-143 { --r: 1.43; }
.r-133 { --r: 1.333; }
.r-122 { --r: 1.22; }
.r-100 { --r: 1; }
.r-075 { --r: .75; }
.r-049 { --r: .486; }
.gallery-group + .gallery-group { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.gallery-group h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); padding-bottom: .45em; border-bottom: 3px solid var(--coal-100); margin-bottom: 1.2rem; }

/* Sprungmarken unter dem Seitenkopf */
.jump { background: var(--coal-800); border-bottom: 1px solid var(--line); position: sticky; top: 85px; z-index: 40; }
.jump ul { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; margin-inline: -.8rem; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: block; padding: .8rem; white-space: nowrap; text-decoration: none;
  font-weight: 600; font-size: 1rem; color: var(--coal-300);
}
.jump a:hover { color: var(--orange); }

/* ---------- Großansicht (per JavaScript) ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  background: rgba(21, 17, 15, .97); color: #fff;
}
.lightbox::backdrop { background: rgba(21, 17, 15, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .3s var(--ease); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 3.5rem 1rem 0; }
.lb-stage img { max-width: min(100%, 1600px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); animation: lb-img .35s var(--ease); }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem; text-align: center; font-size: 1rem; }
.lb-count { color: var(--coal-300); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.lb-btn:hover { background: var(--red); transform: scale(1.08); }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; margin-top: -1.5rem; }
.lb-next { right: .8rem; top: 50%; margin-top: -1.5rem; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; scale: .96; } }

/* ---------- Handlungsaufruf ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(40rem 22rem at 100% 0, rgba(245, 131, 34, .3), transparent 60%),
    linear-gradient(115deg, var(--indigo), var(--coal-900) 75%);
}
.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--coal-100); max-width: 36rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Jobs ---------- */
.jobs-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
  padding: clamp(1.6rem, 4vw, 2.8rem); border-radius: var(--radius);
  background: var(--paper); border-left: 9px solid var(--orange);
}
.jobs-teaser h2 { margin-bottom: .3em; }
.jobs-teaser .lead { margin: 0; }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.job {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.job::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--stripes); }
.job:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.job h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); hyphens: auto; }
.job .checks { margin-bottom: 0; }

/* ---------- Über uns: Zeitleiste ---------- */
.timeline { display: grid; gap: 1.4rem; }
.timeline li {
  display: grid; gap: .1rem; padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: var(--coal-900); color: #fff; border-left: 9px solid var(--red-bright);
}
.timeline li:nth-child(2) { border-left-color: var(--orange); margin-left: clamp(0rem, 4vw, 3rem); }
.timeline strong {
  font-family: var(--head); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  background: linear-gradient(100deg, var(--red-bright), var(--orange) 70%, #ffc46b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.timeline span { color: var(--coal-100); font-size: 1.1rem; }

/* ---------- Unterseiten ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.6rem, 7.5vw, 6rem); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin-bottom: .35em; }
.page-head .lead { margin: 0; }

.services { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.service:nth-child(even) .service-text { order: 2; }
.service .eyebrow::before { display: none; }
.service .eyebrow .icon { width: 1.7rem; height: 1.7rem; color: var(--orange); }
.service h2 { hyphens: auto; }
.service-links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.service-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.frame-hoch + .service-thumbs { max-width: 440px; margin-inline: auto; }
.service-thumbs figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.checks { display: grid; gap: .55rem; margin: 1.4rem 0 1.6rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .5em; width: .95rem; height: .5rem;
  border-left: 3px solid var(--red-bright); border-bottom: 3px solid var(--red-bright); rotate: -45deg;
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-card { background: var(--coal-900); color: #fff; padding: 2rem; border-radius: var(--radius); border-top: 9px solid var(--red-bright); }
.info-card h2 { font-size: 1.7rem; margin-bottom: .3em; }
.info-card address { color: var(--coal-100); margin-bottom: 1.4rem; }
.contact-list { display: grid; gap: .8rem; }
.contact-list li { display: grid; grid-template-columns: 1.6rem 5rem 1fr; gap: .6rem; align-items: center; }
.contact-list .icon { color: var(--orange); }
.contact-list span { color: var(--coal-300); font-size: .92rem; }
.contact-list a { color: #fff; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--orange); }
.map { margin: 1.6rem 0 0; }
.map picture { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.map figcaption { margin-top: .5rem; font-size: .82rem; }
.map-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.2rem; }

.form-card { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border-top: 9px solid var(--orange); }
.form-card h2 { font-size: 1.7rem; margin-bottom: .3em; }
.form-card > p { color: var(--muted); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
label { font-weight: 600; font-size: .98rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .75rem .9rem; background: #fff;
  border: 1.5px solid var(--coal-300); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 131, 34, .35); }
textarea { resize: vertical; min-height: 9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-weight: 400; margin-bottom: 1.4rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; accent-color: var(--red); }
.form-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Fuß ---------- */
.site-footer { position: relative; background: var(--coal-900); color: var(--coal-300); font-size: 1rem; }
.site-footer .stripes { bottom: auto; top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .8fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.footer-brand img { width: 190px; height: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 20rem; }
.site-footer h2 { font-family: var(--body); font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.site-footer a { color: var(--coal-100); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer li { margin-bottom: .35rem; }
.site-footer address { margin-bottom: 1em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .service, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 620px; }
  .service:nth-child(even) .service-text { order: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-grid li { padding: 1.8rem 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: auto 1fr; column-gap: 1.2rem; }
  .facts-grid li:first-child { border-top: 0; }
  .facts-grid .icon { grid-row: span 2; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .frame-pic::before { inset: .8rem -.6rem -.8rem .8rem; }
  .timeline li:nth-child(2) { margin-left: 0; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 180px; }
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .4rem; min-height: 0; }
  .brand img { height: 58px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { justify-content: space-between; gap: 0; }
  .nav a { padding: .55rem .25rem .7rem; font-size: 1rem; }
  .nav a::after { left: .25rem; right: .25rem; }
  .jump { top: 110px; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .shots-flow { --row: 160px; gap: .6rem; }
  .shot-cap { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .cards, .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-call span { display: none; }
  .btn-call { padding: .75rem; }
  .nav a { font-size: .95rem; }
  .hero-badge { right: 0; top: -1.8rem; width: 6.6rem; font-size: .72rem; }
  .hero-badge strong { font-size: 1.7rem; }
  .hero-media { margin-top: 1.8rem; }
  .eyebrow { font-size: .84rem; letter-spacing: .12em; }
  .eyebrow::before { width: 1.5rem; }
  .lead { font-size: 1.12rem; }
  .hero-actions .btn, .cta-actions .btn, .jobs-teaser .btn { flex: 1 1 100%; }
  .contact-list li { grid-template-columns: 1.6rem 1fr; }
  .contact-list span { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 4.5rem; }
}

/* ---------- Animationen ----------
   Grundzustand ist immer „sichtbar“. Versteckt wird nur, wenn site.js läuft
   (html.js) – und nie bei „Bewegung reduzieren“. Es werden translate/scale
   animiert (nicht transform), damit Hover-Effekte danach weiter funktionieren. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: no-preference) {
  /* Start: Wörter der Überschrift nacheinander, dann Text, Buttons, Pinselstreifen */
  .hero .eyebrow, .hero .lead, .hero-actions, .page-head .eyebrow, .page-head h1, .page-head .lead {
    animation: rise .8s var(--ease) backwards;
  }
  .hero h1 .w { animation: word .8s var(--ease) backwards; }
  .hero h1 .w:nth-child(1) { animation-delay: .1s; }
  .hero h1 .w:nth-child(2) { animation-delay: .2s; }
  .hero h1 .w:nth-child(3) { animation-delay: .32s; }
  .hero h1 .w:nth-child(4) { animation-delay: .44s; }
  .hero h1 .w:nth-child(5) { animation-delay: .52s; }
  .hero h1 .w:nth-child(6) { animation-delay: .6s; }
  .hero .lead { animation-delay: .75s; }
  .hero-actions { animation-delay: .9s; }
  .page-head h1 { animation-delay: .1s; }
  .page-head .lead { animation-delay: .22s; }
  /* Die drei Streifen werden von links „gestrichen“ */
  .hero .stripes i, .page-head .stripes i { animation: paint 1.5s var(--ease) backwards; }
  .hero .stripes i:nth-child(1), .page-head .stripes i:nth-child(1) { animation-delay: .5s; }
  .hero .stripes i:nth-child(2), .page-head .stripes i:nth-child(2) { animation-delay: .68s; }
  .hero .stripes i:nth-child(3), .page-head .stripes i:nth-child(3) { animation-delay: .86s; }
  .hero-main { animation: wipe 1.2s .25s var(--ease) backwards; }
  .hero-main img { animation: kenburns 16s ease-out forwards; }
  .hero-side { animation: pop .8s .8s var(--ease) backwards; }
  .hero-badge { animation: pop .7s 1.1s var(--ease) backwards, float 6s 2s ease-in-out infinite; }

  /* Beim Scrollen (site.js setzt .in, --d staffelt gleichzeitig Erscheinendes) */
  .js .rv:not(.in), .js .cards > :not(.in), .js .shots > :not(.in) { opacity: 0; }
  .js .rv.in, .js .cards > .in, .js .shots > .in {
    animation: rise .8s var(--d, 0ms) var(--ease) backwards;
  }
  /* Fotos: erst läuft eine Farbfläche ins Bild, dann gibt sie das Foto frei */
  .js .rv-img picture { position: relative; }
  .js .rv-img picture::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--orange); translate: 101% 0;
  }
  .js .rv-img:nth-of-type(even) picture::after { background: var(--indigo-bright); }
  .js .rv-img:not(.in) picture { clip-path: inset(0 100% 0 0); }
  .js .rv-img:not(.in) picture::after { translate: 0 0; }
  .js .rv-img.in picture { animation: wipe .7s var(--d, 0ms) var(--ease) backwards; }
  .js .rv-img.in picture::after { animation: uncover .8s calc(var(--d, 0ms) + .45s) var(--ease) backwards; }
  .js .rv-img.in img { animation: settle 1.7s var(--d, 0ms) var(--ease) backwards; }
  .js .rv-img:not(.in) .frame-pic::before, .js .rv-img:not(.in) figcaption { opacity: 0; }
  .js .rv-img.in .frame-pic::before { animation: frame .9s calc(var(--d, 0ms) + .8s) var(--ease) backwards; }
  .js .rv-img.in figcaption { animation: rise .7s calc(var(--d, 0ms) + .9s) var(--ease) backwards; }
  .js .section-head:not(.in) .eyebrow::before { scale: 0 1; }
  .js .section-head .eyebrow::before { transform-origin: left; }
  .js .section-head.in .eyebrow::before { animation: paint .9s calc(var(--d, 0ms) + .3s) var(--ease) backwards; }

  /* Lesefortschritt unter der Kopfzeile (Chrome, Edge, Safari 26+) */
  @supports (animation-timeline: scroll()) {
    .progress {
      background: linear-gradient(90deg, var(--red-bright), var(--orange), var(--indigo-bright));
      transform-origin: left; scale: 0 1;
      animation: progress linear both; animation-timeline: scroll(root);
    }
  }
}

@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes word { from { opacity: 0; translate: 0 .5em; rotate: 3deg; } }
@keyframes paint { from { scale: 0 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes uncover { from { translate: 0 0; } to { translate: 101% 0; } }
@keyframes settle { from { scale: 1.12; } }
@keyframes kenburns { from { scale: 1.1; } to { scale: 1; } }
@keyframes pop { from { opacity: 0; scale: .8; translate: 0 20px; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes frame { from { opacity: 0; translate: -1.1rem -1.1rem; } }
@keyframes progress { to { scale: 1 1; } }

@media print {
  .site-header, .jump, .cta-band, .progress, .btn, .stripes { display: none !important; }
  .js .rv, .js .rv-img picture, .js .cards > *, .js .shots > * { opacity: 1 !important; clip-path: none !important; }
  .js .rv-img picture::after { display: none; }
  .hero, .page-head, .section-dark, .facts { background: none; color: #000; }
}
