/*
Theme Name: wirdgefunden
Description: Schlankes Block-Theme fuer wirdgefunden. Traegt das CSS der statischen Fassung
  unveraendert. Kein JavaScript, keine externen Schriften, keine Fremd-Assets: die Seite
  verkauft, dass KI-Crawler kein JS ausfuehren, also darf sie selbst keins brauchen.
  Quelle: customers/wirdgefunden/theme/ im Mono-Repo. Live nie handpatchen.
Version: 1.0.0
Author: Abid Mares
Requires at least: 6.5
Tested up to: 7.1
*/

/* wirdgefunden — eigene Bildsprache, bewusst weder abidmares-Creme noch geoscore-Dashboard.
   Papier + Tinte + ein Beleg-Gruen. Kein JavaScript, keine externen Schriften, keine externen
   Assets: die Seite muss ohne JS vollstaendig lesbar sein, weil genau das unser Verkaufsargument
   ist (GPTBot/ClaudeBot/PerplexityBot fuehren kein JS aus). */

:root {
  --paper:      #FBFAF8;
  --paper-2:    #F3F1EC;
  --paper-3:    #EAE7E0;
  --ink:        #14161B;
  --ink-2:      #3D434C;
  --muted:      #656C77;
  --line:       #E1DCD3;
  --accent:     #0F6E52;   /* Beleg-Gruen: geprueft, belegt, gefunden */
  --accent-ink: #0B5540;
  --accent-bg:  #E6F1EC;
  --warn:       #9C3D12;   /* Rost: Mythos, Einwand, Warnung */
  --warn-bg:    #F7EBE3;
  --focus:      #0F6E52;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,22,27,.05), 0 8px 24px -12px rgba(20,22,27,.14);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #101216;
    --paper-2:    #171A20;
    --paper-3:    #1E222A;
    --ink:        #F2F0EC;
    --ink-2:      #C9CDD4;
    --muted:      #9AA2AD;
    --line:       #2A2F38;
    --accent:     #4FBF97;
    --accent-ink: #7FD9B8;
    --accent-bg:  #12241E;
    --warn:       #E2916A;
    --warn-bg:    #2A1C14;
    --focus:      #4FBF97;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }

a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.prose { width: min(100%, 44rem); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper);
  padding: .7rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- Kopf ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between; padding: 1rem 0;
}
.brand {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; align-items: center; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn-sm {
  border: 1px solid var(--accent); color: var(--accent-ink); border-radius: 999px;
  padding: .35rem .85rem; border-bottom-width: 1px;
}
.nav .btn-sm:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Bausteine ---------- */
section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--paper-2); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .75rem;
}
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.021em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; margin-top: 0; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 650; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.small { font-size: .9rem; color: var(--muted); }
strong { font-weight: 650; }

/* Die Antwort zuerst: unser Answer-first-Block, zugleich Zitier-Anker fuer KI-Systeme */
.answer {
  border-left: 4px solid var(--accent); background: var(--accent-bg);
  padding: 1.15rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.75rem; font-size: 1.08rem;
}
.answer p:last-child { margin-bottom: 0; }
.answer .label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: .4rem;
}

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.6rem 0 0; }
.trustline { margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.trustline span { white-space: nowrap; }

/* Karten */
.grid { display: grid; gap: 1.25rem; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem; min-width: 0;
}
section.tint .card { background: var(--paper); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--accent-bg);
  color: var(--accent-ink); font-weight: 700; font-size: .95rem; margin-bottom: .7rem;
}
.card.price .amount {
  font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; margin: .2rem 0 .1rem;
}
.card.price .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-ink); background: var(--accent-bg);
  padding: .22rem .62rem; border-radius: 999px; margin-bottom: .6rem;
}

/* Zahlen-Belege */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 1.5rem 0 0; }
.fact { border-top: 3px solid var(--accent); padding-top: .9rem; min-width: 0; }
.fact .big { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.fact p { margin: .4rem 0 .5rem; font-size: .97rem; }
.fact .src { font-size: .82rem; color: var(--muted); }
.fact .src a { color: var(--muted); }

/* Tabellen: scrollen in sich selbst, nie den Body schieben */
.tablewrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .96rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }

/* FAQ ohne JS */
details.faq { border-bottom: 1px solid var(--line); padding: .35rem 0; }
details.faq summary {
  cursor: pointer; font-weight: 650; font-size: 1.05rem; padding: .85rem 2rem .85rem 0;
  position: relative; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: .7rem;
  font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .body { padding: 0 0 1rem; color: var(--ink-2); }
details.faq .body p:last-child { margin-bottom: 0; }

/* Evidenz-Stempel */
.stamp {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px;
  /* KEIN nowrap: lange Stempel wie "umstritten, bestenfalls Infrastruktur" schoben auf dem
     Telefon die ganze Seite (gemessen 416px bei 390px Bild). In Tabellenzellen bleibt der
     Umbruch unerwuenscht, dort steht nowrap gezielt. */
  max-width: 100%;
}
td .stamp, th .stamp { white-space: nowrap; }
.stamp.ok { background: var(--accent-bg); color: var(--accent-ink); }
.stamp.warn { background: var(--warn-bg); color: var(--warn); }
.stamp.grey { background: var(--paper-3); color: var(--ink-2); }

.myth { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin: 0 0 1.1rem; }
.myth h3 { margin-bottom: .55rem; }
.myth .verdict { margin: 0 0 .7rem; }
.myth p:last-child { margin-bottom: 0; }

ul.checks, ul.plain { list-style: none; padding: 0; margin: 0 0 1.2em; }
ul.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: .75rem; height: .42rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45rem; }

code {
  font-family: var(--mono); font-size: .92em; background: var(--paper-2);
  padding: .1em .35em; border-radius: 5px;
  /* Befund Visual-QA: 'Ihre Marke' -site:ihre-domain.de schob die Seite auf dem Telefon
     um 10 bis 26px nach rechts. Umbruch erzwingen statt Seite schieben lassen. */
  overflow-wrap: anywhere; word-break: break-word;
}

.sources { font-size: .9rem; color: var(--muted); }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: .4rem; }
.sources a { color: var(--muted); }

.meta { font-size: .88rem; color: var(--muted); margin: 0 0 1.5rem; }
.callout {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-color: transparent; }

/* Abschluss + Fuss */
.closer { background: var(--ink); color: var(--paper); }
.closer h2, .closer .lede { color: var(--paper); }
.closer .lede { opacity: .82; }
.closer .btn.ghost { color: var(--paper); border-color: rgba(255,255,255,.35); }
.closer .btn.ghost:hover { border-color: var(--paper); color: var(--paper); }
.closer a { color: var(--paper); }

.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--muted); }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-foot .note { margin-top: 1.5rem; max-width: 46rem; }

@media (max-width: 40rem) {
  /* Der Kopf war auf dem Telefon 154px hoch, also fast ein Fuenftel des Bildes, bevor der
     erste Satz kam. Gemessen statt geschaetzt, danach kompakter gesetzt. */
  .site-head .wrap { padding: .7rem 0; gap: .5rem 1rem; }
  .brand { font-size: 1.1rem; }
  .nav { gap: .2rem .85rem; }
  .nav a { font-size: .88rem; padding: .2rem 0; }
  .nav .btn-sm { padding: .28rem .7rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .probe { padding: 1.1rem 1rem 1.2rem; }
  .matrix { font-size: .84rem; }
  .matrix td { width: 2.2rem; }
}


/* ---------- Hero mit Beleg-Karte ----------
   Der Hero war rechts leer, und die Seite zeigte nirgends, WIE eine Messung aussieht.
   Die Karte ist ausdruecklich als schematisch beschriftet: eine erfundene Messung als
   echte auszugeben waere genau der Fehler, den wir dem Markt vorwerfen. */
.hero { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; }
  .hero .prose { width: 100%; }
}
.probe {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.4rem; box-shadow: var(--shadow); min-width: 0;
}
.probe .kopf {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline;
  justify-content: space-between; margin-bottom: .2rem;
}
.probe .kopf h2 { font-size: 1.02rem; margin: 0; letter-spacing: -.01em; }
.probe .hinweis { font-size: .78rem; color: var(--muted); margin: 0 0 1rem; }
.matrix { width: 100%; border-collapse: collapse; min-width: 0; font-size: .88rem; }
.matrix th, .matrix td { padding: .5rem .3rem; border-bottom: 1px solid var(--line); }
.matrix th:first-child { text-align: left; font-weight: 500; color: var(--ink-2);
  text-transform: none; letter-spacing: 0; font-size: .88rem; background: transparent; }
.matrix thead th { font-size: .8rem; color: var(--muted); background: transparent;
  text-transform: uppercase; letter-spacing: .06em; padding-bottom: .35rem; }
.matrix td { text-align: center; width: 2.6rem; }
.dot {
  display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 999px;
  line-height: 1.15rem; font-size: .78rem; font-weight: 700;
}
.dot.ja { background: var(--accent); color: #fff; }
.dot.nein { background: var(--paper-3); color: var(--muted); }
.probe .bilanz {
  display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: baseline;
  margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
}
.probe .bilanz b { font-size: 1.35rem; letter-spacing: -.03em; }
.probe .bilanz span { font-size: .88rem; color: var(--muted); }
.probe .beleg {
  margin: .9rem 0 0; padding: .7rem .85rem; background: var(--paper-2);
  border-radius: 10px; font-size: .85rem; color: var(--ink-2);
}
.probe .beleg em { color: var(--muted); font-style: normal; }
