/* Frag Karl-Otto – warm, ruhig, gut lesbar. Keine externen Schriften (Datenschutz). */
:root {
  --bg: #f7f1e6;
  --bg-soft: #efe5d4;
  --card: #fffdf8;
  --ink: #2a2420;
  --muted: #5e544c;
  --line: #ddd0bb;
  --accent: #a4462a;
  --accent-dark: #833620;
  --accent-soft: #f3dccf;
  --green: #3c6649;
  --green-soft: #dfeadf;
  --warn: #8a5a00;
  --warn-soft: #f8e9c6;
  --error: #9b2c22;
  --error-soft: #f6d9d4;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .06);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 20px/1.6 var(--sans);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }

/* Hinweisleiste Testversion */
.testbar { background: var(--ink); color: #fff; font-size: .8rem; text-align: center; padding: 6px 16px; }

/* Kopfzeile */
header.site {
  position: sticky; top: 0; z-index: 10; background: rgba(247, 241, 230, .94);
  backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
nav.main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 1rem; }
nav.main a:hover { color: var(--accent); }
@media (max-width: 760px) { nav.main .opt { display: none; } }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: 600 1.05rem/1.2 var(--sans); text-decoration: none;
  cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { background: var(--bg-soft); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: wait; }
nav.main .btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

/* Startbereich */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.callbox {
  margin: 28px 0; padding: 22px 26px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); display: inline-block;
}
.callbox .label { font-size: .9rem; color: var(--muted); }
.callbox .number { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.callbox .note { font-size: .9rem; color: var(--muted); margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; order: -1; }
}

/* Karten und Raster */
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark); font: 700 1.3rem var(--serif); margin-bottom: 12px;
}
.icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 10px; }

.example { font-family: var(--serif); font-style: italic; color: var(--muted); margin: .4em 0 0; }

/* Preise */
.price-card { text-align: center; position: relative; }
.price-card .min { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.price-card .eur { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.price-card .per { color: var(--muted); font-size: .9rem; }
.price-card.featured { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 14px; border-radius: 999px;
}
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 34px; position: relative; margin-bottom: .6em; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233c6649' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Fragen und Antworten */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 36px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.6rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 18px; color: var(--muted); }

/* Formulare */
.form { display: grid; gap: 16px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=search], select {
  width: 100%; min-height: 56px; padding: 12px 16px; font: 400 1.1rem var(--sans); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Meldungen */
.msg { padding: 16px 20px; border-radius: 12px; margin-bottom: 18px; }
.msg.ok { background: var(--green-soft); color: #234431; }
.msg.warn { background: var(--warn-soft); color: #5c3c00; }
.msg.error { background: var(--error-soft); color: var(--error); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 2px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 20px; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
.tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Portal */
.portal { padding: 48px 0 80px; min-height: 70vh; }
.balance { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .packs { grid-template-columns: 1fr; } }
.pack { display: grid; gap: 2px; text-align: center; min-height: 84px; border-radius: 14px; }
.pack .p-min { font-weight: 700; }
.pack .p-eur { font-size: .95rem; opacity: .9; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.number-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.number-card .stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 12px 0 18px; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; }

/* Fußzeile */
footer.site { background: var(--ink); color: #e9e0d2; padding: 48px 0; font-size: .95rem; }
footer.site a { color: #fff; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Rechtstexte */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.2em; }
.legal { font-size: 1rem; }
.draft { background: var(--warn-soft); border: 2px dashed #c9a24a; padding: 16px 20px; border-radius: 12px; margin-bottom: 28px; }
mark { background: #ffe58f; padding: 0 4px; }

/* Admin */
body.admin { font-size: 16px; background: #f4efe7; }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tile .stat-value { font-size: 1.7rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg-soft); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fbf6ee; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.detail { margin-top: 24px; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); }
.pill.ok { background: var(--green-soft); }
.pill.demo { background: var(--warn-soft); }
.qr img { width: 220px; height: 220px; background: #fff; border-radius: 12px; }
code.secret { font-size: .95rem; word-break: break-all; background: #fff; padding: 4px 8px; border-radius: 6px; }
body.admin input { min-height: 46px; font-size: 1rem; }
body.admin .btn { min-height: 46px; font-size: .95rem; padding: 8px 18px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.mt-m { margin-top: 22px; }
.mt-l { margin-top: 40px; }
footer.site .logo { color: #fff; }
footer.site .logo span { color: #e9967a; }

/* Diagramme (Admin) */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.charts .wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.chart-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.chart-card .sub { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.chart-tip { position: absolute; z-index: 50; pointer-events: none; background: #2a2420; color: #fff; font-size: 12.5px;
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: none; min-width: 120px; }
.tip-head { font-weight: 600; margin-bottom: 4px; opacity: .85; }
.tip-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip-row strong { margin-left: 12px; }
.tip-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .85rem; color: var(--ink); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item strong { font-weight: 600; color: var(--muted); }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut .legend { flex-direction: column; margin: 0; }
.rank-row { display: grid; grid-template-columns: minmax(0, 9rem) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { height: 10px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.rank-fill { display: block; height: 100%; background: #2a6fa8; border-radius: 5px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.controls .tab { padding: 6px 14px; font-size: .9rem; }

/* Kaufen */
fieldset.steps { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
fieldset.steps legend { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; }
fieldset.steps legend .step-no { margin: 0; width: 40px; height: 40px; font-size: 1.1rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; display: grid; gap: 4px; text-align: center; cursor: pointer; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 16px 18px; font-weight: 400; margin: 0;
  transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--accent); }
.choice.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice.on::after { content: "✓"; position: absolute; top: 10px; right: 14px; color: var(--accent); font-weight: 700; }
.choice .c-min { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.choice .c-eur { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.choice .c-per { font-size: .85rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.summary { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.summary strong { font-family: var(--serif); font-size: 1.8rem; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 6px 0 18px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.btn.wide { width: 100%; }
.price-card .btn { margin-top: 16px; width: 100%; }
.lead-text { font-size: 1.2rem; }

/* Geschenkkarte */
.giftcard { background: linear-gradient(135deg, #fffdf8 0%, #f3dccf 100%); border: 2px solid var(--accent); border-radius: 22px;
  padding: 32px; max-width: 560px; margin-left: auto; margin-right: auto; box-shadow: var(--shadow); }
.gc-top { display: flex; justify-content: space-between; align-items: center; }
.gc-tag { background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.gc-for { font-family: var(--serif); font-size: 1.4rem; margin: 22px 0 0; }
.gc-min { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--accent-dark); margin: 0; line-height: 1.1; }
.gc-text { margin: 12px 0 18px; }
.gc-call { display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 14px 18px; }
.gc-call span { font-size: .9rem; color: var(--muted); }
.gc-call strong { font-family: var(--serif); font-size: 1.8rem; color: var(--accent); }
.gc-small { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .portal { padding: 0; }
  .giftcard { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
