/* ============================================================
   DORFFEST ARBOLDSWIL 2028 — Page-Specific Styles
   pages.css
   ============================================================ */

/* ============================================================
   HOME PAGE — DRONE BANNER & MAIN LOGO SECTION
   ============================================================ */

/* ---- Drone Video Banner (Above the Logo) ---- */
.drone-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vh, 460px);
  margin-top: 64px; /* Space for fixed navbar */
  overflow: hidden;
  background: #000000;
}

.drone-banner__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.drone-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.20) 0%,
    transparent 35%,
    transparent 65%,
    rgba(15, 23, 42, 0.40) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.drone-banner__badge {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-lg);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  pointer-events: none;
}

/* ---- Main Logo Section on White Background (Below Video) ---- */
.home-logo-section {
  position: relative;
  background: #ffffff;
  padding: 0 var(--space-xl) clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 5;
}

.home-logo-section__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}

.home-logo-section__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(-70px, -9vw, -115px); /* Gentle overlap of top sun rays over drone video */
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); /* Distinct distance to tagline text */
  width: 100%;
  position: relative;
  z-index: 10;
}

.home-logo-section__img {
  width: clamp(290px, 48vw, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22))
          drop-shadow(0 2px 8px rgba(0, 57, 136, 0.12));
  transition: transform 0.4s var(--ease-spring);
}

.home-logo-section__img:hover {
  transform: scale(1.02);
}

.home-logo-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.home-logo-section__tagline {
  color: #475569;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.home-logo-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ---- Welcome Section ---- */
.welcome-section {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.welcome-section p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #475569;
  line-height: 1.85;
}

.welcome-section .lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: var(--fw-medium);
  color: var(--clr-primary-black);
  line-height: 1.7;
}

/* ---- Highlights Grid & Feature Cards with Blue Header Bar ---- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 500px;
    margin-inline: auto;
  }
}

.feature-card,
.highlight-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  height: 100%;
  text-align: center;
}

.feature-card:hover,
.highlight-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Blue Header Bar in FEST logo blue #003988 */
.feature-card__header,
.highlight-card__header {
  background: #003988;
  background: linear-gradient(135deg, #002b66 0%, #003988 100%);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid rgba(255, 215, 0, 0.85); /* golden festival accent line */
}

.feature-card__header::before,
.highlight-card__header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card__title,
.highlight-card__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* Card Body */
.feature-card__body,
.highlight-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: #FFFFFF;
}

.feature-card__text,
.highlight-card__text {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Action Button */
.feature-card__btn,
.highlight-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 57, 136, 0.05);
  color: #003988;
  border: 1.5px solid #003988;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
  align-self: center;
}

.feature-card__btn:hover,
.highlight-card__btn:hover {
  background: #003988;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 57, 136, 0.22);
}

/* ---- Counter / Stats Section ---- */
.stats-section {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
  padding: var(--space-2xl) 0;
  margin-block: var(--space-2xl);
}

/* ---- Counter / Stats Section ---- */
.stats-section {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px -10px rgba(0, 57, 136, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: var(--space-2xl) var(--space-lg);
  margin-block: var(--space-2xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat-item {
  padding: var(--space-md);
  position: relative;
}

.stat-item__number {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  color: #003988;
  line-height: 1.1;
  margin-bottom: var(--space-2xs);
  display: block;
  text-shadow: 0 2px 10px rgba(0, 57, 136, 0.12);
}

.stat-item__label {
  font-size: var(--fs-small);
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-item {
    padding: var(--space-lg);
    border-bottom: 1px solid #e2e8f0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   ORGANISATIONSKOMITEE PAGE
   ============================================================ */

/* ---- OK Hero (Smaller) ---- */
.ok-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ok-hero__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax */
  z-index: 0;
}

@supports (-webkit-touch-callout: none) {
  /* iOS doesn't support background-attachment: fixed */
  .ok-hero__background {
    background-attachment: scroll;
  }
}

.ok-hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 43, 102, 0.7) 0%,
    rgba(0, 57, 136, 0.9) 100%
  );
}

.ok-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl);
}

.ok-hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  color: #FFFFFF !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-md);
}

.ok-hero__subtitle {
  font-family: var(--ff-body);
  font-size: var(--fs-h4);
  color: #FFFFFF !important;
  opacity: 0.92;
  font-weight: 400;
}

/* ---- OK Intro ---- */
.ok-intro {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  padding-bottom: var(--space-3xl);
}

.ok-intro p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: #475569;
}

.ok-intro .highlight-text {
  color: var(--clr-royal-blue);
  font-weight: var(--fw-bold);
}

/* ---- OK Roles Section ---- */
.ok-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.ok-role-card {
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.ok-role-card:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
}

.ok-role-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-black);
  margin-bottom: var(--space-sm);
}

.ok-role-card__members {
  color: #475569;
  font-size: var(--fs-small);
  line-height: 1.8;
}

/* ============================================================
   FESTGELÄNDE PAGE
   ============================================================ */

/* ---- Venue Map ---- */
.venue-map {
  position: relative;
  width: 100%;
  min-height: 400px;
  border: 2px dashed rgba(0, 57, 136, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-white);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.venue-map__placeholder {
  text-align: center;
  color: #64748b;
  padding: var(--space-xl);
}

.venue-map__placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--clr-royal-blue);
}

.venue-map__placeholder-text {
  font-size: var(--fs-h5);
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-black);
}

.venue-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
}

/* ---- Info Cards Grid ---- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.info-card {
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.info-card:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
  transform: translateY(-4px);
}

.info-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 57, 136, 0.08);
  border-radius: var(--radius-md);
  color: var(--clr-royal-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  color: var(--clr-primary-black);
}

.info-card__content {
  color: #475569;
  font-size: var(--fs-small);
  line-height: 1.8;
}

.info-card__content ul {
  margin-top: var(--space-sm);
}

.info-card__content li {
  padding: var(--space-2xs) 0;
  padding-left: var(--space-md);
  position: relative;
}

.info-card__content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--clr-royal-blue);
  border-radius: var(--radius-circle);
}

@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Directions Section ---- */
.directions-section {
  margin-top: var(--space-2xl);
}

.directions-map {
  width: 100%;
  min-height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--clr-white);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.directions-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-lg);
}

.directions-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.direction-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.direction-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 57, 136, 0.08);
  border-radius: var(--radius-sm);
  color: var(--clr-royal-blue);
}

.direction-item__text {
  color: #475569;
  font-size: var(--fs-small);
  line-height: 1.7;
}

.direction-item__text strong {
  display: block;
  color: var(--clr-primary-black);
  margin-bottom: var(--space-2xs);
}

/* ============================================================
   PROGRAMM PAGE
   ============================================================ */

/* ---- Program Tabs ---- */
.program-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.program-tabs::-webkit-scrollbar {
  display: none;
}

.program-tab {
  position: relative;
  padding: 12px 28px;
  font-family: var(--ff-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  color: #475569;
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-base);
}

.program-tab:hover {
  color: var(--clr-royal-blue);
  border-color: rgba(0, 57, 136, 0.4);
  background: rgba(0, 57, 136, 0.04);
}

.program-tab.active {
  color: #FFFFFF;
  background: #003988;
  border-color: #003988;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 16px rgba(0, 57, 136, 0.25);
}

.program-tab__date {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  opacity: 0.85;
  margin-top: 2px;
}

.program-tab.active .program-tab__date {
  opacity: 0.95;
  color: #FFFFFF;
}

/* ---- Program Day ---- */
.program-day {
  display: none;
}

.program-day.active {
  display: block;
  animation: program-fade-in 0.4s ease-out;
}

@keyframes program-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Program Filters ---- */
.program-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.program-filter {
  padding: 8px 20px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  color: #475569;
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.program-filter:hover {
  color: var(--clr-royal-blue);
  border-color: rgba(0, 57, 136, 0.3);
  background: rgba(0, 57, 136, 0.04);
}

.program-filter.active {
  color: #FFFFFF;
  border-color: #003988;
  background: #003988;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 57, 136, 0.2);
}

/* ---- Program Grid Alternative ---- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.program-event {
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.program-event:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
  transform: translateY(-4px);
}

.program-event__time {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #FFFFFF;
  background: #003988;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.program-event__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: var(--space-xs);
}

.program-event__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--clr-primary-black);
  margin: var(--space-sm) 0 var(--space-xs);
}

.program-event__location {
  font-size: var(--fs-small);
  color: #64748b;
  margin-bottom: var(--space-xs);
}

.program-event__description {
  font-size: var(--fs-small);
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .program-tabs {
    justify-content: flex-start;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SPONSOREN PAGE
   ============================================================ */

/* ---- Sponsor CTA ---- */
.sponsor-cta {
  position: relative;
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 57, 136, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sponsor-cta__content {
  position: relative;
  z-index: 1;
}

.sponsor-cta__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--clr-primary-black);
  margin-bottom: var(--space-md);
}

.sponsor-cta__text {
  max-width: 600px;
  margin-inline: auto;
  color: #475569;
  font-size: var(--fs-body);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.sponsor-cta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sponsor Download ---- */
.sponsor-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.sponsor-download__info {
  text-align: left;
}

.sponsor-download__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--clr-primary-black);
  margin-bottom: var(--space-2xs);
}

.sponsor-download__subtitle {
  font-size: var(--fs-small);
  color: #64748b;
}

@media (max-width: 768px) {
  .sponsor-cta {
    padding: var(--space-2xl) var(--space-lg);
  }

  .sponsor-download {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .sponsor-download__info {
    text-align: center;
  }
}

/* ---- Sponsor Page Tiers ---- */
.sponsor-page-section {
  padding-bottom: var(--space-3xl);
}

.sponsor-page-section:last-child {
  padding-bottom: 0;
}

.sponsor-page-tier-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--clr-primary-black);
  position: relative;
  padding-bottom: var(--space-md);
}

.sponsor-page-tier-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--clr-royal-blue);
  border-radius: 2px;
}

.sponsor-page-grid {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: var(--space-xl);
}

/* Main Sponsors — large, 2 cols */
.sponsor-page-section--main .sponsor-page-grid {
  grid-template-columns: repeat(2, 1fr);
}

.sponsor-page-section--main .sponsor-page-item {
  padding: var(--space-2xl);
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.sponsor-page-section--main .sponsor-page-item:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
  transform: translateY(-3px);
}

/* Co-Sponsors — medium, 3 cols */
.sponsor-page-section--co .sponsor-page-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sponsor-page-section--co .sponsor-page-item {
  padding: var(--space-xl);
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.sponsor-page-section--co .sponsor-page-item:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
  transform: translateY(-3px);
}

/* Small Sponsors — small, 4-5 cols */
.sponsor-page-section--small .sponsor-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.sponsor-page-section--small .sponsor-page-item {
  padding: var(--space-lg);
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-sm);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
}

.sponsor-page-section--small .sponsor-page-item:hover {
  border-color: rgba(0, 57, 136, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 57, 136, 0.12);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .sponsor-page-section--main .sponsor-page-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-page-section--co .sponsor-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsor-page-section--small .sponsor-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .sponsor-page-section--co .sponsor-page-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-page-section--small .sponsor-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   SHARED PAGE PATTERNS
   ============================================================ */

/* ---- Page Hero (generic smaller hero for inner pages) ---- */
.page-hero {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px var(--space-xl) var(--space-2xl);
  background: #003988;
  background: linear-gradient(135deg, #002b66 0%, #003988 50%, #0046a6 100%);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100vw);
  height: min(800px, 100vw);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__breadcrumb {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.page-hero__breadcrumb a {
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
  opacity: 1;
  color: #FFFFFF;
  text-decoration: underline;
}

.page-hero__breadcrumb .separator {
  margin: 0 var(--space-xs);
  opacity: 0.5;
  color: #ffffff;
}

.page-hero__title,
.page-hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.01em;
}

.page-hero__subtitle,
.page-hero p {
  font-family: var(--ff-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #FFFFFF !important;
  opacity: 0.92;
  font-weight: 400;
  max-width: 650px;
  margin-inline: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---- Content Section ---- */
.content-section {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.content-section h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-section p + p {
  margin-top: var(--space-md);
}

.content-section ul,
.content-section ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.content-section li {
  padding: var(--space-2xs) 0;
  color: var(--clr-white-80);
  position: relative;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md));
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--clr-sun-yellow);
  border-radius: var(--radius-circle);
}

/* ---- Divider ---- */
.page-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--clr-white-10),
    transparent
  );
  margin: var(--space-3xl) 0;
  border: none;
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-sun-yellow);
  color: var(--clr-primary-black);
  border-radius: var(--radius-circle);
  box-shadow: var(--shadow-glow-yellow);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-yellow-strong);
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 30vh;
    padding: var(--space-3xl) var(--space-md) var(--space-xl);
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   SHARED UTILITY SECTIONS
   ============================================================ */

/* ---- Generic Section Padding ---- */
.section {
  padding-block: var(--space-4xl);
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

/* ---- Page Intro (shared on inner pages) ---- */
.page-intro {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.page-intro p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #475569;
  line-height: 1.85;
}

/* ---- Welcome Content (home) ---- */
.welcome-content {
  text-align: center;
  max-width: var(--max-width-narrow);
  margin-inline: auto;
}

.welcome-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #334155;
  line-height: 1.85;
  margin-bottom: var(--space-2xl);
}

.welcome-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.welcome-image__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.welcome-image:hover .welcome-image__img {
  transform: scale(1.03);
}

.welcome-image__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
  font-size: var(--fs-small);
  color: #ffffff;
  text-align: center;
}

/* ---- Highlights Section Background ---- */
.highlights-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.highlights-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100vw);
  height: min(600px, 100vw);
  background: radial-gradient(
    circle,
    rgba(0, 57, 136, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* ============================================================
   LEGAL / IMPRESSUM & DATENSCHUTZ PAGES
   ============================================================ */
.legal-card {
  background: var(--clr-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  box-shadow: 0 10px 30px -10px rgba(0, 57, 136, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
  max-width: 900px;
  margin: var(--space-xl) auto var(--space-3xl);
}

.legal-card h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: #0f172a;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: 2px solid rgba(0, 57, 136, 0.15);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: #1e293b;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-card p,
.legal-card ul {
  font-size: var(--fs-body);
  color: #475569;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-card strong,
.legal-card b {
  color: #0f172a;
  font-weight: 700;
}

.legal-card ul {
  padding-left: var(--space-xl);
  list-style: disc;
}

.legal-card li {
  margin-bottom: var(--space-xs);
}

.text-link {
  color: var(--clr-royal-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #002b66;
}
