/* ============================================================
   Website-Erstellung — seitenspezifische Komponenten
   Ergaenzt site.css, aendert nichts daran (andere Seiten unberuehrt).
   Tokens und Bausteine folgen /opt/automationz/STYLEGUIDE.md
   ============================================================ */

/* ---- Aufmacher mit Arbeitsprobe ---- */
.hero-zwei { display: grid; grid-template-columns: 1fr .92fr; gap: 56px; align-items: center; }
.hero-zwei .sub { max-width: 46ch; }
.hero-shots { position: relative; padding-bottom: 42px; }
.hero-shots .desk {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(20,20,26,.06), 0 30px 60px -28px rgba(20,20,26,.42);
}
/* Oberer Seitenbereich angeschnitten, damit die Arbeitsprobe gross genug wirkt.
   height:auto ist Pflicht, sonst zieht das height-Attribut des Bildes es in die Länge. */
.hero-shots .desk { aspect-ratio: 4 / 3; }
.hero-shots .desk img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-shots .tel {
  position: absolute; left: -18px; bottom: 0; width: 124px;
  background: #16150F; border-radius: 16px; padding: 4px;
  box-shadow: 0 18px 36px -14px rgba(20,20,26,.5);
}
.hero-shots .tel img { width: 100%; height: auto; display: block; border-radius: 12px; }
.hero-shots .zettel {
  position: absolute; right: -10px; bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 15px; box-shadow: var(--shadow); max-width: 214px;
}
.hero-shots .zettel b { display: block; font-size: 13.5px; font-weight: 700; }
.hero-shots .zettel span { font-size: 12.5px; color: var(--ink2); line-height: 1.45; display: block; margin-top: 2px; }
@media (max-width: 980px) {
  .hero-zwei { grid-template-columns: 1fr; gap: 38px; }
  .hero-shots { max-width: 480px; }
  .hero-shots .zettel { display: none; }
}

/* Sprungziele freihalten: Kontaktleiste 34px + Nav 64px liegen fix darueber. */
#beispiele, #preise, #anfrage, #faq, #scan { scroll-margin-top: 116px; }

/* ---- Scan-Band: die eigenen Messwerte aus dem Umkreis-Scan ---- */
#scan { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }

/* ---- Icons: ein Strichstil ueberall ---- */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }

/* ---- Vergleichsregler: zwei echte Screenshots uebereinander ---- */
.ba-wrap { max-width: 1000px; margin: 0 auto; }
.ba-slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--card); cursor: ew-resize; user-select: none;
  touch-action: pan-y;
}
.ba-slider img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-slider .alt {
  position: absolute; inset: 0; width: 100%; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-slider .alt img { width: 100%; }
.ba-griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--accent-contrast); transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(20,20,26,.25);
}
.ba-griff::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--accent-contrast);
  border: 1px solid rgba(20,20,26,.2);
  box-shadow: 0 2px 10px rgba(20,20,26,.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316150F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 4 12l5 6M15 6l5 6-5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 21px;
}
.ba-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 16px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; pointer-events: none;
}
.ba-tag.l { left: 16px; background: rgba(20,20,26,.78); color: #FAF9F4; }
.ba-tag.r { right: 16px; background: var(--accent); color: var(--accent-contrast); }
.ba-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---- Handy-Vergleich: das eigentliche Argument ---- */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 720px; margin: 56px auto 0; }
.phones figure { margin: 0; text-align: center; }
.phone {
  position: relative; width: 100%; max-width: 268px; margin: 0 auto;
  aspect-ratio: 268 / 470; background: #16150F;
  border-radius: 30px; padding: 9px; box-shadow: var(--shadow);
}
.phone::before {
  content: ""; position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 5px; border-radius: 3px; background: rgba(250,249,244,.22); z-index: 2;
}
.phone .screen { width: 100%; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phones figcaption { margin-top: 16px; font-size: 14px; color: var(--ink2); }
.phones figcaption b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.phones .warn { color: var(--accent-ink); font-weight: 600; }

.demo-cta { text-align: center; margin-top: 48px; }
.demo-cta p { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---- Branchen mit Bild ---- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gal .bild { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.gal .bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal figure:hover .bild img { transform: scale(1.04); }
.gal .marke {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(250,249,244,.94); color: var(--ink); border-radius: 999px;
  padding: 6px 13px 6px 10px; font-size: 12.5px; font-weight: 700;
}
.gal .marke .ic { width: 15px; height: 15px; color: var(--accent-ink); stroke-width: 1.9; }
.gal figcaption { padding: 20px 20px 22px; }
.gal figcaption b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.gal figcaption span { font-size: 14.5px; color: var(--ink2); }
.gal .zuerst {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--accent-ink);
}
.gal .zuerst .ic { width: 16px; height: 16px; stroke-width: 2; }
.gal-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 26px; }

/* ---- Ablauf in Schritten ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-kopf .nr {
  counter-increment: s; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--accent-contrast);
  font-size: 15px; font-weight: 700; border: 1px solid rgba(20,20,26,.28); flex: none;
}
.step-kopf .nr::before { content: counter(s); }
.step-kopf .ic { color: var(--accent-ink); opacity: .55; margin-left: auto; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink2); }
.step .dauer { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-top: 10px; }

/* ---- Leistungsliste zweispaltig ---- */
.leist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; max-width: 820px; margin: 0 auto; }
.leist div { position: relative; padding-left: 21px; font-size: 15px; }
.leist div::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-size: 11px; line-height: 2.1; }

/* ---- Pakete hell (die .plan-Karten in site.css sind fuer dunkle Sektionen) ---- */
.wplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.wplan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; display: flex; flex-direction: column; }
.wplan.hot { border-color: var(--accent); box-shadow: 0 1px 2px rgba(20,20,26,.05), 0 18px 44px -20px rgba(30,91,69,.4); }
.wplan .tagline { font-size: 14px; color: var(--ink2); margin-top: 4px; }
.wplan .price { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin-top: 18px; font-variant-numeric: tabular-nums; }
.wplan .price-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.wplan ul { list-style: none; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 9px; }
/* Marke absolut setzen, damit Fettes und Folgetext eine Zeile bleiben (kein Flex-Abstand). */
.wplan li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink2); }
.wplan li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-size: 10px; line-height: 2.1; }
.wplan li strong { color: var(--ink); font-weight: 600; }
.wplan li.base { font-weight: 600; color: var(--ink); }
.wplan li.base::before { content: "↑"; font-size: 13px; line-height: 1.6; }
.wplan .btn { margin-top: auto; width: 100%; }
.hot-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-contrast);
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(20,20,26,.28); white-space: nowrap;
}
.wplan { position: relative; }
.wplans-note { text-align: center; font-size: 14px; color: var(--ink2); max-width: 620px; margin: 26px auto 0; }

/* ---- Betreiber-Hinweis / laufende Kosten ---- */
.run { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.run div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.run .ic { color: var(--accent-ink); margin-bottom: 12px; }
.run b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.run span { font-size: 14px; color: var(--ink2); }

/* Leistungsliste mit Haken statt Raute */
.leist div.hk { padding-left: 28px; }
.leist div.hk .ic { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--accent-ink); stroke-width: 2.2; }
.leist div.hk::before { content: none; }

@media (max-width: 900px) {
  .leist, .phones { grid-template-columns: 1fr; }
  .phones { max-width: 300px; gap: 42px; }
  .gal, .steps, .wplans, .run { grid-template-columns: 1fr; }
}

/* ================= Problem-Pillars ================= */
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pill {
  display: grid; grid-template-columns: 200px 1fr; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.pill-demo {
  position: relative; background: var(--tint); border-right: 1px solid var(--line);
  padding: 22px 16px 42px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pill-txt { padding: 22px 24px 24px; position: relative; }
.pill-nr {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-ink); opacity: .75; margin-bottom: 7px;
}
.pill-txt b { display: block; font-size: 17.5px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.pill-txt p { font-size: 14.5px; color: var(--ink2); line-height: 1.55; }
.pill-fix {
  display: flex; gap: 9px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--accent-ink); line-height: 1.45;
}
.pill-fix .ic { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; stroke-width: 2.4; fill: none; stroke: currentColor; }
.demo-tag {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink2);
}
.demo-tag.bad { color: #A8321E; border-color: rgba(168,50,30,.3); background: rgba(168,50,30,.07); }

/* Demo 1: Handy */
.phone {
  width: 116px; border-radius: 16px; background: #14141A; padding: 7px 5px;
  box-shadow: 0 10px 28px -12px rgba(20,20,26,.5); position: relative;
}
.phone-notch { width: 34px; height: 4px; border-radius: 99px; background: #3a3a42; margin: 0 auto 5px; }
.phone-screen { background: #fff; border-radius: 10px; height: 148px; overflow: hidden; padding: 6px 5px; }
.mini-site { transform-origin: top left; }
.ms-logo { font-size: 5px; font-weight: 800; letter-spacing: .06em; margin-bottom: 3px; }
.ms-nav { display: flex; gap: 3px; margin-bottom: 4px; }
.ms-nav span { font-size: 3.4px; color: #666; white-space: nowrap; }
.mini-site p { font-size: 3.4px; line-height: 1.5; color: #444; margin-bottom: 3px; }
.lupe {
  position: absolute; right: 18px; top: 52%; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,249,244,.9); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(20,20,26,.45);
}
.lupe svg { width: 20px; height: 20px; fill: none; stroke: var(--ink2); stroke-width: 2; }

/* Demo 2: Google-Treffer */
.serp { width: 100%; max-width: 168px; }
.serp-q {
  display: flex; align-items: center; gap: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; margin-bottom: 9px;
}
.serp-q .ic { width: 11px; height: 11px; fill: none; stroke: var(--muted); stroke-width: 2.2; }
.serp-q span { font-size: 9.5px; color: var(--ink2); }
.serp-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.serp-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.serp-fav {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--tint);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--ink2);
}
.serp-head b { display: block; font-size: 10px; font-weight: 600; color: #1a3a8f; line-height: 1.2; }
.serp-head em { font-style: normal; font-size: 8.5px; color: var(--muted); }
.serp-line { height: 4px; border-radius: 99px; background: var(--line); margin-bottom: 4px; }
.serp-line.short { width: 62%; }
.serp-facts { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; }
.serp-facts .miss {
  font-size: 8.5px; font-weight: 600; color: #A8321E; background: rgba(168,50,30,.07);
  border: 1px dashed rgba(168,50,30,.35); border-radius: 5px; padding: 3px 6px;
}

/* Demo 3: Scroll-Weg zur Telefonnummer */
.scrollmap { display: flex; align-items: stretch; gap: 9px; }
.sm-page { width: 108px; display: flex; flex-direction: column; gap: 5px; }
.sm-block {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  height: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: var(--muted); text-align: center; padding: 0 5px;
}
.sm-block.tall { height: 38px; }
.sm-block.hit {
  background: rgba(168,50,30,.07); border-color: rgba(168,50,30,.4); color: #A8321E; font-weight: 700;
}
.sm-arrow { display: flex; align-items: flex-end; padding-bottom: 10px; }
.sm-arrow svg { width: 16px; height: 100%; fill: none; stroke: var(--muted); stroke-width: 1.8; }

/* Demo 4: Browserleiste */
.browser { width: 100%; max-width: 176px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.br-bar { display: flex; align-items: center; gap: 4px; padding: 7px 8px; background: var(--tint); border-bottom: 1px solid var(--line); }
.br-bar > i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: 0 0 5px; }
.br-url {
  flex: 1; margin-left: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 99px; padding: 3px 7px; display: flex; align-items: center; gap: 5px; min-width: 0;
}
.br-url .warn { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; font-weight: 700; color: #A8321E; white-space: nowrap; }
.br-url .warn .ic { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.br-url em { font-style: normal; font-size: 7.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-body { padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.br-chip {
  font-size: 8.5px; font-weight: 600; padding: 4px 7px; border-radius: 5px;
  color: #A8321E; background: rgba(168,50,30,.07); border: 1px dashed rgba(168,50,30,.35);
}

/* ================= Branchen: Seitenaufbau ================= */
.gal .bild.slim { aspect-ratio: 16 / 7; }
.gal .wf { margin: 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); margin-top: -22px; position: relative; z-index: 2; box-shadow: 0 8px 22px -14px rgba(20,20,26,.35); }
.gal .wf-top { display: flex; align-items: center; gap: 4px; padding: 7px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.gal .wf-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); flex: 0 0 5px; }
.gal .wf-top span { margin-left: 6px; font-size: 10px; color: var(--muted); }
.gal .wf-rows { list-style: none; margin: 0; padding: 9px; display: flex; flex-direction: column; gap: 6px; counter-reset: wfr; }
.gal .wf-rows li {
  counter-increment: wfr; display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 9px; font-size: 12px; color: var(--ink2); line-height: 1.3;
}
.gal .wf-rows li::before {
  content: counter(wfr); flex: 0 0 16px; height: 16px; border-radius: 50%;
  background: var(--tint); color: var(--ink2); font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gal .wf-rows li.erst { background: rgba(30,91,69,.06); border-color: rgba(30,91,69,.35); color: var(--ink); font-weight: 600; }
.gal .wf-rows li.erst::before { background: var(--accent); color: var(--accent-contrast); }
.gal .wf-rows li span { min-width: 0; }
.gal .wf-rows li em {
  margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 700; white-space: nowrap;
  background: var(--accent); color: var(--accent-contrast); padding: 3px 8px; border-radius: 999px;
}
.gal .wf-rows li:not(.erst) em { background: var(--tint); color: var(--ink2); }
.gal figcaption { padding-top: 16px; }

@media (max-width: 900px) {
  .pills { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pill { grid-template-columns: 1fr; }
  .pill-demo { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px 44px; }
}

/* ================= Immer enthalten: Gruppenkarten ================= */
.inkl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.inkl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 22px; box-shadow: var(--shadow); height: 100%;
}
.inkl-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.inkl-ic {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px;
  background: rgba(30,91,69,.08); display: flex; align-items: center; justify-content: center;
}
.inkl-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.inkl-head b { font-size: 16px; font-weight: 600; line-height: 1.25; }
.inkl-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.inkl-card li { display: flex; gap: 9px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.inkl-card li .ic { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 3px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1000px) { .inkl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .inkl { grid-template-columns: 1fr; } }

/* ================= Vertrauensleiste unter dem Hero ================= */
.trustbar { padding: 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; padding: 16px 0; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); text-decoration: none; font-weight: 500; }
.tb-item b { color: var(--ink); font-weight: 700; }
.tb-item .ic { width: 17px; height: 17px; fill: none; stroke: var(--accent-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tb-item .tp-stars { display: inline-flex; gap: 2px; }
.tb-item .tp-stars span { width: 16px; height: 16px; }
.tb-item .tp-stars svg { width: 11px; height: 11px; }
.tb-item .fv-mark { font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.tb-sep { width: 1px; height: 18px; background: var(--line); }
@media (max-width: 760px) { .tb-sep { display: none; } .tb-row { gap: 12px 18px; } }

/* ================= Lohnt es sich: drei Fälle ================= */
.faelle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.fall {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.fall-tag {
  display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-ink); background: rgba(30,91,69,.08);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 12px;
}
.fall b { display: block; font-size: 18px; font-weight: 600; line-height: 1.28; margin-bottom: 10px; }
.fall p { font-size: 14.5px; color: var(--ink2); line-height: 1.55; margin-bottom: 10px; }
.fall-fazit {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700;
}
.fall-fazit.ja { color: var(--accent-ink); }
.fall-fazit.teil { color: #8A6B1F; }

/* ================= Worauf achten ================= */
.krits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; counter-reset: kr; }
.krit {
  counter-increment: kr; position: relative; padding: 18px 20px 18px 58px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.krit::before {
  content: counter(kr, decimal-leading-zero); position: absolute; left: 20px; top: 18px;
  font-size: 13px; font-weight: 700; color: var(--accent-ink); opacity: .8;
}
.krit b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.krit p { font-size: 14px; color: var(--ink2); line-height: 1.55; }

/* ================= Von wem ================= */
.vonwem { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.vw-portrait { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vw-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.vw-name { display: block; padding: 14px 16px 16px; font-size: 13.5px; color: var(--ink2); }
.vw-name b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.vw-text p { font-size: 15.5px; color: var(--ink2); line-height: 1.65; margin-bottom: 14px; }
.vw-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vw-facts li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; }
.vw-facts b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 3px; }
.vw-facts span { font-size: 13px; color: var(--ink2); line-height: 1.4; }
.vw-logos { margin-top: 24px; }
.vw-logos-lab { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.vw-logos > div { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.vw-logos img { height: 26px; width: auto; opacity: .55; filter: grayscale(1); }

@media (max-width: 900px) {
  .faelle { grid-template-columns: 1fr; }
  .krits { grid-template-columns: 1fr; }
  .vonwem { grid-template-columns: 1fr; gap: 24px; }
  .vw-portrait { max-width: 260px; }
}
@media (max-width: 560px) { .vw-facts { grid-template-columns: 1fr; } }

/* ================================================================
   Bewegung und Interaktion
   Alles unter prefers-reduced-motion: no-preference, damit die Seite
   bei reduzierter Bewegung ruhig bleibt.
   ================================================================ */

/* Lesefortschritt */
.readbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--accent), #7CC7A1); transition: width .1s linear; }

/* Karten heben sich beim Überfahren */
.pill, .fall, .krit, .inkl-card, .gal figure, .vw-facts li {
  transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s ease, border-color .32s ease;
}
.pill:hover, .fall:hover, .inkl-card:hover, .gal figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(20,20,26,.05), 0 26px 50px -24px rgba(20,20,26,.3);
}
.krit:hover, .vw-facts li:hover { transform: translateY(-2px); border-color: rgba(30,91,69,.35); }
.inkl-card .inkl-ic { transition: transform .35s cubic-bezier(.2,.7,.3,1), background .3s ease; }
.inkl-card:hover .inkl-ic { transform: scale(1.08) rotate(-4deg); background: rgba(30,91,69,.14); }
.krit::before { transition: transform .3s ease, opacity .3s ease; }
.krit:hover::before { transform: scale(1.25); opacity: 1; }

/* Logos erst grau, beim Überfahren in Farbe */
.vw-logos img { transition: filter .35s ease, opacity .35s ease, transform .35s ease; }
.vw-logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }

/* Pfeil im Hauptbutton */
.hero-ctas .btn-primary::after,
.demo-cta .btn-primary::after {
  content: "→"; display: inline-block; margin-left: 9px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.hero-ctas .btn-primary:hover::after,
.demo-cta .btn-primary:hover::after { transform: translateX(5px); }

@media (prefers-reduced-motion: no-preference) {

  /* --- Gestaffeltes Einblenden: Container ruhig, Kinder nacheinander --- */
  html.js .rv.stagger { opacity: 1; transform: none; transition: none; }
  html.js .stagger > * { opacity: 0; transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
  html.js .stagger.in > * { opacity: 1; transform: none; }
  html.js .stagger.in > *:nth-child(1) { transition-delay: .05s }
  html.js .stagger.in > *:nth-child(2) { transition-delay: .13s }
  html.js .stagger.in > *:nth-child(3) { transition-delay: .21s }
  html.js .stagger.in > *:nth-child(4) { transition-delay: .29s }
  html.js .stagger.in > *:nth-child(5) { transition-delay: .37s }
  html.js .stagger.in > *:nth-child(6) { transition-delay: .45s }
  html.js .stagger.in > *:nth-child(7) { transition-delay: .53s }
  html.js .stagger.in > *:nth-child(8) { transition-delay: .61s }

  /* --- Branchen: der Seitenaufbau baut sich Zeile für Zeile auf --- */
  html.js .gal.stagger .wf-rows li { opacity: 0; transform: translateX(-10px);
    transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.3,1); }
  html.js .gal.stagger.in .wf-rows li { opacity: 1; transform: none; }
  html.js .gal.stagger.in figure:nth-child(1) .wf-rows li:nth-child(1) { transition-delay: .30s }
  html.js .gal.stagger.in figure:nth-child(1) .wf-rows li:nth-child(2) { transition-delay: .40s }
  html.js .gal.stagger.in figure:nth-child(1) .wf-rows li:nth-child(3) { transition-delay: .50s }
  html.js .gal.stagger.in figure:nth-child(1) .wf-rows li:nth-child(4) { transition-delay: .60s }
  html.js .gal.stagger.in figure:nth-child(2) .wf-rows li:nth-child(1) { transition-delay: .38s }
  html.js .gal.stagger.in figure:nth-child(2) .wf-rows li:nth-child(2) { transition-delay: .48s }
  html.js .gal.stagger.in figure:nth-child(2) .wf-rows li:nth-child(3) { transition-delay: .58s }
  html.js .gal.stagger.in figure:nth-child(2) .wf-rows li:nth-child(4) { transition-delay: .68s }
  html.js .gal.stagger.in figure:nth-child(3) .wf-rows li:nth-child(1) { transition-delay: .46s }
  html.js .gal.stagger.in figure:nth-child(3) .wf-rows li:nth-child(2) { transition-delay: .56s }
  html.js .gal.stagger.in figure:nth-child(3) .wf-rows li:nth-child(3) { transition-delay: .66s }
  html.js .gal.stagger.in figure:nth-child(3) .wf-rows li:nth-child(4) { transition-delay: .76s }
  .gal .wf-rows li.erst { position: relative; overflow: hidden; }
  .gal.in .wf-rows li.erst::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
    transform: translateX(-120%); animation: sheen 4.5s 1.2s ease-in-out infinite;
  }
  @keyframes sheen { 0%,70% { transform: translateX(-120%) } 100% { transform: translateX(120%) } }

  /* --- Demo 1: die Seite wird herangezoomt und wieder losgelassen --- */
  .pills.in .mini-site { transform-origin: 12% 18%; animation: pinch 7s 1s ease-in-out infinite; }
  @keyframes pinch {
    0%, 22%   { transform: scale(1) }
    42%, 62%  { transform: scale(2.4) }
    82%, 100% { transform: scale(1) }
  }
  .pills.in .lupe { animation: lupe 7s 1s ease-in-out infinite; }
  @keyframes lupe {
    0%, 22%   { transform: translate(0,0) scale(1); opacity: .95 }
    42%, 62%  { transform: translate(-16px,-10px) scale(1.12); opacity: 1 }
    82%, 100% { transform: translate(0,0) scale(1); opacity: .95 }
  }

  /* --- Demo 2: die Lücken im Google-Treffer tauchen nacheinander auf --- */
  .pills.stagger .serp-facts .miss { opacity: 0; transform: translateY(6px);
    transition: opacity .45s ease, transform .45s ease; }
  .pills.stagger.in .serp-facts .miss:nth-child(1) { opacity: 1; transform: none; transition-delay: .45s }
  .pills.stagger.in .serp-facts .miss:nth-child(2) { opacity: 1; transform: none; transition-delay: .60s }
  .pills.stagger.in .serp-facts .miss:nth-child(3) { opacity: 1; transform: none; transition-delay: .75s }

  /* --- Demo 3: der Weg nach unten bis zur Telefonnummer --- */
  .pills.in .sm-arrow svg { animation: wander 3.2s ease-in-out infinite; }
  @keyframes wander { 0%,100% { transform: translateY(-6px); opacity: .45 } 50% { transform: translateY(6px); opacity: 1 } }
  .pills.in .sm-block.hit { animation: puls 3.2s ease-in-out infinite; }
  @keyframes puls {
    0%, 55%  { box-shadow: 0 0 0 0 rgba(168,50,30,0) }
    75%      { box-shadow: 0 0 0 5px rgba(168,50,30,.13) }
    100%     { box-shadow: 0 0 0 0 rgba(168,50,30,0) }
  }

  /* --- Demo 4: die Browser-Warnung blinkt ruhig --- */
  .pills.in .br-url .warn { animation: warnblink 2.6s ease-in-out infinite; }
  @keyframes warnblink { 0%,100% { opacity: 1 } 50% { opacity: .42 } }

  /* --- Hero: das Handy schwebt leicht --- */
  .hero-shots .tel { animation: schweben 7s ease-in-out infinite; }
  @keyframes schweben { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
}
