/* SuSHilfe: ruhiges Aussehen im Flieder-Ton von SuSPlan, hell und dunkel, ohne Skripte und ohne Schriften von außen. */
:root {
  --bg: #faf8fc;
  --flaeche: #ffffff;
  --primaer: #7e4fb0;
  --primaer-hover: #6a3f99;
  --primaer-text: #ffffff;
  --text: #2d2a32;
  --text-leise: #6b6572;
  --rand: #e3dcee;
  --akzent-weich: #f5f0fa;
  --gefahr: #b03a69;
  --gefahr-weich: #fbeef3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b1e;
    --flaeche: #24262b;
    --primaer: #b58be0;
    --primaer-hover: #c9a6ee;
    --primaer-text: #1a1b1e;
    --text: #f0eff2;
    --text-leise: #a8a6ad;
    --rand: #3a3c42;
    --akzent-weich: #2c2a33;
    --gefahr: #f0a0bd;
    --gefahr-weich: #3a2630;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kopf {
  padding: 1rem 1rem 0;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
}

.marke {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.marke span { color: var(--primaer); }

.inhalt {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.4rem 0 0.8rem; }

.einleitung { font-size: 1.05rem; color: var(--text); margin: 0 0 1.25rem; }

.hinweis {
  background: var(--akzent-weich);
  border: 1px solid var(--rand);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  color: var(--text-leise);
  margin: 0 0 1.25rem;
}

.zurueck { margin: 0.2rem 0 0; font-size: 0.95rem; }

a { color: var(--primaer); text-underline-offset: 0.15em; }
a:hover { color: var(--primaer-hover); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primaer);
  outline-offset: 2px;
}

/* Auswahl der App */
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.karte {
  display: block;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.karte:hover { background: var(--akzent-weich); border-color: var(--primaer); color: var(--text); }
.karte-name { display: block; font-size: 1.15rem; font-weight: 650; }
.karte-text { display: block; color: var(--text-leise); font-size: 0.95rem; }

/* Formular */
.formular { display: grid; gap: 1.1rem; }
.feld label, .feld .haken { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.feld-hinweis { margin: 0.3rem 0 0; color: var(--text-leise); font-size: 0.88rem; }
.feld-fehler { margin: 0.3rem 0 0; color: var(--gefahr); font-size: 0.92rem; font-weight: 600; }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 0.6rem;
  padding: 0.65rem 0.75rem;
}
textarea { resize: vertical; min-height: 5rem; }
[aria-invalid="true"] { border-color: var(--gefahr); }

.haken { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 500 !important; }
.haken input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--primaer); }

.fehler-box {
  background: var(--gefahr-weich);
  border: 1px solid var(--gefahr);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin: 0 0 1.1rem;
  color: var(--text);
}
.fehler-box ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* Köderfeld: für Menschen unsichtbar */
.kk { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.knopf {
  display: inline-block;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  background: var(--primaer);
  color: var(--primaer-text);
  border: 1px solid var(--primaer);
  border-radius: 0.7rem;
  padding: 0.75rem 1.3rem;
  cursor: pointer;
  transition: background 0.15s;
}
.knopf:hover { background: var(--primaer-hover); color: var(--primaer-text); }
.knopf-leise { background: transparent; color: var(--primaer); }
.knopf-leise:hover { background: var(--akzent-weich); color: var(--primaer-hover); }

.liste { padding-left: 1.2rem; }
.liste li { margin-bottom: 0.4rem; }

.fuss {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--rand);
}
.fuss a { color: var(--text-leise); }

.recht h2 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
.recht p, .recht li { font-size: 0.98rem; }
.stand { color: var(--text-leise); font-size: 0.9rem; }

@media (min-width: 40rem) {
  .karten { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
}
