/* Shared website pieces (owner requests 2026-11-03): language picker, consent banner and the
   footer's "Cookie-Einstellungen" button. Same tokens as the landing page; values are repeated
   here so the file works on every page (landing, support, privacy, imprint). */
/* Language menu (lang-menu.js): pill button + listbox, same look on the website and in the web app. */
.lang-menu { position: relative; display: inline-flex; font-family: inherit; }
.lang-button {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: .9rem; font-weight: 600; line-height: 1; white-space: nowrap;
  color: #f4f0fa; background: rgba(39, 24, 57, .72);
  border: 1px solid rgba(244, 240, 250, .18); border-radius: 999px;
  padding: 7px 11px 7px 9px; min-height: 36px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .15s, background-color .15s;
}
.lang-button:hover, .lang-menu.open .lang-button { border-color: #ffc93c; background: rgba(39, 24, 57, .95); }
.lang-button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-button > svg:first-child { color: #ffc93c; }
.lang-chevron { color: #a99cc2; transition: transform .15s; }
.lang-menu.open .lang-chevron { transform: rotate(180deg); }
.lang-code {
  display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 4px; box-sizing: border-box;
  border-radius: 6px; background: #ffc93c; color: #1b1026; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
}
.lang-menu.compact .lang-button .lang-name { display: none; }
@media (max-width: 380px) { .lang-button .lang-name { display: none; } }
.lang-list {
  position: absolute; z-index: 60; top: calc(100% + 6px); right: 0; min-width: 176px;
  margin: 0; padding: 6px; list-style: none;
  background: #271839; color: #f4f0fa;
  border: 1px solid rgba(244, 240, 250, .2); border-radius: 14px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .8);
  animation: lang-pop .14s ease-out;
}
.lang-list:focus { outline: none; }
.lang-list:focus-visible { outline: 2px solid #ffc93c; outline-offset: 2px; }
.lang-list [role="option"] {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  font-size: .95rem; font-weight: 500; cursor: pointer; text-align: left;
}
.lang-list [role="option"] .lang-code { background: rgba(244, 240, 250, .1); color: #f4f0fa; }
.lang-list [role="option"].active { background: rgba(255, 201, 60, .14); }
.lang-list [role="option"][aria-selected="true"] .lang-code { background: #ffc93c; color: #1b1026; }
.lang-list .lang-name { flex: 1; }
.lang-check { width: 16px; height: 16px; fill: none; stroke: #ffc93c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang-list [aria-selected="true"] .lang-check { visibility: visible; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lang-list { animation: none; } .lang-chevron { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sub.small { font-size: .9rem; margin: 14px 0 0; }

/* Footer link that reopens the banner: looks like the footer's links. */
.consent-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.consent-open:hover { color: #ffc93c; }

/* Consent banner: not modal, fixed at the bottom; the page gets matching bottom padding so the
   footer stays reachable. Both choices look the same (no nudging). */
.consent {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  margin: 0 auto; max-width: 760px; max-height: min(70vh, 520px); overflow-y: auto;
  box-sizing: border-box; padding: 18px 20px;
  background: #271839; color: #f4f0fa;
  border: 1px solid rgba(244, 240, 250, .22); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
  font-family: inherit; font-size: .95rem; line-height: 1.5;
}
.consent h2 { font-family: inherit; font-size: 1.05rem; font-weight: 700; font-stretch: 100%; font-variation-settings: normal; text-transform: none; color: #f4f0fa; margin: 0 0 6px; letter-spacing: 0; line-height: 1.3; position: static; }
.consent p { margin: 0 0 8px; color: #d9d1e8; max-width: none; }
.consent .consent-current { color: #a99cc2; font-size: .85rem; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 12px; }
.consent-actions button {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  flex: 1 1 160px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: #ffc93c; color: #1b1026; border: 1px solid #ffc93c;
}
.consent-actions button:hover { filter: brightness(1.06); }
.consent-actions button[aria-pressed="true"] { outline: 2px solid #f4f0fa; outline-offset: 2px; }
.consent-actions a { color: #ffc93c; font-size: .9rem; flex: 1 0 100%; }
.consent :focus-visible { outline: 2px solid #f4f0fa; outline-offset: 3px; }
@media (max-width: 480px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 14px; font-size: .85rem; line-height: 1.45; }
  .consent h2 { font-size: .98rem; }
  .consent p { margin-bottom: 6px; }
  .consent-actions { gap: 8px; margin-top: 10px; }
  .consent-actions button { flex: 1 1 120px; min-height: 42px; padding: 8px 12px; font-size: .9rem; }
}
@media (min-width: 640px) {
  .consent { padding: 20px 24px; }
  .consent-actions a { flex: 0 1 auto; }
}
@media print { .consent, .lang-menu, .consent-open { display: none !important; } }
/* The menu sits at the right end of its row, so its list (anchored right) stays on screen. */
.topbar .lang-menu, .site-head .lang-menu { margin-left: auto; }
