/* assets/css/base.css — Grundgeruest: Reset, Header/Nav, Buttons, Marken-
   Badge (Logo + Regenbogenring), gemeinsame Bausteine (.card, .proof-grid,
   .section), Footer, Chat-Button. Nutzt AUSSCHLIESSLICH Tokens aus
   tokens.css. Sektions-eigenes Markup/CSS lebt in assets/css/<sektion>.css. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* War 1180px - auf breiten Monitoren (>1600px) blieb ueber 50% der
   Breite ungenutzt leerer Rand. Textzeilen selbst werden dadurch nicht
   laenger (Fliesstext hat eigene ch-basierte max-width, z. B.
   .hero p.lede/.prose/.handoff-copy p) - breiter wirkt sich nur auf
   Grids/Karten/das Hero-Panel aus, die dadurch mehr Luft bekommen. */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 860px) { .wrap { padding: 0 32px; } }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
@media (max-width: 380px) { .wrap { padding: 0 14px; } }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-strong);
}
:root[data-theme="dark"] .eyebrow { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--accent); } }

.divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 14px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: var(--r);
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px var(--accent-soft); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-line); }

/* ---------- Marken-Badge: Logo + rotierender Regenbogenring ---------- */
/* 1:1 aus Boothdock-Studio/app/styles/base.css uebernommen. Nur an
   Stellen mit sicher dunklem/kleinem Kontext verwendet (Header). */
.brand-badge { position: relative; display: inline-grid; place-items: center; flex: none; }
.brand-badge__img { position: relative; display: block; width: 92%; height: 92%; }
.brand-badge__ring {
  position: absolute; inset: 0;
  border-radius: 21.25%;
  padding: 4%;
  background: conic-gradient(from var(--brand-angle, 0deg),
    #ff4438, #ff9f1c, #ffe14d, #6ce5a0, #4db2ff, #a97bff, #ff5db1, #ff4438);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: brand-spin 5.5s linear infinite;
}
@property --brand-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes brand-spin { to { --brand-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .brand-badge__ring { animation: none; } }
.header-badge { width: 32px; height: 32px; }

/* ---------- Header/Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
@media (max-width: 380px) { .nav-row { gap: 10px; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.brand .dock { color: var(--accent-strong); }
:root[data-theme="dark"] .brand .dock { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .dock { color: var(--accent); } }

nav.primary { display: flex; gap: 30px; font-size: 14.5px; font-weight: 600; color: var(--ink-muted); }
nav.primary a { text-decoration: none; }
nav.primary a:hover { color: var(--ink); }
/* War 860px - bei 6 Nav-Links + Sprachumschalter + Theme-Toggle + CTA
   brauchte die volle Kopfzeile in echt ~1040px Inhaltsbreite; zwischen
   860 und ~1080px lief der Header dadurch spuerbar ueber (Breiten-Audit
   26.08.). Schwelle auf 1100px angehoben, damit die kompakte Hamburger-
   Variante genau die Luecke abdeckt, in der die volle Nav nicht passt. */
@media (max-width: 1100px) { nav.primary { display: none; } }

/* ---------- Mobile-Nav (<details>/<summary>, gleiches Muster wie der
   Sprachumschalter) - ersetzt nav.primary unterhalb von 1100px, sonst
   waeren Studio/Hub/Preise/DSGVO/Blog/Kontakt auf schmaleren Bildschirmen
   aus dem Header komplett verschwunden. ---------- */
.mobile-nav-toggle { display: none; position: relative; }
@media (max-width: 1100px) { .mobile-nav-toggle { display: block; } }
.mobile-nav-toggle summary {
  display: flex; align-items: center; justify-content: center; list-style: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 16px; color: var(--ink-muted);
}
.mobile-nav-toggle summary::-webkit-details-marker { display: none; }
.mobile-nav-toggle summary:hover { color: var(--ink); border-color: var(--accent-line); }
.mobile-nav-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px;
}
.mobile-nav-menu a {
  display: block; padding: 10px 12px; border-radius: 7px;
  font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none;
}
.mobile-nav-menu a:hover { background: var(--surface-2); color: var(--ink); }
/* Ersetzt den Header-CTA-Button auf schmalen Handys (siehe .header-cta
   in der @media(max-width:480px)-Regel oben) - gleicher Zweck, lebt
   aber im Hamburger-Menue statt in der ueberfuellten Kopfzeile. */
.mobile-nav-menu a.mobile-nav-cta {
  display: none; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--accent-strong); font-weight: 700; text-align: center;
}
@media (max-width: 700px) { .mobile-nav-menu a.mobile-nav-cta { display: block; } }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; width: 104px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-muted); cursor: pointer;
}
/* Feste Breite, damit DUNKEL/HELL (bzw. die 4-6 Zeichen langen Labels
   in den anderen 6 Sprachen) beim Umschalten NICHT die Box-Groesse
   aendern - sonst springt der Rest der Nav-Row sichtbar mit. */
.theme-toggle #themeLabel { display: inline-block; width: 46px; text-align: left; }
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-line); }

/* ---------- Sprachumschalter (<details>/<summary>, kein JS noetig) ---------- */
.language-switcher { position: relative; }
.language-switcher summary {
  display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; cursor: pointer;
  height: 38px; width: 128px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
}
/* Feste Breite (passt den laengsten Sprachnamen "Nederlands") - sonst
   hat der Umschalter je nach aktueller Sprachseite eine andere Breite
   und die Nav-Row wirkt zwischen den Sprachversionen uneinheitlich. */
.language-switcher summary .lang-code { display: none; text-transform: uppercase; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); translate: 0 -2px;
}
.language-switcher summary:hover { color: var(--ink); border-color: var(--accent-line); }

/* Mobile Kompaktform MUSS nach den Basisregeln (Theme-Toggle UND
   Sprachumschalter) stehen, sonst gewinnen dort die festen Breiten per
   Kaskaden-Reihenfolge auch unterhalb der Schwelle. Logo + Sprache +
   Theme + CTA + Hamburger gleichzeitig sprengte die Kopfzeile schon
   deutlich oberhalb von 480px (bis ~640-700px, echter Ueberlauf-Fund
   26.08., Schwelle war anfangs zu niedrig angesetzt) - der CTA-Button
   zieht in das Hamburger-Menue um (siehe .mobile-nav-cta), der
   Sprachumschalter zeigt nur noch den Laendercode. */
@media (max-width: 700px) {
  .nav-actions { gap: 6px; }
  .theme-toggle #themeLabel { display: none; }
  .theme-toggle { width: 38px; padding: 0; justify-content: center; }
  .header-cta { display: none; }
  .language-switcher summary { width: 52px; padding: 0; }
  .language-switcher summary .lang-name { display: none; }
  .language-switcher summary .lang-code { display: inline; }
}

.language-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; min-width: 170px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 6px; display: grid; gap: 2px;
}
.language-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 13.5px; color: var(--ink-muted); text-decoration: none;
}
.language-menu a:hover { background: var(--surface-2); color: var(--ink); }
.language-menu a[aria-current="true"] { color: var(--accent-strong); font-weight: 700; }
:root[data-theme="dark"] .language-menu a[aria-current="true"] { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .language-menu a[aria-current="true"] { color: var(--accent); } }

/* ---------- Sektions-Grundgeruest ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--ink-muted); line-height: 1.6; }

/* ---------- Karten-Grid (Studio-/Hub-/Warum-Feature-Karten) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 3px 8px; border-radius: 5px; margin-bottom: 12px;
}
:root[data-theme="dark"] .card .tag { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .tag { color: var(--accent); } }
.card .tag.status-soon { color: var(--ink-muted); background: var(--surface-3); border-color: var(--line-strong); }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.005em; }
.card p { font-size: 13.8px; color: var(--ink-muted); line-height: 1.6; }
.card p b { color: var(--ink); font-weight: 600; }
/* Betonung fuer den einen echten Wettbewerbsvorsprung (z. B. Greenscreen) -
   Kontur+Glow statt Farbbalken am Rand (das waere die generische Masche).
   Sehr langsames Atmen im Glow, damit es als "das hier ist besonders"
   wirkt statt als Lauflicht-Effekt. */
.card.highlight-card { border-color: var(--accent-line); box-shadow: 0 8px 28px var(--accent-soft); animation: card-glow-breathe 4.5s ease-in-out infinite; }
.card.highlight-card:hover { animation-play-state: paused; }
@keyframes card-glow-breathe {
  0%, 100% { box-shadow: 0 8px 28px var(--accent-soft); }
  50% { box-shadow: 0 8px 34px rgba(245, 165, 36, .26); }
}

/* ---------- Scroll-Reveal (assets/js/scroll-reveal.js) ---------- */
/* Nur verstecken, WENN JS laeuft (html.js wird per Inline-Skript im <head>
   gesetzt). Ohne JS - oder wenn scroll-reveal.js gar nicht laedt - bleibt
   der gesamte Inhalt unter dem Hero sichtbar, statt dauerhaft auf opacity:0
   zu haengen (Bug-R3: Seite war ohne JS/noscript unter dem Hero leer). */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.card-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.card-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.card-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.card-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
.card-grid [data-reveal]:nth-child(5) { transition-delay: .32s; }
.card-grid [data-reveal]:nth-child(6) { transition-delay: .4s; }
.proof-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.proof-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.proof-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.proof-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- Proof-Grid (4er Hero-Proof-Strip, 3er DSGVO-Streifen) ---------- */
.proof { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
/* Anders als .proof-grid-3 (3 Eintraege, bricht schon bei 860px auf 1
   Spalte um) blieb die 4er-Variante bis hinunter zu jeder Handybreite
   zweispaltig - bei ~170px Spaltenbreite minus Padding wirkte das auf
   schmalen Telefonen eng (Breiten-Audit 26.08.). */
@media (max-width: 560px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid .proof-item { border-right: none; border-bottom: 1px solid var(--line); }
  .proof-grid .proof-item:last-child { border-bottom: none; }
}
.proof-item { padding: 30px 28px; border-right: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; transition: background .2s ease; }
.proof-item:hover { background: var(--surface); }
.proof-grid .proof-item:nth-child(4) { border-right: none; }
.proof-grid-3 { grid-template-columns: repeat(3, 1fr); }
.proof-grid-3 .proof-item:nth-child(3) { border-right: none; }
@media (max-width: 860px) {
  .proof-item:nth-child(2) { border-right: none; }
  .proof-item { border-bottom: 1px solid var(--line); }
  .proof-grid-3 { grid-template-columns: 1fr; }
}
.proof-item svg { flex: none; width: 22px; height: 22px; color: var(--accent-strong); margin-top: 2px; }
:root[data-theme="dark"] .proof-item svg { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proof-item svg { color: var(--accent); } }
.proof-item b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.proof-item span { display: block; font-size: 13px; color: var(--ink-muted); line-height: 1.5; }


/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
/* Bei sehr schmalen Handys (<=380px, z. B. iPhone SE 1./2. Gen.) reichte
   selbst der 2-spaltige Footer nicht mehr (Breiten-Audit 26.08.). */
@media (max-width: 380px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.6; max-width: 32ch; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink-muted); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint);
}

/* ---------- KI-Guthaben (_sections/ki.php) ----------
   Drei Stufen nebeneinander, am Handy untereinander. Bewusst schlicht:
   die Karten darueber tragen die Aussage, hier stehen nur Zahlen. */
.ki-credits { margin-top: 28px; }
.ki-credits h3 { font-size: 15px; margin: 0 0 14px; color: var(--ink-muted); font-weight: 600; }

.ki-credit-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.ki-credit {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; background: var(--surface);
}
.ki-credit b { font-size: 20px; line-height: 1; }
.ki-credit-count { font-size: 13px; color: var(--ink-muted); }
.ki-credit-price { font-size: 18px; font-weight: 600; margin-top: 6px; }
.ki-credit-year { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }

.ki-credit-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- KI-Beispiele: ein Original, drei Stile ----------
   Vier Bilder in einer Reihe, am Handy zwei nebeneinander. Das Original
   ist abgesetzt (Rahmen in Akzentfarbe), damit sofort klar ist, welches
   das Ausgangsbild ist - ohne dass jemand die Beschriftung lesen muss. */
.ki-beispiele {
  display: grid; gap: 12px; margin-bottom: 28px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ki-beispiel { margin: 0; }
.ki-beispiel img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
}
.ki-beispiel figcaption {
  margin-top: 6px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint);
}
.ki-beispiel-original img { border-color: var(--accent); }
.ki-beispiel-original figcaption { color: var(--accent-text); }

/* ---------- Stil-Laufband (_sections/ki.php) ----------
   Waagerechtes Band mit Scroll-Snap - ohne JavaScript wischbar, mit
   Tastatur bedienbar (die Liste ist fokussierbar). Die Kacheln sind
   bewusst klein: es geht um die Menge und die Bandbreite, nicht um
   Details - fuers Detail stehen die vier grossen Bilder darueber. */
.ki-stile { margin-bottom: 28px; }
.ki-stile h3 { font-size: 15px; margin: 0 0 12px; color: var(--ink-muted); font-weight: 600; }

/* Kopfzeile des Bandes: Ueberschrift links, die zwei Pfeile rechts.
   Bewusst NICHT ueber den Bandraendern schwebend - dort schneidet die
   Spaltenkante sie an. Freigeschaltet von assets/js/ki-band.js, und nur
   wenn es wirklich etwas zu scrollen gibt. */
.ki-stile-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Der Abstand nach unten sass vorher am h3 (.ki-stile h3, weiter oben) -
     er wandert hierher, damit beide Regeln sich nicht gegenseitig aufheben. */
  margin: 0 0 12px;
}
.ki-stile-kopf h3 { margin: 0; }
.ki-stil-pfeile { display: flex; gap: 6px; }
.ki-stil-pfeil {
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
}
.ki-stil-pfeil:hover { background: var(--surface-2); }
.ki-stil-pfeil:disabled { opacity: .35; cursor: default; }

.ki-stil-band {
  display: flex; gap: 10px; margin: 0; padding: 0 0 10px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ki-stil-band:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.ki-stil { flex: 0 0 auto; width: 130px; scroll-snap-align: start; }
.ki-stil img {
  width: 130px; height: 167px; object-fit: cover; display: block;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
}
.ki-stil span {
  display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.25;
  color: var(--ink-muted);
}

.ki-stil-note { margin: 0; font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 640px) {
  .ki-stil { width: 112px; }
  .ki-stil img { width: 112px; height: 144px; }
}
