@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
  --bg: #180f2e;
  --bg-alt: #241a3d;
  --card: #fff6e6;
  --ink: #241a3d;
  --ink-soft: #4a3a72;
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --teal: #3fe0c5;
  --purple: #6c4fd6;
  --line: #3a2a5c;

  --font-pixel: 'Press Start 2P', monospace;
  --font-heading: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--card);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Starfield ---------- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---------- Layout shell ---------- */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ---------- Header / logo ---------- */
.site-header {
  text-align: center;
  margin-bottom: 28px;
}
.logo {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--pink);
  display: inline-block;
  margin: 0 0 6px;
}
.tagline {
  font-family: var(--font-heading);
  color: var(--teal);
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

/* ---------- Cassette nav ---------- */
nav.tape-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}
.tape-tab {
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  padding: 10px 18px;
  border-radius: 10px 10px 4px 4px;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--purple);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}
.tape-tab::before {
  content: "";
  position: absolute;
  top: -3px; left: 12px; right: 12px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px);
  border-radius: 4px 4px 0 0;
}
.tape-tab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--purple);
}
.tape-tab.active {
  background: var(--yellow);
  border-color: var(--ink);
}
.tape-tab.tab-pink { box-shadow-color: var(--pink); }
.tape-tab.tab-pink:hover { box-shadow: 6px 6px 0 var(--pink); }
.tape-tab.tab-teal:hover { box-shadow: 6px 6px 0 var(--teal); }
.tape-tab.tab-yellow:hover { box-shadow: 6px 6px 0 var(--yellow); }

/* ---------- Cards / notes ---------- */
.note-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 26px 28px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--purple);
  margin-bottom: 32px;
}
.note-card h1, .note-card h2 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin-top: 0;
}
.note-card p {
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ---------- Polaroid gallery ---------- */
.gallery {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 36px 0;
}
.polaroid {
  background: var(--card);
  padding: 12px 12px 32px;
  border-radius: 3px;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.35);
  transform: rotate(-3deg);
  width: 160px;
  position: relative;
}
.polaroid:nth-child(2) { transform: rotate(2deg); }
.polaroid:nth-child(3) { transform: rotate(-1.5deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.04); transition: 0.2s ease; }
.polaroid .frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(45deg, var(--teal), var(--teal) 10px, var(--purple) 10px, var(--purple) 20px);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  text-align: center;
  padding: 6px;
  position: relative;
  overflow: hidden;
}
.polaroid .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.polaroid .tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 60px;
  height: 20px;
  background: rgba(255, 210, 63, 0.85);
  border: 1px solid rgba(0,0,0,0.1);
}
.polaroid .caption {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Links page ---------- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 12px;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--teal);
}
.link-item .icon-badge {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: var(--purple);
  color: var(--card);
  padding: 6px 8px;
  border-radius: 6px;
  min-width: 66px;
  text-align: center;
}
.link-item.mail {
  box-shadow: 5px 5px 0 var(--pink);
}
.link-item.mail:hover { box-shadow: 8px 8px 0 var(--pink); }

/* ---------- Projects page ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 620px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}
.project-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--pink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card .tag {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--purple);
  background: var(--yellow);
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 6px;
}
.project-card h3 {
  font-family: var(--font-heading);
  margin: 4px 0;
  color: var(--purple);
}
.project-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.project-card a.proj-link {
  margin-top: 6px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
}
.project-card a.proj-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
/* ---------- Events / tickets ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.event-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--yellow);
  display: flex;
  overflow: hidden;
}
.event-date {
  flex: 0 0 92px;
  background: var(--purple);
  color: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  border-right: 3px dashed var(--card);
  padding: 12px 6px;
  text-align: center;
}
.event-date .day {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}
.event-date .month {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  margin-top: 6px;
  letter-spacing: 1px;
}
.event-body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.event-body h3 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--purple);
}
.event-venue {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.event-body p.event-desc {
  margin: 4px 0 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.event-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.flyer-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 0.15s ease;
}
.flyer-btn:hover {
  transform: translate(-2px, -2px);
}
.event-empty {
  text-align: center;
  font-family: var(--font-heading);
  color: var(--teal);
  padding: 24px;
}

/* ---------- Kinderlieder subpage ---------- */
.song-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.song-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--teal);
  padding: 20px 22px;
}
.song-card h3 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin: 0 0 6px;
}
.song-card p.song-desc {
  margin: 0 0 14px;
  line-height: 1.6;
  font-size: 0.95rem;
}
.song-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pdf-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--card);
  background: var(--purple);
  border: 2px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 0.15s ease;
}
.pdf-btn:hover { transform: translate(-2px, -2px); }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid var(--line);
  background: var(--bg-alt);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Past events accordion ---------- */
.past-events {
  margin-top: 40px;
}
.past-events summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--card);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 10px;
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--purple);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary::marker { content: ""; }
.past-events summary::after {
  content: "▾";
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.past-events[open] summary::after { transform: rotate(180deg); }
.past-events[open] summary {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}
.past-events-body {
  border: 3px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-card.past {
  opacity: 0.7;
  filter: grayscale(0.35);
  box-shadow: 6px 6px 0 var(--ink-soft);
}
.event-card.past .event-date {
  background: var(--ink-soft);
}

/* ---------- Password gate ---------- */
.gate-card {
  text-align: center;
}
.gate-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.gate-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 3px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-width: 200px;
}
.gate-input:focus {
  outline: 3px solid var(--teal);
}
.gate-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--purple);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.gate-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }
.gate-error {
  color: var(--pink);
  font-weight: 700;
  margin-top: 14px;
  min-height: 1.2em;
}

/* ---------- Music tracks (Bandcamp / MP3) ---------- */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.track-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--teal);
  padding: 20px 22px;
}
.track-card h3 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin: 0 0 6px;
}
.track-card p.track-desc {
  margin: 0 0 14px;
  line-height: 1.6;
  font-size: 0.95rem;
}
.bandcamp-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--line);
}
.audio-player {
  width: 100%;
  border-radius: 8px;
}

footer {
  text-align: center;
  margin-top: 50px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--teal);
  opacity: 0.8;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}
