/* Schriften liegen in public/fonts und werden selbst ausgeliefert (keine Verbindung zu Google Fonts). */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/lato-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/lato-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Sedgwick Ave Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/sedgwick-ave-display-latin-400-normal.woff2") format("woff2"); }

/* LIMES Weihnachtsaktion 2026
   Layout-Idee: wie die Vorlage bei Lieblingstanne – großes Winterfoto mit dem LIMES Screen,
   darunter mittig und hell der Gruß in Pinselschrift; das Formular greift das Screen-Motiv auf
   (Aubergine mit Gold). Lichterkette, Schnee und Kugeln tragen die Weihnachtsstimmung. */
:root {
  color-scheme: light;
  --schnee: #fffdf8;       /* Seitenhintergrund */
  --creme: #f8f1e4;        /* ruhige Flächen */
  --ink: #3b2a41;          /* Text */
  --muted: #74647a;        /* Nebentext */
  --aubergine: #561162;    /* LIMES-Lila aus dem Screen-Motiv */
  --aubergine-tief: #3d0b47;
  --gold: #c8962e;         /* Gold auf hell */
  --gold-hell: #f3d488;    /* Gold auf Aubergine */
  --tanne: #1f5d40;
  --rot: #c0392f;
  --fehler: #b3261e;
  --brush: "Sedgwick Ave Display", "Caveat Brush", "Segoe Script", cursive;
  --body: "Lato", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--schnee);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

/* Vorschau-Hinweis */
.demo-bar {
  background: var(--aubergine-tief);
  color: var(--gold-hell);
  font: 700 0.8125rem/1.3 var(--body);
  text-align: center;
  padding: 0.45rem 1rem;
}
body:not([data-demo="true"]) .demo-bar { display: none; }

/* Hero: Foto mit Schnee und Lichterkette */
.hero { position: relative; background: #0d1030; }
.hero img {
  display: block;
  width: 100%;
  height: clamp(15rem, 37vw, 34rem);
  object-fit: cover;
  object-position: 72% 40%;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lights {
  position: absolute;
  left: 0; right: 0; bottom: -11px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}
.lights::before, .lights::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: 168px 22px;
}
.lights::before {
  background-image:
    radial-gradient(circle at 21px 11px, #f6c453 0 6px, rgba(246, 196, 83, 0.35) 7px 10px, transparent 11px),
    radial-gradient(circle at 105px 11px, #2f8a5d 0 6px, rgba(47, 138, 93, 0.35) 7px 10px, transparent 11px);
  animation: blinken 2.6s ease-in-out infinite;
}
.lights::after {
  background-image:
    radial-gradient(circle at 63px 11px, #d2473c 0 6px, rgba(210, 71, 60, 0.35) 7px 10px, transparent 11px),
    radial-gradient(circle at 147px 11px, #fff3cf 0 6px, rgba(255, 243, 207, 0.5) 7px 10px, transparent 11px);
  animation: blinken 2.6s ease-in-out -1.3s infinite;
}
@keyframes blinken { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Gruß */
.gruss { text-align: center; padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(2rem, 4vw, 3rem); }
.gruss .inner { display: grid; gap: 1.1rem; justify-items: center; }
h1, h2, .sign {
  font-family: var(--brush);
  font-weight: 400;
  color: var(--aubergine);
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); transform: rotate(-1.5deg); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.sign { font-size: clamp(1.6rem, 3.6vw, 2.1rem); transform: rotate(-2deg); margin-top: 0.4rem; }
.gruss p { margin: 0; max-width: 40rem; }
.zweig { width: 9rem; height: auto; color: var(--gold); }
.frist {
  display: inline-block;
  font-weight: 700;
  color: var(--aubergine);
  background: var(--creme);
  border: 2px dashed var(--gold);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  margin-top: 0.6rem;
}
.offen { background: var(--gold-hell); padding: 0 0.4em; border-radius: 4px; }

/* Ablauf: drei Christbaumkugeln */
.ablauf { padding-block: 1rem clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
@media (max-width: 44rem) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { display: grid; justify-items: center; gap: 0.35rem; align-content: start; }
.kugel {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0.9rem 0 0.6rem;
  font: 400 1.9rem/1 var(--brush);
  color: #fff;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0 9%, transparent 30%), var(--farbe);
  box-shadow: 0 6px 14px rgba(59, 42, 65, 0.22);
  transform-origin: 50% -0.9rem;
  animation: pendeln 4.5s ease-in-out infinite;
}
.kugel::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 1.05rem;
  height: 0.7rem;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}
.kugel::after {
  content: "";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateX(-50%);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.steps li:nth-child(1) .kugel { --farbe: var(--aubergine); }
.steps li:nth-child(2) .kugel { --farbe: var(--rot); animation-delay: -1.5s; }
.steps li:nth-child(3) .kugel { --farbe: var(--tanne); animation-delay: -3s; }
@keyframes pendeln { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.steps strong { font-size: 1.125rem; color: var(--aubergine); }
.steps .sub { color: var(--muted); font-size: 0.9375rem; max-width: 17rem; }

/* Formular: das Screen-Motiv */
.aktion { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.card {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  background:
    radial-gradient(circle at 8% 14%, rgba(243, 212, 136, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 17% 6%, rgba(243, 212, 136, 0.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 91% 10%, rgba(243, 212, 136, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 20%, rgba(243, 212, 136, 0.55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 95% 86%, rgba(243, 212, 136, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 5% 92%, rgba(243, 212, 136, 0.7) 0 2px, transparent 3px),
    linear-gradient(160deg, var(--aubergine), var(--aubergine-tief));
  color: #fff;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 18px 40px rgba(61, 11, 71, 0.28);
}
.card.wide { max-width: 44rem; }
.card h2 { color: var(--gold-hell); text-align: center; }
.card p { margin: 0; }
.card .hint { color: #e9dcee; font-size: 0.9375rem; text-align: center; }
.card a:hover { color: var(--gold-hell); }
form { display: grid; gap: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-plz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; }
@media (max-width: 30rem) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.3rem; }
label { font-weight: 700; font-size: 0.875rem; color: var(--gold-hell); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  font: 400 1.0625rem/1.3 var(--body);
}
input:focus-visible { outline: 3px solid var(--gold-hell); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #ff9d94; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7dc97, #dcae45);
  color: var(--aubergine-tief);
  font: 900 1.0625rem/1.2 var(--body);
  padding: 1rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #a97a1d;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 5px 0 #a97a1d; }
button:active { transform: translateY(3px); box-shadow: 0 1px 0 #a97a1d; }
button[disabled] { opacity: 0.6; cursor: progress; }
.legal { color: #dccfe2; font-size: 0.8125rem; line-height: 1.5; text-align: center; }
.msg { font-size: 0.9375rem; padding: 0.75rem 0.9rem; border-radius: 0.6rem; background: #fff; color: var(--fehler); font-weight: 700; }
.msg[hidden], .done[hidden], form[hidden] { display: none; }
.done { display: grid; gap: 0.75rem; text-align: center; }
.done .mail { font-weight: 700; color: var(--gold-hell); overflow-wrap: anywhere; }

/* Fuß: verschneiter Hügel mit Tannen */
.wald { display: block; width: 100%; height: auto; margin-bottom: -1px; }
.foot-band { background: var(--aubergine-tief); color: #e6d9eb; }
.foot {
  padding-block: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a:hover { color: var(--gold-hell); }

@media (prefers-reduced-motion: reduce) {
  .lights::before, .lights::after, .kugel { animation: none; }
}
