/* Kann das KI? Laborjournal-Look, Schriften lokal (keine externen Abrufe) */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F3F6FC;
  --grid: rgba(46, 49, 146, 0.07);
  --ink: #141A4A;
  --ink-soft: #4A5181;
  --card: #FFFFFF;
  --line: #D5DBEE;
  --cyan: #0E9FC2;
  --cyan-fill: #38D6F5;
  --violet: #5A5FFF;
  --tag: #FFE9A8;
  --btn-text: #FFFFFF;
  --shadow: 0 1px 0 #D5DBEE, 0 12px 28px -18px rgba(20, 26, 74, 0.35);
  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #05061A;
    --grid: rgba(140, 150, 255, 0.08);
    --ink: #ECEEFF;
    --ink-soft: #A3A8CF;
    --card: #0D1133;
    --line: #262C63;
    --cyan: #38D6F5;
    --cyan-fill: #38D6F5;
    --violet: #8A8EFF;
    --tag: #FFE08A;
    --btn-text: #05061A;
    --shadow: 0 0 0 1px #262C63, 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Kopf */
.top { padding: 1.25rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--cyan-fill); }
.nav { display: flex; gap: 1.5rem; font-weight: 600; font-size: 0.98rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 2.5rem 0 1rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: end; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 0.98; letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
}
.hero h1 .q { display: block; font-size: 0.5em; letter-spacing: -0.01em; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.5rem; }
.hero p { max-width: 34rem; font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
}
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.freebie { display: block; margin-top: 0.8rem; font-size: 0.9rem; color: var(--ink-soft); }
.freebie:hover { color: var(--ink); }
.btn-soon, .btn-soon:hover { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: default; }
.btn-ghost:hover { background: var(--card); }

.lab { position: relative; min-height: 420px; }
.lab .prof { position: relative; z-index: 1; width: min(380px, 100%); margin-left: auto; }
.drone { position: absolute; z-index: 2; top: -10px; left: -4%; width: 150px; animation: hover 3.2s ease-in-out infinite; }
.drone img { width: 150px; filter: drop-shadow(0 10px 14px rgba(20, 26, 74, 0.25)); }
.drone .string { position: absolute; left: 50%; top: 112px; width: 2px; height: 46px; background: var(--ink); }
.drone .tag {
  position: absolute; left: 50%; top: 156px; translate: -50% 0; rotate: -6deg;
  background: var(--tag); color: #141A4A; border: 2px solid #141A4A; border-radius: 10px 10px 10px 2px;
  padding: 0.35rem 0.8rem; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; white-space: nowrap;
}
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .drone { animation: none; } html { scroll-behavior: auto; } }

/* Abschnitte */
section { padding: 4.5rem 0; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.8rem; }
.lead { max-width: 40rem; color: var(--ink-soft); margin: 0 0 2.5rem; font-size: 1.1rem; }

/* Versuchsprotokoll: der verfügbare Workflow */
.protocol {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0;
  background: var(--card); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--cyan-fill);
}
.protocol .no {
  border-right: 2px dashed var(--line); padding: 1.6rem 1rem; text-align: center;
  font-family: var(--font-display); font-weight: 800; color: var(--cyan);
}
.protocol .no small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--ink-soft); }
.protocol .no span { font-size: 3rem; line-height: 1; }
.protocol .body { padding: 1.6rem 1.8rem; }
.protocol h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1.1; margin: 0 0 0.6rem; letter-spacing: -0.015em; }
.protocol p { margin: 0 0 1.2rem; max-width: 38rem; }
.protocol dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.95rem; }
.protocol dt { font-weight: 600; }
.protocol dd { margin: 0; color: var(--ink-soft); }
.protocol .buy { padding: 1.6rem 1.8rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.8rem; border-left: 2px dashed var(--line); min-width: 15rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* Im Labor: kommende Versuche, bewusst schlichter */
.soon { margin-top: 3rem; }
.soon h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 0 0 1rem; }
.soon ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.6rem 2rem; }
.soon li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.soon li b { font-family: var(--font-display); color: var(--cyan); min-width: 2.4rem; }
.soon li small { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan-fill); color: #141A4A;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; border: 2px solid var(--ink);
}
.steps h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin: 0 0 0.4rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Einrichten lassen */
.help .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 2.5rem; align-items: center; }
.help img { width: min(300px, 100%); margin-inline: auto; }

/* Fragen */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--cyan); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0; color: var(--ink-soft); max-width: 42rem; }

/* Fuß */
.foot { padding: 2.5rem 0 3rem; border-top: 2px solid var(--ink); margin-top: 2rem; font-size: 0.95rem; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; gap: 1.5rem; }

/* Rechtstexte */
.legal { max-width: 46rem; padding: 2rem 0 4rem; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
.legal .todo { background: var(--tag); color: #141A4A; padding: 0 0.3rem; border-radius: 4px; }
.note { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 2rem; }

@media (max-width: 860px) {
  .hero .wrap, .help .wrap { grid-template-columns: 1fr; }
  .lab { min-height: 0; order: -1; }
  .lab .prof { width: 240px; margin: 0 auto; }
  .drone { left: 2%; width: 110px; }
  .drone img { width: 110px; }
  .drone .string { top: 82px; height: 34px; }
  .drone .tag { top: 116px; font-size: 1.15rem; }
  .protocol { grid-template-columns: 1fr; }
  .protocol .no { border-right: 0; border-bottom: 2px dashed var(--line); text-align: left; display: flex; gap: 0.8rem; align-items: baseline; padding: 1rem 1.4rem; }
  .protocol .no span { font-size: 2rem; }
  .protocol .buy { border-left: 0; border-top: 2px dashed var(--line); min-width: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav { display: none; }
}

/* Bestellung */
.shop { max-width: 46rem; padding: 2rem 0 4rem; }
.shop h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; margin: 0 0 1rem; }
.shop .produkt { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.75rem; }
.shop .produkt b { font-family: var(--font-display); font-size: 1.15rem; }
.shop .produkt .preis { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; white-space: nowrap; }
.shop .produkt small { display: block; color: var(--ink-soft); font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.form-grid .voll { grid-column: 1 / -1; }
.feld label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.feld label small { font-weight: 400; color: var(--ink-soft); }
.feld input, .feld select { width: 100%; box-sizing: border-box; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.feld input:focus, .feld select:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.haken { display: flex; gap: .7rem; align-items: flex-start; margin: .9rem 0; font-size: .95rem; line-height: 1.45; }
.haken input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; }
.hinweis-test { background: #FFE9A8; color: #141A4A; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; margin: 0 0 1.25rem; }
.fehler { color: #B42318; font-weight: 600; margin: .8rem 0; min-height: 1.2em; }
#zahlung { margin: 1.25rem 0; }
.shop .btn { width: 100%; justify-content: center; text-align: center; font-size: 1.05rem; padding-block: .95rem; cursor: pointer; }
.shop .btn[disabled] { opacity: .6; cursor: wait; }
.shop .klein { font-size: .85rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.auswahl { border: 0; padding: 0; margin: 0 0 1rem; }
.auswahl legend { font-weight: 600; margin-bottom: .5rem; }
.wahl { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: .6rem; cursor: pointer; }
.wahl input { width: 1.15rem; height: 1.15rem; }
.wahl b { display: block; font-family: var(--font-display); }
.wahl small { display: block; color: var(--ink-soft); font-size: .85rem; }
.wahl .preis { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.summe { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1.2rem; padding: .4rem .2rem; margin-bottom: .8rem; border-top: 2px solid var(--ink); }
.summe b { font-size: 1.5rem; }
.wahl.inklusive { opacity: .55; }
.wahl.inklusive small::after { content: " · in der Einrichtung enthalten"; }

/* Kompakte Workflow-Karten (Startseite) */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.4rem; }
.wf-karte { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: 5px 5px 0 var(--cyan-fill); }
.wf-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.wf-nr { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--cyan); }
.wf-tag { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.7rem; }
.wf-karte h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.wf-karte h3 a { color: inherit; text-decoration: none; }
.wf-karte h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wf-karte p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.wf-fuss { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wf-preis { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin-right: auto; }
.btn-klein { padding: 0.45rem 0.95rem; font-size: 0.9rem; }

/* Workflow-Unterseiten */
.detail { padding: 1.5rem 0 3rem; }
.detail section { padding: 2rem 0 0; }
.detail h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -0.015em; }
.brotkrumen { font-size: 0.88rem; color: var(--ink-soft); }
.brotkrumen a { color: var(--ink-soft); }
.d-hero { display: grid; grid-template-columns: 1fr 20rem; gap: 2.5rem; align-items: start; padding-top: 1.2rem; }
.d-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0.3rem 0 1rem; }
.d-hero .kicker { font-weight: 600; color: var(--cyan); margin: 0; }
.d-hero .lead { margin: 0; }
.d-kauf { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.4rem; box-shadow: 5px 5px 0 var(--cyan-fill); display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch; text-align: center; }
.d-kauf img { width: 120px; height: 120px; margin: 0 auto; object-fit: contain; }
.d-kauf .btn { text-align: center; justify-content: center; }
.d-liste { margin: 0; padding-left: 1.2rem; max-width: 46rem; }
.d-liste li { margin-bottom: 0.5rem; }
.haken-liste { list-style: none; padding-left: 0; }
.haken-liste li::before { content: "✓"; color: var(--cyan); font-weight: 800; margin-right: 0.55rem; }
.d-schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.d-schritte li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.d-schritte li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cyan-fill); color: #141A4A; font-weight: 800; margin-bottom: 0.6rem; }
.d-schritte h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.d-schritte p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.d-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.d-einrichtung { margin-top: 2rem; background: var(--card); border: 2px dashed var(--line); border-radius: 18px; padding: 1.6rem 1.8rem !important; }
.d-einrichtung p { max-width: 46rem; color: var(--ink-soft); margin: 0 0 1.2rem; }
.d-weiter ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.d-weiter a { font-weight: 600; }
@media (max-width: 760px) {
  .d-hero, .d-zwei { grid-template-columns: 1fr; }
}
