/* Mak3rhub – Gestaltung
   Signatur: FDM-Schichtlinien. Plattformen tragen ihre Filamentfarbe (grün, orange, blau),
   alles andere bleibt neutral, damit die Modellbilder wirken. */

/* Onest (SIL Open Font License) – selbst gehostet, damit keine Anfragen an Google gehen */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/onest-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: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/onest-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 {
  --bed: #f1f5f5;
  --bed-line: rgba(14, 60, 64, 0.07);
  --bed-glow: rgba(9, 117, 112, 0.17);
  --bed-glow-2: rgba(9, 117, 112, 0.11);
  --grain-opacity: 0.95;
  --grain-blend: multiply;
  --surface: #fafcfc;
  --surface-2: #e3eaea;
  --raised: #ffffff;
  --ink: #0f1d20;
  --ink-2: #44575b;
  --ink-3: #5f7276;
  --line: #d4dfe0;
  --line-strong: #b5c5c7;
  --scrim: rgba(10, 24, 27, 0.42);

  /* Akzent: dunkles Petrol im hellen Modus */
  --accent: #097570;
  --accent-ink: #ffffff;
  --accent-soft: rgba(9, 117, 112, 0.1);
  --accent-glow: rgba(9, 117, 112, 0.35);
  --head-body: #dfe7e8;
  --head-edge: #8fa3a6;
  --head-heater: #c4d0d1;
  --head-brass: #c9a24a;
  --rail-hi: #c9d4d6;
  --rail-lo: #9eb0b3;
  --focus: #097570;

  --mw: #2bb673;
  --pr: #f27a3a;
  --tv: #4d8df7;

  --ok: #0b6f53;
  --ok-bg: #d9f0e7;
  --warn-bg: #f6ead0;
  --warn-ink: #6b4a10;

  --display: 'Onest', 'Helvetica Neue', system-ui, sans-serif;
  --text: 'Onest', 'Helvetica Neue', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --top-h: 70px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bed: #172226;
    --bed-line: rgba(64, 224, 208, 0.07);
  --bed-glow: rgba(63, 217, 200, 0.11);
  --bed-glow-2: rgba(63, 217, 200, 0.05);
  --grain-opacity: 0.35;
  --grain-blend: screen;
    --bed-glow: rgba(63, 217, 200, 0.11);
    --bed-glow-2: rgba(63, 217, 200, 0.05);
    --grain-opacity: 0.35;
    --grain-blend: screen;
    --surface: #1d2a2e;
    --surface-2: #273739;
    --raised: #223135;
    --ink: #e4eeee;
    --ink-2: #a8babc;
    --ink-3: #83999c;
    --line: #2d3f42;
    --line-strong: #3d5356;
    --scrim: rgba(2, 8, 9, 0.62);

    /* Akzent: Türkis im dunklen Modus */
    --accent: #3fd9c8;
    --accent-ink: #062321;
    --accent-soft: rgba(63, 217, 200, 0.12);
    --accent-glow: rgba(63, 217, 200, 0.45);
  --head-body: #2c3d41;
  --head-edge: #5d7579;
  --head-heater: #3a4f53;
  --head-brass: #d4ab55;
  --rail-hi: #4a6064;
  --rail-lo: #2f4144;
    --head-body: #2c3d41;
    --head-edge: #5d7579;
    --head-heater: #3a4f53;
    --head-brass: #d4ab55;
    --rail-hi: #4a6064;
    --rail-lo: #2f4144;
    --focus: #3fd9c8;

    --ok: #6fdcb4;
    --ok-bg: rgba(63, 217, 200, 0.13);
    --warn-bg: #33291a;
    --warn-ink: #f0d39a;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bed: #172226;
  --bed-line: rgba(64, 224, 208, 0.07);
  --surface: #1d2a2e;
  --surface-2: #273739;
  --raised: #223135;
  --ink: #e4eeee;
  --ink-2: #a8babc;
  --ink-3: #83999c;
  --line: #2d3f42;
  --line-strong: #3d5356;
  --scrim: rgba(2, 8, 9, 0.62);

  /* Akzent: Türkis im dunklen Modus */
  --accent: #3fd9c8;
  --accent-ink: #062321;
  --accent-soft: rgba(63, 217, 200, 0.12);
  --accent-glow: rgba(63, 217, 200, 0.45);
  --focus: #3fd9c8;

  --ok: #6fdcb4;
  --ok-bg: rgba(63, 217, 200, 0.13);
  --warn-bg: #33291a;
  --warn-ink: #f0d39a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bed);
  color: var(--ink);
  font: 400 15px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hintergrund aller Seiten: texturierte Druckplatte (PEI) ----------
   Fest hinter dem Inhalt, scrollt nicht mit – wie eine Druckplatte unter dem Modell. */

.bed {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
  /* weiches Licht oben rechts, nach unten in den Hintergrund auslaufend */
  background:
    radial-gradient(60% 55% at 78% 18%, var(--bed-glow), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, var(--bed-glow-2), transparent 70%),
    radial-gradient(50% 45% at 12% 100%, var(--bed-glow-2), transparent 70%);
}
/* Feines Korn wie auf einer texturierten Federstahlplatte */
.bed-plane {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 1.4 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 720px) 1fr;
  align-items: center;
  gap: 28px;
  min-height: var(--top-h);
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bed) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
/* Logo: Monogramm „M3“ + Wortmarke mit akzentfarbener „3“ */
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-word { display: inline-flex; align-items: baseline; }
.brand-3 { display: inline-block; width: 0.49em; height: 0.708em; margin: 0 0.05em 0 0.04em; color: var(--accent); }

.hero-copy { display: none; }

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--raised);
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-icon { width: 18px; height: 18px; margin-left: 13px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 12px 11px 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }


.search-go {
  border: 0;
  margin: 4px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  cursor: pointer;
}
.search-go:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }

/* Umschalter Hell/Dunkel */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
/* Rechte Seite der Kopfzeile: Sprache + Farbmodus */
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
body.is-home .top-actions { position: absolute; top: 20px; right: var(--gutter); z-index: 5; }

/* Sprachumschalter (<details>-Menü, funktioniert auch ohne JavaScript) */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s, border-color 0.15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { color: var(--accent); border-color: var(--accent); }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.45);
}
.lang-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current='true'] { color: var(--ink); font-weight: 600; }
.lang-menu a[aria-current='true']::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* Laufende Feinanalyse: eine Extrusionslinie in den drei Filamentfarben */
.extrude { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.extrude span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: left;
  animation: extrude 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes extrude {
  0% { transform: scaleX(0); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- Startseite ---------- */

body.is-home .top {
  position: relative;
  display: block;
  padding-top: 24px;
  padding-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
body.is-home .hero-copy { display: block; margin-top: clamp(36px, 7vh, 88px); }

.print-in {
  position: relative;
  margin: 0;
  max-width: 21ch;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.print-text { display: block; }
.will-print .print-text { clip-path: inset(100% 0 0 0); }

/* ---------- Druckkopf-Animation (public/hero.js) ----------
   Der Text entsteht Schicht für Schicht: Der Druckkopf fährt jede Schicht ab,
   frisch extrudiertes Material glüht kurz türkis und kühlt dann ab. */
.print-stage { position: absolute; inset: 0; pointer-events: none; }
.print-hot {
  position: absolute;
  inset: 0;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}
.is-printing .print-text,
.is-printing .print-hot { will-change: clip-path; }

.print-gantry {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  top: 0;
  will-change: transform;
}
/* X-Achse: Linearschiene, auf der der Druckkopf fährt */
.print-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--rail-hi), var(--rail-lo));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.print-rail::before,
.print-rail::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 14px;
  height: 17px;
  border-radius: 3px;
  background: var(--rail-lo);
}
.print-rail::before { left: -6px; }
.print-rail::after { right: -6px; }

.print-head {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 64px;
  margin-left: -22px;
  will-change: transform;
}
.print-head svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ph-body { fill: var(--head-body); stroke: var(--head-edge); stroke-width: 1; }
.ph-fin { stroke: var(--head-edge); stroke-width: 1.2; }
.ph-heater { fill: var(--head-heater); }
.ph-nozzle { fill: var(--head-brass); }
.ph-tip { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.ph-led { fill: var(--accent); }

.print-done .print-gantry { transition: opacity 0.6s ease 0.25s, transform 0.6s cubic-bezier(.2, .7, .2, 1); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .print-stage { display: none; }
}

.lede {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

body.is-home .search {
  max-width: 880px;
  margin-top: 40px;
  border-width: 2px;
  border-radius: 18px;
  box-shadow: 0 24px 48px -28px rgba(10, 20, 15, 0.35);
}
body.is-home .search:focus-within { box-shadow: 0 0 0 5px var(--accent-soft), 0 24px 48px -28px rgba(10, 20, 15, 0.35); }
body.is-home .search-icon { width: 24px; height: 24px; margin-left: 22px; }
body.is-home .search input {
  padding: 20px 16px 20px 14px;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: -0.02em;
}
body.is-home .search-go { padding: 14px 26px; border-radius: 13px; margin: 7px; font-size: 16px; }

.home-extra { position: relative; padding: 0 var(--gutter) 72px; }
body:not(.is-home) .home-extra { display: none; }

.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; max-width: 880px; }
.suggest-label { color: var(--ink-3); font-size: 13.5px; margin-right: 4px; }
.chip {
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
}
.chip:hover { color: var(--ink); border-color: var(--accent); }

.tips { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.tips q { quotes: none; font-weight: 600; color: var(--ink-2); }

/* ---------- Ergebnisse ---------- */

.results { padding: 26px var(--gutter) 64px; max-width: var(--maxw); margin: 0 auto; }

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.results-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.status { margin: 0; color: var(--ink-2); font-size: 14px; }
.status strong { color: var(--ink); font-weight: 600; }

.toolbar {
  position: sticky;
  top: calc(var(--top-h) + 8px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 0;
  padding: 8px 10px;
  /* Abgesetzte, leicht transparente Leiste über der Druckplatten-Struktur */
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.toolbar .filter-toggle { margin-left: auto; }

.sources, .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sources { padding-right: 14px; border-right: 1px solid var(--line); }

.src, .filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  user-select: none;
  white-space: nowrap;
}
.src:hover, .filter:hover { color: var(--ink); border-color: var(--ink-3); }
.src { padding-left: 8px; }
.src[aria-pressed='true'] { background: var(--raised); color: var(--ink); }
/* Offizielle Plattform-Icons */
.p-icon { width: 16px; height: 16px; border-radius: 4px; flex: none; display: inline-block; }
.p-icons { display: inline-flex; }
.p-icons .p-icon { box-shadow: 0 0 0 1.5px var(--surface); }
.p-icons .p-icon + .p-icon { margin-left: -4px; }
.src .p-icon { width: 18px; height: 18px; transition: filter 0.15s, opacity 0.15s; }
.src[aria-pressed='false'] .p-icon { filter: grayscale(1); opacity: 0.45; }
.src .count { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.src[disabled] { cursor: not-allowed; opacity: 0.5; }

.filter[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.filter[aria-pressed='true']::before { color: var(--accent); }
.filter[aria-pressed='true']::before {
  content: '';
  width: 9px; height: 5px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.select select {
  appearance: none;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: var(--raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%237a857f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center / 12px;
  border-radius: 9px;
  padding: 0 34px 0 12px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.notices { display: grid; gap: 8px; margin-top: 8px; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; max-width: 86ch; }
.notice a { font-weight: 600; }
.notice button { border: 0; background: none; padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; color: inherit; }

.grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 18px;
}

.card { min-width: 0; content-visibility: auto; contain-intrinsic-size: 300px 330px; }
.card-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.card-hit:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--raised); }
.card-hit:focus-visible { outline-offset: 2px; border-radius: 14px; }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; }

/* Filamentstreifen: ein Streifen pro Plattform, auf der das Modell liegt */
.layers { position: absolute; left: 9px; bottom: 9px; display: flex; flex-direction: column-reverse; gap: 2px; }
.layers i { display: block; height: 5px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.layers i:nth-child(1) { width: 34px; }
.layers i:nth-child(2) { width: 26px; }
.layers i:nth-child(3) { width: 18px; }

.badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(16, 22, 19, 0.74);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge.is-ok::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mw); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 6px 4px; }
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.card-creator { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-top: auto; padding-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.where { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.where b { font-weight: 600; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.nums { font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; gap: 10px; }
.nums svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.card.is-skeleton .card-hit { cursor: default; }
.card.is-skeleton .card-media { animation: pulse 1.3s ease-in-out infinite; }
.card.is-skeleton .card-body span { display: block; height: 11px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; }
.card.is-skeleton .card-body span:first-child { width: 82%; height: 14px; }
.card.is-skeleton .card-body span:last-child { width: 45%; }
@keyframes pulse { 50% { opacity: 0.5; } }

.empty { grid-column: 1 / -1; padding: 56px 0; max-width: 54ch; }
.empty h2 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.empty p { margin: 0; color: var(--ink-2); }

.more { display: flex; justify-content: center; margin-top: 40px; }
.btn-secondary {
  border: 1.5px solid var(--accent);
  color: var(--ink);
  background: transparent;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-secondary[disabled] { opacity: 0.5; cursor: progress; }

/* ---------- Fußzeile ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
/* Umbrechen statt überstehen – sonst wird die ganze Seite auf schmalen Handys breiter als der Bildschirm */
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Detailansicht ---------- */

.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 0.2s; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(580px, 100%);
  background: var(--surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(.2, .8, .2, 1);
  outline: none;
  border-left: 1px solid var(--line);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }

.drawer-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.drawer-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; fill: none; }
.drawer-share { margin-right: 8px; }
.drawer-share svg { stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Teilen ---------- */

.share-search { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; }
.share-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 232px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}
.share-menu p { margin: 6px 10px 6px; font-size: 12.5px; color: var(--ink-3); }
.share-menu a, .share-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: inherit; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--surface-2); outline: none; }
.share-menu .share-copy { font-weight: 600; color: var(--accent); }
.share-menu input { width: 100%; margin: 4px 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }

.d-hero { aspect-ratio: 4 / 3; background: var(--surface-2); margin-top: -50px; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Bildergalerie: ganze Bilder zeigen (contain), wischbar mit Einrasten */
.gallery { position: relative; }
.g-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.gallery .g-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 26px; line-height: 1; padding-bottom: 3px;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.15s;
}
.g-prev { left: 12px; }
.g-next { right: 12px; }
.gallery:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
@media (pointer: coarse) { .g-nav { display: none; } }
.g-count {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px);
}
.g-thumbs { display: flex; gap: 8px; padding: 10px 26px 0; overflow-x: auto; scrollbar-width: thin; }
.g-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: 0.7; }
.g-thumbs button[aria-current='true'] { border-color: var(--accent); opacity: 1; }
.g-thumbs button:hover { opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.d-content { padding: 22px 26px 40px; }
.d-title { margin: 0; font-family: var(--display); font-size: 29px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.d-creator { margin: 6px 0 0; color: var(--ink-2); }

.d-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.d-fact { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 500; }
.d-fact.is-ok { background: var(--ok-bg); color: var(--ok); }

.d-section { margin-top: 30px; }
.d-section h3 { margin: 0 0 10px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.plat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plat {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 0;
  border-radius: 12px;
  background: var(--bed);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
}
/* Lange Zeilen (nowrap) kürzen statt die Spalte zu verbreitern */
.plat > * { min-width: 0; }
.plat::before { content: ''; align-self: stretch; background: var(--c); margin: -12px 0; }
.plat:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--raised); }
.plat-name { font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.plat-price { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.badge.is-paid { font-variant-numeric: tabular-nums; font-weight: 600; }
.plat-name svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.plat-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-nums { text-align: right; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.5; }
.plat-nums b { color: var(--ink); font-weight: 600; }


.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.refs a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.refs a:hover span { text-decoration: underline; }
.refs small { color: var(--ink-3); margin-left: 4px; }

.d-translated { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.d-desc { color: var(--ink-2); font-size: 14.5px; white-space: pre-line; max-width: 68ch; margin: 0; }

.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.related button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 13px; }
.related img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--surface-2); width: 100%; }
.related span { display: block; margin-top: 6px; line-height: 1.3; }

.d-actions { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.btn-quiet { border: 1px solid var(--line-strong); background: transparent; border-radius: 9px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- Responsiv ---------- */

@media (max-width: 900px) {
  .sources { border-right: 0; padding-right: 0; }
  .toolbar .select { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --top-h: 62px; }
  .top { grid-template-columns: auto 1fr auto; gap: 10px; }
  body:not(.is-home) .top .search { grid-column: 1 / -1; grid-row: 2; }
  body:not(.is-home) .top .top-actions { grid-column: 3; grid-row: 1; }
  body:not(.is-home) .top .brand span { display: inline; }
  .theme-toggle { width: 36px; height: 36px; }
  .lang-menu summary { height: 36px; }
  /* Kompakte Kopfzeile: nur sie klebt oben, damit genug Platz für Ergebnisse bleibt */
  body:not(.is-home) .top { padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  body:not(.is-home) .top .search input { padding-top: 9px; padding-bottom: 9px; font-size: 16px; }
  /* Filterleiste: alle Filter sichtbar (umbrechen statt seitlich wischen), scrollt normal mit */
  .toolbar { position: static; flex-wrap: wrap; overflow: visible; gap: 8px; padding: 10px; }
  .sources { flex-wrap: wrap; width: 100%; padding-right: 0; border-right: 0; }
  .toolbar .filter-toggle { margin-left: 0; }
  .filter-panel { padding: 14px; gap: 14px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-hit { padding: 4px; border-radius: 12px; }
  .card-title { font-size: 14.5px; }
  .nums { gap: 8px; }
  .badge:not(.is-ok):not(.badge-cc):not(.is-paid):not(.badge-lic) { display: none; }
  .d-content { padding: 18px 18px 36px; }
  body.is-home .search-go { padding: 12px 16px; }
  body.is-home .search-icon { display: none; }
  body.is-home .search input { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Rechtliche Seiten ---------- */

.legal .top { grid-template-columns: auto 1fr auto; }
.legal .top-actions { grid-column: 3; }
.legal-main { padding: 48px var(--gutter) 80px; max-width: calc(68ch + 2 * var(--gutter)); }
.legal-main h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; margin: 0 0 12px; }
.legal-main h2 { font-family: var(--display); font-size: 20px; margin: 32px 0 6px; letter-spacing: -0.01em; }
.legal-main p, .legal-main li { color: var(--ink-2); line-height: 1.65; }
.legal-main ul { padding-left: 20px; }
.legal-note { background: var(--warn-bg); color: var(--warn-ink) !important; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Serverseitige Themen-Seiten (SEO) ---------- */

.ssr .top { grid-template-columns: auto minmax(0, 720px) 1fr; }
.ssr-main { padding: 26px var(--gutter) 64px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.ssr-title { margin: 14px 0 0; font-size: clamp(30px, 4vw, 48px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.ssr-intro { margin: 14px 0 0; max-width: 72ch; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.ssr-grid { margin-top: 26px; }
a.card-hit { text-decoration: none; color: inherit; }
.ssr-section { margin-top: 48px; }
.ssr-section h2 { margin: 0 0 14px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.ssr-text p { margin: 0 0 12px; max-width: 72ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.ssr-creators { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ssr-creators li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ssr-creators a { font-weight: 600; text-decoration: none; }
.ssr-creators a:hover { color: var(--accent); }
.ssr-creators span { font-size: 13px; color: var(--ink-3); }
.ssr-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ssr-links a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
}
.ssr-links a:hover { color: var(--ink); border-color: var(--accent); }
.foot-topics { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .ssr .top { grid-template-columns: auto 1fr auto; } .ssr .top .search { grid-column: 1 / -1; grid-row: 2; } }

.home-topics { margin-top: 44px; max-width: 880px; }
.home-topics h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.home-trends { margin: 14px 0 0; }
.home-trends a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.home-trends a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-trends svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Trends */
.trends-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 8px; color: var(--ink-3); font-size: 13.5px; }
.trends-feed .btn-quiet { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.trends-feed .btn-quiet:hover { color: var(--ink); border-color: var(--accent); }
.trends-feed svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.trends-updated { margin-top: 28px; color: var(--ink-3); font-size: 13px; }

/* Creative-Commons-Kennzeichen */
.cc-icons { display: inline-flex; gap: 2px; align-items: center; vertical-align: middle; }
.cc-icons img { width: 16px; height: 16px; display: block; }
.badge-cc { padding: 0 6px; gap: 6px; }
.badge-cc .cc-icons img { width: 15px; height: 15px; }
.d-fact .cc-icons img { width: 18px; height: 18px; }
.plat-lic { display: inline-flex; margin-top: 3px; }

/* Filter ein-/ausblenden */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.filter-toggle svg { width: 18px; height: 18px; color: var(--ink-2); }
.filter-toggle:hover { border-color: var(--ink-3); }
.filter-toggle[aria-expanded='true'] { background: var(--accent-soft); border-color: var(--accent); }
.filter-toggle[aria-expanded='true'] svg { color: var(--accent); }
.filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bed);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Aktive Filter bei eingeklapptem Bereich */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.active-filters .link-reset { margin-left: 4px; align-self: center; }
.chip-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.chip-x .x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--ink-2); font-size: 15px; line-height: 1; }
.chip-x:hover .x { background: var(--accent); color: var(--bed); }

/* Trefferzahl an den Filtern */
.f-count { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.f-count:empty { display: none; }
.filter.is-empty { opacity: 0.5; }

/* Preis: Segmentschalter */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; user-select: none; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--accent); color: var(--bed); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 36px;
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-group h3 { width: 100%; margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.link-reset {
  align-self: flex-end;
  margin-left: auto;
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-reset:hover { color: var(--accent); }

.inline-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-reset { margin-top: 18px; }

/* ---------- Kontakt- und Melde-Dialog ---------- */

.dlg {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
}
.dlg::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.dlg-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.dlg-intro { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.dlg-model { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 500; }
.dlg-form { display: grid; gap: 14px; margin-top: 18px; }
.dlg-field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.dlg-field input,
.dlg-field textarea,
.dlg-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--raised);
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.dlg-field ::placeholder { color: var(--ink-3); }
.dlg-field :focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dlg-note { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.dlg-status { margin: 0; min-height: 1.2em; font-size: 13.5px; color: #c2410c; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dlg-actions .search-go { margin: 0; padding: 9px 18px; }
.dlg-done { margin: 18px 0 4px; font-size: 15.5px; color: var(--ok); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Auszug in der Detailansicht mit Link zur Quelle */
.d-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.d-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.d-fact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.d-fact a:hover { text-decoration: underline; }
.foot-note { width: 100%; font-size: 12.5px; }

/* Neutrales Plattform-Kennzeichen (statt Logo, bis eine Plattform zustimmt) */
.p-mark {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--c);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.src .p-mark { width: 18px; height: 18px; font-size: 11px; }
.pm-makerworld { --c: var(--mw); }
.pm-printables { --c: var(--pr); }
.pm-thingiverse { --c: var(--tv); }
.p-mark:not([style]) { background: var(--c, var(--ink-3)); }

/* Handy: muss nach den Dialog-Styles stehen, damit es greift.
   iOS zoomt bei Eingabefeldern unter 16 px automatisch hinein. */
@media (max-width: 640px) {
  .dlg-field input, .dlg-field textarea, .dlg-field select, .select select, .block-form input { font-size: 16px; }
  .dlg { padding: 20px 18px 18px; }
}

/* Feedback: Fehler oder Idee */
.dlg-kinds { display: flex; gap: 8px; margin-bottom: 14px; }
.dlg-kind { flex: 1; }
.dlg-kind input { position: absolute; opacity: 0; pointer-events: none; }
.dlg-kind span { display: block; text-align: center; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.dlg-kind input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.dlg-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ladebalken beim Wechsel auf eine Themenseite */
.nav-progress { position: fixed; top: 0; bottom: auto; z-index: 100; height: 3px; }

/* ---------- Bereiche: Suche | Laservorlagen ---------- */
.area-nav { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface) 75%, transparent); }
.area-nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.area-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.area-nav a[aria-current='page'] { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 640px) {
  .area-nav a { padding: 6px 9px; font-size: 13px; }
}
@media (max-width: 420px) {
  .area-nav { display: none; }
}

/* Einstieg in die Laservorlagen auf der Startseite */
.laser-teaser {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  max-width: 880px; margin-top: 28px; padding: 18px 22px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--raised) 85%, transparent) 60%);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.laser-teaser:hover { border-color: var(--accent); transform: translateY(-1px); }
.laser-teaser-icon { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.laser-teaser-icon .beam { stroke: #e2462f; stroke-width: 2.6; }
.laser-teaser-text { display: grid; gap: 4px; }
.laser-teaser-text strong { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.laser-teaser-text span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.laser-teaser-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.laser-teaser-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .laser-teaser { grid-template-columns: auto 1fr; gap: 12px 14px; padding: 16px; }
  .laser-teaser-icon { width: 36px; height: 36px; }
  .laser-teaser-cta { grid-column: 1 / -1; justify-self: start; }
}
