/* DeQr Startseite (Stufe 5, 07-startseite). Ergänzt dq.css (06). Glas-Optik, hell.
   Die Seite passt immer auf einen Bildschirm: kein Scrollen, kein Wischen, kein Doppeltipp-Zoom. */
html { height: 100%; touch-action: manipulation; overscroll-behavior: none; background: #E9EEF6; }
body.st-body {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  /* Hintergrund mit weichen Lichtflecken in den Logo-Farben, damit das Glas wirkt */
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(43, 76, 126, 0.30), transparent 70%),
    radial-gradient(55% 40% at 100% 18%, rgba(212, 175, 55, 0.28), transparent 70%),
    radial-gradient(70% 50% at 85% 100%, rgba(30, 122, 76, 0.16), transparent 70%),
    radial-gradient(60% 45% at 5% 95%, rgba(90, 71, 133, 0.20), transparent 70%),
    linear-gradient(160deg, #F4F7FB 0%, #E4EAF3 100%);
}

/* Glas: halbdurchsichtig, unscharfer Hintergrund, feine helle Kante, weicher Schatten */
.st-glas {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px rgba(31, 58, 99, 0.14),
    0 2px 6px rgba(31, 58, 99, 0.08);
}

.st-seite {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
    14px calc(16px + env(safe-area-inset-left));
}

/* Kopf: Logo links, Registrieren/Anmelden rechts */
.st-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
/* Quadratisches Logo links oben, ohne Rahmen, 80 px (Wunsch Sebastian 18.10.2026), gepflegt im Admin unter Logos */
.st-marke { display: inline-flex; align-items: center; min-height: 44px; }
.st-marke img { display: block; width: 80px; height: 80px; object-fit: contain; }
.st-kopf-rechts { display: flex; align-items: center; gap: 8px; }
.st-kopfknopf {
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--dq-kopf);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(31, 58, 99, 0.12);
}
.st-kopfknopf-voll {
  color: #FFFFFF;
  background: linear-gradient(180deg, #34588F 0%, #2B4C7E 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(43, 76, 126, 0.35);
}
.st-kopfknopf[hidden] { display: none; }

/* Begrüßung */
.st-hallo {
  flex-shrink: 0;
  border-radius: 22px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.st-bild {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #D4AF37;
  box-sizing: border-box;
  background: linear-gradient(180deg, #27477A 0%, #1F3A63 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(31, 58, 99, 0.25);
}
.st-bild.st-bild-person { background: linear-gradient(180deg, #34588F 0%, #2B4C7E 100%); }
.st-bild img { display: block; width: 42px; height: auto; }
.st-bild[hidden] { display: none; }
.st-hallo-text { min-width: 0; }
.st-oberzeile {
  margin: 0;
  color: #7A5C0E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.st-hallo h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  color: var(--dq-kopf);
  overflow-wrap: anywhere;
}

/* Kacheln: Raster 2×2, füllen den restlichen Platz; Überschrift mittig und groß */
.st-kacheln {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.st-kachel {
  --farbe: #2B4C7E;
  --schein: rgba(43, 76, 126, 0.16);
  appearance: none;
  font: inherit;
  color: var(--dq-text);
  min-height: 0;
  border-radius: 24px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--schein), transparent 65%),
    rgba(255, 255, 255, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.st-kachel:active {
  transform: scale(0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 16px rgba(31, 58, 99, 0.14);
}
.st-bereich-tools { --farbe: #2B4C7E; --schein: rgba(43, 76, 126, 0.18); }
.st-bereich-spiele { --farbe: #1E7A4C; --schein: rgba(30, 122, 76, 0.18); }
.st-bereich-business { --farbe: #5A4785; --schein: rgba(90, 71, 133, 0.18); }
.st-bereich-profil { --farbe: #1F3A63; --schein: rgba(212, 175, 55, 0.24); }
.st-kachel-name {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.3px;
  color: var(--farbe);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(31, 58, 99, 0.22);
}
.st-kachel-strich {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #D4AF37, #E8CD6F);
  box-shadow: 0 1px 4px rgba(212, 175, 55, 0.5);
}
.st-kachel-unter { color: var(--dq-text-leise); font-size: 14px; line-height: 1.3; max-width: 14em; }

/* Fußzeile: abgesetzter, dunklerer Streifen über die ganze Breite */
.st-fuss {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  /* dunkler Streifen wie bei Kontaktwerk */
  background: #16213A;
  color: #DDE4F0;
  box-shadow: 0 -8px 24px rgba(20, 30, 50, 0.18);
}
.st-fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.st-fuss a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}
.st-copy { margin: 0; font-size: 12px; color: #B9C4D8; }

/* Pop-up */
.st-fenster {
  --farbe: #2B4C7E;
  width: min(100vw - 32px, 440px);
  max-height: 80dvh;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px rgba(20, 30, 50, 0.30);
  color: var(--dq-text);
  overflow: hidden;
  flex-direction: column;
}
.st-fenster[open] { display: flex; }
.st-fenster::backdrop {
  background: rgba(20, 30, 50, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.st-fenster.st-bereich-tools { --farbe: #2B4C7E; }
.st-fenster.st-bereich-spiele { --farbe: #1E7A4C; }
.st-fenster.st-bereich-business { --farbe: #5A4785; }
.st-fenster.st-bereich-profil { --farbe: #1F3A63; }
.st-fenster-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 12px 14px 20px;
  border-bottom: 1px solid rgba(31, 58, 99, 0.12);
  flex-shrink: 0;
}
.st-fenster-titel { flex-grow: 1; min-width: 0; }
.st-fenster-titel h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--farbe);
  text-shadow: 0 2px 8px rgba(31, 58, 99, 0.15);
}
.st-fenster-titel h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #D4AF37, #E8CD6F);
}
.st-fenster-titel p { margin: 6px 0 0; color: var(--dq-text-leise); font-size: 14px; }
.st-zu {
  appearance: none;
  border: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(31, 58, 99, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.st-zu svg { width: 20px; height: 20px; fill: none; stroke: var(--dq-text); stroke-width: 2.2; stroke-linecap: round; }

.st-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.st-eintrag {
  appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(31, 58, 99, 0.08);
  color: var(--dq-text);
  text-decoration: none;
  min-height: 60px;
  box-sizing: border-box;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.st-eintrag:active { background: rgba(31, 58, 99, 0.06); }
.st-eintrag-text { display: flex; flex-direction: column; min-width: 0; }
.st-eintrag-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-eintrag-unter { color: var(--dq-text-leise); font-size: 14px; }
.st-eintrag-pfeil { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--dq-text-leise); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-eintrag-rot { color: var(--dq-kritisch); font-weight: 600; }
.st-eintrag-aus { cursor: default; }
.st-eintrag-aus .st-eintrag-name { color: var(--dq-text-leise); }
.st-marke-klein {
  font-size: 12px;
  font-weight: 600;
  color: var(--dq-kopf);
  border: 1px solid rgba(31, 58, 99, 0.5);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 1.5;
}
.st-leer { padding: 22px 20px; color: var(--dq-text-leise); }
.st-fenster-fuss { margin: 0; padding: 12px 20px 16px; color: var(--dq-text-leise); font-size: 14px; background: rgba(31, 58, 99, 0.05); }
.st-fenster-fuss[hidden] { display: none; }
.st-fenster-knoepfe { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.st-fenster-knoepfe p { margin: 0 0 4px; color: var(--dq-text-leise); }
.st-knopf {
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #34588F 0%, #2B4C7E 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 16px rgba(43, 76, 126, 0.3);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.st-knopf-rand { background: rgba(255, 255, 255, 0.7); color: var(--dq-bereich); border: 1px solid rgba(43, 76, 126, 0.4); box-shadow: none; }

/* Cookie-Hinweis im gleichen Glas-Stil */
.dq-hinweis-popup {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 30, 50, 0.22);
}

.st-ohne-js { position: fixed; inset: auto 16px 16px; background: #FFFFFF; padding: 12px; border-radius: 12px; }

/* Ohne Glas-Unterstützung: deckend weiß */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .st-glas, .st-kopfknopf, .st-fenster { background-color: rgba(255, 255, 255, 0.92); }
}

/* Kleine Bildschirme (z. B. iPhone SE mit Leisten): enger, Untertitel weg */
@media (max-height: 640px) {
  .st-seite { gap: 10px; }
  .st-hallo { padding: 10px 14px; }
  .st-bild { width: 44px; height: 44px; font-size: 19px; }
  .st-copy { display: none; }
  .st-bild img { width: 34px; }
  .st-hallo h1 { font-size: 20px; }
  .st-kachel-name { font-size: 23px; }
  .st-kachel-unter { display: none; }
}
@media (max-width: 360px) {
  .st-kopfknopf { padding: 0 10px; font-size: 13px; }
}

/* Neue Rechtstexte (18.10.2026): roter Punkt an der Kachel Profil, Hinweis-Eintrag im Profil-Pop-up */
.st-punkt {
  position: absolute; top: 12px; right: 12px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #B42318; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(180, 35, 24, 0.45);
}
.st-punkt[hidden] { display: none; }
.st-eintrag-hinweis { background: #FDF0EF; }
.st-eintrag-hinweis .st-eintrag-name { color: #B42318; }

/* Ordner, Detail und Anmelde-Pop-up (12.11.2026) */
.st-zu.st-zurueck[hidden] { display: none; }
.st-zurueck svg { stroke-linejoin: round; }
.st-fenster-kopf:has(.st-zurueck:not([hidden])) { padding-left: 12px; gap: 10px; }
.st-ordner-icon { width: 24px; height: 24px; flex-shrink: 0; fill: rgba(212, 175, 55, 0.35); stroke: #8A6A12; stroke-width: 1.6; stroke-linejoin: round; }
.st-eintrag-ordner .st-eintrag-name span { font-weight: 700; }
.st-ordner-anzahl {
  margin-left: auto;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.22);
  color: #6B4E00;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st-detail { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.st-detail-marken { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.st-detail-text { margin: 0; white-space: pre-line; line-height: 1.5; font-size: 15.5px; color: var(--dq-text); overflow-wrap: anywhere; }
.st-detail-knoepfe { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.st-konto-satz { color: var(--dq-text) !important; font-weight: 600; }
.st-vorteile { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-vorteile li { display: flex; align-items: flex-start; gap: 8px; color: var(--dq-text); font-size: 15px; line-height: 1.35; }
.st-haken { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: #1E7A4C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-knopf-leise { background: none; color: var(--dq-text-leise); border: 0; box-shadow: none; font: inherit; font-weight: 600; cursor: pointer; }
.st-fenster.st-fenster-hoch { max-height: 94dvh; }
.st-konto { gap: 8px; padding: 14px 20px 14px; }
.st-konto .st-vorteile { gap: 6px; margin-bottom: 4px; }
.st-konto .st-knopf-leise { min-height: 40px; }
.st-konto-weiter { margin: 0 !important; text-align: center; font-size: 13px; }
@media (max-height: 640px) {
  .st-fenster-hoch .st-fenster-titel p { display: none; }
  .st-konto { gap: 6px; padding-top: 10px; }
  .st-konto .st-vorteile li { font-size: 13.5px; line-height: 1.3; }
  .st-konto .st-knopf { min-height: 42px; }
  .st-konto-satz { font-size: 14.5px; }
}
