@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(ubuntu-300.woff2) format("woff2");
}
@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(ubuntu-400.woff2) format("woff2");
}
@font-face {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(ubuntu-700.woff2) format("woff2");
}

/* Farben aus dem Logo entnommen: tiefes Rot, Gold, Schwarz. */
:root {
  --rot: #58110c;
  --rot-hell: #7c2318;
  --gold: #bb9440;
  --schwarz: #131010;
  --text: #292420;
  --text-leise: #6b625c;
  --linie: #e3dcd6;
  --flaeche: #faf7f4;
  --spalte: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Ubuntu, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Grundelemente ---------- */

a {
  color: var(--rot);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rot-hell);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

/* ---------- Kopfbereich ---------- */

/* Der Farbverlauf nimmt den Glitzerstaub des Original-Banners auf, ohne die
   Lilie ein zweites Mal zu zeigen. Die steht schon im Logo. */
.site-header {
  background:
    radial-gradient(circle at 50% 38%, #6d1a0e 0%, #3a0c06 42%, #150b09 78%, #0d0706 100%);
  text-align: center;
  padding: 2.25rem 1rem 1.75rem;
}

.brand {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  display: block;
  margin: 0 auto 0.6rem;
  width: 185px;
  height: auto;
}

/* Der Schriftzug steckt bereits im Logo. Der Text bleibt fuer Vorleseprogramme
   und Suchmaschinen erhalten, ohne ihn doppelt anzuzeigen. */
.brand-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #f0dcc6;
}

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--rot);
  border-bottom: 3px solid var(--gold);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: #fbeeea;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* ---------- Inhalt ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 2.5rem 1.15rem 3rem;
}

.page-title {
  margin: 0 0 1.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--schwarz);
}

.page-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--gold);
}

.page h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--schwarz);
}

.page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.page p {
  margin: 0 0 1.1rem;
}

.page ul,
.page ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.page li {
  margin-bottom: 0.35rem;
}

/* ---------- Weiter-Buttons ---------- */

.btn-row {
  margin: 2rem 0 0.5rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.9rem;
  background: var(--rot);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.btn:hover {
  background: var(--rot-hell);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ---------- Tipp-Akkordeon ---------- */

.tips {
  margin: 2rem 0;
  border: 1px solid var(--linie);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--flaeche);
}

.tips details + details {
  border-top: 1px solid var(--linie);
}

.tips summary {
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.tips summary::-webkit-details-marker {
  display: none;
}

.tips summary::before {
  content: "\25B8";
  display: inline-block;
  width: 1.1em;
  color: var(--gold);
  transition: transform 0.15s;
}

.tips details[open] > summary::before {
  transform: rotate(90deg);
}

.tips details[open] > summary {
  color: var(--rot);
}

.tips .tips-body {
  padding: 0 1rem 0.75rem 2.1rem;
}

.tips .tips-body > :last-child {
  margin-bottom: 0;
}

/* ---------- Chiffre auf der Anzeigetafel ---------- */

/* Auf schmalen Anzeigen scrollt die Tafel seitlich, statt die Zeichenfolgen
   umzubrechen. Ein Umbruch mitten in einer Gruppe wuerde das Raetsel zerstoeren. */
.cipher-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cipher {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-family: ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.cipher td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--linie);
  white-space: nowrap;
}

.cipher tr:first-child td {
  font-family: Ubuntu, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--rot);
  border-bottom: 2px solid var(--rot);
}

/* ---------- Getraenkekarten ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--linie);
  border-top: 3px solid var(--rot);
  border-radius: 6px;
  background: var(--flaeche);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
  fill: var(--gold);
}

/* ---------- Passwortsperre ---------- */

.gate {
  max-width: 26rem;
  margin: 2rem auto;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--linie);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--flaeche);
  text-align: center;
}

.gate-hint {
  margin: 0 0 1.1rem;
  color: var(--text-leise);
}

.gate-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.gate-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.gate input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  font: inherit;
  text-align: center;
  letter-spacing: 0.15em;
  border: 1px solid #bfb5ad;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.gate button {
  padding: 0.6rem 1.25rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--rot);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.gate button:hover {
  background: var(--rot-hell);
}

.gate-error {
  margin: 1rem 0 0;
  color: var(--rot);
  font-weight: 700;
}

.gate-error[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

/* ---------- Fussbereich ---------- */

.site-footer {
  padding: 2rem 1rem 2.5rem;
  background: var(--schwarz);
  color: #cfc4bc;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  margin: 0 0 0.5rem;
}

.footer-links a {
  color: #f0e4dc;
  margin: 0 0.6rem;
}

.footer-note {
  margin: 0;
  color: #8b807a;
}

/* ---------- Schmale Anzeigen ---------- */

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }

  .site-header {
    padding: 1.75rem 1rem 1.5rem;
  }

  .brand-logo {
    width: 130px;
  }

  .brand-tagline {
    font-size: 0.95rem;
  }

  .page-title {
    font-size: 1.55rem;
  }

  main {
    padding: 2rem 1rem 2.5rem;
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.35rem 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
