/*
 * Tannenbaum-Abholaktion – Infoseite zur Banderole (Ziel des QR-Codes)
 * Kurz und fürs Handy gedacht. Weihnachtliches Design, eigenständig
 * (bewusst nicht im Sportschützen-Designkit). Schriften selbst gehostet.
 */

/* ---- Schriften --------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---- Farben ------------------------------------------------------------ */
:root {
  --nacht-950: #061712;
  --nacht-900: #0a231d;
  --tanne-700: #155238;
  --tanne-600: #1c6a48;
  --tanne-500: #2a8a5c;
  --rot-800: #7a1520;
  --rot-600: #a8222f;
  --rot-500: #c8323c;
  --gold-600: #b9862a;
  --gold-500: #e3b04b;
  --gold-300: #f3d488;
  --gold-100: #fbefd0;
  --schnee: #fbf7ef;
  --tinte: #1d2a24;
  --tinte-2: #4a5a52;
  --linie: #e6dcc7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Dunkle Seite mit heller Karte – in beiden Systemthemen gleich */
  color-scheme: dark;
}

/* ---- Grundlagen -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: #f4efe3;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(40rem 26rem at 50% 6rem, rgb(227 176 75 / .16), transparent 70%),
    linear-gradient(180deg, #071822 0%, #0a2524 40%, #0f3a2c 100%);
  background-color: var(--nacht-900);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 3rem) 1rem 1.5rem;
}

/* ---- Schneefall -------------------------------------------------------- */
.snowfall {
  position: fixed;
  inset: 0 -24px;
  pointer-events: none;
  animation: sway 7s ease-in-out infinite alternate;
}
.snow {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--tile));
  height: calc(100% + var(--tile));
  background-size: var(--tile) var(--tile);
  animation: snowfall var(--dur) linear infinite;
  will-change: transform;
}
.snow--far {
  --tile: 200px;
  --dur: 24s;
  opacity: .5;
  background-image:
    radial-gradient(circle at 20px 30px, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 90px 150px, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 150px 62px, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 60px 108px, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 178px 180px, #fff 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 122px 12px, #fff 0 1.1px, transparent 1.9px);
}
.snow--mid {
  --tile: 300px;
  --dur: 16s;
  opacity: .65;
  background-image:
    radial-gradient(circle at 40px 60px, #fff 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 202px 32px, #fff 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 122px 178px, #fff 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 262px 238px, #fff 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 232px 138px, #fff 0 1.8px, transparent 2.8px);
}
.snow--near {
  --tile: 460px;
  --dur: 11s;
  opacity: .75;
  background-image:
    radial-gradient(circle at 80px 100px, #fff 0 2.4px, transparent 4px),
    radial-gradient(circle at 340px 62px, #fff 0 2.4px, transparent 4px),
    radial-gradient(circle at 252px 300px, #fff 0 2.4px, transparent 4px),
    radial-gradient(circle at 420px 222px, #fff 0 2.4px, transparent 4px);
}
@keyframes snowfall { to { transform: translate3d(0, var(--tile), 0); } }
@keyframes sway {
  from { transform: translateX(-12px); }
  to   { transform: translateX(12px); }
}

/* ---- Kopf -------------------------------------------------------------- */
.top {
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 14px rgb(6 23 18 / .85);
}
/* Baum ist ein Button: Antippen lässt es schneien */
.tree-btn {
  display: block;
  margin: 0 auto 1rem;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tree {
  width: auto;
  height: clamp(6.5rem, 20vw, 9rem);
  transform-origin: 50% 95%;
  transition: transform .2s ease;
}
.tree-btn:hover .tree { transform: scale(1.04); }
/* kleiner Wackler als Hinweis, bis zum ersten Antippen */
.tree-btn:not(.was-clicked) .tree { animation: hint 6s ease-in-out 2.5s infinite; }
.tree-btn.is-shaking .tree { animation: shake .7s ease-in-out; }
@keyframes hint {
  0%, 86%, 100% { transform: rotate(0); }
  89% { transform: rotate(-3deg); }
  92% { transform: rotate(3deg); }
  95% { transform: rotate(-1.5deg); }
}
@keyframes shake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-5deg) scale(1.03); }
  35% { transform: rotate(4deg) scale(1.03); }
  55% { transform: rotate(-3deg); }
  75% { transform: rotate(1.5deg); }
}

/* Schneeflocken beim Antippen (werden von js/schnee.js erzeugt) */
.flurry {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.flake {
  position: absolute;
  top: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0-10V10M-8.66-5L8.66 5M-8.66 5L8.66-5M-3-9L0-6L3-9M6.29-7.1L5.2-3L9.29-1.9M9.29 1.9L5.2 3L6.29 7.1M3 9L0 6L-3 9M-6.29 7.1L-5.2 3L-9.29 1.9M-9.29-1.9L-5.2-3L-6.29-7.1'/%3E%3C/svg%3E") center / contain no-repeat;
  /* bläulicher Schimmer, damit die Flocken auch auf der hellen Karte sichtbar sind */
  filter: drop-shadow(0 0 2px rgb(110 145 180 / .75));
  will-change: transform, opacity;
}
.flake--dot {
  background: radial-gradient(circle, #fff 0 45%, rgb(255 255 255 / 0) 70%);
}
.tree .lights { animation: twinkle 1.6s ease-in-out infinite alternate; }
.tree .lights--b { animation-delay: -.8s; }
.tree .star-glow { animation: glow 3s ease-in-out infinite alternate; transform-origin: 200px 58px; }
@keyframes twinkle { from { opacity: 1; } to { opacity: .25; } }
@keyframes glow {
  from { opacity: .55; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1.08); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .55rem;
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: .7rem;
  height: .7rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 8vw, 3.2rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: .6rem;
}
.title__accent {
  color: var(--gold-300);
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.intro {
  color: #e6e2d6;
  font-size: 1.08rem;
  text-wrap: balance;
}
/* jeder Satz beginnt in einer eigenen Zeile, statt mitten im Satz umzubrechen */
.intro span { display: inline-block; }

/* ---- Karte ------------------------------------------------------------- */
.card {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.25rem, 5vw, 1.9rem);
  border-radius: 22px;
  color: var(--tinte);
  background: var(--schnee);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
}

.label {
  margin-bottom: .55rem;
  color: var(--rot-600);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.label--light { color: var(--gold-300); text-align: center; margin-bottom: .8rem; }

/* Abholtermin */
.date {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.3rem;
  border-bottom: 2px dashed var(--linie);
}
.date .label { margin-bottom: .15rem; }
.date__icon {
  width: 3rem;
  height: 3rem;
  padding: .7rem;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff8a8a, var(--rot-500) 45%, var(--rot-800));
  box-shadow: 0 6px 14px -6px rgb(122 21 32 / .6);
}
.date__day {
  color: var(--tanne-700);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  line-height: 1.15;
}
.date__time { margin-top: .25rem; color: var(--tinte-2); }

/* Hervorhebung Abholgebiet */
.area {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  padding: .3rem .85rem .3rem .6rem;
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--tinte);
  font-weight: 800;
  line-height: 1.3;
}
.area .icon { width: 1.1rem; height: 1.1rem; color: var(--rot-600); }

/* So klappt's / so nicht */
.rule {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 16px;
}
.rule--ok { background: rgb(28 106 72 / .08); }
.rule--no { background: rgb(168 34 47 / .07); }
.label--ok { color: var(--tanne-600); }
.label--no { color: var(--rot-600); }
.label em {
  padding: .05em .4em;
  border-radius: 4px;
  background: var(--rot-600);
  color: #fff;
  font-style: normal;
}

/* Listen mit Haken bzw. Kreuz */
.checklist {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--tinte-2);
  line-height: 1.45;
}
.checklist strong { color: var(--tinte); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--tanne-600);
}
.checklist--no li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7.5 7.5l9 9M16.5 7.5l-9 9'/%3E%3C/svg%3E") center / 64% no-repeat,
    var(--rot-600);
}

/* Erlös für die Jugend (im Abschnitt „Beteiligte Vereine“) */
.youth {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .9rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  color: #fbeee8;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(0 0 0 / .07) 14px 28px),
    var(--rot-600);
}
.youth__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  color: var(--rot-600);
  background: var(--schnee);
  border: 3px solid var(--gold-500);
  box-shadow: inset 0 0 0 3px var(--schnee), inset 0 0 0 4.5px var(--gold-300);
}
.youth__badge .icon { width: 1.5rem; height: 1.5rem; fill: currentColor; stroke: none; }
.youth__text { font-size: .98rem; line-height: 1.45; }
.youth__text strong { color: #fff; }

/* Kontakt */
.contact {
  padding-top: 1.3rem;
  border-top: 2px dashed var(--linie);
}
.contact__title {
  color: var(--tanne-700);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  line-height: 1.25;
  margin-bottom: .4rem;
}
.contact__text {
  margin-bottom: 1rem;
  color: var(--tinte-2);
  line-height: 1.45;
}
.contact__text strong { color: var(--tinte); }
.phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.6rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, var(--tanne-600), var(--tanne-700));
  box-shadow: 0 8px 20px -10px rgb(21 82 56 / .8);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.phone .icon { color: var(--gold-300); width: 1.4rem; height: 1.4rem; }
.phone:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgb(21 82 56 / .9); }

/* ---- Logos ------------------------------------------------------------- */
.partners { margin-top: 2rem; }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.partner {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: .7rem;
  border-radius: 14px;
}
/* Logos immer auf Weiß (Vorgabe Designkit: Hauptlogo nur auf hellem Grund),
   die ganze Kachel ist der Link zur Webseite des Vereins */
.partner--logo {
  place-items: stretch;
  padding: 0;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.partner--logo:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgb(0 0 0 / .6); }
.partner__link {
  position: relative;
  display: block;
  border-radius: inherit;
}
/* Logo füllt die Kachel mit Rand, egal ob breit (Sportschützen) oder quadratisch (Spielmannszug) */
.partner__link img {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 82%;
  height: 82%;
  object-fit: contain;
}
/* ungerade Anzahl: letztes Logo mittig in der letzten Reihe */
.partner:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - .375rem);
}

/* ---- Fuß --------------------------------------------------------------- */
.footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-size: .9rem;
}
.footer a {
  color: #c9d3cc;
  text-decoration-color: rgb(243 212 136 / .45);
  text-underline-offset: .25em;
}
.footer a:hover { color: #fff; }

/* ---- Sehr schmale Handys: Platz für „Nur Kernstadt Salzkotten“ in einer Zeile */
@media (max-width: 379px) {
  .date__icon { display: none; }
}

/* ---- Bewegung reduzieren ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .snowfall, .snow, .tree .lights, .tree .star-glow,
  .tree-btn .tree, .tree-btn.is-shaking .tree { animation: none; }
  .tree-btn:hover .tree { transform: none; }
  .phone, .partner--logo { transition: none; }
  .phone:hover, .partner--logo:hover { transform: none; }
}
