/* Abendrot – Testseite. Farben und Schrift oben, alles andere darunter. */

@font-face {
  font-family: "Adventor";
  src: url("schrift/texgyreadventor-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nacht: #1d1a38;      /* Hintergrund: Himmel nach Sonnenuntergang */
  --daemmerung: #2a2550; /* Flächen, Inventar-Slots */
  --rand: #423b73;       /* Linien */
  --mond: #f4effa;       /* Text */
  --nebel: #bdb5da;      /* leiser Text */
  --abendrot: #ff6a4d;   /* Hauptaktion, Sorte 1 */
  --glut: #ffb648;       /* Fokus, Sorte 2 */
  --beere: #d0609a;      /* Sorte 3 */

  --kopf: "Adventor", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --breite: 68rem;
  --rand-seite: 1rem;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--mond);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--mond); text-underline-offset: 0.2em; }
a:hover { color: var(--glut); }

:focus-visible {
  outline: 3px solid var(--glut);
  outline-offset: 3px;
  border-radius: 6px;
}

.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand-seite);
}

h1, h2, h3, .marke, .knopf {
  font-family: var(--kopf);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.3rem, 9vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  max-width: 15ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 22ch;
}

h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 0.35rem; }

p { margin: 0 0 1rem; max-width: 60ch; }

.leise { color: var(--nebel); }

/* Kopfzeile */
.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.marke {
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.marke::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--glut) 0 35%, var(--abendrot) 36% 100%);
  vertical-align: 0.02em;
}
.kopf-link { font-size: 0.95rem; }

/* Knöpfe */
.knopf {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--abendrot);
  color: var(--nacht);
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--glut); color: var(--nacht); }

/* Start */
.start {
  display: grid;
  gap: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}
.start .unterzeile { font-size: 1.15rem; color: var(--mond); }
.start .hinweis { font-size: 0.95rem; margin-top: 0.9rem; }

/* Inventar: ein Monat = 30 Tagesbeutel */
.inventar {
  background: var(--daemmerung);
  border: 1px solid var(--rand);
  border-radius: 18px;
  padding: 1rem;
  max-width: 26rem;
}
.inventar-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.inventar-kopf strong { font-family: var(--kopf); font-size: 1rem; }
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
}
.slot {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--nacht);
  border: 1px solid var(--rand);
  display: grid;
  place-items: center;
  position: relative;
}
.slot svg { width: 62%; height: auto; }
.slot.leer { border-style: dashed; background: transparent; }
.slot.leer svg { opacity: 0.18; }
.slot.heute { border: 2px solid var(--glut); box-shadow: 0 0 0 4px rgba(255, 182, 72, 0.18); }
.s1 { color: var(--abendrot); }
.s2 { color: var(--glut); }
.s3 { color: var(--beere); }

.tooltip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: -0.25rem;
  width: 13.5rem;
  z-index: 2;
  color: var(--mond);
  background: #120f26;
  border: 1px solid var(--glut);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 12px 30px rgba(8, 6, 20, 0.6);
}
.tooltip::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 1.1rem;
  width: 12px;
  height: 12px;
  background: #120f26;
  border-left: 1px solid var(--glut);
  border-top: 1px solid var(--glut);
  transform: rotate(45deg);
}
.tooltip h3 { font-size: 1rem; color: var(--glut); margin-bottom: 0.3rem; }
.tooltip ul { margin: 0; padding-left: 1.1rem; }
.inventar-fuss { font-size: 0.92rem; margin: 0.9rem 0 0; color: var(--nebel); }

/* Abschnitte */
.abschnitt { padding-top: 3.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--rand); }

.ablauf { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: schritt; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.ablauf li::before {
  content: counter(schritt);
  font-family: var(--kopf);
  font-size: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--abendrot);
  color: var(--abendrot);
}
.ablauf p { margin: 0; color: var(--nebel); }

.fakten { margin: 1.25rem 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: 60ch; }

/* Reservieren */
.reservieren form { max-width: 34rem; margin-top: 1.5rem; }
fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
legend { font-family: var(--kopf); font-size: 1.1rem; margin-bottom: 0.75rem; }
.angebot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rand);
  border-radius: 14px;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.angebot:has(input:checked) { border-color: var(--abendrot); background: rgba(255, 106, 77, 0.08); }
.angebot input { accent-color: var(--abendrot); width: 1.15rem; height: 1.15rem; margin: 0; }
.angebot .name { font-weight: 600; }
.angebot .preis { font-family: var(--kopf); white-space: nowrap; }
.angebot .info { grid-column: 2 / 4; font-size: 0.9rem; color: var(--nebel); }

label.feld { display: block; font-weight: 600; margin-bottom: 0.4rem; }
input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--mond);
  background: var(--daemmerung);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
input[type="email"]::placeholder { color: #9f98c2; }
.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; font-size: 0.95rem; margin-bottom: 1.25rem; }
.einwilligung input { accent-color: var(--abendrot); width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; }
.unsichtbar { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--glut); display: none; }
.meldung.sichtbar { display: block; }
.meldung.fehler { border-color: var(--abendrot); }
.unter-knopf { font-size: 0.92rem; margin-top: 0.9rem; }

/* Fragen */
details { border-bottom: 1px solid var(--rand); padding: 1rem 0; max-width: 46rem; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: 0.7rem 0 0; color: var(--nebel); }

/* Fuß */
.fuss { border-top: 1px solid var(--rand); padding-top: 2rem; padding-bottom: 3rem; font-size: 0.92rem; color: var(--nebel); }
.fuss nav { display: flex; gap: 1.25rem; margin-bottom: 0.8rem; }

/* Rechtsseiten */
.recht { padding-top: 1rem; padding-bottom: 4rem; }
.recht h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: none; }
.recht h2 { font-size: 1.3rem; margin-top: 2rem; }
.platzhalter { background: rgba(255, 182, 72, 0.12); border: 1px dashed var(--glut); border-radius: 8px; padding: 0 0.3rem; }

@media (min-width: 52rem) {
  :root { --rand-seite: 2rem; }
  .start { grid-template-columns: 1.15fr 1fr; align-items: center; padding-top: 3rem; padding-bottom: 5rem; }
  .inventar { justify-self: end; width: 100%; }
  .ablauf { grid-template-columns: repeat(3, 1fr); }
}

/* Der eine Moment: das Inventar füllt sich beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .slot { animation: auftauchen 0.35s ease-out both; animation-delay: calc(var(--i) * 28ms); }
  .tooltip { animation: einblenden 0.4s ease-out 1s both; }
  @keyframes auftauchen { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
  @keyframes einblenden { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Datenschutzerklärung (Text aus dem Generator) */
.datenschutz { max-width: 48rem; }
.datenschutz p, .datenschutz li { max-width: none; color: var(--nebel); }
.datenschutz h3 { margin-top: 1.25rem; }
.datenschutz ul { padding-left: 1.2rem; }
.datenschutz li { margin-bottom: 0.4rem; }
.datenschutz a { overflow-wrap: anywhere; }
.datenschutz .seal { margin-top: 2rem; font-size: 0.9rem; }
