/* Abendsterne – Umfrage. Große Schrift, hoher Kontrast, ruhiger Sternenhimmel. Keine externen Schriften oder Dienste. */
:root {
  --night-1: #0b1530;
  --night-2: #18264d;
  --night-3: #2f2a5a;
  --gold: #ffd98a;
  --orange: #f5a623;
  --orange-dark: #d98a0b;
  --paper: #fffdf7;
  --paper-2: #f7f1e3;
  --ink: #1d2233;
  --ink-soft: #4a5068;
  --line: #d8d0bd;
  --ok: #2e7d4f;
  --warn: #b25400;
  --bad: #b3261e;
  --radius: 18px;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }          /* 18 px Grundschrift */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--night-1);
  background-image:
    radial-gradient(1.4px 1.4px at 40px 60px, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 130px 140px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.8px 1.8px at 220px 40px, rgba(255,217,138,.9), transparent),
    radial-gradient(1px 1px at 310px 210px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.3px 1.3px at 90px 260px, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 360px 110px, rgba(255,255,255,.55), transparent),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  background-size: 400px 300px, 400px 300px, 400px 300px, 400px 300px, 400px 300px, 400px 300px, 100% 100%;
  background-attachment: fixed;
}
.noscript { padding: 2rem; color: #fff; }
a { color: #8a4b00; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gerüst ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11, 21, 48, .94); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255, 217, 138, .25); color: #fff; }
.topbar-in { max-width: 820px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: .4rem; margin-right: auto; }
.brand .star { font-size: 1.3rem; }
.brand img { height: 36px; width: auto; }
.save { font-size: .8rem; color: #cdd5ee; min-width: 8.5rem; text-align: right; }
.save.ok { color: #9be3b5; }
.save.err { color: #ffb4a6; font-weight: 600; }
.pill { background: transparent; border: 1px solid rgba(255, 217, 138, .55); color: var(--gold); border-radius: 999px; padding: .3rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; }
.pill:hover { background: rgba(255, 217, 138, .12); }
.progress { max-width: 820px; margin: 0 auto; padding: 0 1rem .6rem; }
.progress-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: #cdd5ee; margin-bottom: .3rem; }
.bar { height: 10px; background: rgba(255, 255, 255, .15); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--gold)); border-radius: 999px; transition: width .35s ease; }

main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 1.2rem 1rem 7rem; }
.foot { max-width: 820px; margin: 0 auto; padding: 0 1rem 2rem; margin-bottom: 5.5rem; color: #aeb8d8; font-size: .85rem; text-align: center; }
.foot a { color: var(--gold); }

/* ---------- Karten ---------- */
.card { background: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.1rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.card h2 { font-size: 1.6rem; color: var(--night-2); }
.page-head { margin-bottom: .6rem; }
.page-head h2 { color: #fff; font-size: 1.75rem; margin: .4rem 0 .3rem; }
.page-head .part { color: var(--gold); font-size: .9rem; }
.page-head p { color: #d7def4; margin: .2rem 0 0; }
.page-head h2:focus { outline: none; }
.note { background: #fff6dd; border: 1px solid #f1d58b; }
.note h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.banner { background: #e6f4ea; color: #1b4d2e; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; }
.banner.err { background: #fde8e6; color: #7a1a12; }

/* ---------- Startseite ---------- */
.hero { text-align: center; color: #fff; padding: 1.6rem 0 1rem; }
.hero .big-star { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .2rem; }
.hero h1 { font-size: 2.1rem; margin-bottom: .6rem; }
.hero p { font-size: 1.1rem; color: #d7def4; max-width: 34rem; margin: 0 auto; }
.choices { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 700px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice-card { display: flex; flex-direction: column; }
.choice-card h2 { font-size: 1.35rem; }
.choice-card p { color: var(--ink-soft); flex: 1; }
.resume-box { background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 217, 138, .5); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.resume-box h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: .4rem; }
.resume-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }

/* ---------- Texte ---------- */
.intro p { margin: .2rem 0 .7rem; }
.intro ul { margin: .2rem 0 1rem; padding-left: 1.3rem; }
.intro li { margin-bottom: .45rem; }
.estimate { background: var(--paper-2); border-radius: 12px; padding: .7rem 1rem; margin: 1rem 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Fragen ---------- */
.q { padding: 1.3rem 1.5rem 1.4rem; }
.q-title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.35; color: var(--night-2); margin-bottom: .4rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; background: #fff1c9; color: #7a4a00; border: 1px solid #f0c764; border-radius: 999px; font-family: var(--sans); font-size: .75rem; font-weight: 700; padding: .05rem .6rem; margin-bottom: .45rem; }
.q-help p { margin: .25rem 0 .5rem; color: var(--ink-soft); font-size: .95rem; }
.hint { background: #eef3ff; border-left: 4px solid #6b86d6; border-radius: 8px; padding: .5rem .8rem; }
.hint b { color: #2d4390; }
.ex-intro { font-weight: 600; margin-top: .6rem !important; }
.ex { border-radius: 10px; padding: .5rem .8rem; margin: .35rem 0 !important; font-style: italic; }
.ex .lab { font-style: normal; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; display: inline-block; margin-right: .5rem; }
.ex-weak { background: #fdeceb; color: #6e2a25; }
.ex-weak .lab { color: #a8332a; }
.ex-good { background: #e8f5ec; color: #1e4a2f; }
.ex-good .lab { color: var(--ok); }
.ex-neutral { background: var(--paper-2); }
.ex-neutral .lab { color: #7a5b00; }

input[type=text], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: .75rem .9rem; margin-top: .3rem;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
input[type=text]:focus, textarea:focus { border-color: var(--orange); outline: 3px solid rgba(245, 166, 35, .35); }
.soft { color: var(--warn); font-size: .9rem; margin: .35rem 0 0; min-height: 1.2em; }
.count { color: var(--ink-soft); font-size: .8rem; text-align: right; margin: .15rem 0 0; }

.opts { display: grid; gap: .55rem; margin-top: .5rem; }
.opt { position: relative; display: flex; align-items: flex-start; gap: .75rem; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: .8rem 1rem; cursor: pointer; min-height: 3.2rem; line-height: 1.4; }
.opt:hover { border-color: #e2b45c; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex: none; width: 1.6rem; height: 1.6rem; border: 2px solid #9a927e; border-radius: 50%; margin-top: .05rem; display: grid; place-items: center; background: #fff; }
.opt.multi .mark { border-radius: 7px; }
.opt .mark::after { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--orange-dark); transform: scale(0); transition: transform .12s; }
.opt.multi .mark::after { border-radius: 3px; }
.opt input:checked + .mark { border-color: var(--orange-dark); }
.opt input:checked + .mark::after { transform: scale(1); }
.opt:has(input:checked) { background: #fff1d6; border-color: var(--orange-dark); }
.opt:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.clear { background: none; border: 0; padding: .3rem 0; color: #7b5a1f; font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; margin-top: .3rem; }
.other { margin-top: .7rem; }
.other label { font-size: .92rem; color: var(--ink-soft); }

.scale { margin-top: .6rem; }
.scale-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.scale-btns .opt { justify-content: center; padding: .7rem 0; font-size: 1.2rem; font-weight: 700; min-height: 3.4rem; align-items: center; }
.scale-btns .opt .mark { display: none; }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; font-size: .88rem; color: var(--ink-soft); }
.scale-ends span:last-child { text-align: right; }

/* ---------- Fotos ---------- */
.steps { background: var(--paper-2); border-radius: 12px; padding: .7rem 1rem .7rem 2rem; margin: .6rem 0; font-size: .95rem; }
.steps li { margin: .2rem 0; }
.album-group { margin-top: 1rem; }
.album-group h4 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.1rem; color: var(--night-2); }
.album { display: flex; gap: .6rem; align-items: stretch; margin-bottom: .45rem; }
.album .opt { flex: 1; }
.album .t { display: block; }
.album .y { color: var(--ink-soft); font-size: .85rem; }
.album a.open { flex: none; display: flex; align-items: center; background: #14213d; color: #fff; text-decoration: none; border-radius: 14px; padding: 0 1rem; font-size: .9rem; text-align: center; }
.album a.open:hover { background: #22345f; }
details.more { margin-top: 1rem; }
details.more summary { cursor: pointer; font-weight: 600; padding: .5rem 0; color: #7b5a1f; }

/* ---------- Knöpfe und Fußleiste ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: 1.05rem; min-height: 3.3rem; padding: .6rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--orange); color: #1b1300; }
.btn-primary:hover { background: #ffb73a; }
.btn-ghost { background: #fff; color: var(--night-2); border-color: #b9b19c; }
.btn-ghost:hover { background: var(--paper-2); }
.btn-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-dark:hover { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(11, 21, 48, .96); border-top: 1px solid rgba(255, 217, 138, .25); }
.navbar-in { max-width: 820px; margin: 0 auto; padding: .7rem 1rem; display: flex; gap: .8rem; justify-content: space-between; align-items: center; }
.navbar .mid { font-size: .8rem; color: #cdd5ee; text-align: center; flex: 1; }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Fenster ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 10, 25, .7); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto; }
.modal { background: var(--paper); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 1.4rem 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.modal h2 { font-size: 1.5rem; margin-bottom: .6rem; color: var(--night-2); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; letter-spacing: .08em; background: var(--paper-2); border-radius: 12px; text-align: center; padding: .6rem; margin: .6rem 0; user-select: all; }
.linkbox { width: 100%; font-size: .85rem; }
.overview { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .4rem; }
.overview button { width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .6rem .9rem; cursor: pointer; display: flex; gap: .7rem; align-items: center; }
.overview button:hover { border-color: var(--orange); }
.overview button.cur { border-color: var(--orange-dark); background: #fff1d6; }
.overview .tick { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid #b9b19c; display: grid; place-items: center; font-size: .85rem; color: #fff; }
.overview .tick.done { background: var(--ok); border-color: var(--ok); }
.overview .n { margin-left: auto; font-size: .8rem; color: var(--ink-soft); }
.summary { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.summary td { padding: .45rem .3rem; border-bottom: 1px solid #ece4cf; }
.summary td:last-child { text-align: right; white-space: nowrap; }
.link { background: none; border: 0; color: #7b5a1f; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }

/* ---------- Datenschutzseite ---------- */
body.doc { padding: 1rem; }
.doc-card { background: var(--paper); max-width: 760px; margin: 1rem auto; border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.doc-card h1 { font-size: 2rem; margin-bottom: .8rem; }
.doc-card h2 { font-size: 1.3rem; margin: 1.4rem 0 .4rem; }
.doc-card .note { background: #fff6dd; padding: .6rem .9rem; border-radius: 10px; }
.back { font-weight: 600; }

@media (max-width: 520px) {
  html { font-size: 106.25%; }
  .card, .q { padding: 1.1rem 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .btn { padding: .6rem 1.1rem; }
  .save { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .big-star, .brand .star { animation: twinkle 4s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
}
@media (max-width: 560px) { .navbar .mid { display: none; } .navbar-in { justify-content: space-between; } }
