/* feedback.hanse-pv.de – Gestaltung
 *
 * Die meisten Kunden öffnen den Link auf dem Telefon. Deshalb zuerst für
 * schmale Bildschirme gebaut, mit großen Tippflächen.
 * Schrift vom Gerät statt von Google: Eine Schrift von Google-Servern
 * überträgt die IP-Adresse dorthin, und das ist bei einer Seite, die
 * Anonymität zusagt, nicht vertretbar. */

:root {
  --blau:        #1c4f86;
  --blau-hell:   #06a0d7;
  --text:        #0f2530;
  --text-leise:  #4c6470;
  --rand:        #dae1e2;
  --flaeche:     #ffffff;
  --grund:       #eef1f1;
  --stern-aus:   #c9d3d6;
  --stern-an:    #f2a516;
  --fehler:      #b3261e;
  --fehler-grund:#fdecea;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.karte {
  max-width: 620px;
  margin: 0 auto;
  background: var(--flaeche);
  padding: 24px 18px 28px;
  min-height: 100vh;
}
@media (min-width: 660px) {
  .karte {
    margin: 32px auto 0;
    min-height: 0;
    border-radius: 18px;
    padding: 36px 40px 40px;
    box-shadow: 0 4px 24px rgba(15, 37, 48, 0.08);
  }
}

.kopf { text-align: center; margin-bottom: 18px; }
.kopf img { width: 180px; height: auto; }

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--blau);
  text-align: center;
}
.einleitung { text-align: center; color: var(--text-leise); margin: 0 0 22px; }
.hinweis    { color: var(--text-leise); font-size: 0.93rem; margin: 0 0 14px; }

.fehler {
  background: var(--fehler-grund);
  color: var(--fehler);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
}

/* ── Fragen ─────────────────────────────────────────────────────────────── */
.frage {
  position: relative;
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 12px 14px 10px;
  margin: 0 0 12px;
}
.frage legend {
  font-weight: 700;
  padding: 0 6px;
  margin-left: -6px;
}
.zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

/* Die Sterne stehen im Quelltext von 5 nach 1. row-reverse dreht sie um,
 * und "~" färbt vom gewählten Stern aus alle folgenden - also die links
 * davon angezeigten. */
.sterne {
  display: inline-flex;
  flex-direction: row-reverse;
}
.sterne input,
.ka {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.sterne label {
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sterne label::before {
  content: "★";
  font-size: 36px;
  line-height: 1;
  color: var(--stern-aus);
  transition: color 0.12s, transform 0.12s;
}
.sterne input:checked ~ label::before { color: var(--stern-an); }
@media (hover: hover) {
  .sterne:hover label::before         { color: var(--stern-aus); }
  .sterne label:hover::before,
  .sterne label:hover ~ label::before { color: var(--stern-an); }
  .sterne label:hover::before         { transform: scale(1.12); }
}
.sterne input:focus-visible + label {
  outline: 3px solid var(--blau-hell);
  outline-offset: -3px;
  border-radius: 8px;
}

.ka-knopf {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-leise);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.ka:checked + .ka-knopf {
  background: var(--grund);
  color: var(--text);
  border-color: var(--stern-aus);
}
.ka:focus-visible + .ka-knopf { outline: 3px solid var(--blau-hell); }

/* ── Textfelder ─────────────────────────────────────────────────────────── */
.feld { margin: 20px 0 0; }
.feld label { display: block; font-weight: 700; margin-bottom: 6px; }
.freiwillig { font-weight: 400; color: var(--text-leise); }

textarea,
input[type="text"] {
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
textarea { resize: vertical; min-height: 140px; }
textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--blau-hell);
  box-shadow: 0 0 0 3px rgba(6, 160, 215, 0.18);
}
.erklaerung { font-size: 0.88rem; color: var(--text-leise); margin: 6px 0 0; }

.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  display: block;
  width: 100%;
  margin: 26px 0 0;
  padding: 15px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--blau);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
button:hover        { background: #163f6b; }
button:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 2px; }

.datenschutz {
  font-size: 0.8rem;
  color: var(--text-leise);
  margin: 18px 0 0;
}
.datenschutz a, .fuss a { color: var(--blau); }

/* ── Danke / Meldungen ──────────────────────────────────────────────────── */
.danke { text-align: center; padding: 12px 0 8px; }
.danke p { color: var(--text-leise); }
.danke-zeichen {
  width: 64px; height: 64px;
  margin: 4px auto 16px;
  border-radius: 50%;
  background: #e3f4ec;
  color: #178053;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}
.knopf-link {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--grund);
  color: var(--blau);
  font-weight: 600;
  text-decoration: none;
}

.fuss {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-leise);
  padding: 18px 0 28px;
}
.fuss span { margin: 0 6px; }

.unsichtbar {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
