/* Startseite unter dem Header, Fassung "Um die Ecke" (21.11.2026, Tim: "Ja, bau das"). Die Grammatik des Headers fuer jeden
   Abschnitt: Satz weiss waagerecht, das letzte Wort biegt orange senkrecht um die Ecke. Szenen spielen beim Scrollen
   (kante-ecken.js setzt html.e-an). Ohne Skript oder bei reduzierter Bewegung: alles ruhig untereinander, nichts versteckt. */
.kante-seite { --e-or: #FF7120; --e-text: #F5F4F0; --e-leise: #B4B7BE; --e-linie: rgba(245, 244, 240, .14); --e-grund: #0D0E11; --e-tinte: #15161A; }

/* Die Ecke */
.e-ecke { display: flex; align-items: flex-start; gap: 0 .1em; margin: 0; font-size: var(--e-gr, clamp(40px, 6.4vw, 104px)); }
.e-ecke > span { font: 600 1em/.92 Clash, sans-serif; letter-spacing: -.035em; }
.e-waag { color: var(--e-text); max-width: 14em; overflow-wrap: normal; hyphens: manual; }
.e-senk { flex: none; writing-mode: vertical-rl; color: var(--e-or); line-height: .8 !important; padding-top: .04em; white-space: nowrap; }
.e-ecke--gross { --e-gr: clamp(48px, 7.4vw, 120px); }
.e-ecke--mittel { --e-gr: clamp(38px, 5.6vw, 92px); }
.e-ecke--satz { --e-gr: clamp(32px, 4.8vw, 80px); }
/* Klappen: das senkrechte Wort kommt waagerecht an und biegt um die Ecke, sobald der Abschnitt im Bild ist */
html.e-an .e-ecke .e-senk { transform-origin: 0 0; transform: rotate(-90deg) translateY(-.2em); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .1s, opacity .3s ease .1s; }
html.e-an .e-ecke.da .e-senk { transform: none; opacity: 1; }
.kante-seite .e-marke { margin: 0 0 22px; font: 600 13px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--e-or); }
.e-wegmarke.k-blatt { display: block; width: 100%; height: 0 !important; min-height: 0; padding: 0 !important; margin: 110px 0 0; border: 0; pointer-events: none; }
.kante-seite .e-text { margin: 16px 0 0; color: var(--e-leise); max-width: 50ch; }

/* 1 Anliegen: die Seite haelt an, vier Saetze nacheinander */
.kante-seite .e-anliegen { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }
.e-saetze { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 7vw, 96px); }
.e-satz { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 88px); align-items: end; }
.e-antwort { display: grid; gap: 12px; padding-bottom: 8px; }
.e-antwort span { font: 600 12px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--e-leise); }
.e-antwort strong { font: 500 clamp(20px, 1.8vw, 26px)/1.25 Clash, sans-serif; color: var(--e-text); }
.e-antwort a { justify-self: start; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--e-or); padding-bottom: 3px; }
.e-zaehler { display: none; }
html.e-an .e-anliegen { height: 420vh; padding: 0; }
html.e-an .e-anliegen .e-buehne { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; }
html.e-an .e-saetze { position: relative; height: min(58vh, 540px); display: block; }
html.e-an .e-satz { position: absolute; inset: 0; align-items: start; opacity: 0; transform: translateY(40px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
html.e-an .e-satz.an { opacity: 1; transform: none; pointer-events: auto; }
html.e-an .e-satz .e-antwort { align-self: end; }
html.e-an .e-zaehler { display: flex; gap: 8px; margin: 28px 0 0; }
.e-zaehler i { width: 40px; height: 4px; border-radius: 2px; background: var(--e-linie); transition: background .3s; }
.e-zaehler i.an { background: var(--e-or); }

/* 2 Leistungen: senkrecht scrollen, waagerecht fahren */
.kante-seite .e-fahrt { position: relative; }
.e-spur { display: grid; gap: 0; }
.e-tafel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(72px, 9vw, 120px) clamp(24px, 6vw, 112px); }
.e-zeile { margin: 26px 0 0; font: 500 clamp(20px, 1.9vw, 27px)/1.25 Clash, sans-serif; color: var(--e-text); max-width: 28ch; }
.e-tafel ul { list-style: none; margin: 26px 0 0; padding: 0; max-width: 480px; border-top: 1px solid var(--e-linie); }
.e-tafel li a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--e-linie); font-weight: 600; text-decoration: none; color: var(--e-text); }
.e-tafel li a::after { content: "\2192"; color: var(--e-or); transition: transform .25s ease; }
.e-tafel li a:hover::after { transform: translateX(6px); }
.e-tafel-bild { position: relative; margin: 0; height: min(70vh, 640px); border-radius: 6px; overflow: hidden; }
.e-tafel-bild img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateX(var(--bx, 0px)); }
.e-tafel-bild figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: #E3E2DE; background: rgba(13, 14, 17, .72); padding: 3px 8px; border-radius: 6px; }
.e-fortschritt { display: none; }
html.e-an .e-fahrt { height: 360vh; }
html.e-an .e-fahrt .e-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
html.e-an .e-spur { display: flex; transform: translateX(var(--x, 0px)); will-change: transform; }
html.e-an .e-tafel { flex: none; width: 100vw; height: 100vh; padding-top: 110px; padding-bottom: 70px; }
html.e-an .e-fortschritt { display: block; position: absolute; left: clamp(24px, 6vw, 112px); right: clamp(24px, 6vw, 112px); bottom: 26px; height: 3px; margin: 0; background: var(--e-linie); border-radius: 2px; }
.e-fortschritt i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--e-or); border-radius: 2px; }

/* Branchen: Ueberschrift als Ecke (Rest aus kante.css) */
.kante-seite .k-wahl .e-ecke { margin-bottom: clamp(28px, 4vw, 48px); }

/* 3 Website-Check auf Orange */
.kante-seite .e-check { position: relative; z-index: 1; background: var(--e-or); color: var(--e-tinte); padding: clamp(96px, 12vw, 160px) 0; }
.kante-seite .e-check .e-marke { color: var(--e-tinte); }
.e-check .e-waag { color: var(--e-tinte); }
/* Auf Orange beide Teile dunkel: Weiss auf Orange liegt bei 2,5:1 (gemessen 21.11.), zu wenig */
.e-check .e-senk { color: var(--e-tinte); }
.e-check-form { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; }
.e-check-form input { flex: 1 1 260px; min-width: 0; font: 400 20px/1 "DM Sans", system-ui, sans-serif; padding: 18px 22px; border-radius: 999px; border: 2px solid var(--e-tinte); background: #FFF4EC; color: var(--e-tinte); }
.e-check-form input::placeholder { color: #6A4A36; }
.e-check-form button { font: 600 18px/1 "DM Sans", system-ui, sans-serif; padding: 18px 28px; border: 0; border-radius: 999px; background: var(--e-tinte); color: var(--e-text); cursor: pointer; }
.e-check-form button:focus-visible, .e-check-form input:focus-visible { outline: 3px solid var(--e-tinte); outline-offset: 3px; }
.e-check-unter { margin: 14px 0 0; color: #2B1A10; }

/* 4 Ablauf: drei Stufen, die Ziffer fuellt sich beim Erreichen */
.kante-seite .e-ablauf { padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.e-unter { margin: 22px 0 0; color: var(--e-leise); font-size: 19px; }
.e-stufen { list-style: none; margin: clamp(56px, 7vw, 100px) 0 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 120px); }
.e-stufe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.e-stufe:nth-child(2) { margin-left: clamp(0px, 12vw, 200px); }
.e-stufe:nth-child(3) { margin-left: clamp(0px, 24vw, 400px); }
.e-umriss { white-space: nowrap; font: 600 clamp(96px, 13vw, 200px)/.8 Clash, sans-serif; color: var(--e-or); -webkit-text-stroke: 1.5px var(--e-or); letter-spacing: -.03em; }
html.e-an .e-umriss { color: transparent; transition: color .9s ease; }
html.e-an .e-stufe.da .e-umriss { color: var(--e-or); }
.e-stufe h3 { margin: 0; font-size: clamp(40px, 5.4vw, 84px); line-height: .95; padding-top: .1em; }
.e-stufe ul { list-style: none; margin: 18px 0 0; padding: 0; color: var(--e-leise); }
.e-stufe ul li::before { content: "\2014\00a0"; color: var(--e-or); }
.e-danach { margin: clamp(56px, 7vw, 96px) 0 0; max-width: 64ch; color: var(--e-leise); }

/* 5 Gruende: Ecke links, vier Absaetze rechts */
.kante-seite .e-gruende { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); padding: clamp(96px, 12vw, 180px) 0; align-items: start; }
.e-gruende-kopf { position: sticky; top: 120px; }
.e-gruende-liste { list-style: none; margin: 0; padding: 0; counter-reset: grund; }
.e-gruende-liste li { counter-increment: grund; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 20px; padding: 30px 0 34px; border-top: 1px solid var(--e-linie); }
.e-gruende-liste li::before { content: counter(grund, upper-alpha); grid-row: span 2; font: 600 44px/.9 Clash, sans-serif; color: transparent; -webkit-text-stroke: 1.2px var(--e-or); }
.e-gruende-liste h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; }
.e-gruende-liste p { margin: 0; color: var(--e-leise); }

/* 6 Zitat */
.kante-seite .e-zitat { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--e-linie); border-bottom: 1px solid var(--e-linie); }
.e-zitat blockquote { margin: 0; }
.e-zitat blockquote p { margin: 0; font: 500 clamp(32px, 4.6vw, 68px)/1.08 Clash, sans-serif; letter-spacing: -.02em; color: var(--e-text); max-width: 24ch; }
.e-zitat blockquote p::before { content: "\201E"; color: var(--e-or); }
.e-zitat blockquote p::after { content: "\201C"; color: var(--e-or); }
.e-zitat-fuss { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 16px 40px; align-items: start; color: var(--e-leise); }
.e-zitat-fuss p { margin: 0; }
.e-zitat-fuss strong { display: block; color: var(--e-text); font-size: 18px; }

/* 7 Netzwerk */
.kante-seite .e-netz { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: end; padding: clamp(96px, 12vw, 180px) 0; }
.e-netz .pfeil-link { margin-top: 24px; display: inline-flex; }
.e-gewerke { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.e-gewerke li { position: relative; padding: 9px 14px 9px 28px; border: 1px solid var(--e-linie); border-radius: 999px; background: rgba(255, 255, 255, .04); font-weight: 600; font-size: 14px; color: var(--e-text); }
.e-gewerke li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--e-or); }

/* Fragen und Kontakt: Ueberschrift als Ecke */
.kante-seite #fragen .e-ecke { align-self: start; }
.kante-seite .k-kontakt .e-ecke { margin-bottom: clamp(32px, 4vw, 56px); }
html.k-ende .k-kontakt .e-waag { color: var(--e-tinte); }
html.k-ende .k-kontakt .e-senk { color: var(--e-tinte); }

@media (max-width: 900px) {
  .e-satz { grid-template-columns: minmax(0, 1fr); }
  html.e-an .e-saetze { height: 72vh; }
  .e-tafel { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .e-tafel-bild { order: -1; height: 34vh; }
  html.e-an .e-tafel { align-content: center; padding-top: 80px; }
  html.e-an .e-tafel ul { display: none; }
  .e-stufe { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .e-stufe:nth-child(n) { margin-left: 0; }
  .kante-seite .e-gruende, .kante-seite .e-netz { grid-template-columns: minmax(0, 1fr); }
  .e-gruende-kopf { position: static; }
  .e-gruende-liste li { grid-template-columns: 44px minmax(0, 1fr); }
  .e-gruende-liste li::before { font-size: 34px; }
  .e-zitat-fuss { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .e-ecke--gross { --e-gr: clamp(40px, 12vw, 56px); }
  .e-ecke--mittel { --e-gr: clamp(34px, 10vw, 46px); }
  .e-ecke--satz { --e-gr: clamp(28px, 8.4vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .e-tafel-bild img { transform: none; }
}
