/* WKS Wohnraum- & Gartengestaltung SL
   Gestaltungsidee: deutsche Norm trifft mallorquinischen Stein.
   Farben nach RAL benannt, Sand und Olive aus dem Marès-Stein der Insel.
   Leitmotiv: das Dach aus dem Logo und die Maßkette aus dem Bauplan. */
@font-face {
  font-family: "Archivo";
  src: url("vendor/archivo.ttf") format("truetype");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  --kalk: #EFEEEA;          /* Kalkputz, Grundfläche */
  --kalk-tief: #E3E0D8;     /* Fuge, Trennflächen */
  --ral7016: #383E42;       /* Anthrazitgrau, Schrift und dunkle Flächen */
  --ral7016-tief: #2A2F33;
  --mares: #CDBB9C;         /* Marès-Sandstein */
  --olive: #6B7257;         /* Olivenlaub, Akzent für Interaktion */
  --linie: rgba(56, 62, 66, .18);
  --text: var(--ral7016);
  --text-leise: #5E6468;
  --grund: var(--kalk);
  --flaeche-dunkel: var(--ral7016);
  --auf-dunkel: #EFEEEA;

  --rand: clamp(16px, 4vw, 56px);
  --spalte: min(1320px, 100% - 2 * var(--rand));
  --ease-ein: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-weg: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #24282B;
    --text: #E8E6E0;
    --text-leise: #A9ADAF;
    --kalk-tief: #2F3437;
    --linie: rgba(232, 230, 224, .16);
    --flaeche-dunkel: #1B1E20;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #24282B; --text: #E8E6E0; --text-leise: #A9ADAF; --kalk-tief: #2F3437;
  --linie: rgba(232, 230, 224, .16); --flaeche-dunkel: #1B1E20; color-scheme: dark;
}

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

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-weg) both seite-raus; }
::view-transition-new(root) { animation: 420ms var(--ease-ein) 80ms both seite-rein; }
@keyframes seite-raus { to { opacity: 0; transform: translateY(-24px); } }
@keyframes seite-rein { from { opacity: 0; transform: translateY(32px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--flaeche-dunkel); } /* Überscrollen unten zeigt die Fußfarbe */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  font-weight: 380;
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--mares); color: var(--ral7016); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.spalte { width: var(--spalte); margin-inline: auto; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Schrift ---------- */
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.4vw, 7.6rem); font-variation-settings: "wdth" 78; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.6rem); font-variation-settings: "wdth" 82; }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.6rem); font-weight: 650; letter-spacing: -0.01em; font-variation-settings: "wdth" 92; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.5; color: var(--text-leise); font-weight: 340; }

/* Dachzeichen aus dem Logo als Kennzeichnung über Überschriften */
.dach { display: inline-flex; align-items: center; gap: .75em; font-size: 1.05rem; font-weight: 400; color: var(--text-leise); margin-bottom: 1.1rem; }
.dach .marke-pfeil { width: 22px; height: 22px; background: var(--text); }
.dunkel .dach .marke-pfeil, .schluss .dach .marke-pfeil { background: var(--auf-dunkel); }

/* Zeilen- und Wortmasken für Textauftritte */
.wort { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.wort > span { display: inline-block; will-change: transform; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--rand);
  transition: transform 400ms var(--ease-weg), background-color 300ms, color 300ms, padding 300ms;
}
.kopf.fest { background: color-mix(in srgb, var(--grund) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; }
.kopf.weg { transform: translateY(-110%); }
.kopf.hell:not(.fest) { color: #F4F2EE; }
.kopf.auf-dunkel { color: var(--auf-dunkel); }
.kopf.auf-dunkel.fest { background: color-mix(in srgb, var(--flaeche-dunkel) 86%, transparent); }
.logo { display: block; text-decoration: none; color: inherit; line-height: 0; }
/* Originallogo als Maske: nimmt die Textfarbe an, auf dunklen Flächen also hell */
.logo-bild { display: block; height: clamp(34px, 3.4vw, 44px); aspect-ratio: 1939 / 358; background: currentColor; -webkit-mask: url("../img/logo.png") center / contain no-repeat; mask: url("../img/logo.png") center / contain no-repeat; }
.marke-pfeil, .marke-raute { display: inline-block; flex: none; background: currentColor; }
.marke-pfeil { width: 18px; height: 18px; -webkit-mask: url("../img/pfeil.png") center / contain no-repeat; mask: url("../img/pfeil.png") center / contain no-repeat; }
.marke-raute { width: .42em; height: .42em; -webkit-mask: url("../img/raute.png") center / contain no-repeat; mask: url("../img/raute.png") center / contain no-repeat; }

.kopf-rechts { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.kopf-tel { font-size: .95rem; font-weight: 500; text-decoration: none; display: none; }
@media (min-width: 760px) { .kopf-tel { display: inline; } }
/* Sprachwahl: DE · EN · ES – im Kopf ab Tablet, auf dem Handy im Menü */
.sprachen { display: flex; gap: 2px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.sprachen a { text-decoration: none; padding: 6px 7px; opacity: .55; transition: opacity 200ms; }
.sprachen a:hover, .sprachen a[aria-current] { opacity: 1; }
.sprachen a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.kopf .sprachen { display: none; }
@media (min-width: 600px) { .kopf .sprachen { display: flex; } }
.sprachen.im-menue { flex-basis: 100%; margin-top: 10px; margin-left: -7px; font-size: .95rem; }
.sprachen.im-fuss { margin-left: auto; margin-right: 18px; }
.menue-knopf {
  appearance: none; border: 0; cursor: pointer; color: inherit; background: none;
  display: inline-flex; align-items: center; gap: 12px; font: 600 1rem/1 "Archivo", sans-serif; padding: 10px 0;
}
.menue-knopf .striche { width: 34px; height: 14px; position: relative; }
.menue-knopf .striche::before, .menue-knopf .striche::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2.5px; background: currentColor;
  transition: transform 320ms var(--ease-weg), width 320ms var(--ease-weg);
}
.menue-knopf .striche::before { top: 1px; }
.menue-knopf .striche::after { bottom: 1px; width: 70%; left: auto; }
.menue-knopf:hover .striche::after { width: 100%; }
.menue-offen .menue-knopf .striche::before { transform: translateY(5px) rotate(45deg); }
.menue-offen .menue-knopf .striche::after { width: 100%; transform: translateY(-5.5px) rotate(-45deg); }
.menue-offen .kopf { color: var(--auf-dunkel); background: transparent; backdrop-filter: none; }

/* ---------- Vollbild-Menü ---------- */
.menue {
  position: fixed; inset: 0; z-index: 40; background: var(--flaeche-dunkel); color: var(--auf-dunkel);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 620ms var(--ease-weg), visibility 0s linear 620ms;
  display: grid; grid-template-columns: 1fr; align-items: center;
  padding: 110px var(--rand) 40px;
  overflow-y: auto;
}
.menue-offen .menue { clip-path: inset(0); visibility: visible; transition-delay: 0s; }
.menue-offen body, body.menue-offen { overflow: hidden; }
.menue nav ul { list-style: none; margin: 0; padding: 0; }
/* Hover ohne Breitenwechsel: Sandfarbe läuft von links durch die Schrift.
   Nur Hintergrund-Position und transform werden animiert, der Text bricht nie neu um. */
.fuell {
  /* Zwei Ebenen statt einer harten Farbkante: unten die Textfarbe, darüber wächst die Sandfarbe von links.
     So gibt es keine Naht, die als dünner Strich im Wort stehen bleiben könnte. */
  background: linear-gradient(var(--mares), var(--mares)) 0 0 / 0% 100% no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  /* Rand, damit die Füllung auch Buchstabenüberhänge am Wortende (t, f, y) mit abdeckt */
  padding-inline: .08em; margin-inline: -.08em;
  transition: background-size 700ms var(--ease-ein);
}
a:hover .fuell, a:focus-visible .fuell, a.fuell:hover, a.fuell:focus-visible { background-size: 100% 100%, 100% 100%; }

.menue nav a {
  display: inline-block; text-decoration: none; font-weight: 750; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.1; white-space: nowrap;
  font-variation-settings: "wdth" 78;
  color: color-mix(in srgb, var(--auf-dunkel) 92%, transparent);
}
.menue nav a > span { display: inline-block; transition: transform 600ms var(--ease-ein); }
/* Der Fokusring wird vom Menüpunkt (overflow: clip) bis auf eine Linie am rechten Rand abgeschnitten.
   Darum im Menü kein Ring: Fokus zeigt sich durch Farbe und Verschiebung des Wortes. */
.menue nav a:focus-visible { outline: none; }
.menue nav a:hover > span, .menue nav a:focus-visible > span { transform: translateX(18px); }
.menue nav a[aria-current="page"] { color: var(--mares); }
.menue nav li { overflow: clip; padding-right: 24px; }
.menue nav li > a { transform: translateY(105%); transition: transform 700ms var(--ease-ein); }
.menue-offen .menue nav li > a { transform: none; transition-delay: calc(120ms + var(--i, 0) * 45ms); }
.menue-vorschau { display: none; }
@media (min-width: 1000px) {
  .menue { grid-template-columns: 1.15fr .85fr; gap: 6vw; }
  .menue-vorschau { display: block; position: relative; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; border-radius: 50vw 50vw 0 0; }
  .menue-vorschau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 500ms, transform 900ms var(--ease-ein); }
  .menue-vorschau img.an { opacity: 1; transform: scale(1); }
}
.menue-fuss { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .98rem; color: #B9BDBF; }
.menue-fuss a { text-decoration: none; }
.menue-fuss a:hover { color: var(--mares); }

/* ---------- Startbild ---------- */
.start { position: relative; height: 100svh; min-height: 620px; }
.js-bewegung .start { height: 240svh; }
.start-buehne { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
.start-bild {
  position: absolute; inset: 0;
  /* Form als Einzelwerte: Safari verwirft beim Animieren des ganzen clip-path-Texts manchmal die runden
     Ecken (Bild springt kurz ins Viereck). So steht die Rundung immer in der Regel selbst. */
  --o: 30%; --r: 6%; --u: 6%; --l: 52%; --ru: 40vw;
  clip-path: inset(var(--o) var(--r) var(--u) var(--l) round var(--ru) var(--ru) 0 0);
}
.start-bild img { width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 60%; }
.start-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,24,.0) 30%, rgba(20,22,24,.55)); opacity: var(--abdunkeln, 0); }
.start-text { position: absolute; left: var(--rand); right: var(--rand); top: clamp(110px, 18vh, 180px); }
.start-text h1 { max-width: 11ch; }
.start-text .lead { margin-top: 1.6rem; max-width: 34ch; }
.start-zweit {
  position: absolute; left: var(--rand); right: var(--rand); bottom: clamp(36px, 8vh, 90px);
  color: #F4F2EE; display: grid; gap: 1.4rem; opacity: 0;
}
.start-zweit p { font-size: clamp(1.5rem, 3.2vw, 3rem); line-height: 1.12; font-weight: 650; letter-spacing: -0.015em; max-width: 24ch; font-variation-settings: "wdth" 86; }
.scroll-hinweis { position: absolute; left: var(--rand); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-leise); }
.scroll-hinweis i { display: block; width: 1px; height: 46px; background: var(--linie); position: relative; overflow: hidden; }
.scroll-hinweis i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: tropfen 2.4s var(--ease-weg) infinite; }
@keyframes tropfen { to { top: 100%; } }
/* Handy: Bogen öffnet sich wie am Desktop. Die Höhe wird einmal beim Laden in --vhf festgelegt,
   damit die ein- und ausfahrende Adressleiste von iOS nichts verschiebt. */
@media (max-width: 760px) {
  .start, .start-buehne { min-height: 560px; }
  .js-bewegung .start { height: calc(var(--vhf, 1vh) * 230); }
  .js-bewegung .start-buehne { height: calc(var(--vhf, 1vh) * 100); }
  .start-bild { --o: 56%; --r: 6%; --u: 4%; --l: 6%; --ru: 46vw; }
  .start-text { top: 104px; }
  .start-zweit p { font-size: 1.4rem; }
  .scroll-hinweis { display: none; }
}
/* ohne Bewegung: Bild ruhig unter der Überschrift */
@media (prefers-reduced-motion: reduce) { .start-zweit { opacity: 1; } }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(90px, 14vw, 200px); }
.abschnitt.eng { padding-block: clamp(60px, 9vw, 120px); }
.dunkel { background: var(--flaeche-dunkel); color: var(--auf-dunkel); --text-leise: #B3B7B9; --linie: rgba(239,238,234,.18); }

/* Satz, der sich beim Scrollen Wort für Wort füllt */
.aussage { font-size: clamp(1.7rem, 3.9vw, 3.9rem); line-height: 1.12; font-weight: 650; letter-spacing: -0.018em; font-variation-settings: "wdth" 88; max-width: 24ch; text-wrap: balance; }
.aussage .w { opacity: var(--o, 1); transition: opacity 120ms linear; }

/* Maßkette mit Kennzahlen */
.masskette { margin-top: clamp(60px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.masskette-linie { position: absolute; left: 0; right: 0; top: 0; height: 22px; color: var(--text); }
.masskette-linie svg { width: 100%; height: 22px; display: block; overflow: visible; }
.masskette-linie line { stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mass { padding: 46px 18px 0 0; }
.mass b { display: block; font-size: clamp(2.8rem, 6vw, 6rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "wdth" 70; font-feature-settings: "tnum"; }
.mass b .vor { font-size: .32em; font-weight: 500; letter-spacing: 0; margin-right: .25em; font-variation-settings: "wdth" 100; vertical-align: .9em; }
.mass b [data-zahl] { display: inline; margin: 0; color: inherit; font-size: inherit; max-width: none; }
.mass > span { display: block; margin-top: .6rem; color: var(--text-leise); font-size: .98rem; max-width: 18ch; }
@media (max-width: 760px) {
  .masskette { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .masskette-linie { display: none; }
  .mass { padding-top: 18px; border-top: 1px solid var(--linie); }
}

/* Leistungen: waagerechte Fahrt */
.fahrt-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.fahrt-kopf p { max-width: 40ch; }
.fahrt { position: relative; }
.fahrt-spur { display: grid; gap: 22px; padding-inline: var(--rand); }
.karte {
  position: relative; display: block; text-decoration: none; color: inherit;
}
.karte-bild { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--kalk-tief); }
.karte-bild img { position: absolute; top: -8%; left: -9%; width: 118%; max-width: none; height: 116%; object-fit: cover; transition: transform 1200ms var(--ease-ein); }
.karte:hover .karte-bild img { transform: scale(1.06); }
.karte-text { padding-top: 18px; display: grid; gap: 6px; }
.karte-text h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.karte-text h3::after { content: ""; width: 26px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--pfeil) center / contain no-repeat; mask: var(--pfeil) center / contain no-repeat; transition: transform 300ms var(--ease-ein); }
.karte:hover h3::after { transform: translateX(6px); }
.karte-text p { color: var(--text-leise); font-size: .98rem; }
:root { --pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Cpath d='M0 6h23M18 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E"); }
@media (min-width: 900px) {
  .js-bewegung .fahrt { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .js-bewegung .fahrt-spur { display: flex; gap: 2.2vw; width: max-content; }
  .js-bewegung .karte { width: clamp(300px, 27vw, 420px); }
  .js-bewegung .karte:nth-child(even) { margin-top: 9vh; }
  .fahrt-spur:not(.js-bewegung *) { grid-template-columns: repeat(3, 1fr); width: var(--spalte); margin-inline: auto; padding-inline: 0; }
}
@media (min-width: 560px) and (max-width: 899px) { .fahrt-spur { grid-template-columns: 1fr 1fr; } }
.fahrt-fortschritt { width: var(--spalte); margin: 34px auto 0; height: 1px; background: var(--linie); position: relative; display: none; }
.fahrt-fortschritt i { position: absolute; inset: 0 auto 0 0; width: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) { .js-bewegung .fahrt-fortschritt { display: block; } }

/* Laufband mit Materialien */
.band { overflow: hidden; border-block: 1px solid var(--linie); padding-block: 26px; }
.band-spur { display: flex; width: max-content; animation: band 48s linear infinite; }
.band-spur span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 300; letter-spacing: -0.02em; white-space: nowrap; font-variation-settings: "wdth" 110; }
.band-spur .marke-raute { background: var(--mares); }
@keyframes band { to { transform: translateX(-50%); } }

/* Ablauf in vier Schritten */
.ablauf { display: grid; gap: clamp(40px, 6vw, 100px); }
@media (min-width: 900px) {
  .ablauf { grid-template-columns: 5fr 7fr; }
  .ablauf-kopf { position: sticky; top: 18vh; align-self: start; }
}
.schritte { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: clamp(48px, 9vh, 110px); }
.schritte::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--linie); }
.schritte-fuellung { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--text); transform-origin: top; transform: scaleY(var(--f, 1)); }
.schritt { position: relative; }
.schritt::before { content: ""; position: absolute; left: -34px; top: .55em; width: 13px; height: 13px; border-radius: 50%; background: var(--grund); border: 1.4px solid var(--text); transition: background 300ms; }
.schritt.an::before { background: var(--text); }
.schritt-nr { font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .9; font-weight: 200; color: var(--text-leise); font-variation-settings: "wdth" 70; font-feature-settings: "tnum"; display: block; margin-bottom: .6rem; transition: color 400ms, font-weight 400ms; }
.schritt.an .schritt-nr { color: var(--text); font-weight: 700; }
.schritt h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: .6rem; }
.schritt p { color: var(--text-leise); }

/* Bild-Text-Paar */
.paar { display: grid; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .paar { grid-template-columns: 1fr 1fr; } .paar.gedreht > :first-child { order: 2; } }
.rahmen { position: relative; overflow: hidden; background: var(--kalk-tief); }
.rahmen img, .rahmen video { width: 100%; height: 118%; object-fit: cover; position: absolute; inset: -9% 0 auto 0; display: block; }
.rahmen.hoch { aspect-ratio: 4 / 5; }
.rahmen.quer { aspect-ratio: 3 / 2; }
.rahmen.bogen { border-radius: 40vw 40vw 0 0; }
@media (min-width: 900px) { .rahmen.bogen { border-radius: 22vw 22vw 0 0; } }

/* Leistungslisten */
.liste { list-style: none; margin: 2rem 0 0; padding: 0; }
.liste li { position: relative; padding: 1.05rem 0 1.05rem 2.4rem; font-size: clamp(1.08rem, 1.3vw, 1.3rem); }
.liste li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 15px; height: 15px; translate: 0 -50%; background: currentColor; -webkit-mask: url("../img/raute.png") center / contain no-repeat; mask: url("../img/raute.png") center / contain no-repeat; }
.liste li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--linie); transform-origin: left; transform: scaleX(var(--s, 1)); }
:root { --dachmaske: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 14'%3E%3Cpath d='M2 12 18 3l16 9' fill='none' stroke='black' stroke-width='3.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Seitenkopf der Leistungsseiten */
.seitenkopf { padding-top: clamp(130px, 20vh, 210px); }
.seitenkopf h1 { max-width: 14ch; }
.seitenkopf .lead { margin-top: 1.8rem; }
.seitenkopf-zeile { display: grid; gap: 30px; align-items: end; }
@media (min-width: 900px) { .seitenkopf-zeile { grid-template-columns: 1.4fr 1fr; } }
.breitbild { margin-top: clamp(50px, 7vw, 100px); height: clamp(380px, 82vh, 900px); position: relative; overflow: hidden; }
.breitbild img { position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; }

/* Streifen wie auf dem Firmenwagen: Hellgrau, weiße Linie, Anthrazit – Übergang in den dunklen Fuß */
.streifen { position: relative; height: clamp(70px, 10vw, 160px); overflow: hidden; margin-top: clamp(40px, 6vw, 90px); }
.streifen i { position: absolute; inset: 0; display: block; will-change: transform; }
.streifen .s1 { background: #C4C7C8; clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
.streifen .s2 { background: var(--grund); clip-path: polygon(55% 0, 58.5% 0, 14% 100%, 9% 100%); }
.streifen .s3 { background: var(--flaeche-dunkel); clip-path: polygon(58.5% 0, 100% 0, 100% 100%, 14% 100%); }
/* Übergänge zwischen hellen und dunklen Abschnitten: hinein (hell → dunkel) und gespiegelt hinaus (dunkel → hell) */
.streifen.uebergang { margin-top: 0; background: var(--grund); }
.streifen.rein { margin-bottom: -1px; } /* keine Haarlinie zur dunklen Fläche */
.streifen.raus { transform: scale(-1, -1); margin-top: -1px; }
.streifen i { inset: -1px 0; }
.streifen.uebergang + .abschnitt.dunkel { padding-top: clamp(50px, 7vw, 110px); }
.abschnitt.dunkel:has(+ .streifen.raus) { padding-bottom: clamp(50px, 7vw, 110px); }
.schluss .dach { display: flex; }
/* Endet die Seite mit einem dunklen Abschnitt, läuft der Streifen über dunklem Grund */
main:has(> section.dunkel:last-child) > section.dunkel:last-child { padding-bottom: clamp(50px, 7vw, 100px); }

/* Linien-Symbole wie auf dem Firmenwagen */
.symbol svg, .wagen-leistungen svg, .mit-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.karte-text .symbol { display: block; color: var(--text-leise); margin-bottom: 2px; }
.wagen-leistungen { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 14px; }
.wagen-leistungen li { display: flex; align-items: center; gap: 14px; font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.mit-symbol svg { width: 20px; height: 20px; }
.mit-symbol::after { display: none; }

/* Über uns: Inhaber mit Porträt */
.inhaber { padding-top: clamp(120px, 17vh, 190px); padding-bottom: clamp(80px, 11vw, 160px); }
.inhaber-raster { display: grid; gap: clamp(40px, 6vw, 100px); align-items: end; }
@media (min-width: 900px) { .inhaber-raster { grid-template-columns: 1.05fr .95fr; } }
.inhaber h1 { font-size: clamp(3.2rem, 8.6vw, 8.8rem); }
.inhaber-rolle { margin-top: .9rem; font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--text-leise); }
.inhaber-text .lead { margin-top: clamp(28px, 4vw, 50px); max-width: 44ch; }
.inhaber-text p:not(.lead):not(.inhaber-rolle) { margin-top: 1rem; color: var(--text-leise); max-width: 50ch; }
.inhaber-bild { margin: 0; }
.inhaber-bild .rahmen { aspect-ratio: 4 / 5; }
.inhaber-bild .rahmen img { object-position: 50% 30%; }
.inhaber-bild figcaption { margin-top: 14px; font-size: .92rem; color: var(--text-leise); }
@media (max-width: 899px) { .inhaber-bild { order: -1; max-width: 520px; } }
.masskette.drei { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .masskette.drei { grid-template-columns: 1fr 1fr; } }

/* Drei Felder (Innenausbau) */
.felder { display: grid; gap: 1px; background: var(--linie); border-block: 1px solid var(--linie); margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 760px) { .felder { grid-template-columns: repeat(3, 1fr); } }
.feld { background: var(--grund); padding: clamp(24px, 3vw, 44px) clamp(0px, 2vw, 32px) clamp(24px, 3vw, 44px) 0; }
.dunkel .feld { background: var(--flaeche-dunkel); }
.feld h3 { margin-bottom: .7rem; }
.feld p { color: var(--text-leise); }

/* Nächste Leistung */
.weiter { display: block; text-decoration: none; color: inherit; border-top: 1px solid var(--linie); padding-block: clamp(50px, 8vw, 110px); position: relative; overflow: hidden; }
.weiter small { display: block; color: var(--text-leise); font-size: 1rem; margin-bottom: .8rem; }
.weiter strong { display: inline-block; font-size: clamp(2.6rem, 8.5vw, 9rem); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "wdth" 72; transition: transform 800ms var(--ease-ein); padding-bottom: .05em; }
.weiter:hover strong, .weiter:focus-visible strong { transform: translateX(clamp(10px, 2vw, 30px)); }
.weiter-bild { position: absolute; right: var(--rand); top: 50%; width: clamp(160px, 20vw, 300px); aspect-ratio: 4/5; translate: 0 -50%; clip-path: inset(100% 0 0 0); transition: clip-path 700ms var(--ease-ein); pointer-events: none; }
.weiter-bild img { width: 100%; height: 100%; object-fit: cover; }
.weiter:hover .weiter-bild { clip-path: inset(0); }
@media (hover: none) { .weiter-bild { display: none; } }
/* Mit Maus: der Titel bricht vor dem Bild um und läuft nie darunter */
@media (hover: hover) { .weiter strong { max-width: calc(100% - clamp(160px, 20vw, 300px) - var(--rand) - 40px); text-wrap: balance; } }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer;
  font: 600 1.02rem/1 "Archivo", sans-serif; color: var(--grund); background: var(--text);
  padding: 19px 28px; border: 0; border-radius: 0;
  transition: transform 100ms ease-out, background-color 200ms;
}
.knopf:hover { background: var(--olive); color: #F4F2EE; }
.knopf:active { transform: scale(.97); }
.knopf.hell { background: var(--auf-dunkel); color: var(--ral7016); }
.knopf.hell:hover { background: var(--mares); }
.knopf.rand { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.4px currentColor; }
.knopf.rand:hover { background: var(--text); color: var(--grund); }
.knopf::after { content: ""; width: 22px; height: 10px; background: currentColor; -webkit-mask: var(--pfeil) center / contain no-repeat; mask: var(--pfeil) center / contain no-repeat; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* Werte (Über uns) */
.werte { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--linie); }
.wert { display: grid; gap: 10px 40px; padding-block: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--linie); }
@media (min-width: 900px) { .wert { grid-template-columns: 1fr 1.3fr; align-items: baseline; } }
.wert h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 750; font-variation-settings: "wdth" 84; }
.wert p { color: var(--text-leise); }

/* Abschluss mit Kontakt */
.schluss { background: var(--flaeche-dunkel); color: var(--auf-dunkel); padding-top: clamp(90px, 13vw, 180px); overflow: hidden; --text-leise: #B3B7B9; --linie: rgba(239,238,234,.18); }
.schluss-titel { display: inline-block; text-decoration: none; color: inherit; font-weight: 800; letter-spacing: -0.035em; line-height: .95; font-size: clamp(3.2rem, 11.5vw, 12.5rem); font-variation-settings: "wdth" 66; padding-bottom: .06em; word-spacing: .22em; }
.schluss-titel .fuell { transition-duration: 900ms; }
.schluss-raster { display: grid; gap: 34px; margin-top: clamp(50px, 7vw, 100px); padding-bottom: 50px; border-bottom: 1px solid var(--linie); }
@media (min-width: 760px) { .schluss-raster { grid-template-columns: 1.3fr 1fr 1fr; } }
.schluss-raster h4 { margin: 0 0 .8rem; font-size: .92rem; font-weight: 500; color: var(--text-leise); }
.schluss-raster a { text-decoration: none; }
.schluss-raster a:hover { color: var(--mares); }
.schluss-raster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fuss { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-block: 26px 34px; font-size: .9rem; color: var(--text-leise); }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--mares); }
/* Großes Logo im Fuß: vollständig, mit Rand, ohne Anschnitt */
.riesen-logo { line-height: 0; padding: clamp(30px, 5vw, 70px) var(--rand) clamp(28px, 4vw, 56px); }
.riesen-logo span { display: block; width: 100%; max-width: 1320px; margin-inline: auto; aspect-ratio: 1939 / 358; background: rgba(239,238,234,.09); -webkit-mask: url("../img/logo.png") center / contain no-repeat; mask: url("../img/logo.png") center / contain no-repeat; }

/* Kontakt: nur Telefon und E-Mail, groß und direkt anklickbar */
.kontakt-wege { margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--linie); }
.kontakt-weg { display: grid; grid-template-columns: 1fr; gap: 6px; padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; }
.kontakt-weg small { color: var(--text-leise); font-size: .95rem; }
.kontakt-weg b { font-size: clamp(1.9rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "wdth" 78; overflow-wrap: anywhere; justify-self: start; }
.kontakt-weg span { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--text-leise); }
.kontakt-weg span .marke-pfeil { width: 18px; height: 14px; background: currentColor; transition: transform 500ms var(--ease-ein); }
.kontakt-weg:hover span .marke-pfeil, .kontakt-weg:focus-visible span .marke-pfeil { transform: translateX(6px); }
@media (min-width: 900px) {
  .kontakt-weg { grid-template-columns: 180px 1fr auto; align-items: center; gap: 30px; }
}
.kontakt-ort { margin-top: clamp(36px, 5vw, 60px); }
.kontakt-ort small { display: block; color: var(--text-leise); font-size: .95rem; margin-bottom: .3rem; }

/* Rechtstexte */
.recht { padding-top: clamp(130px, 20vh, 200px); }
.recht h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: 2.4rem; }
.recht h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -0.01em; margin: 2.6rem 0 .8rem; font-variation-settings: "wdth" 95; }
.recht p, .recht li { color: var(--text-leise); max-width: 70ch; }
.recht p + p { margin-top: .9rem; }
.recht ul { padding-left: 1.2rem; }
.recht strong { color: var(--text); font-weight: 600; }
.offen { background: #F3E3A6; color: #4A3C00; padding: 1px 6px; font-weight: 500; }

/* Mauszeiger mit Bezeichnung über Bildern */
.zeiger { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--mares); color: var(--ral7016); display: grid; place-items: center; font-size: .82rem; font-weight: 600; transform: scale(0); transition: transform 260ms var(--ease-ein); }
.zeiger.an { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .zeiger { display: none; } }

/* Vorhang beim Laden */
.vorhang { position: fixed; inset: 0; z-index: 100; background: var(--ral7016); display: grid; place-items: center; color: #EFEEEA; pointer-events: none; }
.vorhang .logo-bild { height: auto; width: min(360px, 70vw); }
