/*
  Gemeinsames Stylesheet der neu gestalteten Seiten (Produktseite cayZUGFeRD, Startseite).
  Eigenständig: diese Seiten laden style.css nicht mehr. Die Klassen tragen aus der Entstehung
  das Präfix „zug-“. Seitenspezifisches der Startseite steht in start.css.
  Gestaltung wie die Broschüre: Cabin (schmal und fett für Überschriften), Tinte auf Weiß,
  Linien statt Karten. Leitmotiv der Produktseite ist das Druckband der Statusübersicht.
*/
@font-face {
  font-family: 'Cabin';
  src: url('../assets/fonts/cabin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --indigo: #323ea3;
  --petrol: #27689e;
  --tuerkis: #1f8fa0;
  --gelb: #eebc27;
  --koralle: #d8473d;
  --koralle-blass: #eab9b5;
  --tinte: #1b2147;
  --text: #353a47;
  --leise: #5f6980;
  --linie: #d5dbe8;
  --papier: #ffffff;
  --grund: #f1f4fa;
  --rand: clamp(20px, 4.5vw, 56px);
  --abstand: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.zug-page {
  margin: 0; background: var(--papier); color: var(--text);
  font-family: 'Cabin', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem; line-height: 1.5; font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(.zug-page) :is(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.zug-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.zug-page) :is(img, video) { display: block; max-width: 100%; height: auto; }
:where(.zug-page) a { color: inherit; }
.zug-page [id] { scroll-margin-top: 92px; }
.zug-page :focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }

.zug-breite { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--rand); }

/* Schrift */
.zug-page h1, .zug-page h2 { color: var(--tinte); font-weight: 700; font-stretch: 75%; text-wrap: balance; }
.zug-page h1 { font-size: clamp(2.2rem, 4.9vw, 3.9rem); line-height: 1.02; letter-spacing: -.008em; }
.zug-page h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.06; letter-spacing: -.006em; max-width: 24em; }
.zug-page h2 span { display: block; }
.zug-page h3 { color: var(--tinte); font-weight: 700; font-size: 1.32rem; line-height: 1.22; }
.zug-vorspann { font-size: clamp(1.15rem, 1.55vw, 1.32rem); line-height: 1.42; max-width: 34em; text-wrap: pretty; }
.zug-page h2 + .zug-vorspann { margin-top: 22px; }
.zug-klein { font-size: .95rem; line-height: 1.5; color: var(--leise); }
.zug-link { color: var(--petrol); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.zug-link:hover { color: var(--indigo); }

/* Knopf: wie in der Anwendung, Indigo mit dem gelben Pfeil aus dem Logo */
.zug-knopf {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px 15px 20px;
  background: var(--indigo); color: #fff; border-radius: 10px; text-decoration: none;
  font-weight: 600; font-size: 1.08rem; line-height: 1.2; transition: background-color .15s ease;
}
.zug-knopf::before {
  content: ''; flex: none; width: 10px; height: 16px; background: var(--gelb);
  clip-path: polygon(0 12%, 22% 0, 100% 50%, 22% 100%, 0 88%, 56% 50%);
}
.zug-knopf:hover { background: var(--tinte); }
.zug-knopf-klein { padding: 11px 18px 11px 15px; font-size: 1rem; }
.zug-knopf-hell { background: var(--gelb); color: var(--tinte); }
.zug-knopf-hell::before { background: var(--tinte); }
.zug-knopf-hell:hover { background: #fff; }

.zug-skip { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px; background: #fff; color: var(--tinte); border-radius: 8px; }
.zug-skip:focus { top: 12px; }

/* Kopf */
.zug-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linie); }
.zug-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.zug-brand img { width: 132px; height: auto; }
.zug-menu { display: flex; align-items: center; gap: 30px; font-size: 1.04rem; }
.zug-menu a:not(.zug-knopf) { text-decoration: none; color: var(--tinte); padding: 6px 0; border-bottom: 2px solid transparent; }
.zug-menu a:not(.zug-knopf):hover { border-bottom-color: var(--gelb); }
.zug-menu-toggle { display: none; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--linie); border-radius: 8px; background: #fff; color: var(--tinte); font: inherit; font-size: 1rem; cursor: pointer; }

/* Einstieg */
.zug-hero { padding-top: clamp(48px, 7vw, 104px); }
.zug-hero-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 64px; align-items: end; padding-bottom: clamp(48px, 6vw, 84px); }
.zug-hero-kopf h1 { grid-column: 1 / -1; }
.zug-hero-kopf h1 span { display: block; }
.zug-hero-ruf { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* Druckband */
.zug-band-flaeche { background: var(--grund); padding: clamp(36px, 5vw, 68px) 0 clamp(30px, 4vw, 48px); }
.zug-band { display: flex; align-items: stretch; gap: clamp(10px, 1.6vw, 22px); }
.zug-band::before, .zug-band::after { content: ''; flex: none; width: clamp(14px, 1.9vw, 26px); border: clamp(4px, .5vw, 6px) solid var(--indigo); }
.zug-band::before { border-right: 0; border-radius: 16px 0 0 16px; }
.zug-band::after { border-left: 0; border-radius: 0 16px 16px 0; border-color: var(--tuerkis); }
.zug-kaestchen { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(18px, 2.1vw, 27px), 1fr)); gap: clamp(6px, .75vw, 10px); padding: clamp(8px, 1vw, 14px) 0; }
.zug-kaestchen i {
  aspect-ratio: 1; border-radius: 27%; background: var(--indigo);
  background: color-mix(in oklab, var(--indigo), var(--tuerkis) calc(var(--i) * 1% / 1.32));
  animation: zug-setzen .3s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: calc(var(--i) * 9ms + 250ms);
}
.zug-kaestchen i.offen { background: var(--koralle); }
.zug-kaestchen i.erledigt { background: var(--koralle-blass); }
.zug-kaestchen i.naechster { background: var(--gelb); border-radius: 0; clip-path: polygon(22% 16%, 40% 0, 90% 50%, 40% 100%, 22% 84%, 56% 50%); animation-delay: 1.55s; }
@keyframes zug-setzen { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.zug-band-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; margin-top: 22px; font-size: 1rem; color: var(--text); }
.zug-legende { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.zug-legende li { display: flex; align-items: center; gap: 9px; }
.zug-legende li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: var(--petrol); }
.zug-legende li.offen::before { background: var(--koralle); }
.zug-legende li.erledigt::before { background: var(--koralle-blass); }

/* Im Einsatz: farbiges Band mit zwei Aussagen, Kundenzahl und Spanne der abas-Versionen */
.zug-einsatz { margin-top: clamp(48px, 6vw, 84px); padding: clamp(44px, 5.5vw, 78px) 0; background: var(--indigo); color: #fff; }
.zug-einsatz-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px 56px; align-items: end; }
.zug-einsatz h2 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1; max-width: 6em; }
.zug-spanne p { color: #fff; font-weight: 700; font-stretch: 75%; font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.08; text-wrap: balance; }
.zug-spanne-linie { display: flex; align-items: center; gap: 16px; margin-top: 22px; color: var(--gelb); font-weight: 700; font-stretch: 75%; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.zug-spanne-linie i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--gelb); }
.zug-spanne-linie i::before, .zug-spanne-linie i::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--gelb); translate: 0 -50%; }
.zug-spanne-linie i::before { left: 0; }
.zug-spanne-linie i::after { right: 0; }
.zug-einsatz-fuss { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 18px; color: #e3e6fa; font-size: 1.08rem; }

/* Abschnitte */
.zug-abschnitt { padding: var(--abstand) 0 0; }
.zug-abschnitt-grund { background: var(--grund); padding-bottom: var(--abstand); margin-top: var(--abstand); }
.zug-abschnitt-knapp { padding-top: clamp(56px, 6.5vw, 92px); padding-bottom: clamp(56px, 6.5vw, 92px); }
.zug-kopf { margin-bottom: clamp(36px, 4.5vw, 60px); }

/* Merkpunkte mit Linie darüber (wie in der Broschüre) */
.zug-punkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.zug-punkte.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zug-punkte > * { border-top: 2px solid var(--tinte); padding-top: 16px; }
.zug-punkte h3 { margin-bottom: 8px; }
.zug-punkte p + p { margin-top: 12px; }
.zug-punkte p { max-width: 36em; }

/* Termine der Pflicht */
.zug-termin { display: block; color: var(--tinte); font-weight: 700; font-stretch: 75%; font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.08; margin-bottom: 8px; }

/* Ausgangslage */
.zug-lage h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 75%; line-height: 1.08; margin-bottom: 14px; }
.zug-lage .zug-merk { margin-top: 16px; color: var(--tinte); font-weight: 600; }

/* Ablauf: nummerierte Schritte, Punkte und Verbindungslinie wie in der Konfiguration der Anwendung */
.zug-schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 40px; counter-reset: schritt; }
.zug-schritte.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zug-schritte li { position: relative; counter-increment: schritt; padding-top: 58px; }
.zug-schritte li::before {
  content: counter(schritt); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.zug-schritte li::after { content: ''; position: absolute; top: 18px; left: 50px; right: -28px; height: 2px; background: var(--linie); }
.zug-schritte li:last-child::after { display: none; }
.zug-schritte h3 { margin-bottom: 8px; }

/* Video: eigener Abschnitt direkt unter dem Einstieg, volle Breite */
.zug-film { padding: clamp(48px, 6vw, 84px) 0 0; }
.zug-film-kopf { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 56px; align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.zug-film-kopf p { max-width: 36em; }
.zug-film video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b1022; box-shadow: 0 0 0 1px var(--linie), 0 22px 54px rgba(27, 33, 71, .16); }
.zug-hero-wege { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 6px; }
.zug-zum-video, .zug-zur-broschuere { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.zug-zur-broschuere::before { content: ''; width: 12px; height: 14px; background: currentColor; clip-path: polygon(36% 0, 64% 0, 64% 52%, 100% 52%, 50% 100%, 0 52%, 36% 52%); }
.zug-zum-video::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }

/* Formate */
.zug-formate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.zug-format-bild { height: 300px; overflow: hidden; border-radius: 12px; background: var(--grund); box-shadow: 0 0 0 1px var(--linie); margin-bottom: 26px; }
.zug-format-bild pre { margin: 0; padding: 30px 34px; font: 500 1.02rem/1.72 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; color: var(--petrol); white-space: pre; }
.zug-format-bild pre b { color: var(--tinte); font-weight: 600; }
.zug-format-bild a { display: block; padding: 30px 30px 0; }
.zug-format-bild img { width: min(100%, 470px); margin-inline: auto; box-shadow: 0 8px 30px rgba(27, 33, 71, .16); }
.zug-format h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 75%; line-height: 1.08; margin-bottom: 12px; }
.zug-format p + p { margin-top: 12px; }
.zug-frage { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; }

/* Einblick in die Oberfläche */
.zug-blick { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 56px; align-items: start; padding: clamp(40px, 5vw, 64px) 0; border-top: 2px solid var(--tinte); }
.zug-blick:last-child { padding-bottom: 0; }
.zug-blick-breit { grid-template-columns: minmax(0, 1fr); }
.zug-blick-breit .zug-blick-text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 56px; align-items: start; }
.zug-blick-breit .zug-blick-text > div > p + p { margin-top: 12px; }
.zug-menuepunkt { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--petrol); font-weight: 600; font-size: 1.04rem; margin-bottom: 12px; }
.zug-neu { background: var(--gelb); color: var(--tinte); font-size: .88rem; font-weight: 600; padding: 2px 9px 3px; border-radius: 5px; }
.zug-blick h3 { font-size: clamp(1.4rem, 1.9vw, 1.65rem); font-stretch: 75%; line-height: 1.08; text-wrap: balance; }
.zug-blick-text > h3 + p, .zug-blick-text > p + p { margin-top: 14px; }
.zug-schirm a { display: block; overflow: hidden; border-radius: 12px; background: var(--grund); box-shadow: 0 0 0 1px var(--linie), 0 18px 44px rgba(27, 33, 71, .13); }
.zug-schirm img { width: 100%; }
.zug-hinweis { margin-top: 28px; }

/* Broschüre zum Herunterladen: Titelseite vor einer Innenseite */
.zug-broschuere { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 56px; align-items: center; }
.zug-heft { position: relative; display: block; width: min(100%, 290px); margin: 0 36px 28px 0; }
.zug-heft img { width: 100%; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1px var(--linie), 0 16px 38px rgba(27, 33, 71, .16); }
.zug-heft img:first-child { position: absolute; left: 36px; top: 28px; }
.zug-heft img:last-child { position: relative; }
.zug-broschuere-text .zug-knopf { margin-top: 28px; }
.zug-broschuere-text .zug-klein { margin-top: 12px; }

/* Technische Details */
.zug-technik { margin-top: 56px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.zug-technik summary, .zug-faq summary { cursor: pointer; list-style: none; position: relative; color: var(--tinte); font-weight: 600; padding: 20px 44px 20px 0; }
.zug-technik summary::-webkit-details-marker, .zug-faq summary::-webkit-details-marker { display: none; }
.zug-technik summary::after, .zug-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; translate: 0 -54%; font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--indigo); }
.zug-technik[open] summary::after, .zug-faq details[open] summary::after { content: '\2212'; }
.zug-technik-inhalt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; padding: 4px 0 28px; }
.zug-technik-inhalt h3 { font-size: 1.12rem; margin-bottom: 6px; }
.zug-technik-inhalt p { font-size: 1.02rem; }

/* Preis */
.zug-preis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; border-top: 2px solid var(--tinte); padding-top: 28px; }
.zug-betrag { color: var(--tinte); font-weight: 700; font-stretch: 75%; font-size: clamp(2.3rem, 4vw, 3.3rem); line-height: 1; white-space: nowrap; margin-bottom: 8px; }
.zug-preis-text p + p { margin-top: 12px; }
.zug-preis-text .zug-knopf { margin-top: 26px; }

/* Fragen */
.zug-fragen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.zug-fragen .zug-kopf { margin-bottom: 0; }
.zug-fragen .zug-kopf p { margin-top: 18px; }
.zug-faq details { border-bottom: 1px solid var(--linie); }
.zug-faq details:first-child { border-top: 2px solid var(--tinte); }
.zug-faq summary { font-size: 1.16rem; line-height: 1.3; }
.zug-faq details p { padding: 0 44px 24px 0; max-width: 44em; }

/* Abschluss */
.zug-schluss { margin-top: var(--abstand); background: var(--tinte); color: #d9deef; padding: clamp(64px, 8vw, 112px) 0; }
.zug-schluss-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 56px; align-items: end; }
.zug-schluss h2 { color: #fff; }
.zug-schluss .zug-vorspann { margin-top: 22px; }
.zug-schluss-ruf { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.zug-schluss .zug-klein { color: #b6bfdb; }
.zug-schluss a:not(.zug-knopf) { color: #fff; }
.zug-schluss :focus-visible { outline-color: var(--gelb); }

.zug-footer { background: var(--tinte); color: #b6bfdb; border-top: 1px solid rgba(255, 255, 255, .16); padding: 28px 0 34px; font-size: 1rem; }
.zug-footer-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 36px; }
.zug-footer-logo { display: inline-block; background: #fff; border-radius: 9px; padding: 8px 12px; }
.zug-footer-logo img { width: 104px; }
.zug-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.zug-footer-links a { color: #fff; text-decoration: none; }
.zug-footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.zug-footer :focus-visible { outline-color: var(--gelb); }
.zug-footer .zug-klein { color: #b6bfdb; margin-top: 18px; }

@media (max-width: 1000px) {
  .zug-menu { gap: 20px; }
  .zug-hero-kopf, .zug-schluss-raster { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .zug-schritte, .zug-schritte.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zug-schritte li::after { display: none; }
  .zug-punkte.drei { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .zug-blick, .zug-blick-breit .zug-blick-text, .zug-fragen, .zug-preis, .zug-film-kopf, .zug-broschuere { grid-template-columns: minmax(0, 1fr); }
  .zug-heft { width: min(70%, 240px); }
  .zug-einsatz-raster { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 860px) {
  .zug-nav { min-height: 66px; flex-wrap: wrap; gap: 0; }
  .zug-brand img { width: 112px; }
  .zug-menu-toggle:not([hidden]) { display: inline-flex; }
  .zug-menu { width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0 20px; }
  .zug-page.zug-js .zug-menu { display: none; }
  .zug-page.zug-js .zug-menu.is-open { display: flex; }
  .zug-menu a:not(.zug-knopf) { display: block; padding: 9px 0; }
  .zug-menu li:last-child { margin-top: 10px; }
}
@media (max-width: 680px) {
  body.zug-page { font-size: 1.1rem; }
  .zug-punkte, .zug-formate, .zug-technik-inhalt { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .zug-schritte, .zug-schritte.drei { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .zug-schritte li { padding: 2px 0 0 56px; }
  .zug-kaestchen i:nth-child(n+73):not(.naechster) { display: none; }
  .zug-format-bild { height: 240px; }
  .zug-format-bild pre { padding: 22px; font-size: .92rem; }
  .zug-knopf { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zug-kaestchen i { animation: none; }
  .zug-knopf { transition: none; }
}
@media print {
  .zug-header { position: static; }
  .zug-kaestchen i { animation: none; }
}
