/* Kesru Startseite. Ruhig, genau, hochwertig: die Produktszenen sind die Bilder der Seite.
   Eine Schrift (Satoshi), Nachttinte fuer Text und dunkle Flaechen, Signalgruen nur fuer "angenommen/laeuft",
   warmes Papier und Stempelrot nur fuer den Auftragszettel. */

@font-face {
  font-family: "Satoshi";
  src: url("/assets/schrift/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --weiss: #FFFFFF;
  --flaeche: #F4F5F7;
  --flaeche-2: #ECEEF2;
  --tinte: #0B1220;
  --tinte-2: #465063;
  --leise: #596376;
  --linie: #E3E6EB;
  --gruen: #15803D;
  --gruen-hell: #4ADE80;
  --papier: #FFFCF4;
  --rot: #C42B2B;
  --marker: #FFE38A;
  --nacht: #0B1220;
  --nacht-2: #131C2E;
  --nacht-3: #1C2740;
  --nacht-linie: rgba(255, 255, 255, .09);
  --nacht-text: #A9B3C7;
  --rand: clamp(20px, 4.5vw, 56px);
  --breite: 1240px;
  --schrift: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --weich: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--weiss); color: var(--tinte); font-family: var(--schrift); font-size: 18px; line-height: 1.6;
  font-weight: 420; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; border-radius: 8px; }
.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--tinte); color: #fff; border-radius: 10px; }
.sprung:focus { top: 12px; }

/* Typografie */
h1 { font-size: clamp(2.7rem, 1.35rem + 4.4vw, 5.1rem); line-height: 1; font-weight: 640; letter-spacing: -.045em; text-wrap: balance; max-width: 13ch; }
.probe h2, .abschnitt-titel, .start h2, .mehr h2 { font-size: clamp(2.1rem, 1.3rem + 2.5vw, 3.5rem); line-height: 1.04; font-weight: 640; letter-spacing: -.04em; text-wrap: balance; max-width: 18ch; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent;
  border-radius: 14px; font-size: 1rem; font-weight: 560; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--weich), border-color .25s var(--weich), color .25s var(--weich), transform .25s var(--weich), box-shadow .25s var(--weich); }
.knopf:hover { transform: translateY(-1px); }
.knopf:active { transform: none; }
.knopf-kanarie, .knopf-tinte { background: var(--tinte); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 20px -10px rgba(11, 18, 32, .6); }
.knopf-kanarie:hover, .knopf-tinte:hover { background: #1B2538; }
.knopf-rand { background: var(--weiss); color: var(--tinte); border-color: var(--linie); }
.knopf-rand:hover { border-color: #C9CED7; background: var(--flaeche); }
.knopf-klein { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: .95rem; }
.knopf-voll { width: 100%; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.marke { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.22rem; font-weight: 700; letter-spacing: -.035em; }
.marke-zeichen { display: inline-flex; align-items: center; gap: 2.5px; height: 22px; padding: 0 6px; border-radius: 7px; background: var(--tinte); }
.marke-zeichen i { display: block; width: 3px; border-radius: 2px; background: #fff; }
.marke-zeichen i:nth-child(1) { height: 7px; } .marke-zeichen i:nth-child(2) { height: 13px; background: var(--gruen-hell); } .marke-zeichen i:nth-child(3) { height: 9px; }
.kopf-nav { display: flex; gap: 30px; margin-left: auto; }
.kopf-nav a { color: var(--tinte-2); text-decoration: none; font-size: .96rem; font-weight: 500; transition: color .2s ease; }
.kopf-nav a:hover { color: var(--tinte); }
@media (max-width: 860px) { .kopf-nav { display: none; } .kopf-innen > .knopf { margin-left: auto; } }

/* Held */
.held { padding: clamp(40px, 7vw, 104px) 0 clamp(96px, 10vw, 150px); overflow-x: clip; }
.held-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
.held-vorzeile { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--flaeche);
  color: var(--tinte-2); font-size: .9rem; font-weight: 500; }
.held-vorzeile::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px rgba(22, 163, 74, .16); }
.held-einleitung { margin-top: 26px; font-size: clamp(1.08rem, 1rem + .3vw, 1.24rem); line-height: 1.6; color: var(--tinte-2); max-width: 34em; }
.held-wege { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.demo-nummer { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 20px 0 12px; border: 1px solid var(--linie); border-radius: 14px;
  background: var(--weiss); text-decoration: none; transition: border-color .25s var(--weich), transform .25s var(--weich); }
.demo-nummer:hover { border-color: #C9CED7; transform: translateY(-1px); }
.demo-nummer-klein { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gruen); font-size: 0; }
.demo-nummer-klein::before { content: ""; width: 15px; height: 15px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.demo-nummer-gross { display: grid; font-size: 1.08rem; font-weight: 640; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.demo-nummer-gross small { font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--leise); }
.held-fuss { margin-top: 18px; font-size: .92rem; color: var(--leise); }

/* Anruf: das Produkt als Bild. Dunkle Leitung, daraus der Auftragszettel auf Papier */
.anruf { position: relative; padding: 0 0 96px 0; }
.leitung { position: relative; padding: 22px 22px 150px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #1E2A45 0%, var(--nacht) 58%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 50px 90px -40px rgba(11, 18, 32, .55), 0 20px 40px -30px rgba(11, 18, 32, .5); }
.leitung-kopf { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--nacht-text); }
.leitung-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen-hell); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.anruf[data-laeuft]:not([data-ende]) .leitung-punkt { animation: puls 1.6s ease-in-out infinite; }
.anruf[data-ende] .leitung-punkt { background: #5B6478; box-shadow: none; }
@keyframes puls { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.leitung-uhr { margin-left: auto; font-variant-numeric: tabular-nums; color: #fff; }
.welle { display: flex; align-items: center; gap: 3px; height: 44px; margin: 18px 0 16px; }
.welle:empty { display: none; }
.welle i { flex: 1; height: 10%; min-height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); transition: height .12s linear, background-color .3s ease; }
.welle[data-wer="ava"] i { background: var(--gruen-hell); }
.welle[data-wer="anrufer"] i { background: #C7D2FE; }
.mitschrift { display: grid; gap: 10px; font-size: .95rem; line-height: 1.45; }
.mitschrift li { max-width: 86%; padding: 9px 13px 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #E7EBF3; }
.mitschrift b { display: block; margin-bottom: 1px; font-size: .74rem; font-weight: 600; color: var(--gruen-hell); letter-spacing: 0; }
.mitschrift .ava { border-bottom-left-radius: 5px; }
.mitschrift .anrufer { justify-self: end; background: #E7EBF3; color: var(--tinte); border-bottom-right-radius: 5px; }
.mitschrift .anrufer b { color: var(--leise); }
.anruf[data-laeuft] .leitung > .mitschrift { height: 12.6em; overflow: hidden; align-content: end; -webkit-mask: linear-gradient(transparent, #000 22%); mask: linear-gradient(transparent, #000 22%); }
.anruf[data-laeuft] .mitschrift li, .konsole-mitschrift li { animation: zeile .4s var(--weich) both; }
@keyframes zeile { from { opacity: 0; transform: translateY(8px); } }

.auftrag { position: absolute; left: -28px; bottom: 0; width: min(78%, 360px); padding: 18px 20px 20px; border-radius: 12px; color: var(--tinte);
  background: var(--papier); transform: rotate(-2deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 30px 60px -28px rgba(11, 18, 32, .45), 0 12px 24px -16px rgba(11, 18, 32, .3); }
.auftrag-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1.5px solid rgba(224, 62, 62, .7); }
.auftrag-titel { font-size: 1.02rem; font-weight: 720; letter-spacing: -.02em; color: var(--rot); }
.auftrag-firma { font-size: .78rem; font-weight: 500; color: var(--leise); }
.auftrag-felder div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0 7px; border-bottom: 1px solid rgba(224, 62, 62, .22); }
.auftrag-felder dt { font-size: .76rem; font-weight: 500; color: var(--leise); }
.auftrag-felder dd { font-size: .97rem; font-weight: 600; letter-spacing: -.01em; color: #1F3A8A; overflow-wrap: anywhere; }
.anruf[data-laeuft] .auftrag-felder dd { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--weich); }
.anruf[data-laeuft] .auftrag-felder dd.da { clip-path: inset(0 0 0 0); }
.stempel { position: absolute; right: 18px; bottom: 16px; padding: 4px 11px 5px; border: 2.5px solid var(--rot); border-radius: 6px; color: var(--rot);
  font-size: .95rem; font-weight: 800; letter-spacing: .02em; transform: rotate(-8deg); mix-blend-mode: multiply; }
.anruf[data-laeuft] .stempel { opacity: 0; transform: rotate(-8deg) scale(1.5); }
.anruf .stempel.da { opacity: .92; transform: rotate(-8deg) scale(1); transition: transform .3s cubic-bezier(.2, .9, .3, 1.25), opacity .15s ease; }
.auftrag.ruck { animation: ruck .4s ease; }
@keyframes ruck { 30% { transform: rotate(-2.6deg) translateY(3px); } }
.anruf-fuss { position: absolute; right: 0; bottom: 18px; width: 44%; display: grid; gap: 6px; font-size: .88rem; line-height: 1.45; color: var(--leise); text-align: right; }
.leise-knopf { justify-self: end; padding: 0; border: 0; background: none; color: var(--tinte); font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linie); }
.leise-knopf:hover { text-decoration-color: currentColor; }
