/* Cassens Web: Der Würfel, aufgeklappt.
   Weißer Grund ist der Spalt zwischen den Flächen. Drei Flächentöne aus dem Logo,
   Gruppen entstehen nur durch Flächenton und weißen Spalt. */

@font-face {
  font-family: "Merriweather";
  src: url("/assets/fonts/merriweather-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem Würfel */
  --weiss: #ffffff;
  --grau: #d9d9d6;
  --anthrazit: #4d4d4d;
  --orange: #f17f1e;
  --orange-tief: #e2700f;
  --orange-schrift: #a9500e;
  --grau-tief: #c9c9c5; /* Hover-Fläche auf Hellgrau */
  --marker: #fbd7b5;
  --tinte: #232323;
  --tinte-hell: #f3f3f1;
  --feldrand: #767673;

  /* Schriften */
  --schrift-titel: "Merriweather", Georgia, "Times New Roman", serif;
  --schrift-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --groesse-h1: clamp(2.25rem, 1.15rem + 3.4vw, 4.125rem);
  --groesse-h2: clamp(1.875rem, 1.25rem + 2vw, 3.125rem);
  --groesse-h3: clamp(1.25rem, 1.08rem + 0.5vw, 1.625rem);
  --groesse-name: clamp(1.875rem, 1.2rem + 2.1vw, 3.25rem);
  --groesse-text: clamp(1.0625rem, 1.02rem + 0.15vw, 1.125rem);
  --groesse-gross: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  --groesse-klein: 0.9375rem;

  /* Maße */
  --rand: clamp(16px, 6.6vw, 96px);
  --rand-flaeche: clamp(8px, 1.6vw, 24px);
  --spalt: clamp(12px, 1.7vw, 24px);
  --spalte: 24px;
  --radius: 22px;
  --radius-klein: 14px;
  --inhalt-breite: 1248px;
  --abschnitt: clamp(96px, 11vw, 168px);
  --winkel: 36.87deg;

  /* Regler für den Einstieg (Phase 6) */
  --einstieg-oben: clamp(116px, 16vh, 176px);
  --einstieg-unten: clamp(28px, 4vh, 48px);
  --einstieg-abstand: clamp(22px, 3.2vh, 36px);
  --wuerfel-breite: 460px;

  /* Bewegung */
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
  --aus-weich: cubic-bezier(0.33, 1, 0.68, 1);
}

/* Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 104px;
  scrollbar-color: var(--anthrazit) var(--weiss);
  background: var(--weiss);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: var(--groesse-text);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--orange-schrift);
}

::selection { background: var(--marker); color: var(--tinte); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h2 { font-size: var(--groesse-h2); }
h3 { font-size: var(--groesse-h3); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.nur-vorlesen {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Hält Wörter mit Bindestrich und den letzten Linkwortlaut samt Pfeil in einer Zeile */
.zusammen { white-space: nowrap; }

.sprung {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--anthrazit);
  color: var(--weiss);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--aus);
}
.sprung:focus-visible { transform: none; }

/* Seite und Raster */

.seite {
  position: relative;
  z-index: 1;
  background: var(--weiss);
  min-height: 100vh;
  overflow-x: clip;
  display: flow-root;
}
.menue-fixiert body { background: var(--anthrazit); }

.rahmen {
  width: min(100% - 2 * var(--rand), var(--inhalt-breite));
  margin-inline: auto;
}
.raster {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--spalte);
}
.abschnitt { padding-top: var(--abschnitt); }

/* Knöpfe und Textlinks */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.7em 1.45em;
  border: 0;
  border-radius: 999px;
  font-family: var(--schrift-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.35s var(--aus);
}
.knopf:hover { transform: translateY(-2px); }
.knopf:active { transform: translateY(0); }
.knopf--orange { background: var(--orange); color: var(--tinte); }
.knopf--orange:hover { background: var(--orange-tief); }
.knopf--anthrazit { background: var(--anthrazit); color: var(--weiss); }
.knopf--anthrazit:hover { background: var(--tinte); }
.knopf--gross { min-height: 60px; padding: 0.8em 1.75em; font-size: 1.125rem; }
.knopf[disabled] { cursor: progress; opacity: 0.7; transform: none; }

.textlink {
  display: inline;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.32em;
  transition: text-decoration-thickness 0.2s, text-underline-offset 0.2s;
}
.textlink:hover { text-decoration-thickness: 4px; text-underline-offset: 0.26em; }
.textlink .icon { display: inline-block; vertical-align: -0.24em; margin-left: 0.4em; transition: transform 0.35s var(--aus); }
.textlink:hover .icon { transform: translateX(3px); }

/* Marker: schräge Farbfläche wie eine Würfelfläche */

.marker {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(104deg, transparent 0.32em, var(--marker) 0.32em, var(--marker) calc(100% - 0.32em), transparent calc(100% - 0.32em));
  background-repeat: no-repeat;
  background-size: 100% 74%;
  background-position: 0 72%;
  padding: 0 0.22em;
  margin: 0 -0.22em; /* Innenabstand ausgleichen, damit kein zusätzlicher Wortabstand entsteht */
  -webkit-box-decoration-break: slice;
  box-decoration-break: slice;
}
/* Leuchtstift im Einstieg: erst „Website“, dann „nichts Technisches kümmern müssen“ */
@media (prefers-reduced-motion: no-preference) {
  .einstieg__unterzeile .marker { animation: leuchtstift 0.5s cubic-bezier(0.55, 0.1, 0.25, 1) 1.15s both; }
  .einstieg__unterzeile .marker:nth-of-type(2) { animation-duration: 1.05s; animation-delay: 1.8s; }
}
@keyframes leuchtstift {
  from { background-size: 0% 74%; }
  to { background-size: 100% 74%; }
}

/* Kopfleiste: Milchglas über volle Breite, zieht sich beim Scrollen zur Pille zusammen */

.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding: 14px var(--rand-flaeche) 0;
  pointer-events: none;
}
.kopf__leiste {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: calc(var(--inhalt-breite) + 48px);
  margin-inline: auto;
  padding: 0 12px 0 24px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: max-width 0.7s var(--aus), height 0.7s var(--aus), background-color 0.5s, padding 0.7s var(--aus);
}
.ist-gescrollt .kopf__leiste {
  max-width: 940px;
  height: 60px;
  padding: 0 8px 0 18px;
  background: rgb(217 217 214 / 0.66);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.marke__wuerfel { width: 26px; height: 33px; }
.marke__name {
  font-family: var(--schrift-titel);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.kopf__nav { margin-left: auto; }
.kopf__nav ul { display: flex; gap: 6px; }
.kopf__nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: var(--groesse-klein);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.kopf__nav a { position: relative; }
.kopf__nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--aus);
}
.kopf__nav a:hover::after,
.kopf__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.kopf__nav a.ist-aktiv { background: var(--marker); }
.kopf__aktion { min-height: 46px; padding: 0.6em 1.3em; font-size: var(--groesse-klein); white-space: nowrap; }

.kopf__menue {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--anthrazit);
  color: var(--weiss);
  font-weight: 600;
  font-size: var(--groesse-klein);
  cursor: pointer;
}

@media (max-width: 1099px) {
  .kopf__nav, .kopf__aktion { display: none; }
  .kopf__menue { display: inline-flex; }
  .kopf__leiste, .ist-gescrollt .kopf__leiste { height: 62px; padding: 0 8px 0 18px; }
  .ist-gescrollt .kopf__leiste { max-width: 560px; }
}

/* Menü unter der Seite */

.unterlage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  background: var(--anthrazit);
  color: var(--weiss);
  visibility: hidden;
  transition: visibility 0s linear 0.7s;
}
.menue-offen .unterlage { visibility: visible; transition: none; }
.unterlage__innen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  width: min(440px, 78vw);
  padding: 96px clamp(20px, 4vw, 48px) 48px;
}
.unterlage__zu {
  position: absolute;
  top: 26px;
  right: clamp(20px, 4vw, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--weiss);
  color: var(--tinte);
  font-weight: 600;
  font-size: var(--groesse-klein);
  cursor: pointer;
}
.unterlage__liste { display: grid; gap: 4px; }
.unterlage__liste a {
  display: block;
  padding: 6px 18px;
  margin-left: -18px;
  border-radius: var(--radius-klein);
  font-family: var(--schrift-titel);
  font-weight: 900;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.unterlage__liste a:hover,
.unterlage__liste a.ist-aktiv { background: var(--orange); color: var(--tinte); }
.unterlage__klein {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: var(--groesse-klein);
}
.unterlage__klein a { text-underline-offset: 0.25em; }

.seite-schutz {
  display: none;
  position: fixed;
  inset: 0 min(440px, 78vw) 0 0;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menue-offen .seite-schutz { display: block; }

.menue-fixiert .seite {
  position: fixed;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.menue-fixiert .seite__innen { transform: translateY(var(--scroll-y, 0)); }
.seite { transition: transform 0.7s var(--aus), border-radius 0.7s var(--aus); }
.menue-offen .seite { transform: translateX(calc(-1 * min(440px, 78vw))) scale(0.92); }

/* Einstieg */

.einstieg {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: var(--spalte);
  min-height: max(660px, min(100svh, 1000px));
  padding-top: var(--einstieg-oben);
  padding-bottom: var(--einstieg-unten);
}
/* Feinjustierung von Rolf Cassens im Regler-Panel (2026-10-17), gilt ab 1100 px */
@media (min-width: 1100px) {
  .einstieg {
    --einstieg-oben: 151px;
    --groesse-h1: 63px;
    --einstieg-abstand: 35px;
    --einstieg-unten: 31px;
  }
}
.einstieg__text { grid-column: 1 / span 7; align-self: center; }
.einstieg h1 {
  font-size: var(--groesse-h1);
  line-height: 1.08;
  letter-spacing: -0.018em;
  max-width: 15.5em;
}
.einstieg__unterzeile {
  margin-top: var(--einstieg-abstand);
  max-width: 31em;
  font-size: var(--groesse-gross);
  line-height: 1.5;
}
.einstieg__aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: calc(var(--einstieg-abstand) * 1.35);
}
.einstieg__aktion .textlink { font-size: 1.0625rem; }
.einstieg__telefon { margin-top: 22px; }
.einstieg__telefon a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.einstieg__telefon a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.3em; }

.einstieg__wuerfel {
  grid-column: 8 / span 5;
  align-self: center;
  justify-self: end;
  width: min(100%, var(--wuerfel-breite));
}
.wuerfel-gross { width: 100%; height: auto; overflow: visible; }
.wt { font-family: var(--schrift-titel); font-weight: 900; font-size: 27px; fill: var(--tinte); letter-spacing: -0.01em; }
.wt--hell { fill: var(--weiss); }
.wk { font-family: var(--schrift-text); font-weight: 600; font-size: 11.5px; fill: var(--tinte); }
.wk--hell { fill: #ececea; font-size: 13px; }

.fakten {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  padding-top: 32px;
  font-size: var(--groesse-klein);
  font-weight: 600;
}
.fakten li { display: inline-flex; align-items: center; gap: 10px; }
.fakten__zeichen { width: 11px; height: 15px; fill: var(--orange); }

@media (prefers-reduced-motion: no-preference) {
  .einstieg h1 { animation: aufsteigen 1.1s var(--aus) both; }
  .einstieg__unterzeile { animation: aufsteigen 1.1s var(--aus) 0.12s both; }
}
@keyframes aufsteigen {
  from { opacity: 0.08; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Leistungen: das Netz des aufgeklappten Würfels */

.leistungen__kopf {
  grid-column: 1 / span 5;
  align-self: start;
  position: sticky;
  top: 116px;
  padding-right: clamp(0px, 2vw, 32px);
}
.leistungen__kopf p { margin-top: 28px; max-width: 34em; }

.netz {
  grid-column: 6 / span 7;
  display: grid;
  /* Webdesign und Hosting gleich breit, wie die linke und rechte Würfelfläche */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "oben oben" "links rechts";
  gap: var(--spalt);
}
.flaeche {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(26px, 2.8vw, 40px);
  transform-origin: 0 0;
}
.flaeche--oben { grid-area: oben; background: var(--grau); }
.flaeche--links { grid-area: links; background: var(--orange); }
.flaeche--rechts { grid-area: rechts; background: var(--anthrazit); color: var(--tinte-hell); }
.flaeche--oben .flaeche__inhalt {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 28px;
  align-items: start;
}
.flaeche__inhalt { opacity: var(--inhalt, 1); }
.netz { position: relative; }
.flaeche h3 { margin-bottom: 0.7em; }
.flaeche--oben h3 { margin-bottom: 0; }
.flaeche p + h3 { margin-top: 1.6em; }
.flaeche--oben p + h3 { margin-top: 0; }
.flaeche--links h3 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.375rem); }
.wuerfel-schild { display: none; }

.wuerfel-aktiv .flaeche { will-change: transform; }
.wuerfel-aktiv .wuerfel-schild {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transform-origin: 0 0;
  opacity: var(--wuerfel, 0);
  pointer-events: none;
  will-change: transform, opacity;
}
.wuerfel-schild svg { width: 100%; height: 100%; overflow: visible; }
.wuerfel-aktiv .wuerfel-gross { visibility: hidden; }
/* Text im Einstieg liegt über den wandernden Flächen, damit nichts verdeckt wird */
.wuerfel-aktiv .einstieg__text,
.wuerfel-aktiv .fakten { position: relative; z-index: 3; }

/* Für wen */

.flaeche-breit {
  margin-inline: var(--rand-flaeche);
  border-radius: var(--radius);
  padding-block: clamp(64px, 8vw, 128px);
}
.flaeche-breit--anthrazit { background: var(--anthrazit); color: var(--tinte-hell); }
.fuerwen__kopf { grid-column: 1 / span 8; }
.fuerwen__kopf h2 { color: var(--weiss); }
.fuerwen__kopf p { margin-top: 24px; max-width: 36em; font-size: var(--groesse-gross); line-height: 1.5; }
.fuerwen__liste { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); display: grid; gap: clamp(40px, 5vw, 64px); }
.zielgruppe {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--spalte);
  align-items: start;
}
.zielgruppe__name {
  grid-column: 1 / span 5;
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  font-size: var(--groesse-name);
  line-height: 1.05;
  color: var(--weiss);
}
.zielgruppe__zeichen { width: 0.36em; height: 0.5em; fill: var(--orange); flex: none; }
.zielgruppe__text { grid-column: 6 / span 7; padding-top: 0.4em; }
.zielgruppe__text p { max-width: 40em; }
.zielgruppe__text .textlink { display: inline-block; margin-top: 18px; color: var(--weiss); }

/* Projekte im Bogen */

.projekte__kopf { grid-column: 1 / span 7; }
.projekte__kopf p { margin-top: 24px; max-width: 34em; font-size: var(--groesse-gross); line-height: 1.5; }

.bogen {
  --karte-b: clamp(270px, 26vw, 380px);
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
}
.bogen__spur {
  width: min(100% - 2 * var(--rand), var(--inhalt-breite));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spalt);
}
@media (max-width: 960px) { .bogen__spur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bogen__spur { grid-template-columns: minmax(0, 1fr); } }
.karte__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 10px 20px;
  border-radius: var(--radius);
  background: var(--grau);
  text-decoration: none;
  transition: background-color 0.3s;
}
.karte__link:hover, .karte__link:focus-visible { background: var(--orange); }
.karte__link:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.karte__bild { display: block; border-radius: var(--radius-klein); overflow: hidden; background: var(--weiss); }
.karte__bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.karte__name {
  margin: 18px 10px 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.karte__meta { margin: 6px 10px 0; font-size: var(--groesse-klein); }
.karte__aktion {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: auto 10px 0;
  padding-top: 14px;
  font-size: var(--groesse-klein);
  font-weight: 600;
}
.karte__aktion .icon { transition: transform 0.35s var(--aus); }
.karte__link:hover .karte__aktion .icon { transform: translateX(3px); }

.bogen.ist-aktiv {
  height: calc(var(--karte-b) * 0.625 + 230px);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.bogen.ist-aktiv.wird-gezogen { cursor: grabbing; }
.bogen.ist-aktiv .bogen__spur { display: block; width: auto; margin: 0; }
.bogen.ist-aktiv .karte {
  position: absolute;
  top: 18px;
  left: 50%;
  width: var(--karte-b);
  margin-left: calc(var(--karte-b) / -2);
  transform-origin: 50% 100%;
  will-change: transform;
}
.bogen.ist-aktiv img { -webkit-user-drag: none; pointer-events: none; }

.projekte__mehr { margin-top: clamp(28px, 3vw, 44px); }

/* Ablauf: vier Schritte auf einer ruhigen Hauptfläche */

.ablauf__titel { max-width: 16em; }
.schritte {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: var(--radius);
  background: var(--grau);
}
.schritt h3 { margin-bottom: 12px; }
/* Ziffer auf einer kleinen orangen Würfelfläche, im Winkel des Logos */
.schritt__nummer {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  margin: 0 0 calc(22px + 42px * 0.75);
  border-radius: 10px;
  background: var(--orange);
  color: var(--tinte);
  font-size: 1.125rem;
  transform: skewY(var(--winkel));
  transform-origin: 0 0;
}
.schritt__nummer span {
  transform: skewY(calc(-1 * var(--winkel)));
  font-variant-numeric: lining-nums tabular-nums;
}
/* Beim Überfahren: Fläche dunkler, wächst um 10 Prozent, weißer Strich unter dem Titel */
.schritt__titel {
  padding-bottom: 4px;
  background-image: linear-gradient(var(--weiss), var(--weiss));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 100% 100%;
  transition: background-size 0.5s var(--aus);
}
@media (hover: hover) {
  .schritt {
    position: relative;
    margin: -22px;
    padding: 22px;
    border-radius: var(--radius-klein);
    transition: background-color 0.35s, transform 0.5s var(--aus);
  }
  .schritt:hover { z-index: 1; background-color: var(--grau-tief); transform: scale(1.1); }
  .schritt:hover .schritt__titel { background-size: 100% 3px; background-position: 0 100%; }
}

/* Weiches Einblenden (Ablauf, Für wen): Startzeit setzt main.js, damit die Teile nacheinander kommen */
.einblend.ist-bereit:not(.ist-sichtbar) { opacity: 0; }
.einblend.ist-bereit.ist-sichtbar { animation: einblenden 2.3s var(--aus-weich) backwards; }
@keyframes einblenden {
  from { opacity: 0; transform: translateY(18px); }
}

/* Kundenstimmen */

.stimme { margin: 0; }
.stimme--gross {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--grau);
}
.stimme--gross .gesicht { grid-row: span 2; }
.stimme__zitat { margin: 0; }
.stimme--gross .stimme__zitat {
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(1.17rem, 0.9rem + 0.9vw, 1.6875rem); /* 10 Prozent kleiner, Wunsch 2026-10-17 */
  line-height: 1.45;
  max-width: 34em;
}
.stimme__wer { display: grid; align-content: start; margin-top: 20px; font-size: var(--groesse-klein); }
.stimme__wer strong { font-weight: 600; font-size: 1rem; }
/* Logo-Orange als Schrift auf Wunsch von Rolf Cassens (2026-10-17), Kontrast unter 4,5 : 1 */
.stimme__wer span { color: var(--orange); }
.stimme--gross { grid-template-rows: auto 1fr; }
.stimme--gross .stimme__wer { align-self: start; }

/* Gesicht in einer Würfelfläche */
.gesicht {
  width: 76px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  transform: skewY(var(--winkel));
  margin-top: 6px;
  background: var(--grau);
}
.gesicht picture { display: block; height: 100%; }
.gesicht img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 1 + Breite/Höhe × tan(Winkel) ≈ 1,55 reicht, um die schräge Fläche zu füllen */
  transform: skewY(calc(-1 * var(--winkel))) scale(1.6);
}
.gesicht--gross { width: clamp(96px, 10vw, 140px); height: clamp(132px, 13.5vw, 190px); border-radius: 16px; }

.stimmen__raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 6vw, 88px);
  padding-inline: clamp(0px, 3vw, 48px);
}
.stimmen__raster .stimme {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0 26px;
}
.stimmen__raster .gesicht { grid-row: span 2; }

/* Über mich */

.ueber__raster { grid-template-rows: auto; align-items: start; }
.ueber__flaeche {
  grid-column: 4 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: subgrid;
  margin-top: clamp(64px, 8vw, 120px);
  border-radius: var(--radius);
  background: var(--anthrazit);
}
.ueber__bild {
  grid-column: 1 / span 5;
  grid-row: 1;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.ueber__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ueber__text {
  grid-column: 3 / span 6;
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
  color: var(--tinte-hell);
}
.ueber__text h2 { color: var(--weiss); margin-bottom: 28px; }
.ueber__text p + p { margin-top: 1em; }
.ueber__text p { max-width: 36em; }
.ueber__ziel {
  margin-top: 1.4em !important;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: var(--groesse-gross);
  line-height: 1.45;
  color: var(--weiss);
}

[data-aufziehen].ist-bereit {
  clip-path: inset(18% 0 0 0 round var(--radius));
  transition: clip-path 1.3s var(--aus);
}
[data-aufziehen].ist-bereit img { transform: scale(1.08); transition: transform 1.6s var(--aus); }
[data-aufziehen].ist-bereit.ist-sichtbar { clip-path: inset(0 0 0 0 round var(--radius)); }
[data-aufziehen].ist-bereit.ist-sichtbar img { transform: none; }

/* Fragen */

.fragen__kopf { grid-column: 1 / span 4; align-self: start; position: sticky; top: 116px; }
.fragen__liste { grid-column: 5 / span 8; display: grid; gap: 6px; }
.frage { border-radius: var(--radius); transition: background-color 0.3s; }
.frage summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s;
}
.frage summary::-webkit-details-marker { display: none; }
.frage:not([open]) summary:hover { background: rgb(217 217 214 / 0.45); }
/* Logo-Orange als Schrift auf Wunsch von Rolf Cassens (2026-10-17), Kontrast unter 4,5 : 1 */
.frage summary { color: var(--orange); }
.frage[open] { background: var(--grau); }
.frage__zeichen { width: 26px; height: 26px; transition: transform 0.4s var(--aus); }
.frage[open] .frage__zeichen { transform: rotate(45deg); }
.frage__antwort { padding: 0 26px 26px; }
.frage__antwort p { max-width: 40em; }

@supports (interpolate-size: allow-keywords) {
  .fragen { interpolate-size: allow-keywords; }
  .frage::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.45s var(--aus), content-visibility 0.45s allow-discrete;
  }
  .frage[open]::details-content { height: auto; }
}

/* Abschluss auf Orange: Kontakt und Fußzeile */

.kontakt {
  margin: var(--abschnitt) var(--rand-flaeche) 0;
  padding: clamp(64px, 8vw, 128px) 0 clamp(40px, 4vw, 64px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--orange);
  color: var(--tinte);
}
.kontakt__text { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; }
/* Im Abschluss klappt der Würfel wieder zu: ruhig, ohne eigene Bewegung */
.kontakt__wuerfel {
  width: clamp(180px, 17vw, 250px);
  aspect-ratio: 400 / 502;
  height: auto;
  margin-top: auto;
  padding-top: 56px;
  box-sizing: content-box;
  --w-links: var(--weiss);
}
.kontakt__einleitung { margin-top: 24px; font-size: var(--groesse-gross); line-height: 1.5; }
.kontaktwege { display: grid; gap: 18px; margin-top: 40px; font-weight: 600; }
.kontaktwege li { display: flex; align-items: flex-start; gap: 14px; }
.kontaktwege li > .icon { margin-top: 0.2em; }
.kontaktwege a:not(.knopf) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: rgb(35 35 35 / 0.35); }
.kontaktwege a:not(.knopf):hover { text-decoration-color: var(--tinte); }
.kontaktwege__whatsapp .knopf { margin-top: -6px; }
.kontaktwege__hinweis { margin-top: 8px; font-weight: 400; font-size: var(--groesse-klein); }

.kontakt__formular {
  grid-column: 7 / span 6;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--radius);
  background: var(--weiss);
}
.formular__titel { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.formular__hinweis { margin-top: 10px; }
.formular__hinweis a, .formular__datenschutz a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
#inquiry-form { display: grid; gap: 22px; margin-top: 28px; }
.feld { display: grid; gap: 8px; }
.feld label { font-weight: 600; font-size: 1rem; }
.feld__frei { font-weight: 400; }
.feld input, .feld textarea, .feld select {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 2px solid var(--feldrand);
  border-radius: 12px;
  background: var(--weiss);
  color: var(--tinte);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feld textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.feld select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}
.feld input::placeholder, .feld textarea::placeholder { color: #6b6b68; }
.feld input:hover, .feld textarea:hover, .feld select:hover { border-color: var(--anthrazit); }
.feld input:focus-visible, .feld textarea:focus-visible, .feld select:focus-visible {
  outline: 3px solid var(--tinte);
  outline-offset: 2px;
  border-color: var(--tinte);
  border-radius: 12px;
}
.feld__hinweis { font-size: var(--groesse-klein); }
.feld__fehler {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--orange-schrift);
  font-weight: 600;
  font-size: var(--groesse-klein);
}
.feld.has-error .feld__fehler { display: flex; }
.feld.has-error input, .feld.has-error textarea { border-color: var(--orange-schrift); background: #fff8f2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.formular__datenschutz { font-size: var(--groesse-klein); }
#inquiry-form .knopf { justify-self: start; }
.formular__status:empty { display: none; }
.formular__status.is-error {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--marker);
  font-weight: 600;
}
.formular__status a { text-underline-offset: 0.2em; }
#form-wrap.is-sent form, #form-wrap.is-sent .formular__hinweis, #form-wrap.is-sent .formular__titel { display: none; }
.formular__danke { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }
.formular__danke[hidden] { display: none; }
.formular__danke:focus { outline: none; }
.formular__danke h3 { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); }
.formular__wuerfel { width: 56px; height: 70px; }

.fuss {
  margin: -2px var(--rand-flaeche) var(--rand-flaeche);
  padding: clamp(32px, 4vw, 48px) 0 clamp(36px, 4vw, 52px);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--orange);
  color: var(--tinte);
  font-size: var(--groesse-klein);
}
.fuss .raster { row-gap: 32px; }
.fuss a { text-decoration: none; }
.fuss a:not(.marke) {
  padding-bottom: 3px;
  background-image: linear-gradient(var(--weiss), var(--weiss));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 100% 100%;
  transition: background-size 0.35s var(--aus);
}
.fuss a:not(.marke):hover,
.fuss a:not(.marke):focus-visible { background-size: 100% 2px; background-position: 0 100%; }
.fuss__marke { grid-column: 1 / span 4; display: grid; gap: 12px; align-content: start; }
.marke--fuss { --w-links: var(--weiss); }
.marke--fuss .marke__wuerfel { width: 34px; height: 43px; }
.marke--fuss .marke__name { font-size: 1.375rem; }
.fuss__adresse { grid-column: 5 / span 3; display: grid; gap: 14px; align-content: start; }
.fuss__nav { grid-column: 8 / span 2; }
.fuss__nav ul, .fuss__recht ul { display: grid; gap: 6px; font-weight: 600; }
.fuss__recht { grid-column: 10 / span 3; display: grid; gap: 18px; align-content: start; }

/* Unterseiten */

.unterseite-kopf { padding-top: clamp(132px, 18vh, 184px); }
.pfad { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--groesse-klein); font-weight: 600; }
.pfad a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.pfad li + li::before { content: "/"; margin-right: 8px; font-weight: 400; }
.unterseite-kopf h1 { margin-top: 22px; font-size: var(--groesse-h1); line-height: 1.08; letter-spacing: -0.018em; max-width: 14em; }
.unterseite-kopf .einleitung { margin-top: 26px; max-width: 34em; font-size: var(--groesse-gross); line-height: 1.5; }

.steckbrief {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 4vw, 56px);
  margin: clamp(32px, 4vw, 48px) 0 0;
}
.steckbrief div { display: grid; gap: 2px; }
.steckbrief dt { font-size: var(--groesse-klein); }
.steckbrief dd { margin: 0; font-weight: 600; }
.projekt-aktion { margin-top: clamp(32px, 4vw, 44px); }

.projektbild {
  margin: clamp(48px, 6vw, 88px) var(--rand-flaeche) 0;
  padding: clamp(16px, 4vw, 72px) clamp(16px, 6vw, 120px) 0;
  border-radius: var(--radius);
  background: var(--orange);
  overflow: hidden;
}
.projektbild picture { width: min(100%, 1100px); margin-inline: auto; }
.projektbild img {
  width: 100%;
  border-radius: var(--radius-klein) var(--radius-klein) 0 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.bericht { display: grid; gap: clamp(32px, 4vw, 56px); }
.bericht__teil { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--spalte); align-items: start; }
.bericht__teil h2 { grid-column: 1 / span 4; font-size: var(--groesse-h3); padding-top: 0.15em; }
.bericht__teil p { grid-column: 5 / span 7; font-size: var(--groesse-gross); line-height: 1.5; }
.bericht__teil--ergebnis {
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
  margin-inline: calc(-1 * clamp(24px, 4vw, 56px));
  border-radius: var(--radius);
  background: var(--grau);
}

.andere__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spalt);
  margin-top: clamp(32px, 4vw, 48px);
}

.weitere__liste { display: grid; gap: clamp(56px, 7vw, 96px); margin-top: clamp(56px, 7vw, 96px); }
.weiteres {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--spalte);
  align-items: center;
}
.weiteres__bild {
  grid-column: 1 / span 6;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--grau);
}
.weiteres__bild img { border-radius: var(--radius-klein); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.weiteres__text { grid-column: 8 / span 5; }
.weiteres__text h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
.weiteres__meta { margin-top: 8px; font-weight: 600; font-size: var(--groesse-klein); }
.weiteres__text p:not(.weiteres__meta) { margin-top: 18px; }
.weiteres__text .textlink { display: inline-block; margin-top: 22px; }

.abschluss-kurz { padding: clamp(64px, 8vw, 128px) 0 clamp(48px, 5vw, 80px); }
.weitere__zurueck { margin-top: clamp(56px, 7vw, 96px); }
.abschluss-kurz .rahmen { display: grid; justify-items: start; gap: 24px; }
.abschluss-kurz h2 { max-width: 14em; }
.abschluss-kurz p { max-width: 34em; font-size: var(--groesse-gross); line-height: 1.5; }

.rechtstext { max-width: 46em; }
.rechtstext h2 { font-size: var(--groesse-h3); margin: 2.2em 0 0.6em; }
.rechtstext p + p { margin-top: 1em; }
.rechtstext a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.rechtstext__stand { margin-top: 2.5em; font-size: var(--groesse-klein); }

.fehlerseite {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-block: 140px 80px;
}
.fehlerseite__wuerfel { width: clamp(120px, 14vw, 180px); margin-bottom: 40px; --w-links: var(--weiss); }
.fehlerseite h1 { font-size: var(--groesse-h1); line-height: 1.08; max-width: 12em; }
.fehlerseite p { margin-top: 24px; max-width: 30em; font-size: var(--groesse-gross); line-height: 1.5; }
.fehlerseite .knopf { margin-top: 36px; }

/* Tablet und Handy */

@media (max-width: 1099px) {
  .einstieg { grid-template-rows: auto auto auto; min-height: 0; }
  .einstieg__text { grid-column: 1 / -1; }
  .einstieg__wuerfel {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(78%, 380px);
    margin-top: clamp(48px, 8vw, 72px);
  }
  .fakten { grid-row: 3; padding-top: clamp(40px, 7vw, 64px); }

  .leistungen__kopf { grid-column: 1 / -1; position: static; padding-right: 0; }
  .netz { grid-column: 1 / -1; margin-top: 40px; }

  .fuerwen__kopf { grid-column: 1 / -1; }
  .zielgruppe__name { grid-column: 1 / -1; }
  .zielgruppe__text { grid-column: 1 / -1; padding-top: 14px; }

  .projekte__kopf { grid-column: 1 / -1; }

  .schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fragen__kopf { grid-column: 1 / -1; position: static; }
  .fragen__liste { grid-column: 1 / -1; margin-top: 32px; margin-inline: calc(var(--rand-flaeche) - var(--rand)); }
  .frage summary, .frage__antwort { padding-inline: calc(var(--rand) - var(--rand-flaeche)); }

  .kontakt__text { grid-column: 1 / -1; }
  .kontakt__wuerfel { display: none; }
  .kontakt__formular { grid-column: 1 / -1; margin-top: 48px; }

  .fuss__marke { grid-column: 1 / -1; }
  .fuss__adresse { grid-column: 1 / span 6; }
  .fuss__nav { grid-column: 7 / span 3; }
  .fuss__recht { grid-column: 10 / span 3; }

  .ueber__flaeche { grid-column: 3 / -1; }
  .ueber__bild { grid-column: 1 / span 6; }
  .ueber__text { grid-column: 5 / span 5; }
}

@media (max-width: 760px) {
  .netz { grid-template-columns: minmax(0, 1fr); grid-template-areas: "oben" "links" "rechts"; }
  .flaeche--oben .flaeche__inhalt { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flaeche--oben h3 { margin-bottom: 0.7em; }
  .flaeche--oben p + h3 { margin-top: 1.6em; }

  .schritte { grid-template-columns: minmax(0, 1fr); }

  .stimme--gross { grid-template-columns: minmax(0, 1fr); }
  .stimme--gross .gesicht { grid-row: auto; margin-bottom: 28px; }
  .stimmen__raster { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .stimmen__raster .stimme { gap: 0 20px; }

  .ueber__raster { grid-template-columns: minmax(0, 1fr); }
  .ueber__bild { grid-column: 1; grid-row: 1; width: min(84%, 420px); }
  .ueber__flaeche {
    grid-column: 1;
    grid-row: 2;
    display: block;
    margin-top: -96px;
    margin-inline: calc(var(--rand-flaeche) - var(--rand));
    padding-inline: calc(var(--rand) - var(--rand-flaeche));
  }
  .ueber__text { padding: 136px 0 56px; }

  .fuss__adresse, .fuss__nav, .fuss__recht { grid-column: 1 / -1; }

  .bericht__teil h2, .bericht__teil p { grid-column: 1 / -1; }
  .bericht__teil p { margin-top: 12px; }
  .bericht__teil--ergebnis { margin-inline: calc(var(--rand-flaeche) - var(--rand)); padding-inline: calc(var(--rand) - var(--rand-flaeche) + 6px); }
  .andere__liste { grid-template-columns: minmax(0, 1fr); }
  .weiteres__bild, .weiteres__text { grid-column: 1 / -1; }
  .weiteres__text { margin-top: 28px; }
}

@media (max-width: 480px) {
  .einstieg__aktion .knopf { width: 100%; }
  .fakten { flex-direction: column; }
  .kontaktwege__whatsapp .knopf { width: 100%; }
}

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