/* ============================================================================
   Consent-Layer  ·  09.09.2026

   Eigene Datei, weil der Layer auf DREI verschiedenen Geruesten erscheint:
   der Landingpage, dem App-Layout und der eigenstaendigen Anmeldeseite. Die
   Werte sind bewusst nicht an die `--lp-*`-Variablen der Landingpage
   gebunden -- die gibt es auf den anderen beiden Seiten nicht.

   GESTALTUNG: Eine Leiste am unteren Rand, nicht ein Vorhang ueber der
   Seite. Sie soll die Entscheidung sichtbar machen, ohne den Inhalt
   wegzunehmen -- wer nichts entscheidet, kann die Seite trotzdem lesen.
   ============================================================================ */

.ct-schicht {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1080;                 /* ueber Bootstrap-Modalen (1055) */
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;          /* nur die Karte faengt Klicks */
}

.ct-karte {
  pointer-events: auto;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;              /* auf kleinen Geraeten scrollt der Dialog,
                                    damit kein Knopf abgeschnitten wird */
  background: #ffffff;
  color: #111827;
  border: 1px solid #DFE6F0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, .28);
  padding: 22px;
  font-size: 16px;
  line-height: 1.55;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ct-titel {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.ct-text { margin: 0 0 18px; color: #4B5563; }

.ct-form { display: block; }

/* --- Zweite Ebene ------------------------------------------------------- */
.ct-details { margin: 0 0 16px; }
.ct-summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* Touch-Ziel */
  padding: 0 4px;
  font-weight: 600;
  color: #075FBD;
  cursor: pointer;
}
.ct-summary::-webkit-details-marker { display: none; }
.ct-summary::before {
  content: "";
  width: 9px; height: 9px;
  margin-right: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .16s ease;
}
.ct-details[open] .ct-summary::before { transform: rotate(45deg); }

.ct-liste {
  margin: 6px 0 16px;
  border: 1px solid #DFE6F0;
  border-radius: 12px;
  padding: 4px 16px;
  background: #F7F9FC;
}
.ct-kat { padding: 16px 0; border-bottom: 1px solid #DFE6F0; }
.ct-kat:last-of-type { border-bottom: 0; }
.ct-kat__kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ct-schalter { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.ct-schalter input { width: 20px; height: 20px; }
.ct-kat__titel { font-weight: 700; }
.ct-immer {
  font-size: 13px;
  color: #4B5563;
  background: #E8F2FF;
  border-radius: 999px;
  padding: 3px 10px;
}
.ct-kat__text { margin: 4px 0 10px; color: #4B5563; font-size: 15px; }

.ct-dienste { margin: 0; padding-left: 18px; font-size: 14.5px; color: #4B5563; }
.ct-dienste li { margin-bottom: 10px; }
.ct-dienst__meta { color: #6B7280; font-size: 13.5px; }

.ct-hinweis {
  margin: 4px 0 16px;
  font-size: 14px;
  color: #4B5563;
  border-left: 3px solid #FFB020;
  padding-left: 12px;
}

/* --- Knoepfe ------------------------------------------------------------
   "Nur notwendige" und "Alle akzeptieren" haben dieselbe Groesse, dieselbe
   Schrift und stehen nebeneinander. Nur die Flaeche unterscheidet sie --
   nicht die Erreichbarkeit. */
.ct-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-btn {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid #C3D0E2;
  background: #ffffff;
  color: #111827;
}
.ct-btn--voll { background: #075FBD; border-color: #075FBD; color: #ffffff; }
.ct-btn--voll:hover { background: #0A4E9B; border-color: #0A4E9B; }
.ct-btn--rand:hover { background: #EDF2F9; }
.ct-details .ct-btn { flex: 0 0 auto; margin-bottom: 16px; }

.ct-schicht :focus-visible,
.ct-seite :focus-visible {
  outline: 3px solid #075FBD;
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 560px) {
  .ct-schicht { padding: 10px; }
  .ct-karte { padding: 18px; border-radius: 14px; }
  .ct-aktionen { flex-direction: column; }
  .ct-btn { flex: 1 1 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-summary::before { transition: none; }
}

/* ============================================================================
   Die eigene Seite unter /cookie-einstellungen
   ============================================================================ */
.ct-seite {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               Roboto, "Helvetica Neue", Arial, sans-serif;
}
.ct-seite h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; letter-spacing: -.02em; }
.ct-seite .ct-stand {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #E8F2FF;
  border-radius: 12px;
  font-size: 15px;
}
.ct-seite .ct-weiter { margin-top: 26px; font-size: 15px; color: #3f4a5a; }
.ct-seite .ct-weiter a { color: #075FBD; font-weight: 600; }
.ct-seite .ct-zurueck { display: inline-block; margin-top: 22px; font-weight: 600; color: #075FBD; }

/* Informationsdarstellung ohne Bedienelemente -- fuer den Fall, dass es
   nichts zu entscheiden gibt. Bewusst eine Definitionsliste: Es ist eine
   Auskunft, kein Formular. */
.ct-h2 { font-size: 19px; margin: 26px 0 10px; letter-spacing: -.01em; }
.ct-info {
  margin: 0 0 20px;
  border: 1px solid #DFE6F0;
  border-radius: 12px;
  background: #F7F9FC;
  padding: 6px 18px 14px;
}
.ct-info dt { font-weight: 700; margin-top: 14px; }
.ct-info dd { margin: 4px 0 0; color: #4B5563; font-size: 15px; }
