:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #2e2a3b;
  --muted: #6f6880;
  --rose: #d98ba3;
  --rose-soft: #f6e1e8;
  --sky: #8fb3d9;
  --sky-soft: #e3edf8;
  --gold: #c9a24b;
  --gold-soft: #f5ecd6;
  --line: #ece4e8;
  --shadow: 0 6px 24px rgba(80, 60, 90, .08);
  --radius: 16px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1824;
    --surface: #252131;
    --ink: #f1ecf4;
    --muted: #a99fb8;
    --rose-soft: #3d2a35;
    --sky-soft: #24314a;
    --gold-soft: #3b3322;
    --line: #363044;
    --shadow: 0 6px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; }
a { color: var(--rose); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand-sign { color: var(--gold); }
.main-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600;
  padding: .45rem .85rem; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--rose-soft); }
.main-nav a.active { color: #fff; background: var(--rose); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: .8rem 1rem; background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
}

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; }
.page { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-title { text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); margin: 1rem 0 1.5rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Hero */
.hero {
  text-align: center; padding: 2.5rem 1rem 2rem; margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(135deg, var(--rose-soft), var(--sky-soft));
}
.hero-sign { font-size: clamp(4rem, 12vw, 6.5rem); color: var(--gold); line-height: 1; }
.hero-top { display: flex; align-items: flex-end; justify-content: center; gap: clamp(.5rem, 4vw, 2.5rem); }
.alpaka {
  width: clamp(4.5rem, 15vw, 8rem); height: auto; overflow: visible;
  transform-origin: 50% 100%; animation: alpaka-hop 2.4s ease-in-out infinite;
}
.alpaka-right { --flip: -1; animation-delay: -1.2s; }
@keyframes alpaka-hop {
  0%, 100% { transform: scaleX(var(--flip, 1)) rotate(-4deg); }
  50% { transform: scaleX(var(--flip, 1)) translateY(-8px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .alpaka { animation: none; transform: scaleX(var(--flip, 1)); } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: .5rem; }
.hero-sub { color: var(--muted); margin: 0; }
.hero-date { font-weight: 700; margin: 1rem 0 .2rem; }
.hero-countdown { margin: 0; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem;
}
.card.wide { margin-bottom: 1.2rem; }
.card .btn-ghost { align-self: flex-start; margin-top: auto; }
.card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.card ul { margin: 0; padding-left: 1.2rem; }

.fact { text-align: center; }
.fact .fact-icon { font-size: 2rem; }
.fact .fact-label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.fact .fact-value { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }

/* Buttons & forms */
.btn {
  font: inherit; font-weight: 700; cursor: pointer; border: 0;
  background: var(--rose); color: #fff; padding: .6rem 1.2rem; border-radius: 999px;
  text-decoration: none; display: inline-block; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--rose); border: 1.5px solid var(--rose); }
.btn-small { padding: .4rem .9rem; font-size: .9rem; }
.btn-icon { background: none; border: 0; cursor: pointer; font-size: 1.05rem; padding: .2rem .35rem; border-radius: 8px; color: var(--muted); }
.btn-icon:hover { background: var(--rose-soft); color: var(--ink); }

form { display: flex; flex-direction: column; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; }
label.inline { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; }
input, select, textarea {
  font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); }
.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.row > label { flex: 1 1 140px; }
.tip { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.4em; }

/* Horoskop */
.day-switch { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.horo-date { color: var(--muted); margin: 0; text-align: center; }
.motto { font-family: var(--serif); font-size: 1.3rem; font-style: italic; margin: 0; }
.motto.big { font-size: clamp(1.5rem, 3.5vw, 2rem); text-align: center; margin: .3rem 0 1rem; }
.horo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.horo-item { background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; }
.horo-item h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; }
.stars { color: var(--gold); letter-spacing: .1em; font-size: 1rem; }
.stars .off { color: var(--line); }
.horo-item p { margin: 0; }
.disclaimer { text-align: center; font-size: .85rem; color: var(--muted); }

/* Glückszahlen */
.balls { display: flex; gap: .5rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.balls.big { justify-content: center; gap: .8rem; margin: 1rem 0; }
.ball {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: radial-gradient(circle at 30% 30%, #f0b6c8, var(--rose));
  box-shadow: inset -3px -4px 8px rgba(0,0,0,.12);
}
.balls.big .ball { width: 3.6rem; height: 3.6rem; font-size: 1.35rem; }
.ball.gold { background: radial-gradient(circle at 30% 30%, #f1dc9f, var(--gold)); }
.swatch { width: 3rem; height: 3rem; border-radius: 50%; margin: .3rem auto; border: 3px solid var(--surface); box-shadow: var(--shadow); }

/* Chips */
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .8rem !important; }
.chips li { background: var(--sky-soft); padding: .35rem .85rem; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.chips li small { color: var(--muted); font-weight: 400; }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.cal-head h2 { min-width: 12rem; text-align: center; margin: 0; }
.legend { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin: .8rem 0; font-size: .9rem; color: var(--muted); }
.dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; vertical-align: middle; }
.dot-event { background: var(--gold); }
.dot-season { background: var(--sky); }
.dot-termin { background: var(--rose); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin-bottom: 1.2rem;
}
.cal-wd { text-align: center; font-weight: 700; color: var(--muted); font-size: .85rem; padding: .3rem 0; }
.cal-day {
  min-height: 4.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .35rem .45rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem;
  font: inherit; color: inherit; text-align: left; transition: border-color .15s;
}
.cal-day:hover { border-color: var(--rose); }
.cal-day.other { opacity: .4; }
.cal-day.season { background: var(--sky-soft); }
.cal-day.today .num { background: var(--rose); color: #fff; }
.cal-day.selected { border: 2px solid var(--gold); }
.cal-day .num { font-weight: 700; font-size: .9rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; }
.cal-day .dots { display: flex; gap: .2rem; flex-wrap: wrap; }
.cal-day .label { font-size: .7rem; line-height: 1.2; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) {
  .cal-grid { gap: .2rem; }
  .cal-day { min-height: 3.2rem; padding: .2rem; align-items: center; }
  .cal-day .label { display: none; }
}

.event-list, .termin-list { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.event-list li, .termin-list li {
  display: flex; gap: .9rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 12px; background: var(--bg);
}
.date-badge {
  flex: 0 0 3.4rem; text-align: center; border-radius: 10px; padding: .25rem 0;
  background: var(--gold-soft); line-height: 1.15;
}
.date-badge b { display: block; font-size: 1.25rem; font-family: var(--serif); }
.date-badge small { text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; color: var(--muted); }
.termin-list .date-badge { background: var(--rose-soft); }
.item-body { flex: 1; min-width: 0; }
.item-body strong { display: block; }
.item-body p { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.termin-list li.past { opacity: .55; }
.cat { font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--sky-soft); margin-left: .3rem; vertical-align: middle; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.empty { color: var(--muted); font-style: italic; }

.site-footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
