/* ===== HEADER ===== */

.site-header {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.header-logo img {
  height: 65px;
  width: auto;
  display: block;
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.main-nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  position: relative;
  padding-block: 0.2rem;
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  transition: width 0.2s ease;
}

.main-nav__link:hover {
  color: #000;
}

.main-nav__link:hover::after,
.main-nav__link--active::after {
  width: 100%;
}

/* Header-CTA */

.header-cta {
  padding-inline: 1.8rem;
  border-radius: 999px;
}

/* ===== HERO STARTSEITE ===== */



.hero--home {
  min-height: calc(100vh - 80px);
  /* grob: volle Höhe abzüglich Header */
  background-image: url("C:/Users/Julian/Documents/Schwimmspass/assets/images/Bild_05.jpg");
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 50, 110, 0.8),
      rgba(0, 50, 110, 0.25));
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4rem;
  z-index: 1;
  /* max-width removed to allow left alignment via container */
}

/* Homepage keeps heading at the top/center */
.hero--home .hero__inner {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

/* Subpages have heading at the bottom */
.hero--subpage .hero__inner,
.hero--angebote .hero__inner {
  padding-top: 3rem;
  padding-bottom: 4rem;
  /* Fixed bottom padding for consistent title position at bottom */
}

.hero__kicker {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}

/* Hero-Buttons */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-btn {
  font-size: 1rem;
}

.hero-btn--light {
  background: var(--white);
  color: #111827;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.hero-btn--light:hover {
  background: #f3f4f6;
}

.hero-btn--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.hero-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-btn__icon {
  font-size: 1.2rem;
  margin-right: 0.3rem;
}


/* Standard: Desktop - Button verstecken */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Liniendesign */
.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle__line+.nav-toggle__line {
  margin-top: 5px;
}

/* Zustand "aktiv" – Kreuz */
.nav-toggle.is-open .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ===== NEUE SEKTIONEN (Homepage Design Ref) ===== */

/* --- About / Wellness (Text links, Bild rechts) --- */
.section-about .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: auto;
  height: 500px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  display: block;
}

/* --- Discovery / Vielfalt (Große Image-Card) --- */
.section-discovery {
  text-align: center;
}

.discovery-card {
  position: relative;
  width: 100%;
  min-height: 400px;
  /* oder aspect-ratio */
  border-radius: var(--radius-large);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

/* Slider Essentials */
.discovery-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Optional: Masking for smooth edges if needed */
}

.slider-track {
  display: flex;
  width: max-content;
  /* allows content to flow horizontally */
  transition: transform 0.5s ease-in-out;
}

.slider-item {
  width: 100vw;
  /* Fallback */
  max-width: 1200px;
  /* limit to container width roughly? No, usually 100% of slider container */
  /* Actually, if the slider is in .container, width is limited to container width. */
  width: 100%;
  flex-shrink: 0;
  padding-right: 2rem;
  /* Gap between slides */
  box-sizing: border-box;
}

/* Adjust card margin since it's now in item */
.slider-item .discovery-card {
  margin-top: 2rem;
  /* retain margin */
  width: 100%;
}


.discovery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease;
}

.discovery-card:hover .discovery-bg {
  transform: scale(1.03);
}

.discovery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, transparent 60%);
  z-index: 1;
}

.discovery-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  color: var(--white);
  max-width: 600px;
}

.discovery-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.discovery-text {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* --- Testimonials / Gäste --- */
.section-testimonials {
  text-align: center;
}

.testimonials-grid {
  display: flex;
  gap: var(--grid-gap);
  margin-top: var(--spacing-xl);
  text-align: left;
}

.testimonial-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-large);
  padding: var(--card-padding);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.stars {
  color: #ffc107;
  /* gelbe Sterne */
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  flex: 1;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-text);
}

/* --- Bottom CTA --- */
.section-cta-bottom {
  background: var(--gradient-cta);
  color: var(--white);
  text-align: center;
  padding-block: var(--spacing-3xl);
}

.cta-bottom-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-bottom-text {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.btn--white {
  background: var(--white);
  color: var(--blue-text);
}

.btn--white:hover {
  background: #f0f0f0;
}

.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

@media (max-width: 900px) {
  .section-about .container {
    flex-direction: column;
  }

  .testimonials-grid {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    /* Zentriert die Buttons vertical */
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    /* Begrenzte Breite für schönere Optik */
  }
}

/* ===== ANGEBOTE & EVENTS PAGE ===== */

/* Hero sections for all subpages (non-homepage) */
.hero--angebote,
.hero--subpage {
  min-height: 67vh;
  /* 2/3 of viewport height */
  display: flex;
  align-items: flex-end;
  /* Align to bottom for heading position */
  background-size: cover;
  background-position: center;
}

/* Specific background for Angebote page */
.hero--angebote {
  background-image: url("../../assets/images/Bild_05.jpg");
}

/* Intro Section */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-large);
  align-items: center;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Offers Grid */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  padding-bottom: var(--grid-gap);
}

.offer-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--card-padding);
}

.offers-grid .offer-card {
  margin-top: 0;
}

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

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

/* ... previous styles ... */

/* ===== CONTACT PAGE ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap-large);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #444;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-medium);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 3px rgba(0, 79, 159, 0.1);
}

/* ... previous styles ... */

/* ===== CALENDAR & MODAL ===== */

.calendar-widget {
  background: white;
  border-radius: var(--radius-large);
  border: 1px solid #e5e7eb;
  padding: var(--grid-gap);
  max-width: 400px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.calendar-month {
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.calendar-day-label {
  color: #888;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: default;
  font-weight: 500;
}

.calendar-day--free {
  background-color: var(--blue-dark);
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
}

.calendar-day--free:hover {
  opacity: 0.8;
}

.calendar-day--booked {
  background-color: var(--orange);
  color: white;
}

.calendar-day--empty {
  pointer-events: none;
}

.calendar-legend {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Modal */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.booking-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: var(--card-padding);
  border-radius: var(--radius-large);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.booking-modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: #f1f1f1;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #e1e1e1;
  color: #333;
}

/* ... previous styles ... */

/* ===== BIRTHDAY PAGE FORM ===== */

.contact-grid--birthday {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 900px) {
  .contact-grid--birthday {
    grid-template-columns: 1fr;
  }
}

.birthday-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  margin-bottom: var(--grid-gap);
}

@media (max-width: 600px) {
  .birthday-form-grid {
    grid-template-columns: 1fr;
  }
}

.form-subheading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  display: block;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.custom-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.custom-control input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--blue-dark);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.underline-input {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 0.5rem 0;
  background: transparent;
}

.underline-input:focus {
  border-bottom-color: var(--blue-dark);
  box-shadow: none;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.offer-list li a:hover {
  color: var(--blue-text);
  border-bottom-color: #eee;
}

.offer-list li a .arrow {
  color: var(--blue-dark);
  font-weight: bold;
  transition: transform 0.2s;
}

.offer-list li a:hover .arrow {
  transform: translateX(4px);
}

/* Offer Card Wide Specifics */
.offer-card--wide .offer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 4rem;
}

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-card--wide .offer-list {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER (1:1 Design) ===== */

/* Override basic footer padding/layout if needed */
.site-footer {
  padding: var(--section-padding) 0 var(--grid-gap);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex !important;
  /* Force flex */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--grid-gap);
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col--logo {
  flex: 0 0 auto;
  /* Logo column width auto */
  margin-right: 2rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.footer-col p {
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.footer-socials {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-socials a {
  color: var(--white);
  transition: opacity 0.2s ease;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding-top: var(--grid-gap);
  margin-top: var(--spacing-sm);
}

.footer-bottom-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}