/* viacero Werkzeuge. Gestaltung nach viacero.earth (Farben aus viacero_template/make_viacero_ref.py).
   Schriften liegen lokal unter schriften/ (OFL), damit keine Daten an Google gehen. */
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(schriften/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url(schriften/inter-tight-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(schriften/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(schriften/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
:root {
  --ink: #270832;          /* Dark-Violet */
  --ink-2: #4d3a57;
  --muted: #6e5f7b;        /* muted ink */
  --line: #e1c9f4;         /* Light-Violet */
  --surface: #f0ffe9;      /* Citron */
  --card: #ffffff;
  --violet-soft: #f6e8ff;  /* Super Light Violet */
  --violet: #e1c9f4;
  --green: #288a18;        /* Water-Lily */
  --grass: #5fbf00;        /* Grass-Green */
  --green-soft: #f0ffe9;
  --leaf: #afec70;         /* Leaf-Green */
  --gelb: #b07800;
  --gelb-soft: #fff6dd;
  --rot: #b3261e;
  --rot-soft: #fdecea;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(39, 8, 50, .05), 0 10px 30px rgba(39, 8, 50, .07);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-h: "Inter Tight", "IBM Plex Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.55; font-size: 16px; }
h1, h2, h3, .kicker, .btn, .summe .zahl, .kopf nav { font-family: var(--font-h); }
a { color: var(--green); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.klein { font-size: .88em; }

/* Kopf wie viacero.earth: dunkelviolette Leiste, helle Wortmarke, Navigation in Leaf-Green */
.leiste { background: var(--ink); }
.kopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 84px; }
.wortmarke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wortmarke img { height: 30px; width: auto; display: block; }
.wortmarke span { color: var(--leaf); font-family: var(--font-h); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.kopf nav { display: flex; gap: 22px; flex-wrap: wrap; }
.kopf nav a { color: var(--leaf); text-decoration: none; font-weight: 600; font-size: 15px; }
.kopf nav a:hover, .kopf nav a.aktiv { color: #fff; }
.held { margin: 20px auto 0; max-width: 1180px; padding: 0 16px; }
.held-innen { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px); }
.held .kicker { color: var(--leaf); }
.held h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -.025em; max-width: 820px; }
.held h1 em { font-style: normal; color: var(--leaf); }
.held .unterzeile { margin: 18px 0 0; color: rgba(255,255,255,.85); max-width: 660px; font-size: 1.05em; }
@media (max-width: 640px) { .kopf nav { gap: 14px; } .kopf nav a { font-size: 14px; } .kopf-zeile { padding: 14px 0; } }

main { padding: 28px 0 48px; }
section.karte, .karte { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -.015em; font-weight: 800; }
h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.kicker { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 8px; }

/* Übersicht */
.werkzeuge { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.werkzeug { display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-decoration: none; color: inherit; border: 2px solid transparent; }
.werkzeug:hover { border-color: var(--grass); }
.werkzeug .nr { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.werkzeug h3 { font-size: 22px; font-weight: 800; }
.werkzeug p { margin: 6px 0 0; color: var(--ink-2); }
.werkzeug .los { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 600; }
.werkzeug.spaeter { opacity: .6; }
.werkzeug.spaeter:hover { border-color: transparent; }
.werkzeug.spaeter .los { color: var(--muted); }

/* Formulare */
label { display: block; font-weight: 600; margin: 0 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--green); }
.feld { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 4px; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 22px; font-family: var(--font-h); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; background: var(--violet-soft); color: var(--ink); }
.btn.primaer, .btn.pfeil { background: var(--leaf); color: var(--ink); padding-left: 8px; }
.btn.primaer::before, .btn.pfeil::before { content: "\2192"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.btn.primaer:hover, .btn.pfeil:hover { background: #9fe05a; }
.btn:disabled { opacity: .55; cursor: default; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: 12px 14px; border-radius: 10px; margin-top: 12px; }
.meldung.ok { background: var(--green-soft); }
.meldung.fehler { background: var(--rot-soft); color: var(--rot); }

/* Rechner */
.kat-liste { display: grid; gap: 10px; }
.kat { display: grid; grid-template-columns: 1fr 180px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kat:last-child { border-bottom: 0; }
.kat .name { font-weight: 600; }
.kat .bsp { font-size: .86em; color: var(--muted); }
.kat input { text-align: right; }
@media (max-width: 560px) { .kat { grid-template-columns: 1fr; gap: 6px; } }
.summe { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.summe .zahl { font-size: clamp(36px, 8vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.balken { display: grid; gap: 8px; margin-top: 16px; }
.balken-zeile { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 70px; gap: 10px; align-items: center; font-size: .92em; }
.balken-spur { background: var(--violet-soft); border-radius: 6px; height: 14px; overflow: hidden; }
.balken-wert { background: var(--green); height: 100%; border-radius: 6px; }
.balken-zeile .t { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .balken-zeile { grid-template-columns: 1fr 60px; } .balken-spur { grid-column: 1 / -1; order: 3; } }

/* Radar */
.suche { margin-bottom: 12px; }
.konzern-liste { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.konzern { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; margin: 0; }
.konzern.gewaehlt { border-color: var(--green); background: var(--green-soft); }
.konzern .branche { margin-left: auto; font-size: .85em; color: var(--muted); }
table.anf { width: 100%; border-collapse: collapse; font-size: .92em; }
table.anf th, table.anf td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle-scroll { overflow-x: auto; }
.marke { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .82em; font-weight: 600; }
.marke.ja { background: var(--rot-soft); color: var(--rot); }
.marke.nein { background: var(--violet-soft); color: var(--ink-2); }
.marke.offen { background: var(--gelb-soft); color: var(--gelb); }
.hinweis-platzhalter { background: var(--gelb-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* EmpCo */
.frage { padding: 14px 0; border-bottom: 1px solid var(--line); }
.frage:last-child { border-bottom: 0; }
.frage p { margin: 0 0 8px; font-weight: 600; }
.frage .erkl { font-weight: 400; color: var(--muted); font-size: .88em; margin: -4px 0 8px; }
.optionen { display: flex; gap: 8px; flex-wrap: wrap; }
.optionen label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; margin: 0; }
.optionen input { margin: 0; }
.optionen label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.ampel { display: flex; gap: 16px; align-items: center; }
.ampel .licht { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.ampel.gruen .licht { background: var(--green); }
.ampel.gelb .licht { background: var(--gelb); }
.ampel.rot .licht { background: var(--rot); }
.befunde li { margin-bottom: 6px; }

/* Termin */
.termin { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.termin p { margin: 0; max-width: 520px; }


/* Rechtstexte */
.recht h2 { margin-top: 26px; font-size: 19px; }
.recht h3 { margin-top: 18px; }
.recht p, .recht li { color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: .88em; color: var(--muted); }
footer a { color: var(--muted); margin-right: 14px; }
