/* ============================================================
   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; }
.scan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; }
.scan-grid div { padding: 22px 16px; text-align: center; border-left: 1px solid rgba(20,20,26,.12); }
.scan-grid div:first-child { border-left: 0; }
.scan-grid .ic { color: var(--accent-ink); margin: 0 auto 10px; display: block; }
.scan-grid b {
  display: block; font-size: clamp(32px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.scan-grid span { color: var(--ink2); font-size: 14.5px; font-weight: 500; }
.scan-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; max-width: 620px; margin-inline: auto; }

/* ---- 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; }
  .scan-grid { grid-template-columns: 1fr 1fr; }
  .scan-grid div:nth-child(3) { border-left: 0; }
  .scan-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(20,20,26,.12); }
}
