/* =========================
   Elligma – styles.css (voll)
   ========================= */

:root{
  --bg: #090a0f;
  --card: rgba(255,255,255,0.05);
  --card-hover: rgba(255,255,255,0.10);
  --line: rgba(255,255,255,0.12);
  --ink: #ffffff;
  --muted: rgba(255,255,255,0.78);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  height: 100%; width: 100%;
  background: var(--bg); color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hintergrund-Canvas (Sternfeld) */
#bg{
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: block;
  z-index: 0;
  background: var(--bg);
}

/* Hauptinhalt */
.content{
  position: relative;
  z-index: 5;               /* über dem Canvas */
  text-align: center;
  padding: 4rem 1rem 6rem;
}

.site-header h1{
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 .3em;
  letter-spacing: 1px;
}

.subtitle{
  font-weight: 300;
  font-size: 1.1rem;
  opacity: .75;
  margin-bottom: 1.6rem;
}

/* Link zurück zum Elliverse */
.back-elliverse{
  display: inline-block;
  margin-top: 1rem;
  font-size: .9rem;
  color: #fff;
  opacity: .7;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.3);
  transition: opacity .25s ease;
}
.back-elliverse:hover{ opacity: 1; }

/* =========================
   Tage – vertikale Liste
   ========================= */
.day-list{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
}

.day-card{
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: background .3s ease, border-color .3s ease, transform .15s ease;
  cursor: pointer;
  outline: none;
}
.day-card:hover{
  background: var(--card-hover);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.day-card:focus-visible{
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.day-card h3{
  margin: 0 0 .35rem;
  font-size: 1rem;
  letter-spacing: .5px;
}
.day-card p{
  margin: 0;
  opacity: .8;
  font-weight: 300;
}

/* =========================
   Hints-Ansicht
   ========================= */
.toolbar{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.pill{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: .45rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.pill:hover{
  transform: translateY(-1px);
  background: var(--card-hover);
  border-color: rgba(255,255,255,.22);
}

.day-title{
  margin: 0;
  font-size: 1.05rem;
  opacity: .85;
}

.hint-list{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.hint{
  position: relative;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  transition: background .3s ease, border-color .3s ease, transform .15s ease;
}
.hint:hover{
  background: var(--card-hover);
  border-color: rgba(255,255,255,.2);
}
.hint h2{
  margin: 0 0 .35rem;
  font-size: .95rem;
  letter-spacing: .6px;
  opacity: .85;
}
.hint .teaser,
.hint .content{
  margin: 0;
  font-weight: 300;
}

/* Schloss-Button */
.lock{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: .25rem .55rem;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  transition: transform .1s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.lock:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
}
.lock[aria-pressed="true"]{ opacity: .95; }

/* Zustände – Anzeige logik */
.hint.locked .content{ display: none; }
.hint.locked .teaser { display: block; opacity: .9; }

.hint.unlocked .content{ display: block; animation: fadeIn .25s ease both; }
.hint.unlocked .teaser { display: none; }

@keyframes fadeIn{
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sichtbarkeiten je nach Modus (Liste vs. Hints) */
body.mode-list  #hints-view { display: none; }
body.mode-hints #days-view  { display: none; }

/* Footer */
footer{
  position: fixed;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  opacity: .45;
  z-index: 5;
}
footer a{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.3);
}

