:root {
  --navy: #14213d;
  --navy-2: #1d2d50;
  --anthracite: #2b2d31;
  --gold: #c9a227;
  --gold-soft: #e6d39a;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6268;
  --line: #e2ded4;
  --ok: #1f7a4d;
  --err: #a83232;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
/* `hidden` muss auch gegen display:flex/grid in Klassen gewinnen */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; }
/* Lange deutsche Wörter (z. B. „Datenschutzerklärung“) dürfen die Seite auf schmalen Handys nicht verbreitern */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
p, li { overflow-wrap: break-word; }
a { color: var(--navy); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* --- Landingpage --------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--navy), var(--anthracite));
  color: #fff;
  padding: 72px 0 64px;
}
.brand { font-family: var(--serif); letter-spacing: .04em; color: var(--gold-soft); margin: 0 0 32px; font-size: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 46px); line-height: 1.2; margin: 0 0 20px; }
.hero p { font-size: 19px; color: #d9dce3; margin: 0 0 32px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 0;
  font-size: 17px;
  cursor: pointer;
}
.btn:hover { background: var(--gold-soft); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #ffffff55; margin-left: 8px; }

section.block { padding: 56px 0; border-bottom: 1px solid var(--line); }
section.block h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0 0 20px; color: var(--navy); }
.list { padding-left: 1.1em; }
.list li { margin-bottom: 8px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.offer { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; }
.offer h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.offer .price { color: var(--gold); font-size: 22px; font-weight: 600; margin: 0 0 16px; }
.offer ul { margin: 0 0 20px; padding-left: 1.1em; color: #d9dce3; }
.price .struck { text-decoration: line-through; opacity: .55; font-weight: 400; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }

footer { padding: 40px 0 60px; color: var(--muted); font-size: 15px; }
footer a { color: var(--muted); margin-right: 16px; }

.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* --- Formulare ----------------------------------------------------------- */
form label { display: block; margin-bottom: 14px; font-weight: 500; }
input[type=text], input[type=password], input[type=number], input:not([type]), textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font: inherit;
  font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
textarea { resize: vertical; }
label.row { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.row input { width: 22px; height: 22px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.msg { min-height: 1.6em; font-weight: 500; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* --- Rechtstexte / Login ------------------------------------------------- */
.page { padding-top: 48px; padding-bottom: 48px; }
.page h1 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: clamp(26px, 8vw, 38px); }
.login { max-width: 380px; margin: 0 auto; padding: 64px 16px; }

/* --- Intern -------------------------------------------------------------- */
body.intern { background: #eef0f3; font-size: 16px; }
.bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  height: 48px; background: var(--navy); color: #fff; padding: 0 16px;
}
.bar a, .bar button.link { color: #fff; background: none; border: 0; font: inherit; margin-left: 14px; cursor: pointer; text-decoration: underline; }
.intern main { max-width: 520px; margin: 0 auto; padding: 16px; }
/* QR-Bereich füllt genau den sichtbaren Bildschirm, damit der Kunde die Fragen darunter nicht sieht.
   svh = Höhe bei eingeblendeter Adressleiste (so steht die Seite oben beim Scannen), Fallback vh.
   64px = Kopfzeile (48px) + Abstand oben (16px). */
.qr-box {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 16px;
  /* Nichts markierbar, kein Long-Press-Menü (Bild speichern, Text kopieren) */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.qr-box img { pointer-events: none; }
.qr-wrap { position: relative; width: 100%; max-width: 340px; margin: 0 auto; touch-action: manipulation; /* kein Doppeltipp-Zoom */ }
/* QR, „gescannt“-Overlay und Link um 180° gedreht: Der Coach hält das Handy, der Kunde steht gegenüber. */
.qr-wrap, .code { transform: rotate(180deg); }
.qr-wrap img { display: block; width: 100%; aspect-ratio: 1; transition: opacity .2s; }
.qr-wrap img.dim { opacity: .12; }
.scanned { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: var(--ok); }
.code { font-family: ui-monospace, monospace; font-size: 14px; color: var(--muted); word-break: break-all; }
.intern form, .panel { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale input { position: absolute; opacity: 0; }
.scale label { margin: 0; text-align: center; padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; cursor: pointer; }
.scale input:checked + span { color: #fff; }
.scale label:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.intern .primary, .intern .secondary { display: block; width: 100%; padding: 15px; font: inherit; font-weight: 600; border-radius: var(--radius); border: 0; cursor: pointer; margin-top: 10px; }
.intern .primary { background: var(--navy); color: #fff; }
.intern .secondary { background: #e4e6ea; color: var(--anthracite); }
.intern button:disabled { opacity: .5; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.panel h2 { font-size: 18px; margin: 0 0 12px; color: var(--navy); }
