/* Frauenportal – Mein Kursbereich
   Farben wie frauenportalwien.at: Altrosa #b85f67, Rosé #c77b81, Dunkelbraun #3d332e */

:root {
  --creme: #fbf7f3;
  --creme-tief: #f3eae4;
  --weiss: #ffffff;
  --altrosa: #b85f67;
  --altrosa-tief: #9e4c55;
  --rose: #c77b81;
  --rose-hell: #f6e6e4;
  --rose-zart: #fcf3f1;
  --braun: #3d332e;
  --braun-weich: #6e6058;
  --linie: #ecdfd8;
  --schatten: 0 1px 2px rgba(61, 51, 46, 0.05), 0 10px 28px rgba(61, 51, 46, 0.08);
  --rund: 22px;
  --schrift: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --titel: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  color: var(--braun);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--altrosa-tief); }

h1, h2, h3 { margin: 0; line-height: 1.2; }

p { margin: 0; }

button { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(184, 95, 103, 0.5);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  background: rgba(251, 247, 243, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(236, 223, 216, 0.8);
}

.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--braun);
}

.marke-bogen { height: 38px; width: auto; display: block; }

.marke-text { display: flex; flex-direction: column; line-height: 1.1; }

.marke-name {
  font-family: var(--titel);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.marke-zusatz {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--altrosa);
  margin-top: 3px;
}

/* ── Inhalt ───────────────────────────────────────────────────────────── */
.inhalt {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 28px;
  outline: none;
}

.abschnitt { margin-top: 28px; }

.abschnitt-titel {
  font-family: var(--titel);
  font-size: 22px;
  font-weight: 600;
  margin: 0 4px 12px;
}

.gruss { margin: 2px 4px 18px; }

.gruss h1 {
  font-family: var(--titel);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gruss p { margin-top: 6px; color: var(--braun-weich); }

.titel-gross {
  font-family: var(--titel);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
}

.klein { font-size: 15px; color: var(--braun-weich); }

/* ── Laden ────────────────────────────────────────────────────────────── */
.laden {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  color: var(--braun-weich);
}

.laden-bogen {
  height: 64px;
  width: auto;
  opacity: 0.85;
  animation: atmen 1.8s ease-in-out infinite;
}

@keyframes atmen {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 0.95; }
}

/* ── Hinweis-Band (offline, Ausfall) ──────────────────────────────────── */
.band {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--rose-zart);
  border: 1px solid var(--rose-hell);
  font-size: 16px;
}

.band-zeichen { font-size: 20px; line-height: 1.2; }

.band strong { display: block; margin-bottom: 2px; }

.band-offline { background: #f4efe9; border-color: var(--linie); }

/* Doppelbuchung: warm, aber deutlich anders als die rosa Hinweise */
.band-doppelt { background: #fdf3e4; border-color: #efd8b4; }

.band-doppelt .knopf-reihe { margin-top: 12px; }

.band-doppelt .knopf { min-height: 44px; padding: 10px 16px; font-size: 15px; }

/* Hinweis, den die Kundin wegtippen kann (×) */
.band-wegbar { position: relative; padding-right: 50px; }

.band-wegbar .schliessen { top: 4px; right: 4px; width: 44px; height: 44px; }

/* ── Nächster Termin (Held) ───────────────────────────────────────────── */
.held {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  border-radius: 26px;
  color: var(--weiss);
  background: linear-gradient(150deg, #b85f67 0%, #c06c74 55%, #cf8a8f 100%);
  box-shadow: 0 14px 34px rgba(158, 76, 85, 0.28);
}

.held::after {
  content: '';
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 190px;
  height: 200px;
  background: url('/bilder/bogen-weiss.png') no-repeat center / contain;
  opacity: 0.13;
  pointer-events: none;
}

.held > * { position: relative; z-index: 1; }

.held-ueber {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.chip {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
}

.chip-jetzt { background: var(--weiss); color: var(--altrosa-tief); }

.held-datum {
  margin-top: 10px;
  font-family: var(--titel);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.held-zeit {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 2px;
}

.held-zeit small { font-size: 20px; font-weight: 700; opacity: 0.9; }

.held-kurs { margin-top: 14px; font-weight: 700; font-size: 17px; }

.held-ort, .held-nr { opacity: 0.95; font-size: 16px; }

/* Nachholtermin: versäumt = verfällt (Walid 04.12.2026) */
.held-wichtig {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 700;
}

.held-freude {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

/* ── Karten ───────────────────────────────────────────────────────────── */
.karte, .kurs {
  background: var(--weiss);
  border-radius: var(--rund);
  box-shadow: var(--schatten);
  padding: 20px;
  margin-bottom: 14px;
}

.karte h2 {
  font-family: var(--titel);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.karte p + p { margin-top: 8px; }

.karte-weiter {
  background: linear-gradient(160deg, #fff 0%, var(--rose-zart) 100%);
  border: 1px solid var(--rose-hell);
}

.karte-einladen { position: relative; overflow: hidden; }

.karte-einladen::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 96px;
  height: 100px;
  background: url('/bilder/bogen.png') no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

.gutschein {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--rose);
  background: var(--rose-zart);
}

.gutschein-code {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--altrosa-tief);
}

/* ── Kurs-Karte ───────────────────────────────────────────────────────── */
.kurs-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.kurs-typ {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--altrosa);
}

.etikett {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--rose-hell);
  color: var(--altrosa-tief);
}

.etikett-person { background: var(--creme-tief); color: var(--braun); }

.etikett-fertig { background: #edf3ea; color: #4b6b40; }

.etikett-doppelt { background: #fdf3e4; color: #8a5a14; }

.kurs-titel {
  margin-top: 6px;
  font-family: var(--titel);
  font-size: 22px;
  font-weight: 600;
}

.kurs-fakten {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  color: var(--braun-weich);
  font-size: 16px;
}

.kurs-fakten li { display: flex; gap: 8px; align-items: baseline; }

.kurs-fakten li + li { margin-top: 2px; }

.kurs-fakten .zeichen { width: 18px; flex: none; text-align: center; color: var(--rose); font-weight: 800; }

/* Privatsphäre-Ampel (Farbpunkt wie im Shop) */
.ampel-punkt {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  transform: translateY(1px);
}
.ampel-gruen { background: #2e9b57; }
.ampel-gelb { background: #f0bf2c; }
.ampel-rot { background: #d6453a; }
.held .ampel-punkt { margin-right: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95); }
.kurs-titel .ampel-punkt { width: 13px; height: 13px; margin-right: 9px; vertical-align: 0.08em; transform: none; }

/* „Was bedeuten die Farbpunkte?“ – Erklärung erst nach Antippen */
.ampel-erklaerung { margin-top: 12px; }
.ampel-erklaerung summary { list-style: none; width: 100%; padding-left: 14px; padding-right: 14px; font-size: 16px; }
.ampel-erklaerung summary::-webkit-details-marker { display: none; }
.ampel-drei { display: inline-flex; gap: 4px; }
.ampel-drei .ampel-punkt { width: 11px; height: 11px; transform: none; }
.ampel-erklaerung-inhalt {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--weiss);
  box-shadow: inset 0 0 0 1px var(--linie);
  font-size: 15px;
  line-height: 1.45;
}
.ampel-erklaerung-inhalt ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ampel-erklaerung-inhalt li { display: flex; gap: 10px; align-items: baseline; }
.ampel-erklaerung-inhalt li + li { margin-top: 8px; }

.punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.punkt {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e5c9c7;
  background: var(--weiss);
}

.punkt-voll { background: var(--altrosa); border-color: var(--altrosa); }

.punkt-naechster {
  border-color: var(--altrosa);
  box-shadow: 0 0 0 4px rgba(184, 95, 103, 0.18);
  animation: pulsieren 2.2s ease-in-out infinite;
}

@keyframes pulsieren {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 95, 103, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(184, 95, 103, 0.08); }
}

.kurs-stand { margin-top: 10px; font-weight: 700; }

.kurs-ausfall {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--creme);
  font-size: 15px;
}

.kurs-ausfall + .kurs-ausfall { margin-top: 8px; }

.kurs-wichtig {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #efd8b4;
  background: #fdf3e4;
  font-size: 15px;
  font-weight: 700;
}

/* Alle Termine */
.termine { margin-top: 14px; border-top: 1px solid var(--linie); }

.termine summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0 4px;
  font-weight: 800;
  color: var(--altrosa-tief);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.termine summary::-webkit-details-marker { display: none; }

.termine summary::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.termine[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.terminliste { list-style: none; margin: 6px 0 0; padding: 0; }

.terminliste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--linie);
  font-size: 16px;
}

.terminliste li:last-child { border-bottom: none; }

.terminliste .nr { color: var(--braun-weich); font-size: 14px; white-space: nowrap; }

.terminliste .vorbei { color: #a39890; }

.terminliste .vorbei .nr { color: #b9afa8; }

.terminliste .heute { font-weight: 800; color: var(--altrosa-tief); }

.terminliste .ausfall .datum { text-decoration: line-through; color: #a39890; }

.terminliste .ausfall .nr { color: var(--braun-weich); font-style: italic; }

/* ── Knöpfe ───────────────────────────────────────────────────────────── */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--altrosa-tief);
  color: var(--weiss);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.knopf:hover { background: #8c414a; }

.knopf:active { transform: scale(0.98); }

.knopf[disabled] { opacity: 0.6; cursor: default; }

.knopf-zart {
  background: var(--rose-zart);
  color: var(--altrosa-tief);
  box-shadow: inset 0 0 0 1.5px #ecd0cd;
}

.knopf-zart:hover { background: var(--rose-hell); }

.knopf-breit { width: 100%; }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.knopf-reihe .knopf { flex: 1 1 200px; }

.knopf-text {
  background: none;
  border: none;
  padding: 10px 4px;
  color: var(--altrosa-tief);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.schliessen {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--braun-weich);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.karte-tipp { position: relative; padding-right: 48px; }

.teilen-zeichen {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  color: #2f7cf6;
}

/* ── Willkommen / Fehler ──────────────────────────────────────────────── */
.willkommen { text-align: center; padding-top: 10px; }

.willkommen-bogen { height: 92px; width: auto; margin: 6px auto 18px; display: block; }

.willkommen .gruss p { max-width: 30em; margin-left: auto; margin-right: auto; }

.willkommen .karte { text-align: left; }

/* Link per E-Mail bekommen (Startseite / QR-Code) */
.anfordern h2:focus { outline: none; }

.anfordern h3 { font-size: 17px; font-weight: 700; margin: 18px 0 4px; }

.anfordern-form { margin-top: 12px; }

.anfordern-form label { display: block; font-weight: 700; }

.anfordern-form input {
  display: block;
  width: 100%;
  margin: 6px 0 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--linie);
  border-radius: 12px;
  font: inherit;
  font-size: 17px;
  color: var(--braun);
  background: var(--weiss);
}

.anfordern-form input:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px var(--rose-hell); }

.anfordern-form .knopf:disabled { opacity: 0.7; cursor: wait; }

.anfordern .klein { margin-top: 14px; }

.anfordern-kontakt a { color: var(--altrosa-tief); }

.feld-fehler { color: #9b2c2c; font-weight: 700; margin: -4px 0 12px; }

.feld-fehler:empty { display: none; }

.umbruch { overflow-wrap: anywhere; }

/* ── Ende ─────────────────────────────────────────────────────────────── */
.stand {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--braun-weich);
}

.fuss {
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--braun-weich);
  border-top: 1px solid var(--linie);
  background: var(--creme);
}

.fuss-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }

.fuss-links a { color: var(--braun-weich); padding: 6px 0; }

.fuss-gruss { margin-top: 8px; font-family: var(--titel); font-style: italic; }

.meldung {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--braun);
  color: var(--weiss);
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
}

.meldung-sichtbar { opacity: 1; transform: translate(-50%, 0); }

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

/* sanftes Erscheinen */
.erscheinen { animation: hoch 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.erscheinen:nth-child(2) { animation-delay: 0.05s; }
.erscheinen:nth-child(3) { animation-delay: 0.1s; }
.erscheinen:nth-child(4) { animation-delay: 0.15s; }
.erscheinen:nth-child(5) { animation-delay: 0.2s; }
.erscheinen:nth-child(n+6) { animation-delay: 0.25s; }

@keyframes hoch {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 600px) {
  .inhalt { padding-top: 32px; }
  .held { padding: 28px 28px 30px; }
}

/* ── Office-Seite ─────────────────────────────────────────────────────── */
.admin-form label { display: block; font-weight: 700; margin-top: 14px; }

.admin-form input, .nachricht {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--linie);
  border-radius: 12px;
  font: inherit;
  color: var(--braun);
  background: var(--weiss);
}

.admin-form input:focus, .nachricht:focus { border-color: var(--rose); outline: none; }

.nachricht { min-height: 230px; resize: vertical; font-size: 15px; line-height: 1.45; }

pre.nachricht { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 0; }

.admin-liste { margin: 10px 0 0; padding-left: 20px; }

.warnung { color: #9b2c2c; font-weight: 700; }

/* Beim Aktualisieren nicht nochmal einblenden (kein Flackern) */
.ruhig .erscheinen { animation: none; }
