/* Werkstattaufbau. Eine Schrift (Public Sans, variabel), weisser Grund, Tinte,
   Laser-Gruen als einziger Akzent. Die Stufen sind als Treppe gesetzt. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/public-sans-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --putz: #eef2f4;
  --ink: #10151a;
  --ink-soft: #4a5560;
  --laser: #20d67b;
  --laser-text: #0a7a48;
  --line: #dfe5e9;
  --warn: #e8452c;
  --warn-bg: #fff1ee;
  --panel-bg: #10151a;
  --panel-ink: #ffffff;
  --radius-gross: 24px;
  --radius-mittel: 16px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1014;
    --putz: #161c22;
    --ink: #f3f6f8;
    --ink-soft: #9aa6b0;
    --laser-text: #3ee594;
    --line: #26303a;
    --warn-bg: #2a1713;
    --panel-bg: #20d67b;
    --panel-ink: #10151a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.nur-lesen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kopfzeile */

.masthead { border-bottom: 1px solid var(--line); background: var(--bg); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none;
}
.wordmark .mark { width: 30px; height: 30px; flex: none; }
.mark .tr { fill: var(--ink); stroke: var(--ink); }
.mark .sc { fill: var(--laser); stroke: var(--laser); }

.masthead-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.masthead-links a { text-decoration: none; color: var(--ink-soft); }
.masthead-links a:hover { color: var(--ink); }

/* Schaltflaechen */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--laser); color: #10151a;
  font: inherit; font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: #4fe39a; }
.btn:active { transform: translateY(1px); }

/* Startseite: Ueberschrift, darunter die Treppe */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }

.hero h1 {
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 22ch;
}

/* "Akku-Werkzeug" darf nicht am Bindestrich umbrechen */
.nb { white-space: nowrap; }

.hero-lead {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 46ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero .btn { margin-top: clamp(24px, 3vw, 40px); }

.treppe-bereich { padding-bottom: clamp(64px, 9vw, 120px); }

/* Die Stufen steigen nach rechts an. Unten buendig, oben treppenfoermig. */
.treppe {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 20px);
  align-items: end;
}

.stufe-kachel { height: calc(300px + var(--n) * 56px); }

.stufe-kachel a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--putz); border-radius: var(--radius-gross); overflow: hidden;
  text-decoration: none; transition: background 0.15s ease;
}

.stufe-kachel a:hover { background: var(--laser); color: #10151a; }

.kachel-bild { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: var(--pos, center); }

.kachel-text { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 20px; }

.kachel-nr { font-size: 44px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.kachel-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 8px; }
.kachel-titel { font-size: 14px; line-height: 1.35; color: var(--ink-soft); min-height: 2.7em; }
.stufe-kachel a:hover .kachel-titel { color: #10151a; }

/* Die Treppe baut sich auf: Stufe 1 steht, jede weitere waechst alle 0,5 s aus der
   Grundlinie nach oben. Nur am Desktop, nur mit Skript und nur ohne reduzierte
   Bewegung. Nach der Animation gilt wieder der normale Zustand (kein clip-path),
   damit der Tastaturfokus nicht abgeschnitten wird. */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .js .treppe:not(.laeuft) .stufe-kachel:not(:first-child) {
    clip-path: inset(100% 0 0 0 round var(--radius-gross));
  }

  .js .treppe.laeuft .stufe-kachel:not(:first-child) {
    animation: stufe-auf 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    animation-delay: calc((var(--n) - 1) * 0.5s);
  }
}

@keyframes stufe-auf {
  from { clip-path: inset(100% 0 0 0 round var(--radius-gross)); }
  to { clip-path: inset(0 0 0 0 round var(--radius-gross)); }
}

/* Startseite: Auswahl und Transparenz */

.auswahl { background: var(--putz); padding-block: clamp(56px, 8vw, 112px); }

.auswahl .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

.auswahl h2 { font-size: clamp(30px, 4vw, 52px); }
.auswahl-text > * + * { margin-top: 18px; }
.auswahl-text h3 { font-size: 21px; margin-top: 36px; letter-spacing: -0.02em; }
.auswahl-text p { max-width: 62ch; color: var(--ink-soft); }
.auswahl-text strong { color: var(--ink); font-weight: 700; }
.kriterien { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.kriterien li { color: var(--ink-soft); padding-left: 22px; position: relative; max-width: 62ch; }
.kriterien li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--laser); border-radius: 2px; }

/* Stufenseite */

.stufenleiste { border-bottom: 1px solid var(--line); }
.stufenleiste .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.stufenleiste .wrap::-webkit-scrollbar { display: none; }

.stufenleiste a {
  flex: none; display: inline-flex; gap: 8px; align-items: baseline;
  padding: 8px 16px; border-radius: 999px; background: var(--putz);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.stufenleiste a b { font-weight: 800; }
.stufenleiste a:hover { background: var(--line); }
.stufenleiste a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.stufe-kopf { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 6vw, 80px); }

.stufe-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }

.fortschritt { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.fortschritt .balken { display: flex; gap: 5px; }
.fortschritt .seg { width: 32px; height: 8px; border-radius: 4px; background: var(--line); }
.fortschritt .seg.an { background: var(--laser); }

.stufe-text h1 { font-size: clamp(36px, 5.2vw, 68px); letter-spacing: -0.04em; line-height: 0.98; margin-top: 22px; max-width: 14ch; }
.stufe-lead { margin-top: 22px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-soft); }

.stufe-bild { margin: 0; }
.stufe-bild img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-gross); background: var(--putz); }

/* Geraeteliste: wie ein Datenblatt, Zeile fuer Zeile */

.geraete { padding-bottom: clamp(48px, 7vw, 96px); }
.geraete h2 { font-size: clamp(28px, 3.6vw, 46px); }

.werbehinweis { margin-top: 16px; max-width: 70ch; font-size: 15px; color: var(--ink-soft); }
.tag {
  display: inline-block; margin-right: 8px; padding: 1px 10px; border: 1.5px solid var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink);
}

.liste { margin-top: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }

.geraet {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 15rem; gap: clamp(16px, 3vw, 40px);
  align-items: start; padding-block: 28px; border-top: 1px solid var(--line);
}

.geraet-kat { font-size: 15px; font-weight: 600; color: var(--laser-text); padding-top: 4px; }
.geraet-text h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.025em; line-height: 1.15; }
.geraet-text p { margin-top: 10px; max-width: 58ch; color: var(--ink-soft); }
.geraet-kauf { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.geraet-preis { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.kauf {
  display: inline-flex; padding: 11px 20px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.15s ease;
}
.kauf:hover { background: var(--laser); border-color: var(--laser); color: #10151a; }

.geraete-fuss { margin-top: 20px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }
.geraete-fuss a { color: var(--ink); }

/* "Das brauchst du hier noch nicht": der Gegenpol, deshalb dunkel */

.stopp { padding-bottom: clamp(48px, 7vw, 96px); }

.stopp-panel { background: var(--panel-bg); color: var(--panel-ink); border-radius: var(--radius-gross); padding: clamp(28px, 5vw, 64px); }
.stopp-panel h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 16ch; }
.stopp-panel ul { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; display: grid; gap: 22px; max-width: 64ch; }
.stopp-panel li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.5; opacity: 0.92; }
.stopp-panel li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; background: var(--laser); border-radius: 3px; }
.stopp-panel strong { font-weight: 800; opacity: 1; }
@media (prefers-color-scheme: dark) { .stopp-panel li::before { background: #10151a; } }

/* Sicherheitshinweis */

.warnung { padding-bottom: clamp(48px, 7vw, 96px); }
.warnung .wrap > div { background: var(--warn-bg); border-left: 6px solid var(--warn); border-radius: var(--radius-mittel); padding: clamp(22px, 3.4vw, 40px); }
.warnung h2 { font-size: clamp(22px, 2.6vw, 30px); }
.warnung p { margin-top: 14px; max-width: 68ch; }
.warnung a { font-weight: 600; }

/* Weiter */

.weiter { border-top: 1px solid var(--line); }
.weiter .wrap { display: flex; justify-content: space-between; gap: 24px; padding-block: 32px; }
.weiter a { display: flex; flex-direction: column; text-decoration: none; }
.weiter a span { font-size: 14px; color: var(--ink-soft); }
.weiter a b { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.weiter a:hover b { color: var(--laser-text); }
.weiter-vor { align-items: flex-start; }
.weiter-nach { align-items: flex-end; text-align: right; margin-left: auto; }

/* Fusszeile */

.site-foot { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 14px; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-foot .werbung { flex-basis: 100%; order: -1; color: var(--ink); font-weight: 600; font-size: 15px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Impressum und Datenschutz */

.rechtstext { padding-block: clamp(40px, 6vw, 80px); }
.rechtstext .wrap { max-width: 800px; }
.rechtstext h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 28px; }
.rechtstext h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 36px; }
.rechtstext p { margin-top: 12px; color: var(--ink-soft); max-width: 68ch; }
.rechtstext a { color: var(--ink); }
.legal-address { color: var(--ink); font-weight: 500; }
mark.todo { background: #fff3a8; color: #10151a; padding: 0 4px; border-radius: 3px; }

@media (max-width: 1080px) {
  .kachel-name { min-height: 2.4em; }
  .kachel-titel { min-height: 4.05em; }
}

/* Schmale Bildschirme */

@media (max-width: 1000px) {
  .geraet { grid-template-columns: 1fr; gap: 12px; }
  .geraet-kat { padding-top: 0; }
  .geraet-kauf { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
  .auswahl .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .stufe-grid { grid-template-columns: 1fr; }
  .stufe-bild { order: -1; }
  .stufe-text h1 { max-width: none; }

  /* Die Treppe wird zur Liste: Bild links, Text rechts */
  .treppe { grid-template-columns: 1fr; gap: 12px; align-items: stretch; }
  .stufe-kachel { height: auto; }
  .stufe-kachel a { flex-direction: row; min-height: 124px; }
  .kachel-bild { flex: none; width: 124px; height: auto; align-self: stretch; }
  .kachel-text { padding: 14px 16px; justify-content: center; }
  .kachel-nr { font-size: 30px; }
  .kachel-name { min-height: 0; }
  .kachel-titel { min-height: 0; }
  .kachel-name { margin-top: 4px; }
}

@media (max-width: 520px) {
  .masthead-links .nur-desktop { display: none; }
  .geraet-kauf { flex-direction: column; align-items: flex-start; }
  .geraet-preis, .kauf { white-space: nowrap; }
  .weiter .wrap { flex-direction: column; }
  .weiter-nach { align-items: flex-start; text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
