/* Inter (SIL Open Font License, fonts/OFL.txt), served from our own server. */
@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: #faf8f3;
  --bg-2: #f2eee4;
  --fg: #1b1d21;
  --muted: #646a74;
  --line: #e6e0d4;
  --card: #ffffff;
  --accent: #e8a317;
  --accent-soft: #fbefd2;
  --accent-ink: #8a5c00;
  --olive: #5f7d3a;
  --olive-soft: #e8eedd;
  --slate: #4a6a8c;
  --slate-soft: #e3eaf2;
  --link: #1f4fbf;
  --visited: #6b3fa0;
  --shadow: 0 1px 2px rgb(30 25 10 / 5%), 0 6px 24px rgb(30 25 10 / 7%);
  --shadow-lg: 0 2px 4px rgb(30 25 10 / 6%), 0 14px 40px rgb(30 25 10 / 10%);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --bg-2: #181b20;
    --fg: #ebe8e1;
    --muted: #9aa1ab;
    --line: #2a2f37;
    --card: #1b1f25;
    --accent: #f2b53a;
    --accent-soft: #3a2f17;
    --accent-ink: #f2b53a;
    --olive: #9cbf6a;
    --olive-soft: #26301c;
    --slate: #8fb2d9;
    --slate-soft: #1e2a38;
    --link: #8ab4ff;
    --visited: #c4a1f2;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 24px rgb(0 0 0 / 25%);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 35%), 0 14px 40px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 Inter, system-ui, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 1.15em; height: 1.15em; stroke-width: 1.9; flex: none; }
.ans-badge, .chat-status { display: inline-flex; align-items: center; gap: 6px; }

.demo { background: #fff3cd; color: #5c4400; text-align: center; padding: 6px 16px; font-size: 14px; }

/* ── Wordmark ─────────────────────────────────────────── */
.logo { font-weight: 800; letter-spacing: -0.045em; color: var(--fg); text-decoration: none; line-height: 1; }
.logo span { color: var(--accent); }
.logo .beta { font-size: 0.24em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 0.25em 0.6em; vertical-align: super; margin-left: 0.35em; }

/* ── Search box ───────────────────────────────────────── */
.searchbox { position: relative; display: flex; align-items: center; width: 100%; max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.searchbox .sb-icon { width: 20px; height: 20px; margin-left: 18px; color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 17px; padding: 12px 8px 12px 22px; outline: none; }
.searchbox input::-webkit-search-cancel-button { cursor: pointer; }
.searchbox .sb-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--accent-ink); cursor: pointer; transition: transform .1s, background .15s; }
.searchbox .sb-go:hover { background: var(--accent-soft); }
.searchbox .sb-go:active { transform: scale(.94); }
.searchbox .sb-go svg { width: 22px; height: 22px; }
.searchbox.big input { font-size: 19px; padding: 16px 10px 16px 26px; }
.searchbox.big .sb-go { width: 48px; height: 48px; margin: 6px; }
.searchbox.big .sb-icon { margin-left: 22px; }

/* ── Home ─────────────────────────────────────────────── */
.home { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1200px 520px at 50% -180px, var(--accent-soft), transparent 70%), var(--bg); }
.topnav { display: flex; justify-content: flex-end; gap: 18px; align-items: center; padding: 16px 20px; font-size: 14px; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--fg); }
.topnav .topnav-cta { color: var(--fg); font-weight: 600; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9vh 16px 0; }
.hero .logo { font-size: clamp(52px, 11vw, 92px); margin: 0; }
.slogan { margin: 10px 0 0; font-size: 19px; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; }
.slogan + .claim { margin-top: 6px; }
.claim { color: var(--muted); max-width: 560px; margin: 14px 0 30px; font-size: 16px; }
.sponsor { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 30px 0 0; padding: 16px 32px 14px; max-width: 560px; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s; }
.sponsor[hidden] { display: none; }
.sponsor-free { margin: 26px 0 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.sponsor-free[hidden] { display: none; }
.sponsor-free b { font-weight: 600; color: var(--accent-ink); }
.sponsor-free:hover b { text-decoration: underline; text-underline-offset: 3px; }
.sponsor:hover { border-color: var(--accent); }
.sponsor-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sponsor-name { font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--fg); overflow-wrap: anywhere; }
.sponsor-text { font-size: 14px; color: var(--muted); }
.sponsor-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.sponsor-go svg { width: 14px; height: 14px; }

/* Fund colours: f0, f1, f2 by position in the config */
.f0 { --fc: var(--olive); --fs: var(--olive-soft); }
.f1 { --fc: var(--accent-ink); --fs: var(--accent-soft); --fb: var(--accent); }
.f2 { --fc: var(--slate); --fs: var(--slate-soft); }
.fund-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fs); color: var(--fc); flex: none; }
.fund-icon svg { width: 19px; height: 19px; stroke-width: 1.8; }

.impact { width: 100%; max-width: 860px; margin: 56px auto 0; padding: 0 16px; }
.impact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 20px; box-shadow: var(--shadow); text-align: left; }
.impact-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.impact-label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.counter-num { font-size: 46px; font-weight: 800; letter-spacing: -0.035em; color: var(--fg); font-variant-numeric: tabular-nums; line-height: 1.15; margin: 4px 0 2px; }
.counter-sub { color: var(--muted); font-size: 13px; }
.counter-note { color: var(--muted); font-size: 12px; margin-top: 16px; }
.counter-note a { color: inherit; }
.why-title { font-size: 20px; margin: 4px 0 14px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-list li { font-size: 14px; line-height: 1.55; color: var(--muted); }
.why-list strong { display: block; color: var(--fg); font-size: 15px; margin-bottom: 4px; }
@media (max-width: 720px) { .why-list { grid-template-columns: 1fr; gap: 12px; } }
.mine { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); background: var(--olive-soft); border-radius: 8px; padding: 6px 10px; }
.impact-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.impact-note a { color: inherit; }
.mine strong, .mine b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

.funds { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.funds li { display: grid; grid-template-columns: 36px 1fr auto; gap: 5px 12px; align-items: center; font-size: 14px; }
.funds .fund-icon { grid-row: 1 / 3; }
.fund-name { font-weight: 500; }
.fund-bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.fund-bar i { display: block; height: 100%; border-radius: 2px; background: var(--fb, var(--fc)); transition: width .6s ease; }
.fund-euro { font-variant-numeric: tabular-nums; font-weight: 600; }

.impact-split { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.impact-split-main { flex: 1; min-width: 0; }
.impact-split-go { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 600; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: border-color .15s, background .15s; }
.impact-split-go svg { width: 16px; height: 16px; }
.impact-split:hover .impact-split-go { border-color: var(--accent); background: var(--accent-soft); }
.split-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.split-bar i { display: block; min-width: 0; background: var(--fb, var(--fc)); transition: width .2s ease; }
.split-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); }
.split-legend li { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--fb, var(--fc)); }
.split-legend b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Roadmap card on the home page. Default: a row of three below the counter. */
.plan { width: calc(100% - 32px); max-width: 828px; margin: 20px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px 18px; box-shadow: var(--shadow); text-align: left; }
.plan h2 { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.plan-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.plan-steps li { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.plan-steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); }
.plan-steps li.now { border-top-color: var(--accent); }
.plan-steps li.now::before { background: var(--accent); border-color: var(--accent); }
.plan-when { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-steps li.now .plan-when { color: var(--accent-ink); }
.plan-steps strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; }
.plan-steps p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.plan-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--fg); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: border-color .15s, background .15s; }
.plan-go svg { width: 16px; height: 16px; }
.plan-go:hover { border-color: var(--accent); background: var(--accent-soft); }
@media (min-width: 1500px) { /* room next to the 860px column: tall card on the right */
  .home { position: relative; }
  .plan { position: absolute; top: calc(56px + 9vh); left: calc(50% + 454px); width: 280px; margin: 0; padding: 22px 22px 20px; }
  .plan-steps { grid-template-columns: 1fr; gap: 0; }
  .plan-steps li { padding: 0 0 20px 22px; border-top: 0; border-left: 2px solid var(--line); }
  .plan-steps li:last-child { padding-bottom: 2px; }
  .plan-steps li::before { top: 2px; left: -6px; }
  .plan-steps li.now { border-left-color: var(--accent); }
}
@media (max-width: 760px) {
  .plan { padding: 20px 18px 16px; }
  .plan-steps { grid-template-columns: 1fr; gap: 0; }
  .plan-steps li { padding: 0 0 18px 22px; border-top: 0; border-left: 2px solid var(--line); }
  .plan-steps li:last-child { padding-bottom: 2px; }
  .plan-steps li::before { top: 2px; left: -6px; }
  .plan-steps li.now { border-left-color: var(--accent); }
  .plan-go { display: flex; justify-content: center; }
}

.foot { margin-top: auto; padding: 48px 16px 28px; display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

/* ── Results page ─────────────────────────────────────── */
.serp { min-height: 100vh; display: flex; flex-direction: column; }
.serp-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 22px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.serp-head .logo { font-size: 28px; white-space: nowrap; width: 128px; flex: none; }
.serp-head .searchbox { max-width: 680px; box-shadow: none; }
.serp-head .searchbox:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); }
/* Switch between our own index and the partner's, left of the counter. */
.src { margin-left: auto; display: flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.src button { font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.src button:hover { color: var(--fg); }
.src-by { font-weight: 400; }
.src-by::before { content: " · "; }
@media (max-width: 480px) { .src button { font-size: 12px; padding: 5px 8px; } }
.src button.on { background: var(--accent-soft); color: var(--accent-ink); cursor: default; }
.src:not([hidden]) + .pill { margin-left: 0; }
.pill svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.pill { margin-left: auto; white-space: nowrap; text-decoration: none; background: var(--accent-soft); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

.serp-body { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 360px); gap: 48px; padding: 20px 24px 0 174px; }
.serp-main { min-width: 0; }
.serp-side { min-width: 0; }
.serp-side:empty { display: none; }
.info-top:empty { display: none; }
.info-top { display: none; }
.serp-foot { padding-top: 56px; }

.ads:empty { display: none; }
.ads { margin-bottom: 22px; }
.own-ad { display: block; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.own-ad:hover { border-color: var(--accent); }
.own-ad-site { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.own-ad-label { font-weight: 700; color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.own-ad-host { color: var(--fg); }
.own-ad-title { display: block; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--link); margin: 4px 0; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.own-ad:hover .own-ad-title { text-decoration: underline; text-underline-offset: 3px; }
.own-ad-text { display: block; font-size: 15px; line-height: 1.55; opacity: .86; overflow-wrap: anywhere; }
.ad-placeholder { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; color: var(--muted); font-size: 13px; }

.results { list-style: none; padding: 0; margin: 0; }
.results > li { margin-bottom: 30px; }
.r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 18px; }
.r > * { grid-column: 1; }
.r-site { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 4px; }
.r-fav { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.r-fav img { width: 16px; height: 16px; }
.r-fav span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.r-meta { min-width: 0; line-height: 1.25; }
.r-name { display: block; font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-url { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-title { display: inline-block; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--link); text-decoration: none; margin: 2px 0 4px; letter-spacing: -0.01em; }
.r-title:visited { color: var(--visited); }
.r-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.r-snippet { margin: 0; color: var(--fg); opacity: .86; font-size: 15px; line-height: 1.55; }
.r-snippet b { font-weight: 650; opacity: 1; }
.r-age { color: var(--muted); }
.r > .r-thumb { grid-row: 1 / span 3; grid-column: 2; align-self: start; width: 112px; height: 80px; margin-top: 34px; border-radius: 10px; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); }
.r > .r-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.r-links a { font-size: 13px; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-links a:hover { border-color: var(--accent); }
.msg { color: var(--muted); }

/* Skeleton while loading */
.skel { list-style: none; margin-bottom: 30px; }
.skel i { display: block; height: 12px; border-radius: 6px; margin-bottom: 10px; background: linear-gradient(90deg, var(--bg-2) 25%, var(--line) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel i:nth-child(1) { width: 32%; }
.skel i:nth-child(2) { width: 68%; height: 18px; }
.skel i:nth-child(3) { width: 96%; }
.skel i:nth-child(4) { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }

/* Carousels: videos and news */
.strip { margin: 0 0 32px; }
.strip h2, .related h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card-img { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-dur { position: absolute; right: 8px; bottom: 8px; background: rgb(0 0 0 / 75%); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-src { margin-top: auto; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Info box (right column on wide screens, top on narrow ones) */
.infobox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ib-img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; background: var(--bg-2); }
.ib-body { padding: 18px 20px 20px; }
.ib-title { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.ib-sub { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.ib-text { font-size: 14px; line-height: 1.6; margin: 0; }
.ib-src { display: inline-block; margin-top: 8px; font-size: 13px; }
.ib-facts { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.ib-facts dt { color: var(--muted); }
.ib-facts dd { margin: 0; }
.ib-profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ib-profiles a { display: flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 6px; }
.ib-profiles a:hover { border-color: var(--accent); }
.ib-profiles img { width: 16px; height: 16px; border-radius: 4px; }

/* Related searches */
.related { margin: 8px 0 34px; }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.related-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.related-list a:hover { border-color: var(--accent); }
.related-list svg { width: 16px; height: 16px; color: var(--muted); flex: none; }


/* AI answer (shown only once enabled on the server) */
.answer { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 26px; box-shadow: var(--shadow); }

@media (max-width: 1180px) { /* keep in sync with WIDE in app.js */
  .serp-body { grid-template-columns: minmax(0, 680px); padding-left: 174px; }
  .serp-side { display: none; }
  .info-top { display: block; margin-bottom: 26px; }
  .info-top .ib-img { max-height: 200px; }
}
@media (max-width: 960px) {
  .serp-body { padding: 16px 24px 0; justify-content: center; }
  .serp-head .logo { width: auto; }
}
@media (max-width: 760px) {
  .impact { margin-top: 40px; }
  .impact-card { padding: 20px 18px 16px; }
  .impact-cols { grid-template-columns: 1fr; gap: 22px; }
  .counter-num { font-size: 38px; }
  .impact-split { flex-direction: column; align-items: stretch; gap: 14px; }
  .impact-split-go { justify-content: center; }
  .purpose-cols { grid-template-columns: 1fr; gap: 4px; }
  .purpose header { flex-wrap: wrap; }
  .alloc, .purpose { padding: 18px; }
  .hero { padding-top: 6vh; }
  .serp-head { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .serp-head .logo { font-size: 24px; }
  .serp-head .searchbox { order: 3; max-width: none; }
  .src { order: 4; width: 100%; margin-left: 0; }
  .src button { flex: 1; }
  .src:not([hidden]) + .pill { margin-left: auto; }
  .serp-head .searchbox input { padding: 10px 6px 10px 18px; font-size: 16px; }
  .serp-head .searchbox .sb-go { width: 36px; height: 36px; }
  .serp-body { padding: 16px 16px 0; }
  .r-title { font-size: 18px; }
  .r > .r-thumb { width: 84px; height: 64px; margin-top: 34px; }
  .related-list { grid-template-columns: 1fr; }
  .topnav { padding: 12px 16px; }
}

/* ── Text pages: Impressum, Datenschutz, So funktioniert's ─ */
.page { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.page .logo { font-size: 30px; color: var(--fg); }
.page .logo .beta { font-size: 0.32em; }
.page h1 { font-size: 32px; letter-spacing: -0.02em; margin: 32px 0 8px; }
.page h2 { font-size: 19px; margin: 30px 0 6px; }
.page p, .page li { color: var(--fg); }
.page a { color: var(--link); }
.page .note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-size: 14px; }
.page address { font-style: normal; }
.dl { margin: 8px 0 34px; }
.page .dl-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #1b1d21; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }
.page .dl-btn:hover { filter: brightness(1.05); }
.dl-btn svg { width: 22px; height: 22px; }
.dl-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ss { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 20px; }
.ss figure { margin: 0; }
.ss figcaption { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.ss-win { display: flex; flex-direction: column; height: calc(100% - 26px); box-sizing: border-box; background: #0067c0; color: #fff; font-family: "Segoe UI", system-ui, sans-serif; padding: 16px 16px 12px; border-radius: 6px; box-shadow: var(--shadow); }
.ss-title { font-size: 18px; font-weight: 300; line-height: 1.25; margin-bottom: 10px; }
.ss-win p { font-size: 12px; line-height: 1.45; margin: 0 0 10px; }
.ss-small { opacity: .9; }
.ss-link { text-decoration: underline; font-weight: 600; }
.ss-btns { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; }
.ss-btn { font-size: 12px; border: 2px solid #fff; padding: 4px 12px; white-space: nowrap; }
.ss-hit { outline: 3px solid #ffd400; outline-offset: 3px; border-radius: 2px; }
.ss-arrow { color: #ffd400; font-size: 20px; line-height: 1; margin-left: 10px; animation: ss-nudge 1s ease-in-out infinite alternate; }
.ss-btns .ss-arrow { margin: 0 4px 0 0; }
@keyframes ss-nudge { to { transform: translateX(-5px); } }
.ss-btns .ss-arrow { animation-name: ss-nudge-r; }
@keyframes ss-nudge-r { to { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .ss-arrow { animation: none; } }
@media (max-width: 640px) { .ss { grid-template-columns: 1fr; } }
.page .nf-search { width: 100%; max-width: 420px; padding: 10px 14px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); }
.page code { word-break: break-all; font-size: 15px; color: var(--fg); }
.page dl.lexikon { margin: 8px 0 0; }
.page dl.lexikon dt { font-weight: 700; margin-top: 18px; color: var(--fg); }
.page dl.lexikon dd { margin: 4px 0 0; color: var(--fg); }
.page pre.code { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--fg); font-size: 15px; overflow-x: auto; }

/* ── /wofuer: split and purposes ──────────────────────── */
.page.wide { max-width: 820px; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page .back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.page .back:hover { color: var(--fg); }
.page .back svg { width: 16px; height: 16px; }
.page .lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.page .section-title { font-size: 22px; letter-spacing: -0.015em; margin: 44px 0 14px; }

.alloc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; }
.alloc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page .alloc-head h2 { margin: 0; font-size: 19px; }
.btn-quiet { font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.btn-quiet:hover { color: var(--fg); border-color: var(--accent); }
.alloc .split-bar { height: 10px; border-radius: 5px; margin: 18px 0 8px; }
.alloc-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 2px 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.alloc-row:first-child { border-top: 0; }
.alloc-row .fund-icon { grid-row: 1 / 3; }
.alloc-name { font-weight: 600; }
.alloc-pct { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alloc-track { grid-column: 2 / -1; position: relative; height: 24px; }
.alloc-track::before, .alloc-track i { content: ""; position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; }
.alloc-track::before { right: 0; background: var(--bg-2); }
.alloc-track i { background: var(--fb, var(--fc)); }
.alloc-track input { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.alloc-track input::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.alloc-track input::-moz-range-track { height: 24px; background: transparent; }
.alloc-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--fb, var(--fc)); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 4px rgb(0 0 0 / 18%); }
.alloc-track input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--fb, var(--fc)); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 4px rgb(0 0 0 / 18%); }
.alloc-track input:disabled { cursor: default; }
.alloc-row:has(input:disabled) { cursor: default; }
.alloc-row:has(input:disabled) .alloc-track { opacity: 0.45; filter: grayscale(1); }
.alloc-track input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.alloc-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.purpose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; margin-bottom: 14px; }
.purpose header { display: flex; align-items: center; gap: 12px; }
.purpose h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.purpose .status { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.purpose > p { margin: 12px 0 4px; }
.purpose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.purpose h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.purpose ul { margin: 0; padding-left: 18px; font-size: 15px; }
.purpose li { margin: 3px 0; }
.rules { padding-left: 22px; }
.rules li { margin: 10px 0; padding-left: 4px; }
.rules li::marker { font-weight: 700; color: var(--accent-ink); }
.tbl-wrap { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Einrichten: one collapsible box per browser */
.howto { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; }
.howto summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.howto[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.howto ol { padding-left: 20px; }
.howto li { margin-bottom: 8px; }
.howto .yours { font-size: 12px; font-weight: 700; color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* AI answer box */
.ans-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ans-badge { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.ans-text { margin: 0; font-size: 16px; line-height: 1.65; }
.ans-ref { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 6px; background: var(--bg-2); color: var(--fg); font-size: 11px; font-weight: 700; text-decoration: none; vertical-align: 2px; }
.ans-ref:hover { background: var(--accent); color: #1b1d21; }
.ans-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ans-sources a { display: flex; align-items: center; gap: 6px; font-size: 12px; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 4px; }
.ans-sources a:hover { border-color: var(--accent); }
.ans-sources b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); font-size: 11px; }
.ans-note { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.ans-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ans-report { color: var(--muted); text-decoration: underline; }
.ans-report:hover { color: var(--fg); }
.ans-wait { display: flex; gap: 6px; padding: 6px 0; }
.ans-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .3; animation: pulse 1s infinite ease-in-out; }
.ans-wait i:nth-child(2) { animation-delay: .15s; }
.ans-wait i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 50% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ans-wait i { animation: none; opacity: .7; } }

/* Follow-up chat under the AI answer */
.chat-thread { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.chat-thread:empty { display: none; }
.chat-q { align-self: flex-end; max-width: 85%; background: var(--accent-soft); color: var(--fg); border-radius: 16px 16px 4px 16px; padding: 8px 14px; font-size: 15px; overflow-wrap: anywhere; }
.chat-a { padding-top: 2px; border-top: 1px solid var(--line); padding: 12px 0 0; }
.chat-a .msg { margin: 0; font-size: 14px; }
.chat-status { font-size: 13px; color: var(--muted); }
.ans-paras { display: flex; flex-direction: column; gap: 8px; }
.ans-list { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.ans-list li + li { margin-top: 4px; }
.ans-h { margin: 10px 0 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 4px 4px 4px 16px; transition: border-color .15s, box-shadow .15s; }
.chat-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-form textarea { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; line-height: 20px; padding: 8px 0; outline: none; resize: none; overflow-y: auto; max-height: 176px; box-sizing: border-box; }
.chat-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #1b1d21; cursor: pointer; }
.chat-send svg { width: 18px; height: 18px; }
.chat-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.chat-note:empty { display: none; }

/* Inside the Polias app */
.in-app .topnav-cta, .in-app .foot a[href="/einrichten"] { display: none; }
/* The app has its own address bar: no second search box in the results header. */
.in-app .serp-head .searchbox { display: none; }
.in-app .serp-head { justify-content: space-between; }

/* ── Google-like results (clean white page, Arial, classic link colours) ── */
.serp { --bg: #ffffff; --bg-2: #f1f3f4; --line: #ebebeb; --link: #1a0dab; --visited: #681da8; --r-text: #4d5156; --r-name: #202124; --r-fav: #f1f3f4; background: var(--bg); }
@media (prefers-color-scheme: dark) {
  .serp { --bg: #1f1f1f; --bg-2: #2a2a2a; --card: #262626; --line: #3c4043; --link: #99c3ff; --visited: #c58af9; --r-text: #bfbfbf; --r-name: #dadce0; --r-fav: #303134; }
}
.serp-head { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.serp-head .searchbox { border-color: var(--line); }
.serp-head .searchbox:hover { box-shadow: 0 1px 6px rgb(32 33 36 / 28%); }
.results { font-family: Arial, "Helvetica Neue", sans-serif; }
.results > li { margin-bottom: 28px; }
.r { max-width: 652px; }
.r-site { gap: 12px; margin-bottom: 6px; }
.r-fav { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--r-fav); }
.r-fav img { width: 18px; height: 18px; border-radius: 4px; }
.r-name { font-size: 14px; font-weight: 400; color: var(--r-name); line-height: 20px; }
.r-url { font-size: 12px; color: var(--r-text); line-height: 18px; }
.r-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 20px; line-height: 26px; font-weight: 400; letter-spacing: 0; margin: 0 0 3px; padding-top: 2px; }
.r-title:hover { text-underline-offset: auto; }
.r-snippet { color: var(--r-text); opacity: 1; font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-snippet b { font-weight: 700; color: var(--r-text); }
.r-age { color: #70757a; }
.r > .r-thumb { width: 92px; height: 92px; margin-top: 34px; border-radius: 8px; border: 0; }
.r > .r-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin-top: 8px; }
.r-links a { font-size: 14px; color: var(--link); background: none; border: 0; border-radius: 0; padding: 2px 0; }
.r-links a:hover { text-decoration: underline; }
.related-list a { background: var(--r-fav); border: 0; border-radius: 999px; font-family: Arial, sans-serif; }
.related-list a:hover { filter: brightness(.96); }
.card, .infobox { border-color: var(--line); box-shadow: none; }
@media (max-width: 760px) {
  .r-title { -webkit-line-clamp: 2; font-size: 18px; line-height: 24px; }
  .r > .r-thumb { width: 72px; height: 72px; }
  .r > .r-links { grid-template-columns: 1fr; }
}

/* Tabs and image grid */
.tabs { display: flex; gap: 22px; padding: 0 24px 0 174px; border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tab-off { display: inline-flex; align-items: center; gap: 6px; color: var(--r-text); text-decoration: none; padding: 12px 2px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-off { opacity: .42; cursor: default; }
.tabs a:hover { color: var(--r-name); }
.tabs a[aria-current] { color: var(--link); border-bottom-color: var(--link); font-weight: 700; }
.serp-head { border-bottom: 0; }
.img-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--r-text); font-size: 12px; min-width: 0; }
.img-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-2); }
.img-tile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.img-tile:hover span { text-decoration: underline; }
@media (max-width: 960px) { .tabs { padding-left: 24px; } }
@media (max-width: 760px) { .tabs { padding: 0 16px; } }

/* The way back from a sub page: a button, so it stands out from the links in the text. */
.page .back-btn { display: inline-flex; align-items: center; min-height: 48px; margin-top: 16px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #1b1d21; font-weight: 700; text-decoration: none; }
.page .back-btn:hover { filter: brightness(1.05); }

/* Results set apart: a hairline between them, a wider band on phones. */
.results > li { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.results > li:first-child { padding-top: 6px; }
.results > li:last-child { border-bottom: 0; }
.results > li.strip { padding-bottom: 14px; }
.results > li.strip h2 { font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; color: var(--r-name); }
.serp .answer { box-shadow: none; border-color: var(--line); margin-bottom: 20px; }
.serp .info-top { margin-bottom: 20px; }
.related { margin: 26px 0 34px; }
@media (max-width: 760px) {
  .results > li { margin: 0 -16px; padding: 18px 16px; border-bottom: 8px solid var(--r-fav); }
  .results > li:first-child { padding-top: 4px; }
  .results > li:last-child { border-bottom: 8px solid var(--r-fav); }
}

/* Started from the phone's home screen: the page does not bounce past its top,
   pulling down reloads instead (app.js). The page behind the results is white
   like the results, so nothing of another colour shows above the header. */
.on-serp, .on-serp body { background: #ffffff; }
@media (prefers-color-scheme: dark) { .on-serp, .on-serp body { background: #1f1f1f; } }
.standalone, .standalone body { overscroll-behavior-y: none; }
.pull { position: fixed; top: 0; left: 50%; z-index: 20; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-lg); transform: translate(-50%, -60px); transition: transform .2s; }
.pull.drag { transition: none; }
.pull i { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; }
.pull.ready i { border-color: var(--accent); }
.pull.go i { border-color: var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The view "KI-Antwort": only the answer and its chat, no results list. */
.ai-view :is(#ads, #infoTop, #results, #related, #pager, #side) { display: none; }
.serp.ai-view .answer { border: 0; border-radius: 0; background: none; padding: 8px 0 0; margin: 0; }
.ai-view .ans-head { display: none; }
.ai-view .ans-text, .ai-view .ans-list { font-size: 17px; line-height: 1.7; }
.ai-view .ans-h { font-size: 18px; margin-top: 14px; }
.ai-view .ans-sources { margin-top: 16px; }
.ai-view .chat-form { margin-top: 24px; background: var(--card); box-shadow: 0 1px 6px rgb(32 33 36 / 16%); }

/* Row of pictures on top of searches about a person, a place or a thing. */
.img-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.img-row .img-tile { flex: none; width: 148px; }
.img-row .img-tile img { aspect-ratio: 1; }
.strip-more { display: inline-block; margin-top: 8px; font-family: Arial, sans-serif; font-size: 14px; color: var(--link); text-decoration: none; }
.strip-more:hover { text-decoration: underline; }

/* A picture taller than a short result's text must stretch the text row, not the title row (which would show half a second line). */
.r { grid-template-rows: auto auto 1fr; }
.r-snippet { align-self: start; }

/* Last searches under the search box */
.sb-recent { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; padding: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); text-align: left; font-size: 16px; overflow: hidden; }
.sb-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 18px; color: var(--fg); cursor: pointer; }
.sb-row:hover, .sb-row.on { background: var(--bg-2); }
.sb-row > svg { flex: none; width: 18px; height: 18px; color: var(--muted); stroke-width: 1.9; }
.sb-row > span:not(.sb-del) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-del { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.sb-del:hover { background: var(--line); color: var(--fg); }
.sb-del svg { width: 16px; height: 16px; }
.sb-clear { display: block; width: max-content; margin: 6px 20px 4px auto; font-size: 13px; color: var(--muted); cursor: pointer; }
.sb-clear:hover { color: var(--fg); text-decoration: underline; }

/* Pages: "‹ Zurück 1 2 3 … Weiter ›" */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 6px 0 0; font-family: Arial, sans-serif; font-size: 14px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; color: var(--link); text-decoration: none; }
.pager a:hover { background: var(--r-fav); }
.pager [aria-current] { background: var(--r-fav); color: var(--r-name); font-weight: 700; }
.pager .pager-step { padding: 0 14px; font-weight: 700; }

/* Above the results: a sum, a corrected spelling */
.notice { margin: 0 0 18px; font-family: Arial, sans-serif; }
.fix-main { margin: 0; font-size: 18px; line-height: 26px; color: var(--r-name); }
.fix-main a { font-weight: 700; font-style: italic; }
.fix-sub { margin: 2px 0 0; font-size: 14px; color: var(--r-text); }
.notice a { color: var(--link); text-decoration: none; }
.notice a:hover { text-decoration: underline; }
.calc { max-width: 652px; margin-bottom: 16px; padding: 16px 20px 18px; border: 1px solid var(--line); border-radius: 12px; text-align: right; }
.calc-q { font-size: 14px; color: var(--r-text); overflow-wrap: anywhere; }
.calc-a { font-size: 36px; line-height: 1.3; color: var(--r-name); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Time filter at the end of the tabs */
.tab-filter { flex: none; align-self: center; margin-left: 6px; max-width: 170px; font: inherit; font-size: 13px; color: var(--r-text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; cursor: pointer; }
.tab-filter:hover { border-color: var(--r-text); }
.tab-filter.on { color: var(--link); border-color: var(--link); }

/* Stars, sections of a site */
.r-rate { font-size: 14px; line-height: 22px; color: var(--r-text); }
.stars { font-size: 13px; letter-spacing: 1px; background: linear-gradient(90deg, #fbbc04 calc(var(--v) * 20%), #dadce0 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r > .r-sections { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 14px 0 0 16px; }
.r-sections a { display: block; font-size: 18px; line-height: 24px; color: var(--link); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sections a:visited { color: var(--visited); }
.r-sections a:hover { text-decoration: underline; }
.r-sections p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--r-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* "Ähnliche Fragen" and forums */
.faq, .forums { max-width: 652px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; font-size: 16px; line-height: 22px; color: var(--r-name); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 4px; border: solid var(--r-text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(225deg); margin: 4px 6px 0; }
.faq p { margin: 0 2px 10px; font-size: 14px; line-height: 22px; color: var(--r-name); }
.faq-src { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 2px 14px; font-size: 14px; color: var(--r-text); text-decoration: none; }
.faq-src img { width: 16px; height: 16px; flex: none; }
.faq-src span { flex: none; }
.faq-src b { font-weight: 400; color: var(--link); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faq-src:hover b { text-decoration: underline; }
.forum { padding: 10px 2px; border-top: 1px solid var(--line); }
.forum:last-child { border-bottom: 1px solid var(--line); }
.forum-title { display: block; font-size: 16px; line-height: 22px; color: var(--link); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-title:visited { color: var(--visited); }
.forum-title:hover { text-decoration: underline; }
.forum-meta { margin-top: 2px; font-size: 12px; color: var(--r-text); }
.results > li.strip.faq, .results > li.strip.forums { padding-bottom: 22px; }

/* Tab "Videos": picture left, text right */
.v { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 16px; max-width: 652px; }
.v-pic { position: relative; display: block; align-self: start; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.v-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v-by { margin-top: 4px; font-size: 12px; color: var(--r-text); }
.v .r-snippet { -webkit-line-clamp: 2; }

/* Tab "Bilder": the whole width, rows of even height, the clicked picture large on the right */
.serp.img-view .serp-body { grid-template-columns: minmax(0, 1fr); padding-left: 24px; }
.img-view .serp-side { display: none; }
.img-grid { display: flex; flex-wrap: wrap; gap: 14px 12px; }
.img-grid::after { content: ""; flex: 100 1 0; }
.img-grid .img-tile { --r: 1.333; flex: var(--r) 1 calc(var(--r) * 170px); max-width: calc(var(--r) * 250px); }
.img-grid .img-tile img { aspect-ratio: var(--r); height: auto; }
.img-tile:hover img { box-shadow: 0 1px 6px rgb(32 33 36 / 28%); }
.img-cap { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.img-cap b { display: block; font-weight: 400; font-size: 13px; color: var(--r-name); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; gap: 12px; width: min(440px, 100%); padding: 10px 20px 24px; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -2px 0 12px rgb(32 33 36 / 12%); font-family: Arial, sans-serif; }
.viewer-bar { display: flex; align-items: center; gap: 4px; margin: 0 -8px; }
.viewer-bar button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--r-name); cursor: pointer; }
.viewer-bar button:hover { background: var(--r-fav); }
.viewer-bar button:disabled { opacity: .3; cursor: default; background: transparent; }
.viewer-bar svg { width: 22px; height: 22px; }
.viewer-close { margin-left: auto; }
.viewer-pic { display: grid; place-items: center; min-height: 180px; border-radius: 12px; overflow: hidden; background: var(--r-fav); }
.viewer-pic img { display: block; max-width: 100%; max-height: 62vh; }
.viewer-site { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--r-text); }
.viewer-site img { width: 18px; height: 18px; }
.viewer-title { font-size: 20px; line-height: 26px; color: var(--r-name); text-decoration: none; overflow-wrap: anywhere; }
.viewer-title:hover { text-decoration: underline; }
.viewer-go { align-self: flex-start; padding: 10px 22px; border-radius: 999px; background: var(--link); color: var(--bg); font-size: 14px; font-weight: 700; text-decoration: none; }
.viewer-go:hover { filter: brightness(1.1); }
@media (min-width: 961px) { .viewing .img-view .serp-body { padding-right: 464px; } }

@media (max-width: 760px) {
  .serp.img-view .serp-body { padding-left: 16px; }
  .img-grid { gap: 12px 8px; }
  .img-grid .img-tile { flex-basis: calc(var(--r) * 110px); max-width: calc(var(--r) * 250px); }
  .r > .r-sections { grid-template-columns: 1fr; gap: 0; margin: 12px 0 0; }
  .r-sections > div { padding: 10px 0; border-top: 1px solid var(--line); }
  .r-sections p { -webkit-line-clamp: 1; }
  .v { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
  .v .r-site { display: none; }
  .pager { justify-content: center; }
  .pager a, .pager span { min-width: 34px; padding: 0 4px; }
  .calc-a { font-size: 30px; }
}

/* Statistik page */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-num { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; }
.stat-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.stat-bar { flex: 1; min-width: 0; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.stat-bar.today { background: var(--accent-ink); }
.stat-bar.none { background: repeating-linear-gradient(-45deg, var(--line) 0 3px, transparent 3px 7px); opacity: 0.6; }
.stat-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* News box from our own index (21.10.2026): text cards without a picture, clearly set apart from the results. */
.card-text { min-height: 128px; border-top: 3px solid var(--accent); }
.card-text .card-title { -webkit-line-clamp: 4; font-size: 15px; }
.card-fav { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; }

/* "Treffer passen nicht? Melden" under our own results */
.bad-results { list-style: none; margin: 8px 0 18px; font-size: 14px; color: var(--muted); }
.bad-open { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.bad-open:hover { color: var(--fg); }
.bad-form { max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.bad-form p { margin: 0 0 8px; }
.bad-form textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; resize: vertical; }
.bad-row { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.bad-send { font: inherit; font-weight: 600; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; cursor: pointer; }
.bad-cancel { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; }
.bad-thanks { margin: 0; }
.bad-form .bad-warn { font-weight: 600; color: var(--fg); }
