@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue: #163e6b;
  --blue-2: #1f5f9b;
  --blue-light: #eef4fc;
  --line: #e1e7ee;
  --bg: #f5f7fa;
  --text: #16212c;
  --muted: #62707e;
  --ok: #0f766e;
  --warn: #9a3412;
  --card: #fff;
  --orange: #f97316;
  --orange-light: #fff1e6;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 10px 26px rgba(15, 23, 42, .08);
  --shadow-lg: 0 22px 50px rgba(15, 23, 42, .16);
  --ring: 0 0 0 4px rgba(31, 95, 155, .16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  border-top: 4px solid var(--ok);
  line-height: 1.5;
}
header {
  background: linear-gradient(160deg, #101c2c 0%, #16283f 55%, #14324f 100%);
  color: #fff;
  padding: 38px 18px 40px;
  box-shadow: 0 12px 30px rgba(8, 15, 26, .25);
  position: relative;
}
.wrap { max-width: 1200px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px 300px;
  gap: 34px;
  align-items: start;
}
.eyebrow {
  color: var(--orange);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  display: inline-block;
}
h1 { margin: 0 0 22px; font-size: 28px; letter-spacing: -.01em; }
.hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.16;
  max-width: 850px;
  letter-spacing: -.015em;
}
.lead { margin: 0; color: #dbe6f2; line-height: 1.5; }
.hero .lead {
  font-size: 22px;
  font-weight: 700;
  color: #eaf1f8;
}
.hero .lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.version-line {
  margin-top: 16px;
  font-size: 14.5px;
  color: #a9b8c9;
}
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 32px;
}
.hero-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.hero-logo {
  width: 260px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  background: #fff;
  display: block;
  box-shadow: var(--shadow-md);
}
.hero-link {
  display: inline-block;
  min-width: 250px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.hero-link:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.print-btn {
  min-width: 250px;
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-size: 20px;
  padding: 15px 18px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, .35);
}
.print-btn:hover { background: #ea6a0d; border-color: #ea6a0d; transform: translateY(-1px); }
main { padding: 20px 18px; }
.chooser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.chooser h2 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.please-select {
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.chooser + .chooser { margin-top: -6px; }
.level-directlink { margin-top:10px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg); display:none; align-items:center; gap:10px; flex-wrap:wrap; }
.level-directlink.active { display:flex; }
.level-directlink .link-label { font-weight:700; }
.level-directlink .link-url { font-size:.88rem; overflow-wrap:anywhere; flex:1 1 280px; color: var(--muted); }
.level-directlink button { border:1px solid var(--line); background:#fff; border-radius:var(--radius-sm); padding:8px 14px; cursor:pointer; font-weight:700; transition: background .15s, border-color .15s; }
.level-directlink button:hover { background: var(--blue-light); border-color: var(--blue-2); }
.tabs, .subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.tabs { margin-bottom: 0; }
.subtabs { margin-bottom: 0; }
button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
button:hover { border-color: var(--blue-2); box-shadow: var(--shadow-sm); }
button:active { transform: translateY(1px); }
button.active, button.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(22, 62, 107, .28);
}
button.active:hover, button.primary:hover { background: #12335a; border-color: #12335a; }
#categoryTabs button {
  flex: 1 1 210px;
  text-align: left;
  border-width: 1.5px;
  font-size: 17px;
  padding: 14px;
}
#categoryTabs button.active {
  background: var(--orange-light);
  color: var(--text);
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}
#toolTabs button {
  background: #f8fafc;
}
#toolTabs button.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.chooser select {
  border: 2px solid #d97706;
  box-shadow: var(--shadow-sm);
  font-size: 21px;
  font-weight: 800;
  min-height: 54px;
  color: #163e6b;
  background-color: #ffd79a;
}
.chooser select:focus { border-color: #c2410c; box-shadow: 0 0 0 4px rgba(249,115,22,.20); background-color: #ffc96f; color: #163e6b; }
.panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.panel.active { display: block; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
label {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 5px;
  color: #1f2a37;
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 19px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2362707e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: var(--ring);
  background: #fff;
}
input[readonly] {
  background: #eef1f5;
  border-color: var(--line);
  color: #334155;
  font-weight: 800;
}
textarea {
  min-height: 92px;
  resize: vertical;
  font-family: inherit;
}
.irregular-payments {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--blue-light);
}
.irregular-payments.active { display: block; }
.irregular-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.irregular-row.range {
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr) auto;
}
.irregular-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.irregular-section:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.irregular-section-title {
  display: block;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.secondary {
  background: #eef1f5;
  color: #111827;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.secondary:hover { background: #e2e8f0; }
.mini-remove {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 17px;
  cursor: pointer;
  transition: background .15s ease;
}
.mini-remove:hover { background: #fef2f2; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.calc-hint {
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid #d3e3f4;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 17px;
  font-weight: 700;
}
.result {
  margin-top: 10px;
  background: linear-gradient(160deg, #eef4fc, #eef2ff);
  border: 1px solid #dbe6f6;
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  background: #fff;
  border: 1px solid #e3ecf7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 74px;
  box-shadow: var(--shadow-sm);
}
.metric.highlight {
  background: linear-gradient(135deg, #1b3f73, #1f5f9b);
  border-color: #1f5f9b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 95, 155, .28);
}
.metric.highlight span { color: #bfdbfe; }
.metric.highlight strong { color: #fff; }
.metric.blue-text span { color: #2563eb; font-weight: 600; }
.metric.blue-text strong { color: #1d4ed8; }
.result-heading {
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 23px;
  font-weight: 800;
}
.metric span { display: block; color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.metric strong { font-size: 22px; overflow-wrap: anywhere; font-weight: 800; }
label[title], input[title], select[title], textarea[title], .metric[title] { cursor: help; }

/* V1.165: Erweiterung Kühlschrank-Vereisung und Duschkosten-Systemvergleich; V1.165 enthielt die neuen Hauptbereiche mit 90 lokal berechneten Modulen ohne API-Zwang. */
.rb-tools-menu { margin-top: 20px; margin-bottom: 12px; padding: 18px 20px; background: #fff8e6; border: 1px solid #f4d98a; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rb-tools-menu-title { color: var(--blue); font-size: 21px; font-weight: 800; margin: 0 0 10px; }
.rb-tools-menu select { width: 100%; max-width: 620px; min-height: 50px; padding: 10px 34px 10px 12px; border: 1px solid #e3c766; border-radius: var(--radius-sm); background: #fff; color: #111827; font-size: 17px; }
.note {
  margin-top: 14px;
  color: #374151;
  line-height: 1.65;
  font-size: 19px;
  background: var(--orange-light);
  border: 1px solid #fbd9b8;
  border-radius: var(--radius);
  padding: 20px;
}
.note > strong { color: var(--text); display: block; margin-bottom: 14px; font-size: 23px; }
.note p strong { color: var(--text); font-size: inherit; }
.note p { margin: 0 0 14px; }
.note p:last-child { margin-bottom: 0; }
.note a { color: var(--blue-2); font-weight: 700; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
/* V1.165: Mobile Schutz gegen lange Quellen-URLs in GKV-Erklärungen */
.chooser, .panel, .note, .note p, .note a { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 720px) {
  .note { overflow: hidden; }
  .note a { display: inline; overflow-wrap: anywhere; word-break: break-word; }
  .panel, .chooser { width: 100%; }
}
.geo-sketch {
  margin-top: 18px;
  background: var(--blue-light);
  border: 1px solid #d3e3f4;
  border-radius: var(--radius);
  padding: 14px;
}
.geo-sketch svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
}
.geo-sketch text {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 15px;
  fill: #17212b;
  font-weight: 700;
}

.module-fingerprint { margin-top: 14px; padding: 10px 12px; border-top: 1px dashed #cbd5e1; font-size: 11px; line-height: 1.45; color: #64748b; overflow-wrap: anywhere; }
.module-fingerprint strong { color: #475569; }
.module-copyright {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 14px;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: right; }
tr:last-child td { border-bottom: none; }
th:first-child, td:first-child { text-align: left; }
th { background: var(--blue-light); font-weight: 800; color: var(--blue); }
tbody tr:nth-child(even) { background: #f8fafc; }
.bars { display: grid; gap: 9px; margin: 14px 0 18px; }
.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 120px;
  gap: 10px;
  align-items: center;
  font-size: 17px;
}
.bar-track {
  background: #e5e9ef;
  border-radius: 999px;
  overflow: hidden;
  height: 14px;
}
.bar-fill {
  background: linear-gradient(90deg, var(--blue-2), #4f9fd8);
  height: 100%;
  min-width: 2px;
}
.hidden { display: none; }
footer { color: var(--muted); font-size: 15.5px; padding: 8px 18px 30px; line-height: 1.6; }
footer .legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
footer h2, footer h3 { color: var(--text); margin: 18px 0 8px; }
footer h2 { font-size: 21px; }
footer h3 { font-size: 17px; }
footer p { margin: 8px 0; }
footer ul { margin: 8px 0 12px 22px; padding: 0; }
footer a { color: var(--blue-2); font-weight: 700; }
@media (max-width: 860px) {
  .grid, .result { grid-template-columns: 1fr; }
  .irregular-row, .irregular-row.range { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 19px; }
  .hero-photo-wrap { padding-top: 0; }
  .hero-photo { width: 220px; height: 220px; }
  .hero-side { align-items: stretch; }
  .hero-logo { width: 100%; max-width: 320px; align-self: center; }
  .hero-link, .print-btn { width: 100%; min-width: 0; }
  button { width: 100%; }
}

/* v0.98: zusätzliche mobile Optimierung */
@media (max-width: 720px) {
  main { padding: 12px; }
  .chooser, .panel { padding-left: 14px; padding-right: 14px; }
  .grid { grid-template-columns: 1fr !important; }
  .actions { flex-wrap: wrap; gap: 10px; }
  .actions button { min-height: 48px; flex: 1 1 150px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  input, select, textarea { width: 100%; max-width: 100%; }
}

/* V1.165: 1000Rechner.de-Marke und Social-Sharing in allen Rechnermodulen */
.version-brand-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}
.version-brand{display:inline-block;background:linear-gradient(135deg,#ffcf3d,#ffb020);color:#111827;font-weight:800;padding:8px 14px;border-radius:999px;letter-spacing:.2px;box-shadow:0 4px 10px rgba(255,176,32,.35)}
.version-brand a{color:#111827;text-decoration:none}
.version-brand a:hover{text-decoration:underline}
.result-location-hint{margin:10px 0 14px;padding:11px 14px;border-left:5px solid var(--blue-2);border-radius:9px;background:var(--blue-light);color:#173f78;font-size:17px;font-weight:800}
.social-share{margin:16px 0 4px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:#fbfdff;box-shadow:var(--shadow-sm)}
.social-share-title{font-weight:900;color:var(--blue);margin-bottom:6px;font-size:1.35rem;line-height:1.25}
.social-share-help{font-size:14px;color:var(--muted);margin-bottom:14px;line-height:1.5}
.social-share-buttons{display:flex;gap:10px;flex-wrap:wrap}
.social-share-buttons button{width:auto;min-height:46px;padding:10px 16px;font-size:15px;border-radius:999px;background:#f1f5f9;display:inline-flex;align-items:center;gap:8px;font-weight:800}
.social-share-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;border-radius:50%;background:#fff;border:1px solid #cbd5e1;color:#173f78;font-size:15px;font-weight:900;line-height:1}
.social-share-buttons button:hover{background:var(--blue-light);border-color:var(--blue-2)}
@media(max-width:720px){.version-brand-row{gap:8px}.social-share-buttons button{flex:1 1 145px;justify-content:flex-start}.social-share-title{font-size:1.22rem}}

/* V1.165 – gelber Bestellbereich in allen Notfallordner-Modulen */
.emergency-order-box{background:#fff6d6;border:1px solid #eecf72;border-radius:var(--radius);padding:16px 18px;margin:18px 0;font-weight:700;box-shadow:var(--shadow-sm)}
.emergency-order-box a{display:inline-block;margin-top:8px;color:#0b3b78;text-decoration:underline;font-weight:800;}
.emergency-advice-box{background:#eaf3ff;border:1px solid #bcd6f2;border-left:5px solid var(--blue-2);border-radius:var(--radius);padding:16px 18px;margin:12px 0 20px;line-height:1.5;box-shadow:var(--shadow-sm)}
.emergency-advice-box .title{font-weight:800;color:var(--blue);font-size:1.06em;margin-bottom:8px;}
.emergency-advice-box a{font-weight:800;color:#0b3b78;text-decoration:underline;}
.emergency-registry-box{background:#f8fafc;border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin:16px 0;line-height:1.55;}

.dice-sim-box{margin:18px 0;padding:18px;border:2px solid #b9d4f7;border-radius:var(--radius-lg);background:#f4f8fd;text-align:center}.dice-sim-title{font-size:1.35rem;font-weight:800;color:#173f78;text-align:left}.dice-sim-help{margin:6px 0 16px;color:#334155;text-align:left}.dice-stage{height:150px;display:flex;align-items:center;justify-content:center;perspective:700px;overflow:hidden}.dice-cube{width:82px;height:82px;position:relative;transform-style:preserve-3d;transform:rotateX(-18deg) rotateY(28deg);transition:transform 1.25s cubic-bezier(.2,.75,.25,1)}.dice-cube.rolling{animation:diceTumble .7s linear infinite}.dice-face{position:absolute;width:82px;height:82px;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid #1f2937;border-radius:14px;font-size:2.3rem;font-weight:900;color:#111827;box-shadow:inset 0 0 12px rgba(0,0,0,.08)}.dice-front{transform:translateZ(41px)}.dice-back{transform:rotateY(180deg) translateZ(41px)}.dice-right{transform:rotateY(90deg) translateZ(41px)}.dice-left{transform:rotateY(-90deg) translateZ(41px)}.dice-top{transform:rotateX(90deg) translateZ(41px)}.dice-bottom{transform:rotateX(-90deg) translateZ(41px)}.dice-result{font-size:1.15rem;margin:8px 0 4px}.dice-result strong{display:inline-block;min-width:42px;padding:6px 10px;border-radius:9px;background:#173f78;color:#fff}@keyframes diceTumble{from{transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg)}to{transform:rotateX(360deg) rotateY(540deg) rotateZ(270deg)}}@media (prefers-reduced-motion:reduce){.dice-cube.rolling{animation:none}.dice-cube{transition:none}}

.yazzy-box{margin:18px 0;padding:16px;border:2px solid #b9d4f7;border-radius:var(--radius-lg);background:#f7faff}.yazzy-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.yazzy-head strong{font-size:1.25rem;color:#173f78}.yazzy-dice{display:grid;grid-template-columns:repeat(5,minmax(52px,1fr));gap:10px;margin:18px 0}.yazzy-die{min-width:0;padding:10px 4px;border:2px solid #cbd5e1;border-radius:14px;background:#fff;text-align:center;cursor:pointer}.yazzy-die.held{border-color:#173f78;background:#e8f1ff}.yazzy-pip{font-size:3.1rem;line-height:1}.yazzy-die small{display:block;margin-top:6px;font-weight:700}.yazzy-score{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.yazzy-cat{padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;text-align:left}.yazzy-cat:disabled{opacity:.55}.yazzy-cat.used{background:#eef2f7}.yazzy-status{padding:12px;border-radius:10px;background:#e8f1ff;color:#173f78;font-weight:700}.yazzy-total{margin-top:12px;padding:12px;border-radius:10px;background:#eef9ef;color:#166534;font-size:1.1rem;font-weight:800}.yazzy-history{margin-top:10px;font-size:.95rem;color:#475569}.playing-table{margin-top:14px;padding:14px;border-radius:var(--radius-lg);background:#123f2b;color:#fff}.card-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.play-card{width:72px;height:102px;border-radius:10px;background:#fff;color:#111;border:1px solid #d1d5db;display:flex;flex-direction:column;justify-content:space-between;padding:7px;font-weight:800;font-size:1.25rem;box-shadow:0 2px 5px rgba(0,0,0,.18)}.play-card.red{color:#c62828}.play-card .suit{font-size:2rem;text-align:center}.play-card.back{background:repeating-linear-gradient(45deg,#173f78,#173f78 7px,#e8f1ff 7px,#e8f1ff 14px);color:transparent;border:4px solid #fff}.bj-label{font-weight:800;margin-top:8px}.bj-result{padding:10px;border-radius:10px;background:#fff;color:#173f78;font-weight:800;margin-top:10px}@media(max-width:560px){.play-card{width:58px;height:84px;font-size:1.05rem}.play-card .suit{font-size:1.55rem}.yazzy-dice{gap:5px}.yazzy-pip{font-size:2.5rem}.yazzy-score{grid-template-columns:1fr}}

/* V1.188 – BAföG-Rechner: verständliche Feldhilfen und strukturierte Erläuterungen */
.bafoeg-help-intro{margin:0 0 16px;padding:13px 15px;border:1px solid #93c5fd;border-left:5px solid #2563eb;border-radius:10px;background:#eff6ff;line-height:1.45}.bafoeg-help-intro strong{display:block;margin-bottom:4px}.bafoeg-help-intro span{display:block;color:#334155}.field-help-wrap{position:relative;display:inline-flex;vertical-align:middle;margin-left:7px}.field-help-btn{width:26px;height:26px;min-width:26px;padding:0;border:0;border-radius:50%;background:#e8f1ff;color:#174ea6;font-weight:800;font-size:16px;line-height:26px;cursor:pointer}.field-help-btn:hover,.field-help-btn:focus-visible{outline:2px solid #2563eb;outline-offset:2px;background:#dbeafe}.field-help-pop{display:none;position:absolute;z-index:1000;left:50%;top:calc(100% + 9px);transform:translateX(-50%);width:min(360px,80vw);padding:12px 14px;border-radius:10px;background:#0f172a;color:#fff;font-size:.9rem;font-weight:500;line-height:1.45;box-shadow:0 8px 24px rgba(15,23,42,.25);white-space:normal}.field-help-pop:before{content:"";position:absolute;left:50%;top:-7px;transform:translateX(-50%);border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #0f172a}.field-help-wrap.open .field-help-pop,.field-help-wrap:focus-within .field-help-pop{display:block}@media(hover:hover) and (pointer:fine){label:hover .field-help-pop,.field-help-wrap:hover .field-help-pop{display:block}}@media(max-width:600px){.field-help-pop{position:fixed;left:12px;right:12px;top:auto;bottom:16px;transform:none;width:auto;max-width:none;font-size:.95rem}.field-help-pop:before{display:none}}
.bafoeg-info{display:grid;gap:14px;margin-top:18px}.bafoeg-card{border:1px solid #dbe3ee;border-radius:12px;padding:16px 18px;background:#fff;line-height:1.58}.bafoeg-card h3{margin:0 0 10px;font-size:1.08rem;color:#0f3f72}.bafoeg-card p{margin:8px 0}.bafoeg-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bafoeg-facts>div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:11px 12px}.bafoeg-facts strong,.bafoeg-facts span{display:block}.bafoeg-facts strong{margin-bottom:4px}.bafoeg-warning{margin-top:12px;padding:12px 14px;border-radius:9px;border-left:5px solid #d97706;background:#fff7ed}.bafoeg-example{background:#f8fbff}.bafoeg-sum{display:grid;gap:5px;margin:12px 0;padding:13px 15px;border-radius:10px;background:#eef6ff}.bafoeg-sum strong{padding-top:7px;border-top:1px solid #bfdbfe;font-size:1.05rem}.bafoeg-special{border-left:6px solid #7c3aed;background:#faf5ff}.bafoeg-link{display:inline-block;margin-top:8px;padding:10px 14px;border-radius:8px;background:#174ea6;color:#fff!important;font-weight:800;text-decoration:none}.bafoeg-link:hover{text-decoration:underline}@media(max-width:700px){.bafoeg-facts{grid-template-columns:1fr}.bafoeg-card{padding:14px}.bafoeg-help-intro{padding:12px}}

/* V1.189 – einheitliches Hilfen-/Erklärungsdesign für alle Förderrechner */
.subsidy-help-intro{margin:0 0 16px;padding:14px 16px;border:1px solid #93c5fd;border-left:5px solid #2563eb;border-radius:10px;background:#eff6ff;line-height:1.5}.subsidy-help-intro strong{display:block;margin-bottom:5px;font-size:1.02rem}.subsidy-help-intro span{display:block;color:#334155}.subsidy-info{display:grid;gap:14px;margin-top:18px}.subsidy-card{border:1px solid #dbe3ee;border-radius:12px;padding:16px 18px;background:#fff;line-height:1.58}.subsidy-card h3{margin:0 0 10px;font-size:1.08rem;color:#0f3f72}.subsidy-card p{margin:8px 0}.subsidy-example{background:#f8fbff;border-left:5px solid #2563eb}.subsidy-company-example{background:#f0fdf4;border-left:5px solid #15803d}.subsidy-warning{background:#fff7ed;border-left:5px solid #d97706}.subsidy-tech{background:#f8fafc}.subsidy-card strong{font-weight:800}.subsidy-card a{font-weight:700}@media(max-width:700px){.subsidy-card{padding:14px}.subsidy-help-intro{padding:12px}}

/* V1.192 – Themenwelt Finanzen & Wirtschaft: Eingabehilfen und strukturierte Erklärungen */
.finance-input-help-banner{margin:10px 0 16px;padding:13px 15px;border:1px solid #8ec5ef;border-left:6px solid #0f4c81;border-radius:10px;background:#eef8ff;display:flex;gap:8px 14px;align-items:flex-start;flex-wrap:wrap;line-height:1.45}.finance-input-help-banner strong{color:#0b3a66;font-size:1.02rem}.finance-input-help-banner span{color:#263849;flex:1 1 420px}.finance-field-label{position:relative;display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:6px}.finance-field-label label{margin:0;font-weight:750;line-height:1.25;cursor:help}.finance-help-btn{width:30px;height:30px;min-width:30px;border-radius:50%;border:1px solid #1772ad;background:#eaf6ff;color:#0b4f7d;font-weight:900;font-size:17px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.finance-help-btn:hover,.finance-help-btn:focus-visible{background:#d6efff;outline:3px solid rgba(23,114,173,.18);outline-offset:2px}.finance-field-help{display:none;position:absolute;z-index:60;top:calc(100% + 6px);left:0;width:min(390px,calc(100vw - 46px));padding:12px 14px;border:1px solid #6aaedb;border-left:5px solid #0f4c81;border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.16);line-height:1.45;color:#1f2937}.finance-field-help strong{display:block;color:#0b3a66;margin-bottom:4px;font-size:.96rem}.finance-field-help span{display:block;font-size:.93rem}.finance-field-label.is-open .finance-field-help{display:block}@media(hover:hover) and (pointer:fine){.finance-field-label:hover .finance-field-help{display:block}}.finance-explanation-note{background:transparent!important;border:0!important;padding:0!important;margin-top:22px!important}.finance-note-main-title{font-size:1.14rem;font-weight:850;color:#0b3a66;margin:0 0 10px;padding-bottom:7px;border-bottom:2px solid #b8d9ee}.finance-note-card{background:#fff;border:1px solid #d7e1e8;border-left:5px solid #5d7f94;border-radius:10px;padding:13px 15px;margin:10px 0;line-height:1.58}.finance-note-card p{margin:0}.finance-note-card strong{color:#172b3a}.finance-note-card.finance-note-example{background:#f4fbf6;border-color:#b9ddc2;border-left-color:#3b7d4a}.finance-note-card.finance-note-important{background:#fff9e9;border-color:#ead39a;border-left-color:#c68a12}.finance-note-card a{overflow-wrap:anywhere}@media(max-width:700px){.finance-input-help-banner{padding:12px 13px}.finance-field-help{position:absolute;left:0;right:auto;width:min(330px,calc(100vw - 38px));font-size:.95rem}.finance-help-btn{width:34px;height:34px;min-width:34px}.finance-note-card{padding:12px 13px}}

/* V1.201 – Beamtenversorgung: laienverständliche Feldhilfen */
.civil-help-intro{margin:0 0 16px;padding:13px 15px;border:1px solid #93c5fd;border-left:5px solid #2563eb;border-radius:10px;background:#eff6ff;line-height:1.45}.civil-help-intro strong{display:block;margin-bottom:4px;color:#0b3a66}.civil-help-intro span{display:block;color:#334155}.panel[id^="panel-civil"] .field-help-pop{width:min(430px,86vw);text-align:left}.panel[id^="panel-civil"] label{cursor:help}@media(max-width:600px){.panel[id^="panel-civil"] .field-help-pop{left:12px;right:12px;top:16px;bottom:auto;max-height:55vh;overflow:auto;width:auto}}
/* V1.205: Eingabehilfen auf Desktop seitlich öffnen, damit Mauszeiger und Hand den Text nicht verdecken. */
@media (min-width: 901px){
  .panel .grid > div:nth-child(3n+1) .field-help-pop{left:calc(100% + 12px);right:auto;top:50%;transform:translateY(-50%);}
  .panel .grid > div:nth-child(3n+1) .field-help-pop:before{left:-7px;right:auto;top:50%;transform:translateY(-50%);border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #0f172a;border-left:0;}
  .panel .grid > div:nth-child(3n+2) .field-help-pop,.panel .grid > div:nth-child(3n) .field-help-pop{left:auto;right:calc(100% + 12px);top:50%;transform:translateY(-50%);}
  .panel .grid > div:nth-child(3n+2) .field-help-pop:before,.panel .grid > div:nth-child(3n) .field-help-pop:before{left:auto;right:-7px;top:50%;transform:translateY(-50%);border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #0f172a;border-right:0;}
}



/* V1.208 – Feldhilfen auf Desktop konsequent seitlich statt unter dem Info-Symbol.
   Linke Spalte -> rechts; mittlere und rechte Spalte -> links. */
@media (min-width: 901px){
  .panel .grid > div:nth-child(3n+1) .field-help-pop{
    left:calc(100% + 14px)!important; right:auto!important; top:50%!important;
    bottom:auto!important; transform:translateY(-50%)!important;
  }
  .panel .grid > div:nth-child(3n+1) .field-help-pop:before{
    left:-7px!important; right:auto!important; top:50%!important; bottom:auto!important;
    transform:translateY(-50%)!important;
    border-top:7px solid transparent!important; border-bottom:7px solid transparent!important;
    border-right:7px solid #0f172a!important; border-left:0!important;
  }
  .panel .grid > div:nth-child(3n+2) .field-help-pop,
  .panel .grid > div:nth-child(3n) .field-help-pop{
    left:auto!important; right:calc(100% + 14px)!important; top:50%!important;
    bottom:auto!important; transform:translateY(-50%)!important;
  }
  .panel .grid > div:nth-child(3n+2) .field-help-pop:before,
  .panel .grid > div:nth-child(3n) .field-help-pop:before{
    left:auto!important; right:-7px!important; top:50%!important; bottom:auto!important;
    transform:translateY(-50%)!important;
    border-top:7px solid transparent!important; border-bottom:7px solid transparent!important;
    border-left:7px solid #0f172a!important; border-right:0!important;
  }
  .panel[id^="panel-civil"] .field-help-pop{width:min(430px,36vw)!important;max-width:430px;}
}


/* V1.216 – Arbeitszeugnis-Ausgabe */
.work-certificate-output{margin:24px 0 6px;padding:30px 34px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 6px 20px rgba(15,23,42,.08);color:#111827;font-size:1rem;line-height:1.65}
.work-certificate-output h2{text-align:center;font-size:1.55rem;margin:0 0 28px;color:#111827}
.work-certificate-output p{margin:0 0 16px}
.work-certificate-output ul{margin:0 0 18px 22px}
.work-certificate-output .wc-place-date{margin-top:34px}
.work-certificate-output .wc-signature{margin-top:42px;display:flex;flex-direction:column;gap:6px;max-width:420px;font-size:.92rem}
@media(max-width:700px){.work-certificate-output{padding:22px 18px;font-size:.96rem}}
@media print{.work-certificate-output{box-shadow:none;border:0;padding:0}}
