/* tohelp Seiten – Datenschutzabfrage (Karte mittig, Zeichen unten links). Keine Hinweis-Kästchen (Tooltips). */
.th-ds, .th-ds * { box-sizing: border-box; }
.th-ds {
  --ds-blue-light: #003BC5; --ds-blue-mid: #012F98; --ds-blue-dark: #001D6C;
  --ds-gold-h: #FFEDB6; --ds-gold-m: #F5C470; --ds-gold-d: #C47E29;
  --ds-navy: #01227D; --ds-ink: #16213E; --ds-alt: #F4F6FB; --ds-line: #C7D3F5; --ds-an: #5CBE95;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--ds-ink);
}
.th-ds [hidden] { display: none !important; }
html.th-ds-sperre { overflow: hidden; }

.th-ds-dim {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 12px; background: rgba(1, 20, 70, 0.66); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: th-ds-ein .2s ease-out both;
}
.th-ds-dim.th-ds-frei { background: rgba(1, 20, 70, 0.5); }
.th-ds-karte {
  position: relative; width: min(500px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto;
  background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0, 10, 60, 0.5);
  padding: 28px 30px 26px; text-align: center; overscroll-behavior: contain;
}
.th-ds-logo { display: block; height: 62px; width: auto; margin: 0 auto 10px; }
.th-ds-karte h2.th-ds-titel {
  font-weight: 700; font-size: 1.3rem; line-height: 1.25; font-family: inherit; color: var(--ds-navy); margin: 0 0 8px; padding: 0; letter-spacing: -.2px; text-transform: none;
}
.th-ds-karte h2.th-ds-titel:focus { outline: none; }
.th-ds-karte p { margin: 0 0 16px; padding: 0; font-size: .95rem; line-height: 1.5; color: #3C4568; text-align: left; }
.th-ds-karte p.th-ds-mitte { text-align: center; }
.th-ds-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.th-ds .th-ds-b {
  appearance: none; -webkit-appearance: none; font-weight: 700; font-size: .96rem; line-height: 1.2; font-family: inherit; padding: 14px 16px; min-height: 50px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-align: center; text-transform: none; letter-spacing: 0; margin: 0;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.th-ds .th-ds-gold { background: linear-gradient(135deg, var(--ds-gold-h), var(--ds-gold-m) 55%, var(--ds-gold-d)); background-origin: border-box; color: #5A3B10; box-shadow: 0 10px 24px rgba(196, 126, 41, 0.35); }
.th-ds .th-ds-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(196, 126, 41, 0.42); }
.th-ds .th-ds-rand { background: #fff; color: var(--ds-navy); border-color: var(--ds-line); }
.th-ds .th-ds-rand:hover { border-color: var(--ds-blue-mid); }
.th-ds .th-ds-link {
  appearance: none; -webkit-appearance: none; background: none; border: 0; box-shadow: none; color: var(--ds-navy); font-weight: 600; font-size: .92rem; line-height: 1.2; font-family: inherit;
  padding: 12px 8px; margin: 8px 0 0; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.th-ds .th-ds-link:hover { text-decoration: underline; }
.th-ds-recht { margin-top: 12px; font-size: .82rem; color: #5D6685; text-align: center; }
.th-ds-recht a { color: inherit; text-decoration: none; font-weight: 500; }
.th-ds-recht a:hover { color: var(--ds-navy); }
.th-ds-zeilen { text-align: left; margin: 4px 0 16px; display: grid; gap: 12px; }
.th-ds-zeile { display: flex; gap: 14px; align-items: center; background: var(--ds-alt); border-radius: 14px; padding: 14px 16px; }
.th-ds-zt { flex: 1; min-width: 0; }
.th-ds-zt b { display: block; color: var(--ds-navy); font-size: .98rem; line-height: 1.3; }
.th-ds-zt span { display: block; font-size: .86rem; line-height: 1.4; color: #4B5573; }
.th-ds .th-ds-sw {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 54px; height: 32px; min-width: 54px; border-radius: 999px; border: 0; background: #C9D0E4;
  position: relative; cursor: pointer; padding: 0; margin: 0; transition: background .18s;
}
.th-ds .th-ds-sw::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform .18s;
}
.th-ds .th-ds-sw[aria-checked="true"] { background: var(--ds-an); }
.th-ds .th-ds-sw[aria-checked="true"]::after { transform: translateX(22px); }
.th-ds .th-ds-sw:disabled { cursor: default; opacity: .8; }
.th-ds .th-ds-x {
  appearance: none; -webkit-appearance: none; position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; margin: 0;
  background: var(--ds-alt); color: var(--ds-navy); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.th-ds .th-ds-x:hover { background: #E3E9FA; }
.th-ds .th-ds-x svg { width: 16px; height: 16px; }

.th-ds .th-ds-zeichen {
  appearance: none; -webkit-appearance: none; position: fixed; left: 18px; bottom: 18px; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 99990; width: 46px; height: 46px; padding: 0; margin: 0; border-radius: 50%; border: 0; background: var(--ds-navy);
  box-shadow: 0 8px 22px rgba(1, 34, 125, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center;
  animation: th-ds-zeichen .25s ease-out both;
}
.th-ds .th-ds-zeichen:hover { background: var(--ds-blue-mid); }
.th-ds .th-ds-zeichen svg { width: 24px; height: 24px; }
.th-ds :focus-visible { outline: 3px solid var(--ds-gold-m); outline-offset: 2px; }
.th-ds .th-ds-gold:focus-visible, .th-ds .th-ds-rand:focus-visible, .th-ds .th-ds-sw:focus-visible { outline-color: var(--ds-navy); }
.th-ds .th-ds-zeichen:focus-visible { outline-color: var(--ds-gold-m); outline-offset: 3px; }
.th-ds .th-ds-nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes th-ds-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes th-ds-zeichen { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .th-ds-karte { padding: 24px 18px 20px; }
  .th-ds-knoepfe { grid-template-columns: 1fr; }
  .th-ds-logo { height: 54px; }
}
@media (max-height: 560px) {
  .th-ds-logo { height: 40px; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .th-ds-dim, .th-ds .th-ds-zeichen { animation: none; }
  .th-ds .th-ds-b, .th-ds .th-ds-sw, .th-ds .th-ds-sw::after { transition: none; }
}
@media (forced-colors: active) {
  .th-ds-karte { border: 2px solid CanvasText; }
  .th-ds .th-ds-b, .th-ds .th-ds-x, .th-ds .th-ds-zeichen, .th-ds .th-ds-sw { border: 2px solid ButtonText; }
  .th-ds .th-ds-sw[aria-checked="true"] { background: Highlight; }
  .th-ds .th-ds-sw::after { background: ButtonText; box-shadow: none; }
  .th-ds .th-ds-sw[aria-checked="true"]::after { background: HighlightText; }
  .th-ds .th-ds-zeichen svg { stroke: ButtonText; }
}
@media print { .th-ds { display: none !important; } }
