/* ============================================================
   K&R Tours – Stylesheet
   Color palette:
     --navy:   #16102a  (primary dark background)
     --purple: #5b3494  (brand purple)
     --purple-l: #7e52c8  (lighter accent purple)
     --gold:   #e8a020  (highlight / CTA)
     --light:  #f5f2fb  (section background)
     --white:  #ffffff
     --text:   #1a2333
     --muted:  #5a6a7a
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1a2333;
  background: #ffffff;
  line-height: 1.6;
}

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

a {
  color: #7e52c8;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #5b3494;
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #5b3494;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 3px solid #e8a020;
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--dark {
  background: #16102a;
  color: #f5f2fb;
}

.section--light {
  background: #f5f2fb;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: inherit;
}

.section__subtitle {
  color: #5a6a7a;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section--dark .section__subtitle {
  color: #b8a8d0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #16102a;
  border-bottom: 2px solid #5b3494;
  padding: 0.75rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo__text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.site-logo__text span {
  color: #e8a020;
}

.site-header__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  color: #e8a020;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus {
  color: #f4b840;
}

/* Nav */
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav__link {
  color: #c8d8e8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.site-nav__link:hover,
.site-nav__link:focus,
.site-nav__link[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: #e8a020;
}

/* Hamburger / mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #b8a8d0;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #16102a;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero__img-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #16102a 0%, #5b3494 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img-placeholder-text {
  color: rgba(255,255,255,0.15);
  font-size: 1rem;
  text-align: center;
  font-style: italic;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-block;
  background: #e8a020;
  color: #16102a;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__title span {
  color: #e8a020;
}

.hero__desc {
  color: #b8a8d0;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.2;
}

.btn--primary {
  background: #e8a020;
  color: #16102a;
  border-color: #e8a020;
}

.btn--primary:hover,
.btn--primary:focus {
  background: #f4b840;
  border-color: #f4b840;
  color: #16102a;
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline:hover,
.btn--outline:focus {
  background: #ffffff;
  color: #16102a;
}

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

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e8e0f4;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(27,79,138,0.12);
  transform: translateY(-3px);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #16102a;
}

.service-card__desc {
  color: #5a6a7a;
  font-size: 0.95rem;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #5b3494;
  color: #ffffff;
  padding: 3rem 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-bar__number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #e8a020;
  line-height: 1;
  display: block;
}

.trust-bar__label {
  font-size: 0.95rem;
  color: #c8d8e8;
  margin-top: 0.4rem;
  display: block;
}

/* ---------- About teaser ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-teaser__img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-teaser__img-placeholder {
  color: #5a6a7a;
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.about-teaser__text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #16102a;
}

.about-teaser__text p {
  color: #5a6a7a;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ---------- Offer form section ---------- */
.form-section {
  background: #f5f2fb;
}

.form-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(13,27,42,0.10);
  padding: 2.5rem;
}

.form-intro {
  margin-bottom: 2rem;
}

.form-intro p {
  color: #5a6a7a;
  font-size: 1rem;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.form-grid .form-group--full {
  grid-column: 1 / -1;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2333;
}

.form-group label .required-mark {
  color: #c0392b;
  margin-left: 2px;
  aria-hidden: true;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #c5d2e0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a2333;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #7e52c8;
  box-shadow: 0 0 0 3px rgba(45,114,200,0.15);
  outline: none;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

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

.form-error {
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 500;
  display: none;
}

.form-error--visible {
  display: block;
}

/* Checkbox groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  accent-color: #5b3494;
  flex-shrink: 0;
  cursor: pointer;
}

/* Collapsible return-date section (kept for backwards compat, hidden) */
.return-date-group {
  display: none;
  grid-column: 1 / -1;
}

.return-date-group.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

/* ---- Return-leg section header ---- */
.return-legs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #e8e0f4;
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

/* ---- Return-leg card ---- */
.return-leg-card {
  background: #faf8ff;
  border: 1.5px solid #c9b8f0;
  border-left: 4px solid #5b3494;
  border-radius: 8px;
  padding: 1rem 1.1rem 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(91,52,148,0.06);
}

.return-leg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0d4f7;
}

.return-leg-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5b3494;
}

.return-leg-card__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 8rem;
  gap: 0.75rem 1rem;
}

@media (max-width: 820px) {
  .return-leg-card__fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .return-leg-card__fields {
    grid-template-columns: 1fr;
  }
}

/* ---- Add / Remove leg buttons ---- */
.btn--add-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: #5b3494;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn--add-leg:hover,
.btn--add-leg:focus-visible {
  background: #7e52c8;
}

.btn--remove-leg {
  padding: 0.25rem 0.6rem;
  background: transparent;
  color: #c0392b;
  border: 1.5px solid #c0392b;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.btn--remove-leg:hover,
.btn--remove-leg:focus-visible {
  background: #c0392b;
  color: #fff;
}

/* Divider inside form */
.form-divider {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid #e8e0f4;
  margin: 0.5rem 0;
}

/* CSRF / hidden */
input[type="hidden"] {
  display: none;
}

/* Section: contact data inside form */
.form-section-label {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b3494;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #e8e0f4;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070f18;
  color: #b8a8d0;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand__name span {
  color: #e8a020;
}

.footer-brand__tagline {
  font-size: 0.9rem;
  color: #7a90a8;
  margin-bottom: 1rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-address a {
  color: #b8a8d0;
}

.footer-nav__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c8d8e8;
  margin-bottom: 0.75rem;
}

.footer-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav__list a {
  color: #7a90a8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus {
  color: #e8a020;
}

.footer-bottom {
  border-top: 1px solid #1a2f42;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #4a6070;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: #4a6070;
}

.footer-bottom a:hover {
  color: #b8a8d0;
}

/* ---------- Alert / flash messages ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert--error {
  background: #fdf0f0;
  border: 1px solid #e8b4b4;
  color: #8b1a1a;
}

.alert--success {
  background: #eef8f0;
  border: 1px solid #9dd4ac;
  color: #1a5c2a;
}

/* ---------- Danke / confirmation ---------- */
.danke-box {
  max-width: 640px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(13,27,42,0.10);
}

.danke-box__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.danke-box__title {
  font-size: 2rem;
  font-weight: 800;
  color: #16102a;
  margin-bottom: 0.75rem;
}

.danke-box__text {
  color: #5a6a7a;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #16102a 0%, #5b3494 100%);
  padding: 3.5rem 0 3rem;
  color: #fff;
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-hero__breadcrumb {
  font-size: 0.9rem;
  color: #b8a8d0;
}

.page-hero__breadcrumb a {
  color: #b8a8d0;
  text-decoration: none;
}

.page-hero__breadcrumb a:hover {
  color: #e8a020;
}

/* ---------- Prose (content pages) ---------- */
.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16102a;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5b3494;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: #3a4a5a;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.prose a {
  color: #5b3494;
}

/* ---------- Fleet cards (Über uns) ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fleet-card {
  border: 1px solid #e8e0f4;
  border-radius: 8px;
  overflow: hidden;
}

.fleet-card__img {
  aspect-ratio: 16/9;
  background: #e8e0f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6a7a;
  font-style: italic;
  font-size: 0.85rem;
}

.fleet-card__body {
  padding: 1.25rem;
}

.fleet-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #16102a;
  margin-bottom: 0.4rem;
}

.fleet-card__desc {
  color: #5a6a7a;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid #e8e0f4;
}

.faq-item {
  border-bottom: 1px solid #e8e0f4;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 2.5rem 1.2rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #16102a;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
  font-family: inherit;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: #5b3494;
  transition: transform 0.2s;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
}

.faq-question:hover,
.faq-question:focus {
  color: #5b3494;
  outline: none;
}

.faq-question:focus-visible {
  outline: 3px solid #e8a020;
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: #3a4a5a;
  line-height: 1.75;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-teaser {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 400px;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #1a2f42;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__contact {
    order: -1;
  }

  .form-grid,
  .return-date-group.is-visible {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }

  .form-card {
    padding: 1.5rem 1rem;
  }
}
