:root {
  --muted: rgba(148, 163, 184, 0.95);
  --success: #22c55e;
  --danger: #ef4444;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  --card-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.97));
  --card-bg-soft: rgba(15, 23, 42, 0.74);
  --card-line: rgba(148, 163, 184, 0.16);
}

body {
  background: url('/images/bg2.jpg') center / cover no-repeat fixed;
}

.subheader {
  display: none;
}

.sommerfest-page {
  color: var(--text);
  display: grid;
  gap: 1.5rem;
}

.card-glass,
.sf-stat-card,
.sf-panel-card,
.sf-form-card,
.sf-person-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.sf-cover {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 520px;
  padding: 0;
}

.sf-cover-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.sf-cover::after {
  content: '';
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22), transparent 65%);
  pointer-events: none;
}

.sf-cover-content {
  position: relative;
  z-index: 2;
  min-height: 420px;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.sf-cover-copy h1 {
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
  text-wrap: balance;
}

.sf-lead {
  margin: 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 1.02rem;
}

.sf-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.sf-cover-badge {
  width: fit-content;
  min-width: 180px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.sf-cover-badge span,
.sf-cover-badge small {
  display: block;
  color: rgba(226, 232, 240, 0.82);
}

.sf-cover-badge strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0.25rem 0;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  font-size: 0.92rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.sf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sf-stat-card {
  border-radius: 24px;
  padding: 1.15rem 1.15rem;
}

.sf-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
}

.sf-stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.sf-stat-card small {
  color: var(--muted);
}

.sf-tabs {
  margin-top: 0.2rem;

}

.sf-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
    align-items: center;
  justify-content: center;
  text-align: center;
}

.sf-tab-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 700;
}

.sf-tab-btn:hover,
.sf-tab-btn.is-active {
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #0f172a;
  border-color: transparent;
  transform: translateY(-1px);
}

.sf-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.sf-panel-card,
.sf-form-card {
  border-radius: 28px;
  padding: 1.35rem;
}

.sf-panel-card-wide {
  grid-column: 1 / -1;
}

.sf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.sf-card-head h2 {
  margin: 0;
}

.sf-card-head span,
.sf-muted,
.sf-person-top p,
.sf-person-body p {
  color: var(--muted);
}

.sf-detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.35rem;
  align-items: center;
}

.sf-detail-list {
  margin: 0;
  padding-left: 1rem;
}

.sf-detail-list li + li {
  margin-top: 0.55rem;
}

.sf-feature-block {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--card-line);
}

.sf-feature-block h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.sf-highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sf-highlight-item {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(248, 250, 252, 0.96);
}

.sf-photo-stack {
  position: relative;
  min-height: 340px;
  display: grid;
  align-items: center;
}

.sf-photo-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  background: rgba(15, 23, 42, 0.72);
}

.sf-photo-card-main {
  min-height: 420px;
}

.sf-photo-card-float {
  position: absolute;
  right: -0.5rem;
  bottom: -0.8rem;
  width: 54%;
  min-height: 170px;
  transform: rotate(4deg);
}

.sf-photo-fill {
  min-height: inherit;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.sf-photo-caption {
  display: block;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.9);
  background: rgba(2, 6, 23, 0.92);
}

.food-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.food-pie-wrap {
  display: grid;
  place-items: center;
}

.food-pie-shell {
  padding: 14px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.food-pie {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.food-pie-center {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.food-pie-center strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.food-pie-center span {
  color: var(--muted);
  font-size: 0.82rem;
}

.food-legend {
  display: grid;
  gap: 0.75rem;
}

.food-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.food-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.2rem;
}

.food-legend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.food-legend-copy small {
  color: var(--muted);
}

.sf-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.sf-gallery-item {
  grid-column: span 3;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.sf-gallery-item.is-large {
  grid-column: span 6;
}

.sf-gallery-item.is-wide {
  grid-column: span 5;
}

.sf-gallery-item.is-tall .sf-gallery-photo {
  min-height: 620px;
}

.sf-gallery-photo {
  min-height: 410px;
  background-size: cover;
  background-position: center;
}

.sf-gallery-item figcaption {
  padding: 0.8rem 0.9rem;
  color: rgba(241, 245, 249, 0.92);
}

.register-group-title {
  padding-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field-input {
  border-radius: 0.95rem;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  padding: 0.82rem 0.9rem;
  font-size: 0.96rem;
  outline: none;
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.field-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
  background: rgba(15, 23, 42, 1);
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(226, 232, 240, 0.92);
}

.checkbox-label input[type='checkbox'] {
  margin-top: 0.2rem;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.register-actions {
  margin-top: 1.5rem;
}

.btn.btn-primary,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.55rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  outline: none;
  background: linear-gradient(135deg, var(--gold), #facc15);
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  filter: brightness(1.02);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.is-hidden {
  display: none !important;
}

.sf-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sf-person-card {
  border-radius: 24px;
  padding: 1rem;
}

.sf-person-top {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.85rem;
}



.sf-person-top h3 {
  margin: 0 0 0.25rem;
}

.sf-person-top p,
.sf-person-body p {
  margin: 0.2rem 0;
}

.sf-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.sf-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 128, 203, 0.16);
  border: 1px solid rgba(0, 128, 203, 0.25);
  color: #d8effd;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .sf-stats-grid,
  .sf-overview-grid,
  .sf-people-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-detail-layout,
  .food-layout {
    grid-template-columns: 1fr;
  }

  .sf-photo-stack {
    min-height: 300px;
  }

  .sf-gallery-item {
    grid-column: span 6;
  }

  .sf-gallery-item.is-large,
  .sf-gallery-item.is-wide {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .sommerfest-page {
    gap: 1.1rem;
  }

  .sf-cover {
    min-height: 420px;
  }

  .sf-cover-content {
    min-height: 420px;
    padding: 1.15rem;
  }

  .sf-stats-grid,
  .sf-overview-grid,
  .sf-people-grid,
  .form-grid,
  .sf-highlight-list {
    grid-template-columns: 1fr;
  }

  .sf-tab-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sf-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .sf-panel-card,
  .sf-form-card,
  .sf-stat-card {
    padding: 1rem;
  }

  .sf-gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .sf-gallery-item,
  .sf-gallery-item.is-large,
  .sf-gallery-item.is-wide {
    grid-column: auto;
  }

  .sf-photo-card-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 78%;
    margin-top: -1.5rem;
    justify-self: end;
  }
  .food-pie {
    width: 200px;
    height: 200px;
  }

  .food-pie-center {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 520px) {
  .sf-cover-copy h1 {
    font-size: 2rem;
  }

  .sf-hero-chips {
    gap: 0.55rem;
  }

  .sf-chip {
    width: 100%;
    justify-content: center;
  }

  .sf-cover-badge {
    width: 100%;
  }

  .sf-person-top {
    align-items: flex-start;
  }
}



.people-graphic-simple {
  display: grid;
  gap: 1.2rem;
}

.people-total-top {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(0, 128, 203, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.people-total-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
}

.people-total-number {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.45rem;
  color: #fff;
}

.people-total-sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.people-metrics-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.people-metric {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.people-metric small,
.people-metric span {
  display: block;
  color: var(--muted);
}

.people-metric strong {
  display: block;
  font-size: 1.75rem;
  margin: 0.15rem 0 0.25rem;
}

.people-metric.adults {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(15, 23, 42, 0.72));
}

.people-metric.kids {
  background: linear-gradient(135deg, rgba(0, 128, 203, 0.18), rgba(15, 23, 42, 0.72));
}

.people-metric.helpers {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(15, 23, 42, 0.72));
}
  .people-metric {
    align-items: center;
    text-align: center;
    justify-content: center;
  }
@media (max-width: 780px) {
  .people-metrics-simple {
    grid-template-columns: 1fr;    
  }


  .people-total-top {
    padding: 1.15rem 0.9rem;
  }

  .people-total-number {
    font-size: 3rem;
  }
}
h2 {
  color: #bcd6f1 !important;;
}


.sf-cta-card {
  margin-top:2vh;
  overflow: hidden;
}

.sf-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.35rem 0;
}

.sf-cta-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.sf-cta-content h2 {
  margin: 0 0 0.45rem;
}

.sf-register-cta {
  flex-shrink: 0;
  min-width: 180px;
}

@media (max-width: 780px) {
  .sf-cta-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .sf-register-cta {
    width: 100%;
  }
}