/* Brand Kit — Exportlab-Designsystem, dunkel.
   Monochrom: Hierarchie über Helligkeit und Abstand, nicht über Farbe.
   Farbe nur, wo sie Information trägt (Fehler, Erfolg).
   Keine Card-Container um Inhalt — Trennung über Whitespace und Haarlinien. */

/* Selbst gehostet statt Google Fonts: sonst ginge die IP jedes EU-Besuchers
   ohne Einwilligung an Google. Eine variable Schrift deckt alle Gewichte ab. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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;
}

:root {
  --bg: #161719;
  --surface: #161719;
  --surface-alt: #1a1b1e;
  --surface-hover: #222326;
  --border: #25272a;
  --text: #edeef0;
  --text-strong: #e8e9eb;
  --muted: #9a9da4;
  --subtle: #7d8088;
  --fill: #edeef0;
  --fill-text: #111214;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ff6b70;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;

  --h-md: 32px;
  --h-lg: 40px;
  --field: 36px;

  --page: 1100px;
  --pad: 24px;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
:focus-visible { outline: 2px solid var(--fill); outline-offset: 2px; border-radius: var(--r-sm); }

/* ---------- Kopf ---------- */
/* Inhaltsbreite = Kopfbreite, durchgehend. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px var(--pad);
}
.mark { font-weight: 600; letter-spacing: -0.01em; }
.langs { display: flex; gap: 2px; }
.langs button {
  background: none; border: none; color: var(--subtle);
  font: inherit; font-size: 13px; cursor: pointer;
  padding: 4px 8px; border-radius: var(--r-sm);
}
.langs button:hover { color: var(--text); background: var(--surface-hover); }
.langs button[aria-current="true"] { color: var(--text); font-weight: 600; }

main { max-width: var(--page); margin: 0 auto; padding: 0 var(--pad) 80px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 8px; max-width: 760px; }
h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.lede { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 62ch; }

.composer { display: flex; gap: 8px; margin: 28px 0 0; flex-wrap: wrap; }
input[type="url"], input[type="email"] {
  flex: 1 1 320px;
  height: var(--field);
  padding: 0 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input::placeholder { color: var(--subtle); }
input:focus { border-color: var(--subtle); outline: none; }

button {
  height: var(--h-md);
  padding: 0 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
button:hover { background: var(--surface-hover); }
button:disabled { opacity: 0.55; cursor: default; }
/* Website-CTAs sind 40px, dichte Bedienelemente 32px. */
button.primary {
  height: var(--h-lg);
  padding: 0 20px;
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
}
button.primary:hover { opacity: 0.9; background: var(--fill); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 14px 0 0; color: var(--muted); font-size: 14px; cursor: pointer;
  max-width: 62ch;
}
/* Die Systemdarstellung einer Checkbox verschwindet auf dunklem Grund fast —
   und ausgerechnet dieses Feld muss man sehen, weil ohne es nichts startet. */
.consent input {
  appearance: none;
  flex: none;
  width: 17px; height: 17px;
  margin: 3px 0 0;
  background: var(--surface-alt);
  border: 1px solid var(--subtle);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.consent input:hover { border-color: var(--text); }
.consent input:checked { background: var(--fill); border-color: var(--fill); }
.consent input:checked::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 4px; height: 9px;
  border: solid var(--fill-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hint { margin: 12px 0 0; color: var(--subtle); font-size: 13px; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.muted { color: var(--subtle); }

.error {
  margin: 16px 0 0; padding: 10px 12px;
  border: 1px solid var(--danger); border-radius: var(--r-md);
  color: var(--danger); font-size: 14px;
}

/* ---------- Überschriften ---------- */
h2 {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 600; }

/* ---------- Lauf ---------- */
#progress, #result { padding: 40px 0 0; }
.queue { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 0;
  color: var(--subtle);
  font-size: 14px;
}
.steps li .mark { width: 14px; flex: none; text-align: center; }
.steps li.now { color: var(--text); font-weight: 500; }
.steps li.done { color: var(--muted); }
.steps li.done .mark { color: var(--success); }

/* ---------- Bilder ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin: 24px 0 0;
}
.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Logos, Icons und Favicons ganz zeigen statt beschneiden: ein Logo, von dem
   nur "ONTE" statt "CONTENTRISE" zu sehen ist, hilft niemandem. Fotos bleiben
   beschnitten, damit das Raster ruhig wirkt. */
.tile[data-role="logo"] img,
.tile[data-role="icon"] img,
.tile[data-role="favicon"] img {
  object-fit: contain;
  padding: 10px;
  background: var(--surface-hover);
}

/* Rollen-Filter über der Galerie. */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.filters button {
  height: var(--h-md);
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.filters button[aria-current="true"] {
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
}
.filters .n { opacity: 0.6; margin-left: 4px; }

/* Bildunterschrift und Einzeldownload erscheinen beim Darüberfahren —
   das Raster soll ruhig bleiben, bis man etwas davon will. */
.tile figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 5px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.12s;
}
.tile .role { text-transform: uppercase; letter-spacing: 0.04em; }
.tile a.dl {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--r-sm);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.12s;
}
.tile:hover figcaption, .tile:hover a.dl,
.tile:focus-within figcaption, .tile:focus-within a.dl { opacity: 1; }

/* ---------- Ergebnis ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 0 0 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat .k { color: var(--subtle); font-size: 13px; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 8px; }
.sw { width: 76px; }
.sw .chip {
  height: 46px; border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.sw .hex { margin-top: 5px; font-family: var(--mono); font-size: 11px; }
.sw .role { color: var(--subtle); font-size: 11px; }

.tree {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  overflow-x: auto;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }

/* ---------- E-Mail-Schranke ---------- */
/* Letzte Zeile des Ergebnisses, kein Modal: der Lauf bleibt sichtbar. */
.gate { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--border); }
.gate .lede { font-size: 15px; }

/* ---------- Inhaltsabschnitte ---------- */
.info { padding: 72px 0 0; }
.info hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

.filelist { margin: 0; display: grid; grid-template-columns: minmax(170px, auto) 1fr; gap: 10px 28px; }
.filelist dt { font-family: var(--mono); font-size: 13px; color: var(--text); }
.filelist dd { margin: 0; color: var(--muted); font-size: 14px; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.cols h3 { margin: 0 0 6px; }
.cols p { margin: 0; color: var(--muted); font-size: 14px; }

.ways { margin: 0; padding-left: 20px; color: var(--muted); }
.ways li { margin: 0 0 10px; }
.ways strong { color: var(--text); font-weight: 600; }

.limits { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.limits li { margin: 0 0 8px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--subtle); }
.faq details[open] summary::before { content: "– "; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}

/* ---------- Fuß ---------- */
.foot {
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px var(--pad) 48px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-top: 36px; }
  .filelist { grid-template-columns: 1fr; gap: 4px 0; }
  .filelist dd { margin-bottom: 12px; }
  .stats { gap: 24px; }
}
