/* ==========================================================
   VintCheck Design System
   Marke: Ink (Tinte) + Lime-Signal. Ampelfarben nur für Status.
   Schrift: Systemschriften (kein Google-Fonts-Abruf, DSGVO-freundlich)
   ========================================================== */
:root {
  --ink: #0e1116;
  --ink-2: #181c23;
  --paper: #f6f4ee;
  --lime: #c8f169;
  --lime-strong: #b6e44c;

  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efede5;
  --text: #0e1116;
  --muted: #565c68;
  --line: #e2dfd4;
  --link: #1e6b3a;

  --green: #177a42;   --green-soft: #e2f4e8;
  --yellow: #8a5a00;  --yellow-soft: #fdf1d3;
  --red: #b3261e;     --red-soft: #fbe5e5;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14,17,22,.05), 0 8px 24px rgba(14,17,22,.06);
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10;
    --surface: #14171c;
    --surface-2: #1a1e25;
    --text: #f1f1ec;
    --muted: #9aa1ad;
    --line: #262b33;
    --link: #c8f169;
    --green: #4cc27f;   --green-soft: #12281c;
    --yellow: #e5b04f;  --yellow-soft: #2b2312;
    --red: #f08080;     --red-soft: #2e1717;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.on-dark .eyebrow { color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime-strong); outline-offset: 2px; border-radius: 6px; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: inherit; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1; }
.brand svg { height: 36px; width: auto; flex: none; }
.brand .tag { fill: var(--lime); stroke: var(--lime); stroke-width: 2.4; stroke-linejoin: round; }
.brand .tick { stroke: var(--ink); }
.brand b { font-weight: 700; color: var(--lime); }

/* ---------- Dark-Bereiche (immer dunkel, auch im Light Mode) ---------- */
.on-dark { background: var(--ink); color: var(--paper); --muted: #a2a8b3; --line: #2b313b; }
.on-dark a { color: var(--lime); }
.on-dark .brand { color: var(--paper); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14,17,22,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #222831; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #c5cad3; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a.btn, .nav a.btn:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  background: var(--lime); color: var(--ink) !important;
  padding: 14px 24px; border-radius: var(--radius-sm, 12px); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--lime-strong); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--text); background: transparent; }
.on-dark .btn.secondary { color: var(--paper) !important; box-shadow: inset 0 0 0 1.5px #3a414d; }
.on-dark .btn.secondary:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn.small { padding: 8px 16px; font-size: .875rem; }
.btn.danger { background: transparent; color: var(--red) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger:hover { box-shadow: inset 0 0 0 1.5px var(--red); background: transparent; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Icons ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); margin-bottom: 18px; }
.icon-badge.soft { background: var(--surface-2); color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 480px;
  background: radial-gradient(closest-side, rgba(200,241,105,.18), transparent); pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; position: relative; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: 1.25rem; color: #c5cad3; max-width: 560px; margin-bottom: 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 28px; padding: 0; list-style: none; color: #aeb4bf; font-size: .9rem; }
.pills li { display: inline-flex; align-items: center; gap: 6px; }
.pills .ico { width: 16px; height: 16px; color: var(--lime); stroke-width: 2.4; }

/* Plattform-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { padding: 6px 14px; border-radius: var(--radius-sm, 12px); font-size: .85rem; font-weight: 600; color: var(--paper); box-shadow: inset 0 0 0 1.5px #3a414d; }
.chips li:last-child { color: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(200,241,105,.4); }

/* Produkt-Mockup */
.mock { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(1.5deg); max-width: 420px; margin-left: auto; --muted: #5d636f; --line: #e2dfd4; }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.mock-top .chip { background: #fff3c7; color: #7a5200; padding: 2px 10px; border-radius: 99px; font-size: .72rem; }
.mock-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.mock-big small { font-size: .9rem; font-weight: 600; color: var(--green); letter-spacing: 0; margin-left: 6px; }
.mock-gauge { background: #fff; border-radius: 16px; padding: 14px 16px 10px; margin: 16px 0 12px; border: 1px solid var(--line); }
.mock-gauge .row { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.mock-gauge .bar { height: 10px; background: #eceae1; border-radius: 99px; overflow: hidden; }
.mock-gauge .bar i { display: block; height: 100%; border-radius: 99px; animation: grow 1.2s ease-out both; }
.mock-gauge .plat { margin-bottom: 12px; }
.mock-gauge .hint { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: .9rem; }
.mock-list span:first-child { font-weight: 600; }
.mock-list small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.mock-list .win { color: var(--green); font-weight: 700; white-space: nowrap; }
.mock-list .lose { color: var(--red); font-weight: 700; white-space: nowrap; }
@keyframes grow { from { width: 0; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
section.tint { background: var(--surface-2); }

/* ---------- Cards / Bento ---------- */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.tool-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--text); }
.tool-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--link); display: inline-flex; gap: 6px; align-items: center; }
.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 3; }
.bento > .featured-tool { grid-column: span 6; }
.bento > .featured-tool p { max-width: 720px; }

/* Schritte */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps > .step { position: relative; padding-top: 56px; }
.steps > .step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; display: grid; place-items: center; }
.steps > .step h3 { margin-bottom: .3em; }

/* Zitat-Band */
.band { padding: 56px 0; }
.band p { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; max-width: 860px; margin: 0; }
.band em { font-style: normal; color: var(--lime); }

/* ---------- Preise ---------- */
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 6px 0 16px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.label { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); --muted: #a2a8b3; --line: #2b313b; }
.plan.featured .label { background: var(--lime); color: var(--ink); }
.plan.featured input { background: #0b0e12; color: #fff; border-color: #343b46; }
.plan.featured label { color: var(--paper); }
ul.check { list-style: none; padding: 0; margin: 0 0 24px; }
ul.check li { padding: 7px 0 7px 30px; position: relative; }
ul.check li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1116' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan:not(.featured) ul.check li::before { background-color: var(--ink); filter: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8f169' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Formulare ---------- */
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
input:focus, select:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 3px rgba(200,241,105,.55); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 14px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; border-radius: var(--radius-sm, 12px); padding: 13px 18px; }
.form-note { margin-top: 10px; min-height: 1.4em; }

/* ---------- Hinweise ---------- */
.notice { border-radius: var(--radius-sm); background: var(--yellow-soft); color: var(--text); padding: 14px 18px; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--yellow) 40%, transparent); }

/* ---------- Ampel ---------- */
.ampel { border-radius: var(--radius); padding: 18px 22px; margin-top: 18px; border: 1.5px solid var(--line); }
.ampel.green { background: var(--green-soft); border-color: var(--green); }
.ampel.yellow { background: var(--yellow-soft); border-color: var(--yellow); }
.ampel.red { background: var(--red-soft); border-color: var(--red); }
.ampel strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.meter { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 6px 0 16px; }
.meter > div { height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width .4s ease; }
.meter > div.yellow { background: #e5a93a; }
.meter > div.red { background: var(--red); }

.gauge-wrap { display: grid; gap: 24px; grid-template-columns: 240px 1fr; align-items: center; margin: 22px 0 4px; }
.gauge { position: relative; width: 100%; max-width: 260px; }
.gauge svg { width: 100%; display: block; }
.gauge .track { stroke: var(--surface-2); }
.gauge .arc { stroke: var(--green); transition: stroke-dashoffset .5s ease, stroke .3s; }
.gauge .arc.yellow { stroke: #e5a93a; }
.gauge .arc.red { stroke: var(--red); }
.gauge .read { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge .read b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gauge .read span { font-size: .78rem; color: var(--muted); }

/* ---------- Plattform-Überblick ---------- */
.plat-list { display: grid; gap: 12px; margin-bottom: 18px; }
.plat-row { display: grid; gap: 6px 18px; grid-template-columns: 190px 1fr 96px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.plat-row .name { font-weight: 800; }
.plat-row .name small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.plat-row .meter { margin: 0; }
.plat-row .nums { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.plat-row .nums b { color: var(--text); font-size: 1rem; }
.plat-row .status { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }
.plat-row.red { border-color: var(--red); background: var(--red-soft); }
.plat-row.yellow { border-color: var(--yellow); }
@media (max-width: 600px) { .plat-row { grid-template-columns: 1fr; } .plat-row .nums { text-align: left; } }

/* ---------- Import ---------- */
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.no { background: var(--yellow-soft); color: var(--yellow); }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 32px 20px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; background: var(--bg); font-weight: 400; font-size: 1rem; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--text); background: var(--surface-2); }
.drop small { color: var(--muted); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
textarea { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; resize: vertical; }
.map-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.map-grid .small { margin-top: 4px; }
.types { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.types > .small { flex: 1 1 100%; }
.type-opt, .check-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: .92rem; margin: 0; cursor: pointer; }
.type-opt input, .check-inline input { width: auto; }
input.inline-num { width: 100px; padding: 6px 8px; text-align: right; border-radius: 8px; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- Tabelle ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
td.num, th.num { text-align: right; }

/* ---------- Tools-Seite ---------- */
.page-hero { padding: 56px 0 72px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero p { color: #c5cad3; font-size: 1.15rem; max-width: 620px; }
.tool-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tool-nav a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; padding: 9px 16px; border-radius: var(--radius-sm, 12px); font-size: .92rem; font-weight: 600; color: var(--paper); box-shadow: inset 0 0 0 1.5px #3a414d; }
.tool-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--lime); color: var(--lime); }
.tool-nav .ico { width: 18px; height: 18px; }
.tools-main { margin-top: -36px; position: relative; padding-bottom: 72px; }
.tool { scroll-margin-top: 90px; margin-bottom: 22px; padding: 32px; }
.tool-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.tool-head .icon-badge { margin: 0; }
.tool-head h2 { font-size: 1.7rem; margin: 0; }
.check-list label { font-weight: 500; font-size: 1rem; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; margin: 0; }
.check-list input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cta-card { background: var(--ink); color: var(--paper); border: 0; --muted: #a2a8b3; }
.cta-card h2 { color: var(--paper); }
.cta-card input { background: #0b0e12; color: #fff; border-color: #343b46; }
.cta-card label { color: var(--paper); }

/* ---------- Brand-Seite ---------- */
.swatches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.swatch .c { height: 110px; }
.swatch .m { padding: 12px 14px; font-size: .85rem; }
.swatch .m b { display: block; font-size: .95rem; }
.logo-tile { border-radius: var(--radius); padding: 40px; display: grid; place-items: center; min-height: 190px; border: 1px solid var(--line); }
.logo-tile.dark { background: var(--ink); }
.logo-tile.light { background: var(--paper); }
.logo-tile.lime { background: var(--lime); }
.logo-tile img { max-width: 100%; height: 56px; }
.logo-tile.mark img { height: 88px; }
.type-sample { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.do-dont { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.do-dont h3 { display: flex; gap: 8px; align-items: center; }
.do-dont ul { padding-left: 1.2em; margin: 0; color: var(--muted); }
.do-dont li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
footer { padding: 56px 0 64px; font-size: .9rem; }
footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 32px; }
footer h3 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: #c5cad3; text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid #262b33; padding-top: 22px; color: #8a909b; max-width: 820px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { margin: 0 auto; transform: none; }
  .bento > * { grid-column: span 6 !important; }
  .gauge-wrap { grid-template-columns: 1fr; justify-items: center; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .nav a.hide-sm { display: none; }
  .tool { padding: 22px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Formular-Zusatz ---------- */
.field-error { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--red); }
.field-error[hidden] { display: none; }
.field-error::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: var(--bg); font-size: .75rem; line-height: 18px; text-align: center; font-weight: 800; margin-top: 1px; }
.on-dark .field-error, .plan.featured .field-error, .tool-wide .field-error, .trust-main .field-error { color: #ff9d9d; }
.on-dark .field-error::before, .plan.featured .field-error::before, .tool-wide .field-error::before, .trust-main .field-error::before { background: #ff9d9d; color: #111318; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; margin: 12px 0 0; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--lime-strong); }
.consent a { color: inherit; text-decoration: underline; }
.legal-page { overflow-wrap: anywhere; hyphens: auto; max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-page h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page strong { color: var(--text); }
.draft { border-radius: var(--radius-sm); background: var(--red-soft); border: 1px solid var(--red); padding: 12px 16px; color: var(--text); font-size: .92rem; }
.ph { background: var(--yellow-soft); color: var(--text); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Skip-Link ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Steuer-Export, Bearbeiten-Dialog ---------- */
details.more-fields { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; background: var(--bg); }
details.more-fields summary { font-size: .95rem; font-weight: 600; }
details.more-fields[open] summary { margin-bottom: 4px; }
details.more-fields p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); font-size: .92rem; }
.check-item .check-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--surface-2); color: var(--text); }
.check-item.ok { border-color: var(--green); background: var(--green-soft); }
.check-item.ok .check-mark { background: var(--green); color: #fff; }
.check-item.warn { border-color: var(--yellow); background: var(--yellow-soft); }
.check-item.warn .check-mark { background: var(--yellow); color: #fff; }
dialog.edit-dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; width: min(720px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog.edit-dialog::backdrop { background: rgba(8, 10, 14, .6); }

/* ---------- Datenquellen-Auswahl ---------- */
.src-groups { display: grid; gap: 22px; margin-top: 16px; }
.src-group-label { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.src-group-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.src-group-label .dot.no { background: var(--yellow); }
.src-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.src-tile {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 12px 14px; min-height: 64px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 700;
  transition: border-color .15s, background .15s, transform .15s;
}
.src-tile:hover { border-color: var(--text); transform: translateY(-1px); }
.src-tile[aria-selected="true"] { border-color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--text); }
.src-tile .mono { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.src-group:nth-of-type(2) .src-tile .mono { background: var(--yellow-soft); color: var(--yellow); }
.src-name { line-height: 1.25; font-size: .98rem; overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance; }
.src-panels { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 22px 24px; }
.src-panel header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.src-panel h4 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.src-facts { display: grid; gap: 0; margin: 0 0 14px; }
.src-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.src-facts dt { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.src-facts dd { margin: 0; }
.src-link { font-weight: 700; }
.js .src-panel[hidden] { display: none; }
/* Hilfe-Button unter jeder Datenquelle */
.src-item { display: grid; gap: 6px; align-content: start; }
.src-item .src-tile { width: 100%; }
.src-help {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px;
  padding: 6px 12px; border-radius: var(--radius-sm, 12px); border: 1.5px solid var(--line); background: transparent;
  color: var(--text); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.src-help:hover { border-color: var(--text); background: var(--surface-2); }
.src-help .q { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: .74rem; font-weight: 800; }

@media (max-width: 600px) {
  .src-tiles { grid-template-columns: 1fr; }
  .src-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .src-panels { padding: 18px; }
}

/* ---------- Anmeldung ---------- */
.nav a.is-current { color: #fff; }
.auth-page { background: var(--bg); }
.auth-grid { display: grid; gap: 0; grid-template-columns: 1fr 1fr; align-items: stretch; padding-top: 48px; padding-bottom: 72px; }
.auth-side { border-radius: var(--radius) 0 0 var(--radius); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h1 { font-size: clamp(2rem, 4vw, 3rem); }
.auth-side .lead { font-size: 1.1rem; color: #c5cad3; margin: 0; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; padding: 40px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.7rem; margin-bottom: .6em; }
.auth-submit { width: 100%; margin-top: 22px; padding: 15px 24px; }
.auth-alt { margin: 20px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 96px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--link); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; padding: 8px; border-radius: 8px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--link); cursor: pointer; text-decoration: underline; }
.auth-msg { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; font-size: .95rem; border: 1px solid var(--line); }
.auth-msg.error { background: var(--red-soft); border-color: var(--red); }
.auth-msg.ok { background: var(--green-soft); border-color: var(--green); }
.auth-msg.info { background: var(--yellow-soft); border-color: var(--yellow); }
.demo-note { margin: 0 0 18px; }
form[hidden] { display: none; }
#reset-form { margin-top: 14px; }
@media (max-width: 860px) {
  .auth-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .auth-side { border-radius: var(--radius) var(--radius) 0 0; padding: 32px 24px; }
  .auth-card { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 28px 24px; }
}

/* Import: Feineinstellungen und Zusatzwege eingeklappt */
details.more-ways { margin-top: 14px; }
.more-ways-body { display: grid; gap: 18px; padding-top: 6px; }
.more-ways-body label { display: block; font-weight: 700; margin-bottom: 6px; }
.more-ways-body textarea { width: 100%; }

/* Datei besorgen: einfache Karten statt Auswahl-Reiter */
.src-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.src-card { display: grid; gap: 8px; grid-template-rows: auto 1fr auto; align-content: start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.src-card-head { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.src-card .mono { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.src-group:nth-of-type(2) .src-card .mono { background: var(--yellow-soft); color: var(--yellow); }
.src-line { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.src-card .src-help { margin-top: 4px; }
@media (max-width: 600px) { .src-cards { grid-template-columns: 1fr; } }

/* Gezielte Rückfragen im Import: erscheinen nur, wenn sie für die Datei nötig sind */
.ask { display: grid; gap: 6px; margin: 12px 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.ask label { font-weight: 700; }
.ask select, .ask input { max-width: 420px; }

/* Abgabeweg-Kacheln und Infofeld: ruhiger Zeilenabstand, keine Silbentrennung */
.src-tile { white-space: normal; }
.src-panel h4 { line-height: 1.3; }
.src-panel .tag { white-space: nowrap; }
.src-facts dd { line-height: 1.55; overflow-wrap: break-word; }
