/* zSearch – Gestaltung nach world-of-bytes.de:
   dunkle Flächen, Barlow Condensed für Überschriften, JetBrains Mono für Technisches,
   Grün→Blau-Verlauf als Akzent. Schriften liegen lokal bei (keine Abrufe bei Dritten). */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #07090D;
  --surface: #0E131B;
  --line: #1E2733;
  --fg: #E8ECF3;
  --soft: #C9D0DB;
  --muted: #98A2B3;
  --blue: #387ABE;
  --blue-hi: #3FA9D9;
  --green: #6BA942;
  --green-hi: #B1C740;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --accent: linear-gradient(100deg, var(--green-hi), var(--green) 45%, var(--blue-hi));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: color-mix(in srgb, var(--blue-hi) 45%, transparent); }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ── Kopfzeile ── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .7;
  background: linear-gradient(90deg, transparent, var(--green), var(--green-hi), var(--blue-hi), var(--blue), transparent);
}
.top .wrap { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.top .box { flex: 1; max-width: 680px; }

.brand { display: inline-flex; align-items: baseline; text-decoration: none; font: 800 30px/1 var(--display); letter-spacing: -.01em; flex: 0 0 auto; }
.brand .s, .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad { font-style: italic; padding-right: .06em; }
.brand.big { font-size: clamp(64px, 13vw, 118px); }

/* ── Startseite ── */
.hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(48px, 16vh, 150px) 0 60px; }
.eyebrow { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font: 800 clamp(30px, 5vw, 46px)/1.02 var(--display); margin: 0; letter-spacing: -.01em; }
.hero .box { width: min(720px, 100%); }
.term {
  font: 400 14px/1.7 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; background: var(--surface); max-width: 100%; overflow-x: auto; white-space: nowrap;
}
.term b { color: var(--green-hi); font-weight: 500; }
.term i { font-style: normal; color: var(--blue-hi); }
.cur { display: inline-block; width: .55em; height: 1.05em; translate: 0 .18em; background: var(--green-hi); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Suchfeld ── */
.box { position: relative; }
.box form {
  display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 5px 5px 20px; transition: border-color .2s, box-shadow .2s;
}
.box form:focus-within {
  border-color: color-mix(in srgb, var(--blue-hi) 55%, var(--line));
  box-shadow: 0 10px 40px -18px color-mix(in srgb, var(--blue-hi) 70%, transparent);
}
.box input[type=search] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--fg); font: 500 17px var(--body); padding: 8px 0;
  appearance: none; -webkit-appearance: none;
}
.box input::placeholder { color: var(--muted); font-weight: 400; }
.box input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }
.box.large form { padding: 8px 8px 8px 26px; }
.box.large input[type=search] { font-size: 19px; padding: 11px 0; }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  text-align: left;
}
.suggest button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--soft); cursor: pointer;
  font: 500 16px var(--body); padding: 9px 14px; border-radius: 12px;
}
.suggest button:hover, .suggest button:focus-visible { background: color-mix(in srgb, var(--blue-hi) 14%, transparent); color: var(--fg); }

/* ── Schaltflächen ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--body); text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg);
  transition: transform .2s, border-color .2s, filter .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn.primary { border: 0; color: #06110A; background: var(--accent); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--green-hi) 60%, transparent); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 36px -12px color-mix(in srgb, var(--blue-hi) 70%, transparent); }
.btn.primary span { transition: transform .25s; }
.btn.primary:hover span { transform: translateX(4px); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled=true] { opacity: .35; pointer-events: none; }

/* ── Reiter ── */
.tabs { display: flex; gap: 6px; padding-block: 14px 4px; overflow-x: auto; }
.tab {
  font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--fg); border-color: var(--line); }
.tab.on { color: var(--fg); border-color: var(--line); background: var(--surface); }
.tab.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; background: var(--green-hi); box-shadow: 0 0 12px var(--green-hi); }

.meta { font: 400 13px var(--mono); color: var(--muted); margin: 14px 0 22px; }
.meta a { color: var(--blue-hi); }

/* ── Web-Ergebnisse ── */
.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 760px; padding-bottom: 30px; }
/* Meta-Suche: Quellenzeile und Kennzeichen je Treffer */
.engines { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -12px 0 22px; font: 400 12px var(--mono); color: var(--muted); }
.engines .lbl { letter-spacing: .08em; text-transform: uppercase; margin-right: 2px; }
.src { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); color: var(--soft); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.src b { font-weight: 600; color: var(--fg); }
.src.e-z::before { background: var(--green-hi); }
.src.e-g::before { background: var(--blue-hi); }
.src.e-b::before { background: var(--blue); }
.src.e-d::before { background: var(--green); }
.src.e-y::before { background: var(--soft); }
.src.e-o::before { background: var(--fg); }
.src.off { color: var(--muted); border-style: dashed; }
.src.off::before { background: var(--muted); }
.srcs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.srcs .src { padding: 1px 7px; font-size: 10.5px; }
.hit cite { display: block; font: 400 13px var(--mono); color: var(--muted); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit h3 { font: 600 26px/1.12 var(--display); margin: 3px 0 5px; letter-spacing: .005em; }
.hit h3 a { text-decoration: none; color: var(--blue-hi); }
.hit h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hit h3 a:visited { color: color-mix(in srgb, var(--blue-hi) 55%, #B79CE8); }
.hit p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
/* Reiter „Studien“: Autoren · Zeitschrift · Jahr, darunter Auszug und Kennzeichen (PDF, Zitate, DOI) */
.paper .byline { color: var(--green-hi); font-size: 14.5px; margin: 0 0 4px; }
.paper .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.paper .tag.pdf { text-decoration: none; color: var(--blue-hi); border-color: color-mix(in srgb, var(--blue-hi) 40%, var(--line)); }
.paper .tag.pdf:hover { color: var(--fg); border-color: var(--blue-hi); }
.paper .tag.doi { max-width: 100%; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
mark { background: transparent; color: var(--fg); font-weight: 600; }

/* ── Suchanzeigen (Google füllt die Blöcke; Kennzeichnung „Gesponsert“ kommt von Google) ── */
.ads { max-width: 760px; }
.ads.filled { margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ads.bottom.filled { margin: 4px 0 30px; padding: 18px 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
.grid + .ads.bottom.filled { max-width: none; }
.ads.own { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ad cite { display: flex; gap: 10px; align-items: baseline; font: 400 13px var(--mono); color: var(--muted); font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ad .adlabel { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
.ad h3 { font: 600 22px/1.15 var(--display); margin: 3px 0 4px; }
.ad h3 a { color: var(--blue-hi); text-decoration: none; }
.ad h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ad p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }

.card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--line); max-width: 760px; margin-bottom: 26px;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-hi), var(--blue-hi), var(--blue)); opacity: .9; }
.card .kind { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .big { font: 800 54px/1.05 var(--display); margin-top: 4px; overflow-wrap: anywhere; }
.card.error::after { background: #D9623F; }
.card h2 { font: 800 30px/1.05 var(--display); margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

.empty { max-width: 760px; color: var(--muted); padding: 10px 0 40px; }
.empty h2 { font: 800 34px/1.05 var(--display); color: var(--fg); margin: 0 0 10px; }
.empty ul { padding-left: 1.1em; margin: 10px 0 0; }

/* ── Produkte ── */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; }
.filters label { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.filters input, .filters select, .field input {
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font: 500 15px var(--body); outline: 0;
}
.filters input { width: 108px; }
.filters input:focus, .filters select:focus, .field input:focus { border-color: color-mix(in srgb, var(--blue-hi) 55%, var(--line)); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; padding-bottom: 30px; }
.prod {
  position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--green-hi) 11%, transparent), transparent 58%), var(--surface);
  transition: border-color .25s, transform .25s; min-width: 0;
}
.prod:hover { border-color: color-mix(in srgb, var(--blue-hi) 45%, var(--line)); transform: translateY(-3px); }
.prod .pic { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; }
.prod .pic img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.prod .pic.none { background: color-mix(in srgb, var(--line) 60%, var(--surface)); color: var(--muted); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.prod .info { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.prod .kind { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod h3 { font: 500 16px/1.3 var(--body); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod h3 a { text-decoration: none; }
.prod h3 a::after { content: ""; position: absolute; inset: 0; }
.prod .price { font: 800 34px/1 var(--display); margin-top: 4px; }
.prod .price small { font: 600 16px var(--display); color: var(--muted); margin-left: 4px; }
.prod .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.prod .cmp { position: relative; z-index: 1; font: 500 13px var(--mono); color: var(--blue-hi); text-decoration: none; margin-top: 6px; }
.prod .cmp:hover { text-decoration: underline; }
.tag { font: 500 12px var(--mono); color: var(--soft); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { color: var(--green-hi); border-color: color-mix(in srgb, var(--green-hi) 40%, var(--line)); }
.tag.no { color: #E08A6D; border-color: color-mix(in srgb, #E08A6D 40%, var(--line)); }

/* ── Bilder ── */
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding-bottom: 30px; }
.img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; display: block; transition: border-color .25s, transform .25s; }
.img:hover { border-color: color-mix(in srgb, var(--blue-hi) 45%, var(--line)); transform: translateY(-3px); }
.img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.img span { display: block; padding: 9px 12px 2px; font-size: 14px; line-height: 1.3; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img .srcs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 10px; margin-top: -4px; }
.img em { display: block; padding: 0 12px 10px; font: 400 12px var(--mono); font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Seitenwechsel, Fuß ── */
.pager { display: flex; align-items: center; gap: 14px; padding: 6px 0 56px; font: 500 13px var(--mono); color: var(--muted); }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-block: 18px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .sp { flex: 1; }
footer .mono { font: 400 12px var(--mono); }

/* ── Einstellungen ── */
.sec { padding: 48px 0 60px; max-width: 760px; }
.sec h2 { font: 800 clamp(38px, 6vw, 55px)/1 var(--display); margin: 10px 0 12px; }
.lede { color: var(--muted); margin: 0 0 26px; max-width: 36em; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field span { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-hi); }
.field input { width: 100%; padding: 12px 18px; font-family: var(--mono); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Bücher (Google Books) ── */
.books { display: grid; gap: 18px; max-width: 860px; padding-bottom: 30px; }
.book {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding: 18px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--blue-hi) 9%, transparent), transparent 58%), var(--surface);
  transition: border-color .25s;
}
.book:hover { border-color: color-mix(in srgb, var(--blue-hi) 45%, var(--line)); }
.book .cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; align-self: start; display: grid; place-items: center;
  background: color-mix(in srgb, var(--line) 60%, var(--surface)); box-shadow: 0 10px 24px -14px #000; text-decoration: none;
}
.book .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book .cover span { display: none; padding: 10px; font: 600 14px/1.15 var(--display); color: var(--soft); text-align: center; overflow-wrap: anywhere; }
.book .cover.none span { display: block; }
.book .cover.none { background: var(--accent); }
.book .cover.none span { color: var(--bg); }
.book .info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.book .kind { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book h3 { font: 600 25px/1.12 var(--display); margin: 0; letter-spacing: .005em; }
.book h3 a { text-decoration: none; color: var(--blue-hi); }
.book h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.book h3 small { display: block; font: 500 17px/1.25 var(--body); color: var(--soft); margin-top: 3px; }
.book cite { font: 400 13px var(--mono); color: var(--muted); font-style: normal; }
.book p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; }
.book .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.book .links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-top: 6px; font: 500 13px var(--mono); }
.book .links a { color: var(--blue-hi); text-decoration: none; }
.book .links a:hover { text-decoration: underline; }
.book .isbn { color: var(--muted); }
.meta.attribution { font-size: 12px; margin-top: -10px; }
code { font: 500 .9em var(--mono); color: var(--soft); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { flex-wrap: wrap; gap: 10px; }
  .top .box { flex: 1 1 100%; order: 2; max-width: none; }
  .box form .btn { padding-inline: 14px; }
  .hit h3 { font-size: 23px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod .price { font-size: 28px; }
  .images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .book h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

#blazor-error-ui { display: none; position: fixed; inset: auto 0 0 0; z-index: 100; padding: 12px 20px; background: #3A1B14; color: var(--fg); font-size: 14px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ── KI-Suche ── */
.ai { margin: 8px 0 34px; padding: 22px 24px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; overflow: hidden; }
.ai::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--green-hi), var(--blue-hi)); }
.ai-head { display: flex; align-items: center; gap: 12px; }
.ai-head h2 { font: 800 28px/1.05 var(--display); margin: 0; }
.ai-badge { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--bg); background: var(--accent); padding: 3px 8px; border-radius: 6px; }
.ai-status { color: var(--muted); margin: 10px 0 18px; display: flex; align-items: center; gap: 10px; }
.ai-status.warn { color: #E08A6D; }
.ai-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--blue-hi); animation: ai-pulse 1.1s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .ai-dot { animation: none; } }
.ai-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 18px; }
.ai-keys > span { font: 400 13px var(--mono); color: var(--muted); margin-right: 4px; }
.ai-keys .tag { text-decoration: none; }
.ai-keys .tag:hover { border-color: var(--blue-hi); color: var(--fg); }
.ai .results { padding-bottom: 6px; }
.why { color: var(--green-hi) !important; font-size: 14px !important; margin: 0 0 4px !important; }
.why::before { content: "KI: "; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; opacity: .8; }
.prod .why { position: relative; z-index: 1; line-height: 1.35; }

/* Mein Notizbuch (zNote) – in den Apps; auf der Website füllt das Browser-Add-on den Platz .nb-slot */
.nb { margin: 4px 0 26px; padding: 18px 22px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; overflow: hidden; }
.nb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--green-hi), var(--green)); }
.nb-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.nb-head h2 { font: 800 24px/1.05 var(--display); margin: 0; }
.nb-badge { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--bg); background: var(--green-hi); padding: 3px 8px; border-radius: 6px; align-self: center; }
.nb-meta { font: 400 13px var(--mono); color: var(--muted); }
.nb-hit { padding: 8px 0 6px; border-top: 1px solid var(--line); }
.nb-hit:first-of-type { border-top: 0; }
.nb-hit h3 { font: 600 18px/1.3 var(--body); margin: 0 0 2px; }
.nb-hit h3 a { color: var(--blue-hi); text-decoration: none; }
.nb-hit h3 a:hover { text-decoration: underline; }
.nb-hit cite { display: block; font: 400 12px var(--mono); color: var(--green-hi); font-style: normal; margin-bottom: 2px; }
.nb-hit p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.nb-hit mark { background: none; color: var(--fg); font-weight: 600; }
.nb-all { display: inline-block; margin: 6px 0 10px; font: 500 13px var(--mono); color: var(--green-hi); text-decoration: none; }
.nb-all:hover { text-decoration: underline; }
.nb-slot:empty { display: none; }
.nb-slot iframe { display: block; width: 100%; border: 0; margin: 4px 0 26px; color-scheme: dark; }

/* Impressum, Datenschutz */
.legal h3 { font: 700 20px/1.25 var(--display); margin: 34px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--blue-hi); }

/* ───── Preisvergleich (Geizhals, idealo, CHECK24) und Amazon ───── */
.src.e-gh::before { background: var(--green-hi); }
.src.e-id::before { background: var(--blue-hi); }
.src.e-c24::before { background: var(--blue); }
.src.e-am::before { background: var(--green); }
.adlabel { display: inline-block; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-right: 8px; vertical-align: 1px; }
.adlabel.small { font-size: 9.5px; margin: 0 0 0 6px; color: var(--muted); }
.prod.sponsored { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.prod .portals { position: relative; z-index: 1; margin: 2px 0 0; font: 400 12.5px var(--mono); color: var(--muted); }
.prod .portals a, .compare .portals a { color: var(--blue-hi); text-decoration: none; }
.prod .portals a:hover, .compare .portals a:hover { text-decoration: underline; }
.compare { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.compare-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.compare-head .lbl { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cmp-card { display: grid; gap: 5px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--fg); }
.cmp-card:hover { border-color: var(--blue); }
.cmp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 6px; padding: 6px; }
.cmp-card b { font: 500 14px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-card .price { font: 800 22px/1 var(--display); }
.cmp-card .price small { font: 600 13px var(--display); color: var(--muted); margin-left: 3px; }
.cmp-card .src { justify-self: start; }
.compare .portals { margin: 10px 0 0; font: 400 13px var(--mono); color: var(--muted); }
.card.tariff h2 { margin: 4px 0 6px; }
.card.tariff h2 a { text-decoration: none; color: var(--blue-hi); }
.card.tariff h2 a:hover { text-decoration: underline; }
.partner-note { margin-top: 14px; font-size: 12.5px; }

/* ── Lokale Suche „Auf diesem Gerät“ (Apps direkt, Website über zsearch-local.js) ── */
.local { max-width: 760px; margin: 0 0 30px; padding: 18px 22px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; overflow: hidden; }
.local::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--blue-hi), var(--blue)); }
.local[hidden] { display: none; }
.local-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.local-head h2 { font: 800 24px/1.05 var(--display); margin: 0; }
.local-badge { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--blue-hi); padding: 3px 8px; border-radius: 6px; align-self: center; }
.local-note { font: 400 12px var(--mono); color: var(--muted); }
.local-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lhit { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.lhit:first-child { border-top: 0; }
.lhit[hidden] { display: none; }
.ltype { font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; text-align: center; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhit h3 { font: 600 20px/1.2 var(--display); margin: 0 0 2px; overflow-wrap: anywhere; }
.lhit h3 a, .lopen { color: var(--blue-hi); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.lhit h3 a:hover, .lopen:hover { text-decoration: underline; text-underline-offset: 4px; }
.lhit cite { display: block; font: 400 12.5px var(--mono); color: var(--muted); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhit p { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.lreveal { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; white-space: nowrap; }
.lreveal:hover { color: var(--fg); border-color: var(--muted); }
.local-more { margin: 6px 0 10px; background: none; border: 0; color: var(--blue-hi); font: 500 13px var(--mono); cursor: pointer; padding: 4px 0; }
.local-more:hover { text-decoration: underline; }
.local-ai { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.local-ai .ai-head h3 { font: 800 20px/1.05 var(--display); margin: 0; }
.local-ai .ai-keys .tag { cursor: default; }
.local .ai-status { margin: 8px 0 12px; }
@media (max-width: 560px) { .lhit { grid-template-columns: minmax(0, 1fr) auto; } .ltype { display: none; } }

/* Einstellungen und Download-Seite der lokalen Suche */
.local-setup { display: grid; gap: 14px; max-width: 760px; }
.local-setup .card { margin: 0; }
.local-state { font: 500 14px var(--mono); }
.local-state.ok { color: var(--green-hi); } .local-state.warn { color: #E0A040; } .local-state.off { color: var(--muted); }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 8px; max-width: 980px; }
.downloads .card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.downloads .card .btn { align-self: flex-start; margin-top: auto; }
.downloads .card p { overflow-wrap: anywhere; }
.folders { width: 100%; min-height: 110px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 400 14px var(--mono); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: var(--soft); }
