/**
 * Sessions/Bestellungen/Konto — der zusammengeführte Zustand von konto.html
 * für Kontomodus (Sitzung) und Zugangsmodus (Zugangslink-Token).
 *
 * Übernommen aus dem von Sam abgenommenen Mockup (Main.dc.html/konto.css,
 * 2026-09-26). Werte (Farben, Radien, Schatten) sind wortgleich mit den
 * Tokens aus assets/verkaufsseite.css — dort als CSS-Variablen, hier direkt
 * übernommen, weil konto.html site.css lädt (eigene, leicht abweichende
 * Variablennamen) statt verkaufsseite.css. Alle neuen Klassen tragen das
 * Präfix "zg-" (Zugriff), damit nichts mit bestehenden site.css-Klassen
 * kollidiert.
 */

.zg-ikon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zg-ikon--voll {
  fill: currentColor;
  stroke: none;
}

/* site.css setzt text-decoration:none nur auf .secondary, nicht auf
   .primary (dort bisher immer ein <button>) — hier stehen beide auch als
   <a> (Rechnung-Download, "Zu den Paketen"). */
#konto-zugriff a.primary,
#sessions-leer a.primary {
  text-decoration: none;
}

/* Kopfzeile: Adresse + Abmelden (Kontomodus / fremder Zugang) oder Anmelden
   (Zugangsmodus ohne Sitzung). Der bestehende "Zurück"-Knopf bleibt daneben
   stehen — er ist Seitenkonvention, das Mockup kennt keine Unterseiten. */
.zg-kopf-adresse {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.zg-kopf-knopf {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

/* Seitenkopf */

.zg-seitenkopf {
  padding: 12px 0 28px;
  text-align: center;
}

.zg-seitenkopf h1 {
  margin: 0 0 8px;
  max-width: none;
}

.eyebrow-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  border-radius: 50%;
  background: #eaa07f;
}

.zg-status {
  margin: 0 !important;
  color: var(--muted);
  font-weight: 700;
}

/* Hinweisband: Zugang sichern / Postfach / fremder Zugang */

.zg-band {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 24px;
  border: 1px solid rgba(78, 122, 94, 0.3);
  border-radius: 22px;
  background: #fbfaf3;
  box-shadow: 0 12px 34px -24px rgba(47, 62, 52, 0.35);
}

.zg-band__ikon {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3c9b3;
  color: #2f3e34;
}

.zg-band__text { flex: 1; }
.zg-band__titel { margin: 0; font-weight: 900; }
.zg-band__satz { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.zg-band .primary, .zg-band .secondary { flex: none; min-width: 210px; width: auto; }

/* Reiter */

.zg-reiter {
  width: 540px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 auto 36px;
  padding: 6px;
  border: 1px solid rgba(78, 122, 94, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.zg-reiter__knopf {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.zg-reiter__knopf:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.zg-reiter__knopf--aktiv, .zg-reiter__knopf--aktiv:hover { background: #2f3e34; color: #ffffff; }

.zg-reiter__zahl {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(78, 122, 94, 0.12);
  color: #3f6b50;
  font-size: 12px;
  font-weight: 900;
}

.zg-reiter__knopf--aktiv .zg-reiter__zahl { background: rgba(255, 255, 255, 0.2); color: #ffffff; }

/* Karten */

.zg-bereich { display: flex; flex-direction: column; gap: 20px; }
.zg-bereich--schmal { max-width: 600px; margin: 0 auto; }
.zg-bereich__kopf { padding: 0 4px; }

.zg-karte {
  padding: 28px;
  border: 1px solid rgba(78, 122, 94, 0.16);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px -24px rgba(47, 62, 52, 0.35);
}

.zg-karte--leise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #fbfaf3;
  box-shadow: none;
}

.zg-karte h2 { margin: 0; }
.zg-karte h3 { margin: 0; }
.zg-karte__unter { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.zg-stapel { display: flex; flex-direction: column; gap: 20px; }
.zg-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.zg-fussnote { padding: 0 4px; color: var(--muted); font-size: 14px; text-align: center; }
.zg-fussnote--links { margin-top: 16px !important; padding: 0; text-align: left; }

/* Archive */

.zg-archiv {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 2px solid rgba(78, 122, 94, 0.3);
  border-radius: 18px;
  background: #fbfaf3;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.zg-archiv:hover { border-color: #4e7a5e; background: #ffffff; }

.zg-archiv__ikon {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4e7a5e;
  color: #ffffff;
}

.zg-archiv__titel { display: block; font-weight: 900; }
.zg-archiv__meta { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }

/* Fassung */

.zg-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 0 4px;
}

.zg-leiste__label { font-weight: 900; }
.zg-leiste__satz { color: var(--muted); font-size: 14px; }

.zg-umschalter {
  width: 320px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(78, 122, 94, 0.3);
  border-radius: 999px;
  background: #ffffff;
}

.zg-umschalter__opt {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.zg-umschalter__opt--aktiv { background: #4e7a5e; color: #ffffff !important; }

.zg-sicherheit { display: flex; align-items: flex-start; gap: 10px; padding: 0 4px; color: var(--muted); font-size: 14px; }
.zg-sicherheit .zg-ikon { margin-top: 2px; }

/* Themenwelten */

.zg-gruppen-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 0 4px; }
.zg-gruppen { display: flex; flex-direction: column; gap: 12px; }

.zg-gruppe { overflow: hidden; border: 1px solid rgba(78, 122, 94, 0.16); border-radius: 22px; background: #ffffff; }

.zg-gruppe__kopf {
  width: 100%;
  min-height: 80px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.zg-gruppe__kopf:hover, .zg-gruppe--offen .zg-gruppe__kopf { background: #fbfaf3; }
.zg-gruppe--offen .zg-gruppe__kopf { border-bottom: 1px solid rgba(78, 122, 94, 0.16); }

/* Nummernkreis — bleibt Rueckfall, wenn eine Themenwelt kein Bild hat oder
   das Bild nicht laedt (assets/konto.js::baueGruppen). */
.zg-gruppe__nr {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(138, 168, 143, 0.24);
  color: #3f6b50;
  font-size: 15px;
  font-weight: 900;
}

/* Sams Befund 2 auf Staging (2026-09-26): Bild der Themenwelt statt Nummer
   — Anmutung wie .category-card auf der Verkaufsseite (assets/verkaufsseite.css),
   eckig-abgerundet statt kreisrund, damit das Foto nicht beschnitten wirkt. */
.zg-gruppe__nr--bild {
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  background: none;
}

.zg-gruppe__bild {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.zg-gruppe__name { display: block; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 560; letter-spacing: -0.01em; line-height: 1.25; }
.zg-gruppe__teaser { display: block; color: var(--muted); font-size: 14px; }
.zg-gruppe__anzahl { padding: 4px 12px; border-radius: 999px; background: rgba(78, 122, 94, 0.1); color: #3f6b50; font-size: 13px; font-weight: 900; white-space: nowrap; }
.zg-gruppe__pfeil { width: 24px; height: 24px; color: #3f6b50; transition: transform 180ms ease; }
.zg-gruppe--offen .zg-gruppe__pfeil { transform: rotate(180deg); }
.zg-gruppe__liste { margin: 0; padding: 0; list-style: none; }

.zg-zeile {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  align-items: center;
  gap: 12px;
  /* 22px Kopf-Innenabstand + 56px Bild-/Nummernspalte + 16px Spaltenabstand
     des .zg-gruppe__kopf-Grids darueber — damit der Titel jeder Zeile genau
     unter dem Namen der Themenwelt beginnt. */
  padding: 10px 22px 10px 94px;
  border-top: 1px solid rgba(78, 122, 94, 0.1);
}

.zg-zeile:first-child { border-top: 0; }
.zg-zeile--spielt { background: #fbfaf3; }
.zg-zeile__titel { display: block; font-weight: 800; line-height: 1.35; }
.zg-zeile__meta { display: block; color: var(--muted); font-size: 14px; }

.zg-fortschritt { display: block; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(78, 122, 94, 0.16); }
.zg-fortschritt span { display: block; width: 0%; height: 100%; background: #4e7a5e; }

.zg-rund {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(78, 122, 94, 0.3);
  border-radius: 50%;
  background: #ffffff;
  color: #2f3e34;
  cursor: pointer;
  text-decoration: none;
}

.zg-rund:hover { border-color: #4e7a5e; }
.zg-rund--play { border-color: #4e7a5e; background: #4e7a5e; color: #ffffff; }

/* Workbook und Studio */

.zg-dazu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.zg-dazu .zg-karte { display: flex; flex-direction: column; gap: 16px; }
.zg-workbook { display: flex; gap: 18px; }
.zg-workbook img { width: 76px; height: auto; align-self: flex-start; border-radius: 6px; box-shadow: 0 10px 24px -14px rgba(47, 62, 52, 0.5); }
.zg-karte__aktionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.zg-karte__aktionen--eins { grid-template-columns: 1fr; }
.zg-karte__aktionen .primary, .zg-karte__aktionen .secondary { width: 100%; }

/* Bestellungen */

.zg-bestellung { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 24px; }
.zg-bestellung__kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.zg-marke { padding: 3px 10px; border-radius: 999px; background: rgba(78, 122, 94, 0.12); color: #3f6b50; font-size: 12px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.zg-marke--grau { background: rgba(95, 109, 98, 0.12); color: #4f5c52; }

.zg-daten { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 40px; margin-top: 14px !important; }
.zg-daten dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.zg-daten dd { margin: 0; font-weight: 800; }
.zg-ohne-rechnung { color: var(--muted); font-size: 14px; text-align: center; }
.zg-bestellung .primary, .zg-bestellung .secondary { width: 100%; }

/* Konto */

.zg-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }

.zg-feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.zg-feld label { font-size: 14px; font-weight: 800; }
.zg-feld input { min-height: 48px; padding: 10px 14px; border: 1.5px solid rgba(78, 122, 94, 0.3); border-radius: 14px; background: #ffffff; font: inherit; color: inherit; }
.zg-formular { margin-top: 18px; }

.zg-eintrag { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 14px 0; border-top: 1px solid rgba(78, 122, 94, 0.12); border-bottom: 1px solid rgba(78, 122, 94, 0.12); }
.zg-eintrag__label { display: block; font-weight: 900; }
.zg-eintrag__wert { display: block; color: var(--muted); font-size: 14px; }

.zg-loeschen-kopf { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.zg-loeschen-kopf .secondary { flex: none; width: auto; }
.zg-loeschen-form { max-width: 420px; margin-top: 20px; }

/* Zugangsmodus: Konto sichern */

.zg-schritte { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; padding: 0; list-style: none; }
.zg-schritt { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 14px; }
.zg-schritt__nr { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2f3e34; color: #ffffff; font-weight: 900; }
.zg-bestaetigt { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(78, 122, 94, 0.1); }
.zg-bestaetigt p { margin: 0; }
.zg-nebenbei { color: var(--muted); text-align: center; }

/* Feinschliff nach der Sichtprüfung: site.css gibt h2 und p Aussenabstände
   mit, die hier Überschrift und Unterzeile auseinanderreissen. */

.zg-bereich__kopf h2,
.zg-gruppen-kopf h2,
.zg-leiste p,
.zg-schritt p { margin: 0; }
.zg-leiste__satz { margin-top: 2px; }
/* Die erste Textzeile steht mittig neben dem 36 px hohen Kreis. */
.zg-schritt p { padding-top: 5px; }

#bestellungen-liste { display: flex; flex-direction: column; gap: 20px; }

/* Sams Befund auf Staging (2026-09-26): "Nach Themenwelt" und "Dazu gehört"
   klebten an der Karte darunter, weil #sessions-inhalt keinen Abstand
   zwischen seinen Teilen hatte. :not([hidden]), damit display:flex das
   hidden-Attribut nicht aushebelt. */
#sessions-inhalt:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }
#sessions-inhalt .zg-gruppen-kopf { margin-top: 20px; }
.zg-bestellung a.primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

/* Sams Befund 1 auf Staging (2026-09-26, Reiter Konto): "Konto löschen"
   klebte am Abmelden-Fenster darüber, weil #konto-tab-sitzung keinen
   Abstand zwischen der Zwei-Spalten-Karte (.zg-zwei) und der Löschen-Karte
   hatte. Gleiches Muster wie #sessions-inhalt oben: :not([hidden]), damit
   display:flex das hidden-Attribut nicht aushebelt. #konto-tab-zugang
   braucht das nicht — es traegt bereits .zg-bereich (gap: 20px, Zeile 161). */
#konto-tab-sitzung:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }
/* Seit dem 26.09.2026 zwei Karten: "Noch keine Session" und darunter
   Trefondo Studio. Gleiches Muster wie oben. */
#sessions-leer:not([hidden]) { display: flex; flex-direction: column; gap: 20px; }

#passkey-leer { margin: 14px 0; font-size: 15px; }
#passkey-hinzufuegen,
#passwort-senden { width: 100%; }

/* Erweiterter Player (Sams Befunde 3+4 vom 26.09.2026: zurueck-/vorspringen,
   Position, Lautstaerke). Eine einzige DOM-Instanz (assets/konto.js,
   baueErweiterterSpieler()) wandert per appendChild() in die jeweils
   spielende .zg-zeile — deshalb keine ID-Regel, sondern eine Klasse.
   grid-column: 1 / -1 laesst sie unter der dreispaltigen Zeile
   (Titel/Play/Download) eine eigene, volle Zeile im Grid bilden. */

.zg-spieler {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(78, 122, 94, 0.16);
}

.zg-spieler__position { display: flex; align-items: center; gap: 12px; }
.zg-spieler__position .zg-schieber { flex: 1; }

.zg-spieler__zeit {
  flex: none;
  min-width: 96px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.zg-spieler__leiste { display: flex; align-items: center; gap: 12px; }

.zg-spieler__lautstaerke { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #3f6b50; }
.zg-spieler__lautstaerke .zg-schieber { flex: 1; max-width: 180px; }
.zg-spieler__lautstaerke-ersatz { color: var(--muted); font-size: 13px; font-weight: 700; }

/* Range-Regler: eigener Track/Daumen statt Browser-Standard. Gruen wie die
   uebrigen aktiven Zustaende der Seite (#4e7a5e, z. B. .zg-rund--play),
   Fokus in Orange (#c26f47, wie der Fokusring der Seite sonst auch). */
.zg-schieber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(78, 122, 94, 0.18);
  cursor: pointer;
}

.zg-schieber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #4e7a5e;
  box-shadow: 0 1px 4px rgba(47, 62, 52, 0.4);
  cursor: pointer;
}

.zg-schieber::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(78, 122, 94, 0.18); }

.zg-schieber::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #4e7a5e;
  box-shadow: 0 1px 4px rgba(47, 62, 52, 0.4);
  cursor: pointer;
}

.zg-schieber:focus-visible { outline: 3px solid #c26f47; outline-offset: 3px; }
.zg-schieber::-moz-focus-outer { border: 0; }

/* Handy, ≤ 640px */

@media (max-width: 640px) {
  .zg-seitenkopf { padding: 8px 0 22px; }
  .zg-band { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 22px; padding: 18px; }
  .zg-band .primary, .zg-band .secondary { width: 100%; min-width: 0; }
  .zg-reiter { width: 100%; margin-bottom: 24px; }
  .zg-reiter__knopf { padding: 0 4px; font-size: 14px; }
  .zg-reiter__zahl { display: none; }
  .zg-karte { padding: 20px; border-radius: 18px; }
  .zg-karte--leise { flex-direction: column; align-items: flex-start; }
  .zg-paar, .zg-dazu, .zg-zwei, .zg-karte__aktionen, .zg-bestellung { grid-template-columns: 1fr; }
  .zg-leiste { flex-direction: column; align-items: stretch; gap: 10px; }
  .zg-umschalter { width: 100%; }
  .zg-gruppe { border-radius: 18px; }
  .zg-gruppe__kopf { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; padding: 14px 16px; }
  .zg-gruppe__nr { width: 44px; height: 44px; font-size: 14px; }
  .zg-gruppe__nr--bild { border-radius: 12px; }
  .zg-gruppe__name { font-size: 18px; }
  .zg-gruppe__anzahl { display: none; }
  .zg-zeile { gap: 10px; padding: 10px 16px; }
  .zg-daten { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  .zg-loeschen-kopf { flex-direction: column; align-items: stretch; }
  .zg-kopf-adresse { display: none; }

  /* Player, Befunde 3+4: Positionsleiste (Regler + Zeiten) oben ueber die
     volle Breite, darunter 15s zurück/vor und Lautstärke — genau Sams
     Vorgabe fuer 390px, .zg-spieler ist auf allen Breiten schon zweizeilig
     aufgebaut, hier nur kompaktere Abstaende. */
  .zg-spieler { gap: 8px; margin-top: 12px; padding-top: 12px; }
  .zg-spieler__zeit { min-width: 80px; font-size: 12px; }
  .zg-spieler__lautstaerke .zg-schieber { max-width: none; }
}
