/* ==========================================================================
   Externe Fachkraft für Arbeitssicherheit – Stylesheet
   Leitidee: ruhig, reduziert, präzise. Schwarz, Weiß, ein Signalgrün.
   ========================================================================== */

:root {
  --schwarz: #000;
  --ink: #1d1d1f;
  --grau: #6e6e73;
  --grau-dunkel: #86868b;
  --linie: #d2d2d7;
  --hell: #f5f5f7;
  --gruen: #30d158;          /* auf Dunkel */
  --gruen-d: #0a7d43;        /* auf Hell (Kontrast > 4.5:1) */
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --breite: 1240px;
  --kopf: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--kopf); }
body {
  margin: 0;
  font: 17px/1.55 var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.wrap.schmal { max-width: 920px; }

.vorzeile { font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.vorzeile.gruen { color: var(--gruen-d); }
.titel { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.grau { color: var(--grau-dunkel); }

/* ---------- Buttons ---------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 500 17px/1 var(--font); cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: scale(1.03); }
.btn-hell { background: #fff; color: #000; }
.btn-hell:hover { background: #e8e8ed; }
.btn-linie { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn-linie:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn-voll { width: 100%; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background-color .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.kopf.fest, .unterseite .kopf {
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255,255,255,.08);
}
.kopf-in { display: flex; align-items: center; gap: 32px; height: var(--kopf); max-width: var(--breite); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo svg { height: 24px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 13px; color: rgba(255,255,255,.8); padding: 12px 0; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav-kontakt { display: none; }
.kopf-kontakt { display: flex; gap: 18px; font-size: 13px; }
.kopf-kontakt a { color: #fff; opacity: .9; }
.kopf-kontakt a:hover { color: var(--gruen); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-offen .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-offen .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) { .kopf-kontakt { display: none; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--kopf) 0 0; flex-direction: column; gap: 0;
    padding: 24px clamp(20px, 5vw, 56px); background: #000;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .nav a { font-size: 28px; font-weight: 600; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-kontakt { display: flex; flex-direction: column; margin-top: 28px; }
  .nav-kontakt a { font-size: 17px; font-weight: 400; border: 0; color: rgba(255,255,255,.7); }
  .menu-offen .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-offen .kopf { background: #000; }
}

/* ---------- Szenen (Scroll-Animationen) ---------- */
.szene { position: relative; --p: 0; }
.szene > .klebend { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* 1 · Hero */
.hero { height: 260vh; background: #000; color: #fff; --a: min(calc(var(--p) * 1.7), 1); }
.hero-bild {
  position: absolute; inset: 0;
  clip-path: inset(calc(var(--a) * 13%) calc(var(--a) * 9%) round calc(var(--a) * var(--radius)));
  will-change: clip-path;
}
.hero-bild img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.12 - var(--a) * .12));
  filter: brightness(calc(.62 - var(--a) * .2));
  animation: kenburns 2.4s var(--ease) both;
}
.hero-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
  opacity: calc(1 - var(--a));
}
@keyframes kenburns { from { transform: scale(1.22); filter: brightness(.2); } }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: clamp(56px, 12vh, 140px);
  max-width: var(--breite); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px);
  opacity: calc(1 - var(--p) * 3.5);
  transform: translateY(calc(var(--p) * -120px));
}
.hero-text > * { animation: steigen 1.3s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .12s; }
.hero-text > :nth-child(3) { animation-delay: .24s; }
.hero-text > :nth-child(4) { animation-delay: .36s; }
@keyframes steigen { from { opacity: 0; transform: translateY(32px); } }
.hero h1 { font-size: clamp(48px, 9vw, 128px); line-height: .98; letter-spacing: -0.045em; font-weight: 700; }
.hero-sub { max-width: 600px; margin: 28px 0 40px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: rgba(255,255,255,.78); }
.hero-zwei {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: clamp(40px, 7vw, 104px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; text-align: center;
  pointer-events: none;
}
.hero-zwei p { opacity: clamp(0, calc((var(--p) - .34) * 7), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .34) * 7), 1)) * 40px)); }
.hero-zwei p:nth-child(2) { opacity: clamp(0, calc((var(--p) - .48) * 7), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .48) * 7), 1)) * 40px)); }
.hero-zwei p:nth-child(3) { opacity: clamp(0, calc((var(--p) - .62) * 7), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .62) * 7), 1)) * 40px)); color: var(--gruen); }
.scroll-hinweis { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; opacity: calc(1 - var(--p) * 8); }
.scroll-hinweis span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: rollen 2s ease-in-out infinite; }
@keyframes rollen { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* 2 · Aussage */
.aussage { height: 230vh; background: #000; color: #fff; }
.aussage .klebend { display: flex; align-items: center; }
.aussage-text { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; font-weight: 600; letter-spacing: -0.032em; max-width: 1120px; text-wrap: balance; }
.wort { opacity: .16; transition: opacity .5s var(--ease), color .5s; }
.wort.an { opacity: 1; }

/* 3 · Story */
.story { height: 520vh; background: #fff; }
.story-raster { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: var(--kopf); }
.story-texte { position: relative; min-height: 380px; }
.story-item { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.story-item.aktiv { opacity: 1; transform: none; pointer-events: auto; }
.story-item.vorher { transform: translateY(-36px); }
.story-item h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 24px; text-wrap: balance; hyphens: manual; }
.story-item p { font-size: clamp(18px, 1.6vw, 21px); color: var(--grau); max-width: 480px; }
.story-fortschritt { display: flex; gap: 8px; margin-top: 40px; }
.story-fortschritt i { width: 32px; height: 3px; border-radius: 2px; background: var(--linie); transition: background-color .5s, width .5s var(--ease); }
.story-fortschritt i.aktiv { background: var(--ink); width: 56px; }
.story-rahmen { position: relative; height: min(76vh, 760px); border-radius: var(--radius); overflow: hidden; background: var(--hell); }
.story-rahmen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.18);
  transition: clip-path 1.1s var(--ease), transform 1.8s var(--ease);
}
.story-rahmen img.sichtbar { clip-path: inset(0 0 0 0); transform: scale(1); }

/* 4 · Puzzle */
.puzzle { height: 320vh; background: #000; color: #fff; }
.puzzle .klebend { display: flex; align-items: center; justify-content: center; }
.puzzle-feld {
  position: relative; width: min(88vw, 1180px); aspect-ratio: 16 / 9; max-height: 74vh;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr);
}
.kachel {
  --q: 0;
  background-repeat: no-repeat; background-size: 500% 400%;
  transform: translate3d(calc(var(--dx) * (1 - var(--q)) * 1px), calc(var(--dy) * (1 - var(--q)) * 1px), 0) rotate(calc(var(--r) * (1 - var(--q)) * 1deg)) scale(calc(.55 + var(--q) * .45));
  opacity: calc(.15 + var(--q) * .85);
  border-radius: calc((1 - var(--q)) * 14px);
  will-change: transform;
}
.puzzle-feld::after {
  content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.82), rgba(0,0,0,.2));
  opacity: clamp(0, calc((var(--p) - .72) * 5), 1);
}
.puzzle-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; pointer-events: none; z-index: 2; }
.puzzle-text-1 { opacity: clamp(0, calc(1 - var(--p) * 3.2), 1); }
.puzzle-text-1 p { font-size: clamp(22px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; max-width: 900px; color: rgba(255,255,255,.9); text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.puzzle-text-2 { opacity: clamp(0, calc((var(--p) - .76) * 6), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .76) * 6), 1)) * 30px)); }
.puzzle-text-2 h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.puzzle-text-2 p { margin-top: 20px; font-size: clamp(18px, 1.7vw, 22px); color: rgba(255,255,255,.8); }

/* ---------- Bänder ---------- */
.band { padding: clamp(96px, 13vw, 180px) 0; }
.band.hell { background: #fff; }
.band.grauton { background: var(--hell); }
.kopfzeile { margin-bottom: clamp(48px, 7vw, 96px); max-width: 900px; }

/* 5 · Leistungen */
.leistung {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-top: 1px solid var(--linie); align-items: baseline;
}
.leistung:last-child { border-bottom: 1px solid var(--linie); }
.leistung h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; hyphens: manual; }
.leistung-umfang { color: #424245; }
.leistung-nutzen { color: var(--gruen-d); font-weight: 500; padding-left: 28px; position: relative; }
.leistung-nutzen::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a7d43' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 5'/%3E%3C/svg%3E"); }
.zusatz { margin-top: clamp(80px, 10vw, 140px); }
.zusatz-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.zusatz-kopf h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.zusatz-kopf p { color: var(--grau); }
.zusatz-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.zusatz-karte { background: var(--hell); border-radius: 22px; padding: 32px 28px 36px; transition: transform .5s var(--ease), background-color .3s; }
.zusatz-karte:hover { transform: translateY(-6px); background: #ececf0; }
.zusatz-karte h4 { font-size: 20px; margin-bottom: 10px; }
.zusatz-karte p { color: var(--grau); font-size: 16px; }

/* 6 · Branchen (quer) */
.quer { background: #000; color: #fff; }
.quer .klebend { display: flex; flex-direction: column; justify-content: center; padding-top: var(--kopf); }
.quer-kopf { margin-bottom: clamp(28px, 4vh, 48px); }
.quer .vorzeile.gruen { color: var(--gruen); }
.quer-spur { display: flex; gap: 20px; padding: 0 max(clamp(20px, 5vw, 56px), calc((100vw - var(--breite)) / 2 + clamp(20px, 5vw, 56px))); will-change: transform; width: max-content; }
.branche { position: relative; flex: none; width: min(80vw, 540px); height: min(58vh, 600px); border-radius: var(--radius); overflow: hidden; background: #111; }
.branche img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.branche:hover img { transform: scale(1.06); }
.branche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 55%, transparent 100%); }
.branche-text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); z-index: 1; }
.branche-text h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 10px; letter-spacing: -0.025em; }
.branche-text p { color: rgba(255,255,255,.8); max-width: 420px; font-size: 16px; }

/* 7 · Ablauf */
.schritte { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); --s: 0; }
.schritte::before, .schritte::after { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--linie); }
.schritte::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--s)); }
.schritt { position: relative; z-index: 1; }
.schritt-nr {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 2px var(--linie); font-weight: 600; margin-bottom: 28px;
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.schritt.an .schritt-nr { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.schritt:last-child.an .schritt-nr { background: var(--gruen-d); box-shadow: inset 0 0 0 2px var(--gruen-d); }
.schritt h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.25; }
.schritt p { color: var(--grau); font-size: 16px; }

/* 8 · Über mich */
.ueber { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.ueber-bild { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #e6e6eb, #d1d1d8); }
.ueber-bild img { width: 100%; height: 100%; object-fit: cover; }
.platzhalter { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #6e6e73; text-align: center; }
.platzhalter small { font-size: 13px; }
.einleitung { font-size: clamp(19px, 1.7vw, 22px); color: #424245; margin: 28px 0 36px; max-width: 580px; }
.profil { margin: 0; }
.profil div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--linie); }
.profil div:last-child { border-bottom: 1px solid var(--linie); }
.profil dt { color: var(--grau); font-size: 15px; }
.profil dd { margin: 0; }

/* 9 · FAQ */
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hell) no-repeat center/12px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { background-color: #e8e8ed; }
.faq-a { padding: 0 52px 30px 0; color: #424245; font-size: 18px; animation: steigen .6s var(--ease); }

/* 10 · Kontakt */
.kontakt { position: relative; background: #000; color: #fff; padding: clamp(96px, 13vw, 180px) 0; overflow: hidden; }
.kontakt-bild { position: absolute; inset: 0; }
.kontakt-bild img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1); }
.kontakt-bild::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 30% 40%, rgba(0,0,0,.3), #000 85%); }
.kontakt-raster { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.kontakt-text h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.kontakt-text > p { margin: 24px 0 40px; font-size: clamp(18px, 1.7vw, 21px); color: rgba(255,255,255,.75); max-width: 480px; }
.kontakt-direkt { display: flex; flex-direction: column; gap: 6px; }
.kontakt-direkt a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 19px; width: fit-content; transition: color .2s; }
.kontakt-direkt a:hover { color: var(--gruen); }
.formular {
  display: grid; gap: 16px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.feld-paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.feld { display: grid; gap: 8px; }
.feld span { font-size: 13px; color: rgba(255,255,255,.7); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #fff;
  font: 16px/1.4 var(--font); transition: border-color .2s, background-color .2s;
}
.feld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.feld select option { color: #000; }
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--gruen); background-color: rgba(255,255,255,.09); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.7); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gruen); }
.check a { text-decoration: underline; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.meldung.ok { background: rgba(48,209,88,.15); color: #b8f5c8; }
.meldung.fehler { background: rgba(255,69,58,.15); color: #ffc9c4; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--hell); color: var(--grau); font-size: 14px; padding: 72px 0 36px; }
.fuss-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.fuss-logo { height: 28px; width: auto; margin-bottom: 14px; }
.fuss-slogan { color: var(--ink); margin-bottom: 10px; }
.fuss-marke { color: var(--ink); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.fuss-h { color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.fuss a:hover { color: var(--ink); }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--linie); font-size: 12px; }

/* ---------- Unterseiten ---------- */
.unterseite main { padding-top: var(--kopf); }
.rechtstext h1 { margin-bottom: 16px; }
.rechtstext h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.rechtstext p { color: #424245; }
.rechtstext a { text-decoration: underline; }
.hinweis { font-size: 14px; color: var(--grau) !important; background: var(--hell); padding: 12px 16px; border-radius: 12px; margin: 16px 0; }

/* ---------- Einblenden ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .leistung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .leistung h3 { grid-column: 1 / -1; }
  .zusatz-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ueber, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .ueber-bild { max-width: 480px; }
  .fuss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .story-raster { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: center; gap: 24px; padding-top: calc(var(--kopf) + 16px); padding-bottom: 24px; }
  .story-texte { min-height: 230px; }
  .story-item h2 { margin-bottom: 14px; }
  .story-fortschritt { margin-top: 16px; }
  .story-rahmen { height: auto; min-height: 0; aspect-ratio: auto; height: 100%; max-height: 46vh; }
  .puzzle-feld { aspect-ratio: 4 / 5; width: 88vw; max-height: 70vh; }
  .schritte { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .schritte::before, .schritte::after { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .schritte::after { transform-origin: top; transform: scaleY(var(--s)); }
  .schritt { padding-left: 72px; }
  .schritt-nr { position: absolute; left: 0; top: -6px; }
}
@media (max-width: 600px) {
  .leistung { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0; }
  .zusatz-raster, .feld-paar { grid-template-columns: minmax(0, 1fr); }
  .profil div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fuss-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text .btn { width: 100%; }
  .faq-a { padding-right: 0; }
}

/* ---------- Ruhiger Modus (reduzierte Bewegung) ---------- */
.ruhig *, .ruhig *::before, .ruhig *::after { animation: none !important; transition-duration: .01ms !important; }
.ruhig .szene { height: auto !important; }
.ruhig .szene > .klebend { position: relative; height: auto; min-height: 100svh; }
.ruhig .hero { --p: 0 !important; }
.ruhig .hero-zwei, .ruhig .scroll-hinweis, .ruhig .puzzle-text-1 { display: none; }
.ruhig .hero .klebend { height: 100svh; }
.ruhig .wort { opacity: 1; }
.ruhig .aussage .klebend { padding: 140px 0; min-height: 0; }
.ruhig .story-texte { min-height: 0; display: grid; gap: 40px; }
.ruhig .story-item { position: static; opacity: 1; transform: none; }
.ruhig .story-fortschritt { display: none; }
.ruhig .story-raster { padding: 120px clamp(20px, 5vw, 56px); }
.ruhig .story-rahmen img:first-child { clip-path: none; transform: none; }
.ruhig .puzzle { --p: 1 !important; }
.ruhig .puzzle .klebend { padding: 120px 0; }
.ruhig .kachel { --q: 1 !important; }
.ruhig .quer .klebend { padding: 120px 0; }
.ruhig .quer-spur { width: auto; overflow-x: auto; padding-bottom: 16px; }
.ruhig [data-reveal] { opacity: 1; transform: none; }
