/* ==========================================================================
   Quartierfest Römerweg — Stylesheet
   Farbpalette:
     --tanne:    #2B4339  (dunkles Tannengrün, Basis/Header)
     --sonne:    #F4B23E  (warmes Sonnengelb, Hauptakzent)
     --glut:     #D9572C  (Tomaten-/Glutrot, Calls-to-Action)
     --creme:    #FAF3E6  (cremiges Off-White, Flächen/Text auf dunkel)
     --holz:     #8B5A3C  (Holzbraun, Linien/Rahmen)
     --wiese:    #7A9B6E  (gedecktes Salatgrün, Support)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --tanne: #2B4339;
  --tanne-dunkel: #1F2E27;
  --sonne: #F4B23E;
  --glut: #D9572C;
  --creme: #FAF3E6;
  --holz: #8B5A3C;
  --holz-dunkel: #6B4226;
  --wiese: #7A9B6E;

  --font-display: 'Caveat', cursive;
  --font-serif: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--creme);
  color: var(--tanne-dunkel);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Wimpelketten-Signatur — wiederkehrendes Trennelement statt Linien
   -------------------------------------------------------------------------- */
.buntings {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 46px;
  margin: 0;
  line-height: 0;
}
.buntings svg { height: 46px; width: auto; }

.buntings--light .pennant:nth-child(odd)  { fill: var(--creme); }
.buntings--light .pennant:nth-child(even) { fill: var(--sonne); }
.buntings--light .pennant:nth-child(3n)   { fill: var(--glut); }
.buntings--dark .pennant:nth-child(odd)   { fill: var(--tanne); }
.buntings--dark .pennant:nth-child(even)  { fill: var(--glut); }
.buntings--dark .pennant:nth-child(3n)    { fill: var(--sonne); }
.buntings .string { stroke: var(--holz); stroke-width: 2; fill: none; }

/* --------------------------------------------------------------------------
   Header / Hero
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--tanne);
  color: var(--creme);
  padding: 28px 0 36px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.logo {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.header-text .eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sonne);
  margin: 0 0 2px;
}

.header-text h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
  color: var(--creme);
}

.hero {
  background: linear-gradient(180deg, var(--tanne) 0%, var(--tanne) 60%, var(--tanne-dunkel) 100%);
  color: var(--creme);
  padding: 50px 0 70px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
}

.hero h2 em {
  font-style: normal;
  color: var(--sonne);
}

.hero p.lead {
  font-size: 1.08rem;
  max-width: 46ch;
  color: rgba(250,243,230,0.88);
  margin: 0 0 28px;
}

.hero-dates {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.date-card {
  background: rgba(250,243,230,0.08);
  border: 1.5px solid rgba(244,178,62,0.45);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 168px;
}

.date-card .label {
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sonne);
  font-weight: 600;
  margin: 0 0 6px;
}

.date-card .value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--creme);
}

.date-card .sub {
  font-size: 0.85rem;
  color: rgba(250,243,230,0.7);
  margin: 4px 0 0;
}

.date-card.is-urgent {
  border-color: var(--glut);
  background: rgba(217,87,44,0.18);
}
.date-card.is-urgent .label { color: var(--glut); }

.hero-flame {
  justify-self: center;
}
.hero-flame svg { width: 100%; max-width: 280px; }

/* --------------------------------------------------------------------------
   Sections general
   -------------------------------------------------------------------------- */
section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-head .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--glut);
  margin: 0 0 8px;
}

.section-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--tanne);
}

.section-head p {
  color: #4A5A52;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Gallery / Impressionen
   -------------------------------------------------------------------------- */
.gallery {
  background: var(--creme);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(43,67,57,0.12);
  border: 3px solid var(--creme);
  outline: 1px solid rgba(139,90,60,0.18);
  aspect-ratio: 4/3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 12px 26px rgba(43,67,57,0.18);
}

.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

.gallery-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--holz-dunkel);
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   Info strip (Programm-Eckpunkte)
   -------------------------------------------------------------------------- */
.info-strip {
  background: var(--wiese);
  color: var(--tanne-dunkel);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: rgba(250,243,230,0.55);
  border-radius: 16px;
  padding: 24px 22px;
  text-align: center;
}

.info-card .icon { font-size: 1.9rem; margin-bottom: 8px; display: block; }

.info-card h4 {
  font-family: var(--font-serif);
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.info-card p { margin: 0; font-size: 0.93rem; color: #2F3F37; }

/* --------------------------------------------------------------------------
   Anmeldeformular
   -------------------------------------------------------------------------- */
.signup {
  background: var(--tanne-dunkel);
  color: var(--creme);
}

.signup .section-head h3 { color: var(--creme); }
.signup .section-head p { color: rgba(250,243,230,0.78); }
.signup .section-head .eyebrow { color: var(--sonne); }

.form-card {
  background: var(--creme);
  color: var(--tanne-dunkel);
  border-radius: 22px;
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  position: relative;
}

.form-card::before {
  content: "";
  position: absolute;
  top: -14px; left: 36px;
  width: 60px; height: 28px;
  background: var(--glut);
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

fieldset {
  border: none;
  margin: 0 0 26px;
  padding: 0;
}

legend, .field-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: block;
  color: var(--tanne);
}

.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.radio-pill label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--holz);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  background: #fff;
  transition: all 0.18s ease;
  user-select: none;
}

.radio-pill input:checked + label {
  background: var(--sonne);
  border-color: var(--sonne);
  color: var(--tanne-dunkel);
  font-weight: 600;
}

.radio-pill input:focus-visible + label {
  outline: 3px solid var(--glut);
  outline-offset: 2px;
}

.radio-pill.option-nein input:checked + label {
  background: #e9e3d6;
  border-color: var(--holz);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 2px solid #d8cdb8;
  border-radius: 12px;
  background: #fff;
  color: var(--tanne-dunkel);
}

input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--glut);
  box-shadow: 0 0 0 3px rgba(217,87,44,0.18);
}

textarea { resize: vertical; min-height: 90px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hint {
  font-size: 0.82rem;
  color: var(--holz-dunkel);
  margin-top: 6px;
}

.submit-row {
  margin-top: 8px;
}

.btn-submit {
  width: 100%;
  background: var(--glut);
  color: var(--creme);
  border: none;
  padding: 16px 24px;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
  transition: background 0.18s ease, transform 0.1s ease;
  box-shadow: 0 8px 18px rgba(217,87,44,0.35);
}

.btn-submit:hover { background: #c1481f; }
.btn-submit:active { transform: translateY(1px); }

.required-note {
  font-size: 0.8rem;
  color: var(--holz-dunkel);
  text-align: center;
  margin-top: 14px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* feedback messages (used by danke.php / fehler.php styling reuse) */
.feedback-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--creme);
  border-radius: 22px;
  padding: 56px 40px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.feedback-box .emoji { font-size: 3rem; margin-bottom: 14px; display: block; }
.feedback-box h3 { font-family: var(--font-serif); color: var(--tanne); margin: 0 0 12px; font-size: 1.7rem; }
.feedback-box p { color: #4A5A52; margin: 0 0 24px; }
.feedback-box .btn-back {
  display: inline-block;
  background: var(--tanne);
  color: var(--creme);
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}
.feedback-box .btn-back:hover { background: var(--tanne-dunkel); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--tanne);
  color: rgba(250,243,230,0.75);
  padding: 30px 0;
  text-align: center;
  font-size: 0.88rem;
}

.site-footer strong { color: var(--creme); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-flame { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

@media (max-width: 520px) {
  .header-text h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .date-card { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid figure { transition: none; }
}
