/* Buddy Island – Website
   Ruhig und typografisch: warmes Papierweiss, fast schwarze Schrift, eine einzige Auszeichnung
   (das Schwarz der Insel). Keine Verläufe, kein Glas, keine Kachel-Raster. Echte Bildschirmfotos. */

@font-face {
  font-family: 'Bricolage';
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --ink: #141414;
  --ink-2: #4a4845;
  --ink-3: #77736d;
  --rule: #d9d5ce;
  --island: #000;
  --link: #1d4ed8;
  --w: 1120px;
  --display: 'Bricolage', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --text: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
kbd { font: 600 0.85em var(--mono); padding: 1px 6px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; background: #fff; }
code { font: 0.9em var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Kopf ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 650 17px var(--display); color: var(--ink); text-decoration: none; margin: 0; }
.eyes { display: inline-flex; gap: 3px; padding: 6px 9px; background: var(--island); border-radius: 999px; }
.eyes i { width: 4px; height: 9px; background: #fff; border-radius: 2px; } /* weiss, wie Buddys Augen in der App */
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
nav { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--island); color: #fff; font: 600 16px var(--text); text-decoration: none; transition: background-color 0.15s; }
.btn:hover { background: #2a2a2a; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Einstieg ---------- */
.hero { padding: 88px 0 40px; }
.eyebrow { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; max-width: 13ch; }
.lead { margin-top: 24px; max-width: 58ch; font-size: 19px; color: var(--ink-2); }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* Bühne: die Oberkante eines Bildschirms, die Insel hängt in der Mitte */
.stage { margin: 64px 0 0; }
.stage-screen { position: relative; display: flex; justify-content: center; }
.stage-island { position: relative; width: min(560px, 100%); }
.stage figcaption, figure figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
figure { margin: 0; }

/* ---------- Abschnitte ---------- */
.block { padding: 96px 0 0; }
.block > h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; padding-top: 28px; border-top: 1px solid var(--ink); }
.intro { margin-top: 16px; max-width: 62ch; color: var(--ink-2); font-size: 18px; }
.small { margin-top: 16px; font-size: 15px; color: var(--ink-3); max-width: 70ch; }

.rows { margin-top: 24px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.row:last-child { border-bottom: 0; }
.row h3 { font-size: 26px; line-height: 1.2; }
.row-text p { margin-top: 12px; color: var(--ink-2); }
.aside { padding-left: 14px; border-left: 2px solid var(--ink); font-size: 15px; }
.shot { width: 100%; max-width: 520px; justify-self: end; border-radius: 18px; background: #000; }

/* Tabelle der Optionen */
.table-wrap { margin-top: 32px; overflow-x: auto; }
.providers { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
.providers th, .providers td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.providers thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; border-bottom-color: var(--ink); }
.providers tbody th { font-weight: 600; white-space: nowrap; }
.providers td { color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 72px; align-items: start; }
.split h3 { font-size: 26px; }
.steps { margin: 20px 0 0; padding-left: 22px; }
.steps li { margin-top: 10px; color: var(--ink-2); padding-left: 4px; }
.steps strong { color: var(--ink); }
.split .shot { justify-self: stretch; max-width: none; }

/* Installation */
.install { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.install li { display: flex; gap: 14px; }
.install > li > span { font: 650 15px var(--display); width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; }
.install h3 { font-size: 19px; }
.install p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* Neu */
.news { list-style: none; margin: 24px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.news h3 { font-size: 19px; }
.news p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* Daten */
.facts { margin: 24px 0 24px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 48px; }
.facts dt { font: 600 18px var(--display); padding: 18px 0; border-top: 1px solid var(--rule); }
.facts dd { margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* Fragen */
.faq { margin-top: 16px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font: 600 18px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 24px var(--text); color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq details:target summary { color: var(--link); }

/* Fuss */
.foot { margin-top: 120px; padding: 32px 0 48px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; font-size: 14px; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink-2); }

/* ---------- Tablet und Handy ---------- */
@media (max-width: 900px) {
  .row, .split { grid-template-columns: 1fr; gap: 24px; }
  .shot { justify-self: start; }
  .install { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: 1fr; gap: 20px; }
  .foot { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top-row { gap: 12px; }
  .hero { padding-top: 48px; }
  .lead { font-size: 17px; }
  .block { padding-top: 64px; }
  .install { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { border-top: 0; padding-top: 0; }
  .row h3, .split h3 { font-size: 22px; }
}

/* Unterseiten (Datenschutz) */
.doc { padding: 72px 0 0; max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.doc h2 { font-size: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.doc p, .doc li { color: var(--ink-2); margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .stand { color: var(--ink-3); font-size: 14px; }
.doc-back { display: inline-block; margin-top: 40px; color: var(--ink); font-weight: 600; }

/* Optionen-Tabelle auf dem Handy als Liste */
@media (max-width: 640px) {
  .providers { min-width: 0; }
  .providers thead { display: none; }
  .providers tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .providers th, .providers td { display: block; padding: 2px 0; border: 0; }
  .providers td::before { content: attr(data-label) ": "; color: var(--ink-3); }
}
