/* ============================================================
   HPN Akademie DE (neues System) - Design
   Datei: /inc/design.css       Baustein 1, 26.11.2026

   Farben aus dem gewaehlten blauen Entwurf (Main.dc.html).
   Zuerst fuers Handy gebaut, ab 900 px Breite steht das Menue links.
   Keine Google-Schriften (Datenschutz): Ueberschriften in Georgia,
   Text in der Systemschrift des Geraets.
   ============================================================ */

:root {
  --navy: #14284B;
  --navy-dunkel: #0B1830;
  --gold: #E7C77F;
  --gold-dunkel: #8A6A1F;
  --creme: #FAF7F2;
  --rand: #E8E2D6;
  --text: #1E2433;
  --text-weich: #4A5163;
  --hellblau: #D5DCEA;
  --rot: #A3302A;
  --gruen: #2E6B3F;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* ---------- Kopfleiste ---------- */
.kopf {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff;
  padding: 12px 16px; min-height: 58px;
}
.marke { color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }
.marke span { color: var(--gold); }
/* Abmelden oben rechts: als deutlich sichtbarer Knopf, nie abgeschnitten */
.abmelden {
  margin-left: auto; flex: 0 0 auto; white-space: nowrap;
  color: var(--navy-dunkel); background: var(--gold);
  text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; margin-right: 2px;
}
.abmelden:hover { background: #F0D69A; }
.kopf { padding-right: 16px; }
.marke { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Menue-Knopf (nur Handy) */
.menue-schalter { position: absolute; left: -9999px; }
.menue-knopf { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; padding: 8px; border-radius: 8px; }
.menue-knopf span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.menue-knopf:hover { background: rgba(255,255,255,.1); }

/* ---------- Rahmen und Menue ---------- */
.rahmen { display: block; }
.menue {
  display: none;
  background: var(--navy-dunkel);
  padding: 8px 0 16px;
}
.menue-schalter:checked ~ .rahmen .menue { display: block; }
.menue-wer { padding: 12px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 6px; }
.menue-wer strong { display: block; color: #fff; }
.menue-wer span { color: var(--gold); font-size: .85rem; }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue li a, .menue li .bald {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 18px; text-decoration: none; color: var(--hellblau);
  border-left: 3px solid transparent;
}
.menue li a:hover { background: rgba(255,255,255,.06); color: #fff; }
.menue li a.aktiv { color: #fff; border-left-color: var(--gold); background: rgba(231,199,127,.10); }
.menue li .bald { color: #6F7A90; cursor: default; }
.menue li .bald small { font-size: .7rem; border: 1px solid #3A4766; border-radius: 20px; padding: 1px 8px; white-space: nowrap; }
.menue-abmelden { display: block; margin: 12px 18px 0; color: var(--gold); text-decoration: none; }

/* ---------- Inhalt ---------- */
.inhalt { padding: 22px 16px 40px; max-width: 1100px; }
.inhalt.schmal { max-width: 520px; margin: 0 auto; }

.karte {
  background: #fff; border: 1px solid var(--rand); border-radius: 14px;
  padding: 20px; margin-bottom: 16px;
}
.karte.gold { border-top: 4px solid var(--gold); }
.leise { color: var(--text-weich); font-size: .95rem; }

/* ---------- Formulare ---------- */
label.feld { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1px solid #C9CFDC; border-radius: 10px; background: #fff; color: var(--text);
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
.knopf {
  display: inline-block; width: 100%; margin-top: 18px;
  background: var(--navy); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 18px; font-size: 1rem; font-weight: 600; text-align: center;
  text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--navy-dunkel); }
.knopf.gold { background: var(--gold); color: var(--navy-dunkel); }

.meldung { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.meldung.fehler { background: #F8E6E4; color: var(--rot); border: 1px solid #E9C4C0; }
.meldung.ok { background: #E5F1E8; color: var(--gruen); border: 1px solid #C3DEC9; }
.meldung.info { background: #EEF2F9; color: var(--navy); border: 1px solid var(--hellblau); }

.liste { margin: 0; padding-left: 20px; }
.liste li { margin-bottom: 6px; }

.fuss { text-align: center; color: var(--text-weich); font-size: .8rem; padding: 28px 16px 24px; }

/* ---------- ab Tablet/PC: Menue fest links ---------- */
@media (min-width: 900px) {
  .menue-knopf { display: none; }
  /* Menue-Spalte reicht immer bis ganz nach unten (kein heller
     Streifen unter dem Menue), auch wenn der Inhalt kurz oder lang ist. */
  .rahmen { display: flex; align-items: stretch; min-height: calc(100vh - 58px); }
  .menue {
    display: block;
    width: 290px; flex: 0 0 290px;
  }
  .inhalt { padding: 32px 36px 0; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .inhalt .fuss { margin-top: auto; }
  .knopf { width: auto; }
  h1 { font-size: 2rem; }
}

/* ============================================================
   Baustein 2 (27.11.2026): Registerkarten, Schilder, Listenkarten,
   Formularzeilen, kleine Knoepfe
   ============================================================ */
.reiter { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.reiter a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--rand); background: #fff; color: var(--navy); font-weight: 600;
}
.reiter a.aktiv { background: var(--navy); color: #fff; border-color: var(--navy); }

.schild {
  display: inline-block; font-size: .78rem; font-weight: 600; line-height: 1.2;
  padding: 3px 9px; border-radius: 999px; margin: 0 4px 4px 0;
  background: #EEF2F9; color: var(--navy); border: 1px solid var(--hellblau);
}
.schild.gruen { background: #E5F1E8; color: var(--gruen); border-color: #C3DEC9; }
.schild.grau  { background: #F1F1F1; color: #6A6F7A; border-color: #DDD; }
.schild.rot   { background: #F8E6E4; color: var(--rot); border-color: #E9C4C0; }
.schild.gold  { background: #FBF3E0; color: var(--gold-dunkel); border-color: #EFD9A5; }

.liste-karten { display: grid; gap: 14px; grid-template-columns: 1fr; }
.liste-karten .karte { margin: 0; }
.karte h3 { font-size: 1.1rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.karte.blass { opacity: .65; }
.daten { margin: 8px 0 0; padding: 0; list-style: none; color: var(--text-weich); font-size: .95rem; }
.daten li { margin: 2px 0; overflow-wrap: anywhere; }
.knopf-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.knopf-klein {
  display: inline-block; padding: 8px 14px; border-radius: 8px; font-size: .92rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--navy); color: var(--navy); background: #fff; cursor: pointer;
  font-family: inherit; line-height: 1.4;
}
.knopf-klein:hover { background: #EEF2F9; }
.knopf-klein.voll { background: var(--navy); color: #fff; }
.knopf-klein.rot { border-color: var(--rot); color: var(--rot); }
.knopf-klein.rot:hover { background: #F8E6E4; }
.kopfzeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kopfzeile h1 { margin: 0; }
.abschnitt { margin: 26px 0 10px; font-size: 1.1rem; }

textarea, select, input[type=date], input[type=time], input[type=number], input[type=url] {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid #C9CFDC; border-radius: 10px; background: #fff; color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.feld-hilfe { color: var(--text-weich); font-size: .88rem; margin: 4px 0 0; }
.feldgruppe { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
/* Felder in Reihen duerfen nie breiter als ihre Spalte werden (27.11.2026:
   drei Datumsfelder ragten am PC aus der Karte, weil ein Datumsfeld im
   Browser eine feste Mindestbreite hat). Gilt fuer alle Formulare. */
.feldgruppe > *, .tag-zeile > * { min-width: 0; }
.feldgruppe input, .feldgruppe select, .feldgruppe textarea,
.tag-zeile input, .tag-zeile select { max-width: 100%; min-width: 0; }
.haken { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-weight: 600; }
.haken input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.tag-zeile { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border: 1px solid var(--rand); border-radius: 10px; margin-top: 10px; background: #FCFBF8; }
.tag-zeile strong { color: var(--navy); }

@media (min-width: 700px) {
  .feldgruppe.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feldgruppe.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tag-zeile { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
@media (min-width: 1100px) {
  .liste-karten { grid-template-columns: 1fr 1fr; }
}
.knopf-zeile form { margin: 0; display: flex; }

/* ============================================================
   Baustein 3a (27.11.2026): Glocke, Wahlfelder, Hinweisboxen
   ============================================================ */
.glocke { margin-left: auto; position: relative; text-decoration: none; font-size: 1.25rem; line-height: 1; padding: 6px; }
.glocke span { position: absolute; top: -2px; right: -4px; background: #C0392B; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 6px; }
.glocke + .abmelden { margin-left: 8px; }
.wahl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.wahl label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #C9CFDC; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.wahl input { width: 18px; height: 18px; }
.preis-gross { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 6px 0 0; }
.rechtstext { white-space: pre-wrap; overflow-wrap: anywhere; }
.bank { background: #FCFBF8; border: 1px solid var(--rand); border-radius: 10px; padding: 12px 14px; margin-top: 10px; overflow-wrap: anywhere; }
.zahl-kachel { display: block; text-decoration: none; color: inherit; }
.zahl-kachel strong { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.kacheln { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.kacheln .karte { margin: 0; }
.kacheln .karte.rot { border-top: 4px solid #C0392B; }
@media (min-width: 900px) { .kacheln { grid-template-columns: repeat(4, 1fr); } }
.haken > span { flex: 1 1 auto; min-width: 0; }

/* ---------- 28.11.2026 (A3, R2/R3) ---------- */
/* R2: Handy - Schriftzug "HPN Akademie" passt neben Menue, Glocke und Abmelden */
@media (max-width: 480px) {
  .kopf { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .marke { font-size: 1.05rem; }
  .abmelden { padding: 7px 10px; font-size: .88rem; }
  .glocke { padding: 4px; }
}
/* R2: Nummern wie HPN-DE-TEST-0001 nie mitten im Wort trennen */
.ohne-umbruch { white-space: nowrap; }
/* R3: Spruenge zu #abschnitt (z. B. Glocke -> #benachrichtigungen) nicht unter die feste Kopfzeile */
[id] { scroll-margin-top: 76px; }
