/* Kesru, Vollbreite: Baender von Rand zu Rand, kraeftige Schrift, Signalgruen vom Annehmen-Knopf,
   ein dunkler Held in Bildschirmhoehe mit einer Sprechwelle ueber die ganze Breite. Liegt ueber markex.css
   und markex-abschnitte.css. */

:root {
  --rand: clamp(18px, 3.2vw, 56px);
  --breite: 1720px;
  --signal: #3DDC84;
  --signal-tief: #2BBF6E;
  --papier-hell: #F7F6F2;
}
.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); }

/* Schrift kraeftiger und groesser */
h1 { font-size: clamp(3rem, 1.4rem + 4.6vw, 6.6rem); line-height: .96; font-weight: 760; letter-spacing: -.052em; max-width: 14ch; }
.probe h2, .abschnitt-titel, .start h2, .mehr h2 { font-size: clamp(2.4rem, 1.35rem + 3.3vw, 4.8rem); line-height: 1; font-weight: 740; letter-spacing: -.048em; max-width: 16ch; }
.leistung-text h3 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem); font-weight: 720; letter-spacing: -.045em; }

/* Knoepfe: Signalgruene Pille fuer die Hauptaktion, Umriss fuer die zweite */
.knopf { border-radius: 999px; min-height: 54px; padding: 0 28px; font-weight: 640; }
.knopf-kanarie { background: var(--signal); color: var(--nacht); box-shadow: 0 10px 30px -12px rgba(61, 220, 132, .7); }
.knopf-kanarie:hover { background: #5BE59A; }
.knopf-tinte { background: var(--signal); color: var(--nacht); box-shadow: none; }
.knopf-tinte:hover { background: #5BE59A; }
.knopf-rand { background: transparent; border-color: rgba(11, 18, 32, .18); }
.knopf-klein { min-height: 44px; padding: 0 20px; }

/* Kopf: dunkle Leiste ueber die ganze Breite */
.kopf { background: rgba(10, 15, 28, .86); border-bottom-color: rgba(255, 255, 255, .06); }
.kopf.gescrollt { border-bottom-color: rgba(255, 255, 255, .1); }
.kopf-innen { min-height: 72px; }
@media (max-width: 420px) { .kopf-innen { gap: 10px; } .kopf-innen > .knopf-klein { padding: 0 14px; } }
.marke { color: #fff; }
.marke-zeichen { background: var(--signal); }
.marke-zeichen i { background: var(--nacht); }
.marke-zeichen i:nth-child(2) { background: var(--nacht); }
.kopf-nav a { color: #B7C0D3; }
.kopf-nav a:hover { color: #fff; }

/* Held: Nachtband in Bildschirmhoehe, feines Raster, Licht, Welle am Fuss */
.held { position: relative; isolation: isolate; min-height: calc(100svh - 72px); display: grid; align-content: center;
  padding: clamp(32px, 4.5vw, 72px) 0 0; background: var(--nacht); color: #fff; overflow: hidden; }
.held::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: radial-gradient(90% 70% at 60% 30%, #000 30%, transparent 75%); mask: radial-gradient(90% 70% at 60% 30%, #000 30%, transparent 75%); }
.held-licht { position: absolute; z-index: -1; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 220, 132, .22), rgba(61, 220, 132, 0) 70%); filter: blur(10px); pointer-events: none; }
.held-raster { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.held-vorzeile { background: rgba(255, 255, 255, .07); color: #C9D1E1; }
.held-vorzeile::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.held-einleitung { color: #A9B3C7; }
.held-fuss { color: #8792AA; }
.demo-nummer { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; padding-right: 26px; }
.demo-nummer:hover { border-color: rgba(255, 255, 255, .3); }
.demo-nummer-klein { background: var(--signal); }
.demo-nummer-klein::before { background: var(--nacht); }
.demo-nummer-gross small { color: #8792AA; }
.leitung { background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .8); }
.anruf-fuss { color: #8792AA; }
.leise-knopf { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.funk { display: flex; align-items: center; gap: clamp(2px, .3vw, 5px); height: clamp(80px, 9vw, 150px); margin-top: clamp(28px, 3.5vw, 52px); padding: 0 var(--rand);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.funk:empty { display: none; }
.funk i { flex: 1; height: 6%; min-height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: height .16s linear, background-color .4s ease; }
.funk[data-wer="ava"] i { background: linear-gradient(var(--signal), rgba(61, 220, 132, .35)); }
.funk[data-wer="anrufer"] i { background: linear-gradient(#C7D2FE, rgba(199, 210, 254, .35)); }

/* Faktenband: vier grosse Aussagen ueber die ganze Breite */
.fakten { background: var(--papier-hell); border-bottom: 1px solid var(--linie); }
.fakten-liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fakten-liste li { display: grid; gap: 8px; align-content: start; padding: clamp(28px, 3.5vw, 52px) clamp(16px, 2vw, 32px) clamp(28px, 3.5vw, 52px) 0; }
.fakten-liste li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--linie); }
.fakten-liste b { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.9rem); line-height: 1; font-weight: 760; letter-spacing: -.05em; }
.fakten-liste span { color: var(--tinte-2); font-size: 1rem; max-width: 20em; }

/* Ava testen: die Nummer riesig ueber die ganze Breite, darunter die Konsole */
.probe { background: #fff; }
.probe-raster { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
.probe-kopf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px clamp(40px, 6vw, 96px); align-items: end; }
.probe-kopf > p { margin-top: 0; }
.probe-nummer { grid-column: 1 / -1; width: auto; margin-top: clamp(24px, 3vw, 44px); font-size: clamp(2rem, 10.4vw, 12.5rem); font-weight: 780; letter-spacing: -.06em; line-height: .9; white-space: nowrap;
  background: linear-gradient(90deg, var(--nacht) 0 60%, #3B4A6B); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .3s ease; }
.probe-nummer span { color: var(--signal-tief); font-size: clamp(.85rem, .8rem + .2vw, 1rem); letter-spacing: 0; -webkit-text-fill-color: var(--signal-tief); margin-bottom: 10px; }
.probe-nummer:hover { opacity: .85; }
.probe-kopf .knopf { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
.konsole { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; padding: 10px; border-radius: 32px; }
.konsole-tabs { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; padding: 6px; border-radius: 24px; }
.konsole-tabs button { min-height: 76px; padding: 14px 20px; border-radius: 18px; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); font-weight: 600; letter-spacing: -.02em; text-align: left; }
.konsole-bild { min-height: 340px; padding: clamp(22px, 3vw, 40px); }
.konsole-mitschrift { font-size: clamp(.98rem, .9rem + .35vw, 1.2rem); }

/* Ein Tag: am Desktop faehrt der Tag waagrecht vorbei, waehrend man scrollt */
.tagesablauf { position: relative; background: var(--papier-hell); padding: clamp(96px, 11vw, 168px) 0; }
.tagesablauf .tag-kopf { margin-bottom: 0; }
@media (min-width: 1000px) {
  .tagesablauf.quer { padding: 0; }
  .tagesablauf.quer .tag-pin { position: sticky; top: 72px; height: calc(100svh - 72px); display: grid; align-content: center; overflow: hidden; }
  .tagesablauf.quer .tag-pin { grid-template-columns: minmax(0, 1fr); }
  .tagesablauf.quer .tag { min-width: 0; }
  .tagesablauf.quer .tag { --spur: 0; margin-top: clamp(40px, 5vh, 72px); }
  .tagesablauf.quer .band { top: 26px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .tagesablauf.quer .band-lauf { width: calc(var(--fortschritt, 1) * 100%); height: 2px; }
  .tagesablauf.quer .band-lauf::after { left: auto; right: -6px; top: -5px; bottom: auto; }
  .tagesablauf.quer .tag-liste { display: flex; grid-template-columns: none; gap: 20px; width: max-content; padding: 64px var(--rand) 8px; transform: translateX(var(--verschub, 0px)); will-change: transform; }
  .tagesablauf.quer .tag-liste li, .tagesablauf.quer .tag-liste li:nth-child(odd), .tagesablauf.quer .tag-liste li:nth-child(even) {
    grid-row: auto; grid-column: auto; width: clamp(300px, 26vw, 400px); margin: 0; padding: 28px 28px 30px; justify-self: auto; text-align: left;
    border-radius: 26px; background: #fff; box-shadow: 0 1px 0 rgba(11, 18, 32, .04), 0 30px 60px -40px rgba(11, 18, 32, .35); }
  .tagesablauf.quer .tag-liste li::before, .tagesablauf.quer .tag-liste li:nth-child(odd)::before, .tagesablauf.quer .tag-liste li:nth-child(even)::before {
    left: 28px; right: auto; top: -44px; }
  .tagesablauf.quer .tag-liste li:nth-child(odd) p { margin-left: 0; }
  .tagesablauf.quer .tag-liste time { font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.6rem); font-weight: 760; letter-spacing: -.045em; color: var(--tinte); line-height: 1; }
  .tagesablauf.quer .tag-notfall time { color: var(--rot); }
  .tagesablauf.quer .tag-liste h3 { margin-top: 18px; }
  .tagesablauf.quer[data-laeuft] .tag-liste li:not(.da) { opacity: .45; transform: none; }
}

/* Start: Nachtband, der Auftragszettel leuchtet darauf */
.start { background: var(--nacht); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.start::before { content: ""; position: absolute; z-index: -1; left: -10%; bottom: -40%; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 220, 132, .18), transparent 70%); }
.start h2 { color: #fff; }
.danach li { color: #C9D1E1; }
.danach li::before { background: rgba(255, 255, 255, .08); box-shadow: none; color: #fff; }
.startform .knopf { background: var(--nacht); color: #fff; }
.startform .knopf:hover { background: #1B2538; }

/* Preise: Tarifkarten weich, Hauptaktion gruen */
.tarif { border-radius: 28px; }
.tarif-empfohlen .knopf-kanarie { background: var(--signal); color: var(--nacht); }
.tarif-marke { background: var(--signal); color: var(--nacht); }
.rechner { border-radius: 28px; }

/* Fuss */
.fuss { background: var(--nacht); color: #8792AA; border-top: 0; }
.fuss a { color: #C9D1E1; }
.fuss a:hover { color: #fff; }

/* Tablett und Handy */
@media (max-width: 1000px) {
  .held { min-height: 0; }
  .held-raster { grid-template-columns: minmax(0, 1fr); }
  .fakten-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fakten-liste li:nth-child(3) { padding-left: 0; border-left: 0; }
  .fakten-liste li:nth-child(n+3) { border-top: 1px solid var(--linie); }
  .probe-kopf { grid-template-columns: minmax(0, 1fr); }
  .konsole { grid-template-columns: minmax(0, 1fr); }
  .konsole-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .konsole-tabs button { min-height: 60px; font-size: .95rem; padding: 10px 14px; }
  .auftrag { left: 0; }
  .mini-zettel { left: 8px; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .fakten-liste { grid-template-columns: minmax(0, 1fr); }
  .fakten-liste li, .fakten-liste li + li { padding: 22px 0; padding-left: 0; border-left: 0; }
  .fakten-liste li + li { border-top: 1px solid var(--linie); }
  .konsole { border-radius: 24px; padding: 6px; }
  .konsole-bild { min-height: 300px; padding: 20px 16px; }
}

/* Fragen: "Ask Ava". Links die Fragen als grosse Zeilen, rechts beantwortet Ava die gewaehlte live */
#fragen { background: #fff; }
.fragen { gap: 0; border-top: 1px solid var(--linie); }
.fragen details { display: block; border-bottom: 1px solid var(--linie); }
.fragen summary { justify-self: stretch; max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(18px, 2vw, 24px) 4px;
  border-radius: 0; background: transparent; color: var(--tinte); font-size: clamp(1.08rem, .95rem + .5vw, 1.4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.fragen summary:hover { background: transparent; color: var(--tinte-2); }
.fragen summary::after { content: ""; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; transform: none; margin: 0;
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--weich), background-color .25s ease; }
.fragen details[open] summary::after { transform: rotate(45deg); background-color: var(--flaeche-2); }
.fragen details p { max-width: 100%; margin: 0 0 20px; }
.fragen-buehne { display: none; }
@media (min-width: 1000px) {
  .fragen-raster { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "kopf buehne" "liste buehne"; column-gap: clamp(48px, 6vw, 112px); row-gap: 36px; align-items: start; }
  .fragen-kopf { grid-area: kopf; position: static; }
  .fragen { grid-area: liste; }
  .fragen details p { display: none; }
  .fragen summary { cursor: pointer; color: var(--leise); transition: color .25s ease, padding-left .35s var(--weich); }
  .fragen summary:hover { color: var(--tinte); }
  .fragen summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5L10.5 8 6 12.5' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .fragen details[open] summary::after { transform: none; }
  .fragen details.gewaehlt summary { color: var(--tinte); padding-left: 22px; }
  .fragen details.gewaehlt summary::before { content: ""; position: absolute; left: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
  .fragen details.gewaehlt summary { position: relative; }
  .fragen details.gewaehlt summary::after { background-color: var(--nacht); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5L10.5 8 6 12.5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .fragen-buehne { grid-area: buehne; position: sticky; top: 104px; display: grid; align-content: start; gap: 18px; min-height: 460px; padding: clamp(24px, 2.6vw, 36px);
    border-radius: 32px; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #1E2A45 0%, var(--nacht) 60%); box-shadow: 0 60px 120px -60px rgba(11, 18, 32, .6); }
  .fragen-buehne-kopf { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: #fff; }
  .fragen-buehne-klein { margin-left: auto; font-size: .82rem; font-weight: 500; color: #8792AA; }
  .fragen-welle { display: flex; align-items: center; gap: 4px; height: 56px; }
  .fragen-welle i { flex: 1; height: 8%; min-height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: height .14s linear, background-color .3s ease; }
  .fragen-welle.spricht i { background: var(--signal); }
  .fragen-mitschrift { gap: 14px; font-size: clamp(1.02rem, .9rem + .4vw, 1.25rem); line-height: 1.5; }
  .fragen-mitschrift li { max-width: 92%; padding: 14px 18px; border-radius: 20px; }
  .fragen-mitschrift .anrufer { border-bottom-right-radius: 6px; }
  .fragen-mitschrift .ava { border-bottom-left-radius: 6px; min-height: 5.2em; }
  .fragen-mitschrift .laeuft::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--signal); animation: cursor 1s steps(1) infinite; }
  .fragen-anruf { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #A9B3C7; font-size: .95rem; text-decoration: none; }
  .fragen-anruf b { color: #fff; font-weight: 640; }
}
