/* ============================================================
   NEOCORE WIESN — Oktoberfest-Einladung
   Projekt-Layout. Nutzt die Tokens aus neocore.css; die Creme-
   Palette kommt aus theme-creme.css (danach geladen).
   Wiesn-Akzent = bayerische Raute (blau-weiß) + Brezn-Linienkunst.
   ============================================================ */

:root {
  --wiesn-blue:  #1763a6;   /* gedecktes Bayern-Blau, passt zu Navy/Creme */
  --wiesn-blue-2:#2b7cc4;
  --hero-w: 680px;          /* einheitliche Breite für Foto · Eckdaten · CTA (bündig) */
}

body { background: var(--nc-bg); }

/* Author-display-Regeln dürfen das hidden-Attribut nicht aushebeln */
[hidden] { display: none !important; }

.wiesn { overflow: hidden; }

/* ---------- Bayerische Raute als Akzentstreifen ---------- */
.raute-band {
  height: 16px;
  background-color: var(--wiesn-blue);
  background-image:
    linear-gradient(135deg, #fff 25%, transparent 25%),
    linear-gradient(225deg, #fff 25%, transparent 25%),
    linear-gradient(315deg, #fff 25%, transparent 25%),
    linear-gradient(45deg,  #fff 25%, transparent 25%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 0, 16px -16px, 0 -16px;
}
.raute-band--bottom { margin-top: 0; }

/* ============================ HERO ============================ */
.hero {
  text-align: center;
  padding: 26px 0 30px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(31,39,62,0.06) 0%, transparent 60%);
}
.hero__logo {
  height: 36px;
  width: auto;
  margin: 0 auto 14px;
  opacity: 0.92;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nc-muted);
  margin-bottom: 10px;
}
.hero__title {
  font-size: clamp(1.55rem, 4.4vw, 2.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nc-text);
  margin-bottom: 10px;
}
.hero__sub {
  font-size: clamp(0.98rem, 2.2vw, 1.2rem);
  color: var(--nc-muted);
  margin-bottom: 16px;
}
.datebadge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 30px;
  border: 1px solid var(--nc-line-strong);
  border-radius: var(--nc-radius);
  background: var(--nc-card);
  box-shadow: var(--nc-shadow);
}
.datebadge__day {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wiesn-blue);
}
.datebadge__date {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nc-text);
}
/* ---------- Hero-Teamfoto (höhenbegrenzt = Banner) ---------- */
.hero__photo {
  margin: 16px auto 0;
  max-width: var(--hero-w);
  border-radius: var(--nc-radius-lg);
  overflow: hidden;
  border: 4px solid var(--nc-card);
  box-shadow: var(--nc-shadow);
  position: relative;
}
.hero__photo img {
  width: 100%;
  height: clamp(150px, 28vh, 260px);
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
/* dezenter Raute-Rahmen am unteren Fotorand */
.hero__photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background-color: var(--wiesn-blue);
  background-image:
    linear-gradient(135deg, #fff 25%, transparent 25%),
    linear-gradient(225deg, #fff 25%, transparent 25%),
    linear-gradient(315deg, #fff 25%, transparent 25%),
    linear-gradient(45deg,  #fff 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 0, 10px -10px, 0 -10px;
}

/* ---------- Prominenter RSVP-Aufruf im Hero ---------- */
.hero__cta-block {
  margin: 16px auto 0;
  max-width: var(--hero-w);
  padding: 18px 24px 22px;
  background: var(--nc-card);
  border: 1px solid var(--nc-line-strong);
  border-radius: var(--nc-radius-lg);
  box-shadow: var(--nc-shadow);
}
.hero__date {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--wiesn-blue);
  margin-bottom: 4px;
}
.hero__ask {
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--nc-text);
  margin-bottom: 6px;
}
.hero__cta-block .cta { margin-top: 6px; }

.brezn {
  width: 52px;
  height: auto;
  margin: 0 auto 8px;
  color: var(--wiesn-blue);
  opacity: 0.95;
}

/* ---------- Wiesn-Grafik-Divider ---------- */
.wiesn-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 18px 0 2px;
  color: var(--wiesn-blue);
}
.wiesn-strip__icon { width: 40px; height: auto; opacity: 0.85; }
.wiesn-strip__icon:nth-child(2) { width: 48px; }

/* ---------- CTA-Button ---------- */
.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 16px 34px;
  background: var(--nc-accent);
  color: #F5EDE1;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--nc-radius);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
  box-shadow: 0 12px 30px -12px rgba(31,39,62,0.6);
}
.cta:hover { transform: translateY(-2px); color: #fff; background: var(--nc-accent-2); }
.cta--full { width: 100%; margin-top: 8px; }

/* ============================ ECKDATEN ============================ */
.facts { padding: 8px 0 20px; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.facts__grid--hero { margin: 16px auto 0; max-width: var(--hero-w); }

.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  padding: 13px 15px;
}
.fact__icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31,39,62,0.07);
  color: var(--nc-accent);
}
.fact__icon svg { width: 19px; height: 19px; }
.fact__body { min-width: 0; }
.fact__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--nc-muted);
  margin-bottom: 2px;
}
.fact__value { font-size: 0.98rem; font-weight: 700; color: var(--nc-text); line-height: 1.25; }
.fact__note { font-size: 0.78rem; color: var(--nc-muted); margin-top: 3px; line-height: 1.3; }

.facts__intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nc-muted);
}

/* ============================ RSVP ============================ */
.rsvp {
  padding: 56px 0 64px;
  background: var(--nc-bg-2);
}
.rsvp__title {
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--nc-text);
  margin-bottom: 8px;
}
.rsvp__sub {
  text-align: center;
  color: var(--nc-muted);
  margin-bottom: 34px;
}
.card {
  max-width: var(--hero-w);
  margin: 0 auto;
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  padding: 32px;
  box-shadow: var(--nc-shadow);
}

.field { display: block; margin-bottom: 22px; }
.field__label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--nc-text);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--nc-font);
  font-size: 1rem;
  color: var(--nc-text);
  background: var(--nc-card-2);
  border: 1px solid var(--nc-line-strong);
  border-radius: var(--nc-radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--nc-accent);
  box-shadow: 0 0 0 3px rgba(31,39,62,0.12);
}
.field__hint { display: block; font-size: 0.82rem; color: var(--nc-muted); margin-top: 7px; }

/* ---------- Zu-/Absage-Auswahl ---------- */
.choice { border: none; margin-bottom: 22px; }
.choice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input {
  position: absolute; opacity: 0; inset: 0; cursor: pointer;
}
.choice__box {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  min-height: 58px;
  padding: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid var(--nc-line-strong);
  border-radius: var(--nc-radius-sm);
  background: var(--nc-card-2);
  color: var(--nc-text);
  transition: all 0.15s ease;
}
.choice__opt input:focus-visible + .choice__box { box-shadow: 0 0 0 3px rgba(31,39,62,0.18); }
.choice__opt input:checked + .choice__box--yes {
  background: var(--nc-accent);
  border-color: var(--nc-accent);
  color: #F5EDE1;
}
.choice__opt input:checked + .choice__box--no {
  background: rgba(31,39,62,0.10);
  border-color: var(--nc-accent);
  color: var(--nc-text);
}
.choice__opt:hover .choice__box { border-color: var(--nc-accent); }

.form__error {
  margin-top: 14px;
  text-align: center;
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Erfolg ---------- */
.success { text-align: center; margin-top: 4px; }
.success__check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 50%;
  background: rgba(31,39,62,0.08);
  color: var(--nc-accent);
}
.success__title { font-size: 1.5rem; font-weight: 800; color: var(--nc-text); margin-bottom: 10px; }
.success__text { color: var(--nc-muted); line-height: 1.65; }

/* ============================ FOOTER ============================ */
.footer {
  text-align: center;
  padding: 34px 0 40px;
  color: var(--nc-muted);
  font-size: 0.85rem;
}
.footer__logo { height: 30px; width: auto; margin: 0 auto 12px; opacity: 0.5; color: var(--nc-muted); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 720px) {
  .facts__grid { grid-template-columns: 1fr; gap: 8px; }
  .facts__grid--hero { margin-top: 12px; }
  .hero { padding: 12px 0 16px; }
  .hero__logo { height: 30px; margin-bottom: 9px; }
  .kicker { display: none; }                 /* spart eine Zeile auf dem Handy */
  .hero__title { font-size: clamp(1.35rem, 6.5vw, 1.8rem); margin-bottom: 6px; }
  .hero__sub { font-size: 0.95rem; margin-bottom: 10px; }
  .hero__photo { margin-top: 10px; max-width: 100%; }
  .hero__photo img { height: clamp(110px, 17vh, 160px); }
  .hero__cta-block { margin-top: 12px; padding: 15px 16px 18px; }
  .hero__date { font-size: 0.7rem; }
  .hero__ask { font-size: 1.55rem; margin-bottom: 4px; }
  .fact { padding: 11px 13px; }
  .fact__value { font-size: 0.95rem; }
  .cta { padding: 15px 28px; }
  .card { padding: 22px; }
}

/* sehr schmale / niedrige Phones: Foto noch knapper */
@media (max-width: 400px) {
  .hero__photo img { height: clamp(96px, 15vh, 140px); }
}
