/* Christmas Overload – gemeinsame Grundlage für alle Seiten (Farben, Kopf, Menü, Fuß, Bausteine) */
:root {
  --c-bg: #15252d;
  --c-bg-top: #35505a;
  --c-surface: #233d44;
  --c-surface-2: #1c323a;
  --c-surface-3: #2c4a51;
  --c-line: #5f7d7c;
  --c-brass: #c9a47a;
  --c-brass-hi: #f0cf95;
  --c-gold: #f7dc9c;
  --c-text: #fff1cf;
  --c-text-2: #d3dfd8;
  --c-text-3: #a9bfb9;
  --c-red: #a54b49;
  --c-red-dark: #8e3f3d;
  --c-red-ink: #fff5e5;
  --c-teal: #2f6262;
  --c-green: #3c6b55;
  --c-shadow: #050c10;
  --radius: 10px;
  --radius-sm: 8px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --tabbar-h: 62px;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--c-bg-top), var(--c-bg) 65%) no-repeat, var(--c-bg);
  line-height: 1.5;
}
a {
  color: var(--c-brass-hi);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--c-brass-hi);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kopf mit Logo und Menü */
[data-site-header] {
  min-height: 64px;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1450px;
  margin: 0 auto;
  padding: 12px 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--c-gold);
  font: 700 22px/1 var(--font-display);
  text-shadow: 2px 2px #823e3a;
  white-space: nowrap;
}
.site-logo img {
  width: 34px;
  height: 34px;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--c-brass);
  border-radius: var(--radius-sm);
  background: linear-gradient(#3a5359, #2c454b);
  box-shadow: inset 0 1px #ffffff1f;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  background: linear-gradient(#46626a, #34525a);
}
.site-nav a[aria-current="page"] {
  background: linear-gradient(#f6dda7, #d9b072);
  border-color: #f8e3b4;
  color: #22343a;
  font-weight: 650;
  box-shadow: inset 0 -2px #b88b52;
}
.site-nav .badge {
  font-size: 12px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.site-tools {
  display: flex;
  gap: 8px;
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--c-brass);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-text-2);
  font-size: 14px;
}
.sound-toggle:hover {
  background: #ffffff12;
}
.sound-toggle[aria-pressed="true"] {
  color: var(--c-gold);
  border-color: var(--c-brass-hi);
  background: #f0cf951a;
}

/* Fuß */
.site-footer {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 22px 16px 28px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
  border-top: 1px solid #ffffff14;
}
.site-footer p {
  margin: 4px 0;
}

/* Tablet: Menü in eine eigene Zeile unter Logo und Werkzeuge */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .site-tools {
    margin-left: auto;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
  }
  .site-nav ul {
    justify-content: center;
  }
}

/* Handy: Menü als Leiste unten im Daumenbereich */
@media (max-width: 760px) {
  [data-site-header] {
    min-height: 52px;
  }
  .site-header {
    padding: 9px 14px;
  }
  .site-logo {
    font-size: 19px;
  }
  .site-logo img {
    width: 28px;
    height: 28px;
  }
  .site-tools {
    margin-left: auto;
  }
  .sound-toggle {
    padding: 6px 10px;
  }
  .sound-toggle .lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-nav {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: #12212899;
    background: color-mix(in srgb, #101f25 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--c-brass);
    box-shadow: 0 -6px 20px #050c1080;
  }
  .site-nav ul {
    gap: 2px;
  }
  .site-nav li {
    flex: 1;
  }
  .site-nav a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: calc(var(--tabbar-h) - 8px);
    padding: 4px 2px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    box-shadow: none;
    font-size: 13px;
    color: var(--c-text-2);
  }
  .site-nav a:hover {
    background: #ffffff0d;
  }
  .site-nav a .ico {
    font-size: 21px;
    line-height: 1.1;
  }
  .site-nav a[aria-current="page"] {
    background: #f0cf951f;
    color: var(--c-gold);
    box-shadow: inset 0 3px var(--c-brass-hi);
  }
  .site-nav .badge {
    position: absolute;
    top: 3px;
    right: 50%;
    margin-right: -26px;
    padding: 2px 4px;
    font-size: 10.5px;
    background: var(--c-red);
    border-color: var(--c-red);
    color: var(--c-red-ink);
  }
  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }
}

/* Bausteine: Knöpfe, Auswahl-Chips, Hinweise */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #f0ba89;
  border-radius: var(--radius-sm);
  background: var(--c-red);
  color: var(--c-red-ink);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover {
  background: var(--c-red-dark);
}
.btn-secondary {
  background: transparent;
  border-color: var(--c-brass);
  color: var(--c-text);
  font-weight: 500;
}
.btn-secondary:hover {
  background: #ffffff12;
}
.chip {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface-3);
  color: var(--c-text);
}
.chip[aria-pressed="true"] {
  border-color: var(--c-brass-hi);
  background: #1b3036;
  color: var(--c-gold);
  box-shadow: inset 0 0 0 1px var(--c-brass-hi);
}
.chip[aria-pressed="true"]::before {
  content: "✓ ";
}
.soon-badge {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--c-brass);
  border-radius: 999px;
  color: var(--c-brass-hi);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.soon-card {
  border: 2px dashed #c9a47a99;
  border-radius: var(--radius);
  background: #1c323acc;
  padding: 16px 18px;
}
.soon-card h3 {
  margin: 8px 0 4px;
  font: 21px var(--font-display);
  color: var(--c-gold);
}
.soon-card p {
  margin: 0;
  color: var(--c-text-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
