:root {
  --red: #d71920;
  --red-dark: #9c0d14;
  --yellow: #ffd21f;
  --yellow-soft: #fff3b4;
  --ink: #111827;
  --muted: #667085;
  --cream: #fff9ed;
  --paper: #ffffff;
  --line: rgba(17, 24, 39, .12);
  --shadow: 0 22px 60px rgba(17, 24, 39, .16);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 210, 31, .22), transparent 32rem),
    radial-gradient(circle at 86% 0%, rgba(215, 25, 32, .12), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 42%, #fff8e8 100%);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--max), calc(100% - 34px)); margin: 0 auto; }
.small { font-size: .92rem; color: var(--muted); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-size: .82rem;
}
.kicker::before { content: ""; width: 1.5rem; height: .45rem; background: var(--yellow); border-radius: 999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 249, 237, .86);
  border-bottom: 1px solid var(--line);
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px rgba(215, 25, 32, .25);
}
.brand img { height: 42px; width: auto; display: block; }
.navlinks { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.navlinks a {
  text-decoration: none;
  padding: .68rem .9rem;
  border-radius: 999px;
  color: #243044;
  font-weight: 800;
  font-size: .95rem;
}
.navlinks a:hover { background: rgba(255, 210, 31, .22); color: var(--red-dark); }
.navlinks .button-mini { background: var(--red); color: #fff; box-shadow: 0 10px 20px rgba(215, 25, 32, .22); }
.navlinks .button-mini:hover { background: var(--red-dark); color: #fff; }

.hero { position: relative; overflow: hidden; padding: 70px 0 56px; }
.hero::before {
  content: none;
  display: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 42px;
  align-items: center;
}
.hero h1 {
  margin: .35rem 0 .9rem;
  max-width: 850px;
  font-size: clamp(3.2rem, 10vw, 8.4rem);
  line-height: .84;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--red); display: block; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.55rem); max-width: 720px; color: #2b3445; font-weight: 650; }
.hero-actions { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.25rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 16px 30px rgba(215, 25, 32, .26); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #111827; color: #fff; box-shadow: 0 14px 24px rgba(17, 24, 39, .18); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--red); color: #fff; }

.event-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.25rem;
  transform: rotate(-1deg);
}
.event-card-inner {
  border: 3px dashed rgba(215,25,32,.24);
  border-radius: calc(var(--radius) - 10px);
  padding: 1.35rem;
  background: linear-gradient(180deg, #fff, #fff7dc);
}
.event-card-branding {
  display: grid;
  justify-items: center;
  gap: .75rem;
  margin: -.2rem 0 1.25rem;
  padding: .25rem 0 .5rem;
  border-radius: 20px;
  overflow: visible;
  background: transparent;
}
.event-card-fasnet-logo {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 7px 12px rgba(17, 24, 39, .10));
}
.event-card-rathaus {
  width: min(82%, 330px);
  height: auto;
  max-height: 190px;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 14px 20px rgba(17, 24, 39, .12));
}
.event-date {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem 1rem;
  align-items: center;
  margin: 1rem 0;
}
.event-date strong { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .9; color: var(--red); letter-spacing: -.04em; }
.event-date span { font-weight: 950; font-size: 1.25rem; text-transform: uppercase; }
.badges { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: 1.2rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--yellow); padding: .52rem .75rem; border-radius: 999px; font-weight: 900; }

section { padding: 62px 0; }
.section-title { margin: 0 0 1rem; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.section-lead { max-width: 760px; color: #344054; font-size: 1.12rem; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.info-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 1.35rem;
  box-shadow: 0 18px 40px rgba(17,24,39,.08);
}
.info-box::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 84px;
  height: 84px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: .45;
}
.info-box h3 { margin: 0 0 .45rem; font-size: 1.35rem; }
.info-box .icon { font-size: 2.1rem; }

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1rem;
  align-items: stretch;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(17,24,39,.08);
}
.timeline-time {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: #111827;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 1000;
}
.timeline-item:nth-child(2) .timeline-time { background: var(--red); }
.timeline-item:nth-child(3) .timeline-time { background: var(--yellow); color: var(--ink); }
.timeline-content { padding: 1.1rem 1.25rem; }
.timeline-content h3 { margin: 0 0 .25rem; font-size: 1.35rem; }

.split {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 32px;
  align-items: center;
}
.paper-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
}
.paper-card img { border-radius: 20px; display: block; }
.note-card {
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 22px 46px rgba(215,25,32,.24);
}
.note-card h3 { margin-top: 0; font-size: 2rem; }
.note-card .btn { background: #fff; color: var(--red-dark); margin-top: .8rem; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.contact-full { max-width: 980px; }
.contact-flyer { position: sticky; top: 100px; }
.home-contact-card h3 { margin: .3rem 0 1rem; font-size: 2rem; }
.home-contact-card .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-contact-card .form-field.full { grid-column: 1 / -1; }

.form-page { padding: 46px 0 70px; }
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.form-card, .cms-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(17,24,39,.10);
  padding: 1.45rem;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.participant-card {
  margin: 1.15rem 0;
  padding: 1rem;
  border: 1px solid rgba(215, 25, 32, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff7dc 100%);
}
.participant-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
}
.participant-card-head h4 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}
.participant-card-head span { color: #667085; font-weight: 750; font-size: .92rem; }
.participant-row {
  display: grid;
  gap: .8rem;
  align-items: end;
  padding: .85rem 0;
  border-top: 1px solid rgba(17, 24, 39, .1);
}
.participant-row.name-count-row { grid-template-columns: minmax(0, 1fr) minmax(110px, 160px); }
.participant-row.name-count-row .participant-title { grid-column: 1 / -1; margin-bottom: -.35rem; }
.participant-row.name-count-row .participant-name { grid-column: 1; }
.participant-row.name-count-row .participant-count { grid-column: 2; }
.participant-row.count-row { grid-template-columns: minmax(220px, 1fr) minmax(110px, 160px); }
.participant-row.count-row .participant-title { grid-column: 1; }
.participant-row.count-row .participant-count { grid-column: 2; }
.participant-title {
  align-self: center;
  font-weight: 950;
  color: #1d2939;
}
.participant-input label {
  color: #475467;
  font-size: .86rem;
  margin-bottom: .28rem;
}
.participant-count input { text-align: center; font-weight: 900; }
label { display: block; font-weight: 900; margin-bottom: .35rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: .85rem .95rem;
  font: inherit;
  background: #fff;
  transition: border .16s ease, box-shadow .16s ease;
}
textarea { min-height: 135px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,25,32,.12); }
.req { color: var(--red); }
.error-text { color: var(--red-dark); font-weight: 800; font-size: .92rem; margin-top: .3rem; }
.form-alert { border-radius: 18px; padding: 1rem; margin: 1rem 0; font-weight: 800; }
.form-alert.success { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.form-alert.error { background: #fff1f3; color: #c01048; border: 1px solid #fecdd6; }
.checkbox-line { display: flex; gap: .75rem; align-items: flex-start; margin: 1rem 0; }
.checkbox-line input { width: 1.2rem; height: 1.2rem; margin-top: .18rem; accent-color: var(--red); }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.content-page { padding: 54px 0 76px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1.2rem, 4vw, 2.4rem); }
.content-card h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .95; letter-spacing: -.05em; margin-top: 0; }
.content-card h2 { margin-top: 2rem; }

.site-footer {
  padding: 38px 0;
  background: #111827;
  color: #fff;
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.3rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: #fff; text-decoration: none; opacity: .88; }
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-logo { max-height: 52px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.24)); }

/* CMS */
.cms-body { background: #f8fafc; }
.cms-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.cms-sidebar { background: #111827; color: #fff; padding: 1.2rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.cms-brand { display: flex; align-items: center; gap: .8rem; font-weight: 1000; text-decoration: none; color: #fff; margin-bottom: 1.3rem; }
.cms-brand span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--red); }
.cms-nav { display: grid; gap: .35rem; }
.cms-nav a { color: rgba(255,255,255,.86); text-decoration: none; padding: .75rem .85rem; border-radius: 14px; font-weight: 850; }
.cms-nav a:hover, .cms-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.cms-main { padding: 2rem; }
.cms-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.cms-topbar h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; }
.cms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cms-stat { background: #fff; border: 1px solid #e4e7ec; border-radius: 22px; padding: 1.1rem; box-shadow: 0 14px 30px rgba(17,24,39,.06); }
.cms-stat strong { display: block; font-size: 2rem; }
.cms-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e4e7ec; border-radius: 22px; box-shadow: 0 14px 30px rgba(17,24,39,.06); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #eef2f6; padding: .85rem; vertical-align: top; }
th { background: #f9fafb; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; color: #475467; }
tr:last-child td { border-bottom: 0; }
.status-pill { display: inline-flex; padding: .25rem .55rem; border-radius: 999px; font-weight: 900; font-size: .82rem; }
.status-on { background: #ecfdf3; color: #027a48; }
.status-off { background: #f2f4f7; color: #667085; }
.cms-form { display: grid; gap: 1rem; max-width: 860px; }
.cms-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.flash { border-radius: 18px; padding: 1rem; margin: 0 0 1rem; font-weight: 850; background: #eff8ff; color: #175cd3; border: 1px solid #b2ddff; }
.flash.error { background: #fff1f3; color: #c01048; border-color: #fecdd6; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; background: radial-gradient(circle at 20% 10%, rgba(255,210,31,.28), transparent 30rem), #111827; }
.login-card { width: min(460px, 100%); background: #fff; border-radius: 28px; padding: 1.6rem; box-shadow: var(--shadow); }
.login-card h1 { margin: .3rem 0 1rem; }

@media (max-width: 920px) {
  .hero-grid, .split, .form-wrap, .contact-layout { grid-template-columns: 1fr; }
  .contact-flyer { position: static; }
  .hero::before { opacity: .22; background-size: 780px auto; background-position: center bottom; }
  .info-strip, .cms-grid { grid-template-columns: 1fr; }
  .cms-shell { grid-template-columns: 1fr; }
  .cms-sidebar { position: static; height: auto; }
  .cms-main { padding: 1rem; }
}
@media (max-width: 680px) {
  .navbar { align-items: flex-start; flex-direction: column; padding: .8rem 0; }
  .navlinks { justify-content: flex-start; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-time { justify-content: start; place-items: start; }
  .form-grid, .cms-form .two { grid-template-columns: 1fr; }
  .participant-card-head { display: block; }
  .participant-row.name-count-row, .participant-row.count-row { grid-template-columns: 1fr; }
  .participant-row.name-count-row .participant-title,
  .participant-row.name-count-row .participant-name,
  .participant-row.name-count-row .participant-count,
  .participant-row.count-row .participant-title,
  .participant-row.count-row .participant-count { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
