/* Konzertplaner Account-App — eigenständiges, schlankes Stylesheet (CI-Farben) */

/* Marken-Schriften (geteilt mit Website & Planer-Tool). Liegen im Domain-Root unter
   /assets/fonts/ — sonst fiele "Roboto" auf Windows auf Segoe UI zurück. */
@font-face { font-family: "Roboto";  src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto";  src: url("/assets/fonts/Roboto-Bold.ttf")    format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/Raleway-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/Raleway-Bold.ttf")    format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Konzertplaner Dark — abgestimmt mit Webseite & Planer */
  --blau: #5b8def;          /* Aktions-Blau (Flächen, weißer Text darauf) */
  --blau-dunkel: #3a5fc4;   /* dunkleres Blau: Button-Hover + Zähler-Badge */
  --link: #8fb0f5;          /* helles Blau für Link-/Sekundär-Text auf dunkel */
  --tiefblau: #16213a;      /* Topbar/Log-Flächen */
  --text: #e7ecf6;
  --muted: #9aa4bd;
  --border: #2a3354;
  --bg: #0f1422;            /* Seitenhintergrund */
  --karte: #19213a;         /* Karten/Panels */
  --input-bg: #202a47;      /* Eingabefelder */
  --fehler: #ef5a52;
  --fehler-bg: rgba(239, 90, 82, .13);
  --ok: #46c98a;
  --ok-bg: rgba(70, 201, 138, .13);
}

* { box-sizing: border-box; }

/* Nur für Screenreader sichtbar (z. B. Überschriften zur logischen Gliederung) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { font-family: Raleway, "Segoe UI", Arial, sans-serif; color: #eef2fb; }

.app-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.app-main.schmal { max-width: 460px; }

.karte {
  background: var(--karte);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.karte h1 { margin: 0 0 6px; font-size: 22px; }
.karte h2 { margin: 0 0 10px; font-size: 17px; }
.karte p.hinweis { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* Werkstattschlüssel-Kasten vor der Registrierung (pages/register.php, 12.10.2026) */
.schluessel { border-top: 4px solid var(--blau); }
.schluessel-marke { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--link); }
.schluessel-vorteile { margin: 0 0 18px; padding-left: 20px; font-size: 14px; }
.schluessel-vorteile li { margin-bottom: 8px; line-height: 1.45; }
.schluessel-preis { margin: 0 0 16px; padding: 10px 12px; background: var(--input-bg); border-radius: 8px; font-size: 14px; }
.schluessel-klein { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
/* Werkstattschlüssel-Tür (tuer.css, Pforte 1.5.0) auf dunkel: Aktions-Blau als Akzent, Seitengrund als Text darauf
   (#0f1422 auf #5b8def 5,7:1; Rand #5b8def auf Karte #19213a 4,9:1) */
.app-main .pforte-tuer { --pforte-akzent: var(--blau); --pforte-auf-akzent: var(--bg); }

label { display: block; margin-bottom: 14px; }
label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--input-bg);
  color: var(--text);
}
input:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
/* Platzhalter explizit hell + opacity:1 (Browser dimmen sonst auf ~54% → zu blass) */
input::placeholder, textarea::placeholder { color: #b8c0d6; opacity: 1; }

.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; }

button, .btn {
  display: inline-block;
  background: var(--blau-dunkel);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: #2f4fa0; }
button.zweitrangig, .btn.zweitrangig {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--border);
  font-weight: 500;
}
button.gefahr { background: #c0392b; }
button.gefahr:hover { background: #a52f24; }
button:disabled, input:disabled { opacity: .6; cursor: not-allowed; }

/* Einheitlicher Dialog (kpAlert / kpConfirm) — ersetzt native alert()/confirm() */
.kp-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.kp-dialog[hidden] { display: none; }
.kp-dialog-inner {
  background: var(--karte);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  width: min(420px, 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 92vh;
  overflow: auto;
}
.kp-dialog-title { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.kp-dialog-title[hidden] { display: none; }
.kp-dialog-msg { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.kp-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.meldung {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}
.meldung-fehler { background: var(--fehler-bg); color: #ffb3ad; border: 1px solid rgba(239, 90, 82, .4); }
.meldung-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(70, 201, 138, .4); }

.zeilen-links { margin-top: 16px; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
/* Alle Inhalts-Links (keine Buttons) im Marken-Hellblau. Topbar (außerhalb
   .app-main) und Footer (.app-fuss) behalten ihre eigene Gestaltung. */
.app-main a:not(.btn) { color: var(--link); }
.app-main a:not(.btn):hover { color: #b3c9f8; }
/* Werkstattschlüssel-Tür: die Wege-Knöpfe behalten ihre Farben aus tuer.css (die Link-Regeln oben sind spezifischer) */
.app-main .pforte-tuer a.pforte-weg, .app-main .pforte-tuer a.pforte-weg:hover { color: inherit; }
.app-main .pforte-tuer a.pforte-weg-rundbrief, .app-main .pforte-tuer a.pforte-weg-rundbrief:hover { color: var(--pforte-auf-akzent); }
/* Button-Farben dürfen nie von Link-Regeln übersteuert werden
   (Fix: weiße Schrift war auf blauem Button unsichtbar) */
a.btn { color: #fff; }
a.btn.zweitrangig { color: var(--link); }

.plan-reihe { display: flex; gap: 16px; flex-wrap: wrap; }
.plan-karte {
  flex: 1 1 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--karte);
}
.plan-karte.aktiv { border-color: var(--blau); box-shadow: 0 0 0 2px rgba(58, 95, 196, .18); }
.plan-karte h3 { margin: 0 0 2px; }
.plan-karte .preis { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.plan-karte .preis small { font-size: 12px; color: var(--muted); font-weight: 400; }
.plan-karte ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.plan-karte .aktiv-marke { display: inline-block; background: var(--blau); color: #fff; font-size: 11px; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

.speicher-balken { background: var(--bg); border-radius: 999px; height: 10px; overflow: hidden; margin: 6px 0 4px; }
.speicher-balken > div { background: var(--blau); height: 100%; border-radius: 999px; }
.speicher-text { font-size: 13px; color: var(--muted); }

.app-fuss {
  padding: 18px 20px 26px;
  text-align: center;
  font-size: 13px;
}
.app-fuss a { color: var(--muted); margin: 0 10px; text-decoration: underline; }

/* Admin-Dashboard */
.admin-aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.admin-inline { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.admin-inline-label { margin: 0; }
.admin-inline-label > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.admin-inline select {
  width: auto;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text);
}
.log-ansicht {
  background: var(--tiefblau);
  color: #cdd5e4;
  border-radius: 10px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
}

/* Allgemeine Formularfelder (Select/Textarea) — gleiche Optik wie Text-Inputs.
   Die Inline-Selects im Admin setzen width:auto und bleiben davon unberührt. */
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
}
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }

/* Admin: Aktions-Karten (offene Anfragen / Freischaltungen) hervorheben */
.karte-aktion { border-color: var(--blau); box-shadow: 0 0 0 2px rgba(91, 141, 239, .14); }
.karte-aktion > h2 { display: flex; align-items: center; gap: 8px; }
.zaehler {
  display: inline-block;
  background: var(--blau-dunkel);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  padding: 1px 7px;
  text-align: center;
}
.anfrage-zeile { padding: 12px 0; border-top: 1px solid var(--border); }
.anfrage-zeile:first-of-type { border-top: 0; padding-top: 4px; }
.anfrage-nachricht { margin: 0 0 10px; font-style: italic; color: var(--text); }
