:root {
  --tanne: #1f6f43;
  --rot: #b3273c;
  --gold: #d4af37;
  --creme: #fff8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 20, 12, 0.78) 0%, rgba(11, 46, 31, 0.85) 100%),
    url('/assets/images/hintergrund-winterwald.jpg') center / cover fixed no-repeat;
  color: var(--creme);
  min-height: 100vh;
}

#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.top-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
}

.top-bar h1 {
  font-size: 1.3rem;
  margin: 0;
}

#music-toggle,
.parent-link {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--gold);
  color: var(--creme);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
}

.tiles {
  display: grid;
  gap: 0.75rem;
}

.tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 1rem;
  font-size: 1.1rem;
  color: var(--creme);
  cursor: pointer;
  text-align: left;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 260px;
  margin: 1.5rem auto;
}

.pin-pad button {
  font-size: 1.4rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
  color: var(--creme);
}

.pin-display {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.5rem;
  margin-top: 1rem;
}

.wish-form {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.wish-form input,
.wish-form textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: var(--creme);
  color: #222;
}

.wish-form button {
  background: var(--rot);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

.wish-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

.wish-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.wish-card .delete {
  float: right;
  background: none;
  border: none;
  color: var(--creme);
  cursor: pointer;
  font-size: 1rem;
}

.parent-link {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.8rem;
  opacity: 0.7;
}

.error {
  color: #ffb4b4;
}

.profile-group h2 {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
}
