/* ---------------------------------------------------
RESET + VARIABLEN
--------------------------------------------------- */

:root {
  --orange: #f38801;
  --orange-light: #ffb257;
  --blue: #2d2767;
  --blue-light: #3b358a;
  --text-dark: #222;
  --text-light: #ffffff;
  --radius: 14px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-dark);
  background: url("images/gas-pattern.svg") repeat;
  background-color: #f5f5f5;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/camping-bg-blur.jpg") center/cover no-repeat;
  filter: none;
  z-index: -1;
}

/* ---------------------------------------------------
GLOBAL CONTAINER
--------------------------------------------------- */

.section-inner,
.header-inner,
.white-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------
HEADER
--------------------------------------------------- */

.header {
  width: 100%;
  background: linear-gradient(to bottom, var(--orange-light), var(--orange));
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 999;
  position: relative;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px 20px;
}

/* ---------------------------------------------------
BURGER
--------------------------------------------------- */

.burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 28px;
  height: 3px;
  background: var(--text-light);
  border-radius: 3px;
}

/* ---------------------------------------------------
LOGO
--------------------------------------------------- */

.logo img {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ---------------------------------------------------
WHATSAPP BUTTON
--------------------------------------------------- */

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue));
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.wa-icon {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------
MOBILE NAV
--------------------------------------------------- */

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #f386017b;
  padding: 20px;
  gap: 10px;
  max-width: 200px;
  margin: 10px 0 10px 20px;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .mobile-nav {
    margin: 10px 20px;
  }
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.1;
}

/* ---------------------------------------------------
SUBMENU
--------------------------------------------------- */

.submenu {
  margin-top: 10px;
}

.submenu-toggle {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  padding: 5px 0;
}

.submenu-content {
  display: none;
  flex-direction: column;
  margin-left: 15px;
  gap: 6px;
}

.submenu-content.open {
  display: flex;
}

/* ---------------------------------------------------
WHITE STRIP
--------------------------------------------------- */

.white-strip {
  background: #ffffffcc;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.white-strip h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--blue);
}

/* ---------------------------------------------------
HERO
--------------------------------------------------- */

.hero {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff00;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 260px;
  position: relative;
}

.hero-left {
  background: url("images/hero.jpg") left center/contain no-repeat;
  min-height: 300px;
}

.hero-right {
  background: #ffffff00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-mascot {
  width: 180px;
  height: auto;
}

.btn-hero {
  margin-top: 16px;
  padding: 12px 30px;
  border-radius: 14px;
  background: linear-gradient(to bottom, var(--blue-light), var(--blue));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Ablauf-Infobox */

.ablauf-infobox {
  background: #ffffffdd;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 30px auto;
  text-align: center;
  border-top: 3px solid var(--orange);
  max-width: 800px;
}

.ablauf-infobox h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 1.6rem;
}

.ablauf-infobox ol {
  margin: 0;
  padding-left: 20px;
  text-align: left;
  display: inline-block;
}

.ablauf-infobox li {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

/* MOBILE HERO FIX */

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    min-height: 200px;
    background-size: cover;
  }

  .hero-mascot {
    max-width: 160px;
    margin: 0 auto 12px;
  }
}

/* ---------------------------------------------------
SECTIONS
--------------------------------------------------- */

.section {
  padding: 60px 20px;
}

.section-light {
  background: #ffffffaa;
}

.section-grey {
  background: #f5f5f5dd;
}

.section h2 {
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Einsatzgebiete Info-Box */

.gebiete-infobox {
  background: #ffffffdd;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
  text-align: center;
  border-top: 3px solid var(--orange);
}

.gebiete-infobox h2 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 1.6rem;
}

.gebiete-infobox p {
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ---------------------------------------------------
LOCATIONS GRID
--------------------------------------------------- */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ---------------------------------------------------
PREISRECHNER
--------------------------------------------------- */

.location-card input,
.location-card select {
  border: 2px solid #ddd;
  transition: 0.25s ease;
}

.location-card input:focus,
.location-card select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(243, 136, 1, 0.35);
  outline: none;
}

#fahrzeuge option[value="1"] {
  font-size: 1.15rem;
  font-weight: 700;
}

#ergebnis {
  background: #fff7ec;
  padding: 14px;
  border-radius: 12px;
  margin-top: 18px;
  border: 1px solid #f3c27a;
}

#gruppenhinweis {
  color: var(--blue);
  font-weight: 600;
}

/* ---------------------------------------------------
EIN-/AUSKLAPPBARE MINI-GRAFIK
--------------------------------------------------- */

.km-info-toggle {
  margin-top: 10px;
  font-weight: 700;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.95rem;
}

.km-info-box {
  display: none;
  background: #fff7ec;
  border: 1px solid #f3c27a;
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.km-info-box ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

/* ---------------------------------------------------
FAHRTKOSTEN – GESAMTBEREICH (bereinigt)
--------------------------------------------------- */

.fahrten-grafik {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0;
}

/* ---------------------------------------------------
FAHRTKOSTEN – EINZELNE BOXEN
--------------------------------------------------- */

.fahrten-block {
  background: #ffffffee;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  width: 250px;
  height: 210px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(90deg);
  padding: 0;
  margin: 0;
}

.fahrten-block > * {
  transform: rotate(-90deg);
  display: block;
  width: 100%;
  text-align: center;
}

.fahrten-block h4 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.fahrten-block p {
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 500;
}

/* MOBILE FIX */

@media (max-width: 600px) {
  .fahrten-block {
    transform: rotate(0deg);
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .fahrten-block > * {
    transform: rotate(0deg);
  }

  .fahrten-grafik {
    gap: 16px;
  }
}

/* ---------------------------------------------------
FORMULAR (optimiert für Mobil)
--------------------------------------------------- */

.contact-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 26px 24px;
  border-radius: 14px;
  min-height: 380px;

  /* PREMIUM-LOOK */
  background: #ffffffee;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.contact-form input,
.contact-form textarea {
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .form-row {
    flex-direction: column;
  }
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form input.error,
.contact-form textarea.error {
  border: 2px solid #e63946;
  background-color: #ffecec;
}

.contact-form input,
.contact-form textarea {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* MOBILE FORM FIXES */

@media (max-width: 600px) {

  /* kompaktere Felder */
  input,
  select,
  textarea {
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 10px;
  }

  /* harmonische Abstände */
  .contact-form .form-row {
    margin-bottom: 6px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    margin-bottom: 8px;
  }

  /* Button eleganter */
  .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 10px;
  }
}

/* ---------------------------------------------------
FOOTER
--------------------------------------------------- */

.footer {
  background: var(--blue-light);
  color: var(--orange);
  padding: 20px;
  text-align: center;
}

.footer a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

/* ---------------------------------------------------
MOBILE OPTIMIERUNG GLOBAL
--------------------------------------------------- */

@media (max-width: 600px) {

  .section-inner,
  .white-strip-inner {
    padding: 0 16px;
  }

  .location-card {
    padding: 18px;
    margin-bottom: 18px;
  }

  #ergebnis {
    font-size: 1rem;
    line-height: 1.45;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .logo img {
    max-width: 120px;
    height: auto;
  }

  .burger span {
    width: 26px;
  }
}
