/* =========================================================
   Paarcheck – Stylesheet
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #fbf7f2;
  --surface: #fffdfa;
  --tint: #f4ede5;
  --ink: #2b2523;
  --ink-2: #5a504b;
  --muted: #8a7f79;
  --line: #e9dfd4;
  --accent: #c2674f;
  --accent-dark: #a5523c;
  --accent-soft: #f6e3dc;
  --teal: #3f5d58;
  --teal-soft: #dfe9e6;
  --high: #3f7d63;
  --mid: #c9953a;
  --low: #c2674f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 40, 30, .04), 0 8px 28px rgba(60, 40, 30, .07);
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
code { background: var(--tint); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(194, 103, 79, .28);
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-large { padding: 1em 2em; font-size: 1.08rem; }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-danger { background: #a8432f; box-shadow: none; }
.btn-danger:hover { background: #8a3524; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-dark); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike.danger { color: #a8432f; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header / Footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 242, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(233, 223, 212, .7); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.25rem var(--serif); }
.brand svg { width: 40px; height: 28px; }
.ring-a { fill: var(--accent); opacity: .85; }
.ring-b { fill: var(--teal); opacity: .8; mix-blend-mode: multiply; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.header-nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 720px) { .header-nav a:not(.btn) { display: none; } }

.site-footer { margin-top: 40px; padding: 36px 0 44px; background: var(--ink); color: #d9cfc8; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-inner p { margin: 0 0 .6em; max-width: 760px; }
.footer-note { color: #fff; }
.footer-help { color: #b8aca5; }
.footer-links { margin-top: 1.2em !important; }

/* ---------- Flash ---------- */
.flash { margin: 18px 0; padding: 14px 18px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); border-left: 4px solid var(--teal); }
.flash-error { background: #fbe6e1; color: #8a3524; border-color: #c2674f; }
.flash-success { background: #e2f0e9; color: #2e5f4a; border-color: var(--high); }

/* ---------- Cards & Forms ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 32px); border: 1px solid rgba(233, 223, 212, .6); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number],
.form input[type=date], .form input[type=search], .form select, .form textarea, .filter-bar input, .filter-bar select {
  width: 100%; padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .filter-bar input:focus, .filter-bar select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form .check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hint { font-weight: 400; font-size: .85rem; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row legend { width: 100%; }
.choice-col { display: grid; gap: 10px; }
.pill { display: inline-flex !important; align-items: center; gap: 6px; padding: .45em 1em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500 !important; background: #fff; transition: all .2s; }
.pill input { accent-color: var(--accent); margin: 0; }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.token-form input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); background:
  radial-gradient(600px 400px at 85% 20%, rgba(143, 179, 169, .22), transparent 70%),
  radial-gradient(500px 380px at 10% 90%, rgba(228, 160, 138, .2), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-facts li { padding: .45em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.hero-facts strong { color: var(--ink); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(60, 40, 30, .12)); }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateX(10px); } }
@keyframes floatB { 50% { transform: translateX(-10px); } }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: 1.2em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 26px 24px; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font: 700 1.15rem var(--serif); margin-bottom: 14px; }
.step-card p { color: var(--ink-2); margin: 0; }
.token-inline { font-weight: 700; letter-spacing: .04em; color: var(--teal); white-space: nowrap; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.theme-chip { background: var(--surface); border-radius: 14px; padding: 20px 22px; border-left: 4px solid var(--teal); }
.theme-chip:nth-child(3n+2) { border-left-color: var(--accent); }
.theme-chip:nth-child(3n) { border-left-color: var(--mid); }
.theme-chip h3 { font-size: 1.1rem; margin-bottom: .3em; }
.theme-chip p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-teaser { display: flex; gap: 22px; align-items: flex-start; }
.privacy-teaser svg { flex: none; width: 46px; height: 46px; fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.4; }
.privacy-teaser p { margin: 0; color: var(--ink-2); max-width: 46em; }
@media (max-width: 820px) {
  .steps, .split { grid-template-columns: 1fr; }
}

/* ---------- Fragebogen ---------- */
.quiz-page main { background: linear-gradient(180deg, var(--bg), var(--tint)); min-height: 70vh; }
.quiz-shell { padding: 30px 0 60px; }
.quiz-progress { position: sticky; top: 68px; z-index: 5; padding: 14px 0 10px; background: linear-gradient(var(--bg) 70%, transparent); }
.quiz-progress-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quiz-progress-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .4s ease; }
.quiz-progress-text { margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-align: right; }
.q-step { margin-bottom: 20px; }
.js .q-step { display: none; }
.js .q-step.is-active { display: block; animation: stepIn .4s ease both; }
.js .q-step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); } }
.q-count { color: var(--muted); font-size: .88rem; margin-bottom: .6em; }
.js .q-count { display: none; }
.q-text { font-size: clamp(1.35rem, 3.2vw, 1.85rem); min-height: 3.2em; margin-bottom: 1.2em; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
html:not(.js) .q-nav [data-next], html:not(.js) .q-nav [data-prev] { display: none; }
.form-error { color: #a8432f; font-weight: 600; margin: 0; }

/* Schieberegler mit 4 Stufen (Radio-Buttons, per JS auch ziehbar) */
.scale { position: relative; padding-top: 4px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scale-track { position: absolute; left: 12.5%; right: 12.5%; top: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.scale-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--accent)); transition: width .25s ease; }
.scale-thumb {
  position: absolute; top: 50%; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent); box-shadow: 0 4px 14px rgba(194, 103, 79, .35);
  transform: translate(-50%, -50%) scale(0); transition: left .25s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
  cursor: grab; z-index: 2;
}
.scale[data-v] .scale-thumb { transform: translate(-50%, -50%) scale(1); }
.scale.dragging .scale-thumb { cursor: grabbing; transform: translate(-50%, -50%) scale(1.12); transition: left .08s linear, transform .15s; }
.scale[data-v="1"] .scale-thumb { left: 0; }
.scale[data-v="2"] .scale-thumb { left: 33.333%; }
.scale[data-v="3"] .scale-thumb { left: 66.667%; }
.scale[data-v="4"] .scale-thumb { left: 100%; }
.scale[data-v="2"] .scale-fill { width: 33.333%; }
.scale[data-v="3"] .scale-fill { width: 66.667%; }
.scale[data-v="4"] .scale-fill { width: 100%; }
.scale-stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stop { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer; padding: 0 4px 6px; }
.stop input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.dot { width: 20px; height: 20px; margin-top: 7px; border-radius: 50%; background: var(--surface); border: 2px solid #d8cabd; transition: transform .2s, border-color .2s; z-index: 1; }
.stop:hover .dot { transform: scale(1.2); border-color: var(--accent); }
.stop-label { font-size: .92rem; color: var(--ink-2); line-height: 1.3; transition: color .2s; }
.stop input:checked ~ .stop-label { color: var(--ink); font-weight: 700; }
.stop input:focus-visible ~ .dot { outline: 3px solid var(--teal); outline-offset: 4px; }
html:not(.js) .stop input:checked ~ .dot { background: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) {
  .stop-label { font-size: .78rem; }
  .q-nav .btn { padding: .75em 1.2em; }
}

/* ---------- Ergebnis ---------- */
.result-hero { padding: 34px 0 0; }
.token-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(120deg, var(--teal), #2f4743); color: #fff; border: 0; }
.token-card .muted { color: #cfdcd8; margin: 0; max-width: 40em; }
.token-label { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: #bcd2cc; }
.token { margin: 0 0 8px; font: 700 clamp(1.6rem, 4.6vw, 2.5rem) var(--sans); letter-spacing: .06em; word-break: break-word; }
.token-card .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); flex: none; }
.token-card .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 620px) { .token-card { flex-direction: column; align-items: flex-start; } }

.couple-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em; }
.who-a { color: var(--accent); }
.who-b { color: var(--teal); }
.amp { color: var(--muted); font-style: italic; font-weight: 400; }

.overview { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 50px; }
.overview-score { display: flex; gap: 26px; align-items: center; }
.overview-score h1, .overview-score h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.overview-chart { text-align: center; }
@media (max-width: 860px) {
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .overview-score { flex-direction: column; align-items: flex-start; } }

.ring { position: relative; width: 110px; height: 110px; flex: none; }
.ring.ring-large { width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; animation: ringIn 1.2s ease-out both; }
@keyframes ringIn { from { stroke-dashoffset: 327; } }
.ring.lvl-high .ring-fg { stroke: var(--high); }
.ring.lvl-mid .ring-fg { stroke: var(--mid); }
.ring.lvl-low .ring-fg { stroke: var(--low); }
.ring-val { position: absolute; inset: 0; display: grid; place-items: center; font: 700 2.1rem var(--serif); }
.ring-val small { font-size: .5em; margin-left: 1px; }
.ring-large .ring-val { font-size: 2.6rem; }

.radar { width: 100%; max-width: 480px; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-grid:last-of-type { stroke: #dccfc2; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-label { font: 600 13px var(--sans); fill: var(--ink-2); }
.radar-area { stroke-width: 2.5; stroke-linejoin: round; transform-origin: 250px 210px; animation: radarIn 1s cubic-bezier(.2, .8, .3, 1) both; }
.radar-a { fill: rgba(194, 103, 79, .22); stroke: var(--accent); }
.radar-b { fill: rgba(63, 93, 88, .2); stroke: var(--teal); animation-delay: .15s; }
@keyframes radarIn { from { transform: scale(0); opacity: 0; } }
.legend { font-size: .9rem; color: var(--ink-2); display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 10px; }
.key-a { background: var(--accent); }
.key-b { background: var(--teal); }

.theme-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.theme-result { border-top: 5px solid var(--line); }
.theme-result.lvl-high { border-top-color: var(--high); }
.theme-result.lvl-mid { border-top-color: var(--mid); }
.theme-result.lvl-low { border-top-color: var(--low); }
.theme-result header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.theme-result header p { margin: 0; }
.badge { display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--tint); color: var(--ink-2); }
.badge.lvl-high { background: #e0efe7; color: var(--high); }
.badge.lvl-mid { background: #f7ecd8; color: #946a1f; }
.badge.lvl-low { background: #f8e2db; color: #a24b34; }
.bar { position: relative; height: 12px; margin: 18px 0 8px; border-radius: 99px; background: var(--tint); }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--accent); animation: grow 1s ease-out both; }
.bar b { position: absolute; right: 0; top: -24px; font-size: .85rem; color: var(--ink-2); }
.bar.lvl-high span, .theme-result.lvl-high > .bar span { background: var(--high); }
.bar.lvl-mid span, .theme-result.lvl-mid > .bar span { background: var(--mid); }
.bar.lvl-low span, .theme-result.lvl-low > .bar span { background: var(--low); }
.bar.bar-a span { background: var(--accent); }
.bar.bar-b span { background: var(--teal); }
@keyframes grow { from { width: 0; } }
.dual { display: grid; gap: 4px; margin: 14px 0 6px; }
.dual-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.dual-row .bar { margin: 10px 0; }
.dual-row .bar b { top: -20px; }
.dual-name { font-size: .88rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-hint { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fbf1e4; color: #6b4b1f; font-size: .93rem; }
.tip { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.tip h4 { margin-bottom: .3em; color: var(--teal); }
.tip h4::before { content: "💡 "; }
.tip p { margin: 0; color: var(--ink-2); font-size: .97rem; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.action-grid h2 { font-size: 1.4rem; }
.cta-card { display: flex; gap: 22px; align-items: center; justify-content: space-between; background: var(--accent-soft); border: 0; margin-bottom: 30px; }
.cta-card p { margin: 0; font-size: 1.05rem; max-width: 42em; }
@media (max-width: 680px) { .cta-card { flex-direction: column; align-items: flex-start; } }
.danger-zone { color: var(--muted); font-size: .92rem; }
.danger-zone summary { cursor: pointer; font-weight: 600; }
.danger-zone[open] { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose h2 { font-size: 1.25rem; margin-top: 1.4em; }

/* =========================================================
   Admincenter
   ========================================================= */
body.admin { font-size: 15px; background: #f6f2ed; }
.admin-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 0 22px; height: 60px; background: var(--ink); color: #fff; }
.admin-bar .brand { color: #fff; font-size: 1.1rem; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.admin-nav a { padding: 8px 12px; border-radius: 8px; color: #d9cfc8; text-decoration: none; white-space: nowrap; font-size: .92rem; }
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a.active { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-bar-end { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.admin-bar-end a, .admin-bar-end .linklike { color: #d9cfc8; font-size: .9rem; }
.admin-bar-end form { margin: 0; }
@media (max-width: 900px) {
  .admin-bar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
  .admin-nav { order: 3; flex-basis: 100%; }
}
.admin-main { max-width: 1280px; margin: 0 auto; padding: 26px 22px 60px; }
.admin-main .card { margin-bottom: 22px; padding: 22px 24px; }
.admin-main h1 { font-size: 1.9rem; margin: 0; }
.admin-main h2 { font-size: 1.25rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-grid > .card { margin-bottom: 0; }
.admin-grid + .admin-grid, .admin-grid + .card, .card + .admin-grid { margin-top: 22px; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.filter-bar label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.filter-bar input, .filter-bar select { padding: .5em .7em; font-size: .92rem; width: auto; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi.card { margin: 0; display: grid; gap: 2px; }
.kpi-val { font: 700 2rem var(--serif); }
.kpi-lbl { color: var(--muted); font-size: .88rem; }
.stat-list { display: grid; gap: 18px; }
.stat-label { font-weight: 600; font-size: .92rem; }
.stat-row .bar { margin: 8px 0 6px; height: 10px; }
.stat-row .bar b { top: -22px; }
.stack { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--tint); }
.stack span { display: block; height: 100%; }
.s-low { background: var(--low); }
.s-mid { background: var(--mid); }
.s-high { background: var(--high); }
.stack.dist { height: 22px; border-radius: 6px; min-width: 200px; }
.stack.dist span { display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.dist .d1 { background: #3f5d58; }
.dist .d2 { background: #8fb3a9; }
.dist .d3 { background: #e4a08a; }
.dist .d4 { background: #c2674f; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 20px; }
.vbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; min-width: 0; }
.vbar span { display: block; width: 100%; max-width: 46px; min-height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(var(--accent), #e4a08a); }
.vbar em { position: absolute; top: 0; font-style: normal; font-size: .75rem; color: var(--ink-2); }
.vbar small { margin-top: 6px; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: #fcf9f5; }
.table tr.inactive td { color: var(--muted); }
.table .w-dist { width: 30%; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; margin-left: 12px; }
.tag { display: inline-block; padding: .1em .6em; border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--tint); color: var(--ink-2); }
.tag-ok { background: #e0efe7; color: var(--high); }
.tag-warn { background: #f8e2db; color: #a24b34; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-grid h2 { margin-bottom: 0; }
.span-2 { grid-column: span 2; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }
.form-actions { display: flex; gap: 12px; }
.preview { padding: 10px 14px; background: var(--tint); border-radius: 10px; font-size: .92rem; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, #f6f2ed 40%); margin-bottom: 20px; }
.export-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a { padding: 4px 10px; border-radius: 6px; text-decoration: none; background: var(--tint); }
.pager a.active { background: var(--accent); color: #fff; }
.login-box { max-width: 420px; margin: 10vh auto 0; }
.login-box .brand { margin-bottom: 18px; }

/* ---------- Grosscheck, Codes, Liebessprachen ---------- */
.pill[hidden], fieldset[hidden], label[hidden] { display: none !important; }
.codes-grid { display: grid; gap: 16px; }
.token-card-secret { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); }
.token-card-secret .small { color: #fff3ee; margin: 0; max-width: 40em; }
.check-card .btn { margin-top: 8px; }
.center { text-align: center; }
.profile-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.profile-list p { margin: 2px 0 0; }
.profile-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.center-bar { position: relative; height: 10px; margin: 6px 0 4px; border-radius: 99px; background: var(--tint); }
.center-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #d8cabd; }
.center-bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.center-bar .pos { background: var(--teal); }
.center-bar .neg { background: #e4a08a; }
.profile-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hint-card h3 { margin-bottom: 0; }
fieldset.form-grid { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
fieldset.form-grid legend { padding: 0 6px; }
.csv-columns td:first-child { width: 1%; white-space: nowrap; }
.csv-columns td:nth-child(2) { width: 33%; max-width: 33%; }
.csv-columns code { white-space: normal; word-break: normal; overflow-wrap: normal; }
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: .88rem !important; }
.mail-preview { background: #fffdfa; border: 1px solid var(--line); margin-top: 6px; padding: 18px 22px; }
.tip-form { max-width: 760px; }
.tip-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 12px; }
.tip-range[hidden] { display: none; }
.tip-range label { width: 9rem; }
.tip-range .hint { flex-basis: 100%; }
.tip-range-dash { padding-bottom: .7em; color: var(--muted); }
.tip-range-note { margin: -4px 0 0; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: 2em !important; }
.input-unit span { position: absolute; right: .8em; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; pointer-events: none; }
.tip-check { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcf9f5; transition: opacity .15s; }
.tip-check.is-off { opacity: .55; background: transparent; }
.tip-check.is-off textarea { background: var(--tint); }
@media (max-width: 700px) {
  .profile-compare { grid-template-columns: 1fr; }
}
