/* ==========================================================================
   Camping-Robbe – Stylesheet
   Farben aus dem Logo: Papierweiß, Robben-Rot, Nachtschwarz,
   dazu Waldgrün für den Thüringer Wald.
   Schrift: Manrope (serifenlos, selbst gehostet). Fallback: Arial.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c2024;
  --paper: #f8f7f4;
  --robbe: #9e1b26;
  --robbe-dunkel: #7d131d;
  --nebel: #dfe3e0;
  --muted: #555c63;
  --wald: #1f3f36;
  --wald-hell: #c9d8d1;

  --font: "Manrope", Arial, Helvetica, sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 6.5rem);
  --header-h: 4rem;
  /* Höhe der Waldkante; das Wohnmobil wird in derselben Größe skaliert */
  --forest-h: clamp(120px, 17vw, 250px);
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--robbe);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--robbe-dunkel);
}

:focus-visible {
  outline: 3px solid var(--robbe);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Kopfbereich (sticky) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(248, 247, 244, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nebel);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: clamp(0.8rem, 2.4vw, 1.75rem);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--robbe);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- Hero mit Landschaft ---------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem) calc(var(--forest-h) + 2.5rem);
  background: linear-gradient(180deg, #cfe3d9 0%, #e9f1ec 60%, var(--paper) 100%);
  overflow: hidden;
}

/* Waldlandschaft in zwei Ebenen:
   ::before = hintere Berge und Bäume (hinter dem Wohnmobil)
   .drive-by = Wohnmobil
   ::after  = vordere Baumreihe (vor dem Wohnmobil) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--forest-h);
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero::before {
  background-image: url("../assets/img/hintergrund-wald-hinten.svg");
}

.hero::after {
  background-image: url("../assets/img/hintergrund-wald-vorn.svg");
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.hero-lead strong {
  font-weight: 800;
}

.pet-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.75rem;
  padding: 0.45rem 0.9rem;
  background: var(--paper);
  border: 2px solid var(--wald);
  color: var(--wald);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-primary {
  background: var(--robbe);
  border-color: var(--robbe);
  color: #fff;
}

.button-primary:hover {
  background: var(--robbe-dunkel);
  border-color: var(--robbe-dunkel);
  color: #fff;
}

/* Freigestelltes Logo direkt auf der Landschaft */
.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  filter: drop-shadow(0 18px 22px rgba(17, 40, 33, 0.25));
}

/* Wohnmobil fährt im Hintergrund durch die Landschaft */
.drive-by {
  position: absolute;
  left: 0;
  /* Fahrbahn zwischen hinterer und vorderer Baumreihe */
  bottom: calc(var(--forest-h) * 0.15);
  width: var(--forest-h);
  height: auto;
  animation: drive-by 28s linear infinite;
  pointer-events: none;
}

@keyframes drive-by {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100vw); }
}

/* ---------- Abschnitte allgemein ---------- */

.section {
  padding-block: var(--section-y);
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ---------- Susi: Daten ---------- */

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1rem;
  border-top: 2px solid var(--ink);
}

.specs div {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--nebel);
}

.specs dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.specs dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.specs-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Fotos (Slideshow) ---------- */

.photos {
  background: #ecf1ee;
}

.photos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.photos-head h2 {
  margin: 0;
}

.slider-buttons {
  display: flex;
  gap: 0.6rem;
}

.slider-buttons button {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.slider-buttons button:hover {
  background: var(--ink);
  color: var(--paper);
}

.slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 0 1rem;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--wald-hell) transparent;
}

.slide {
  flex: 0 0 min(82%, 760px);
  margin: 0;
  scroll-snap-align: start;
}

.slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--nebel);
}

.slide figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Ausstattung ---------- */

.equip-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 2.75rem) clamp(2rem, 5vw, 4rem);
}

.equip-group h3 {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.25rem;
}

.equip-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.equip-group li {
  padding: 0.5rem 0 0.5rem 1.3rem;
  position: relative;
  border-bottom: 1px solid var(--nebel);
}

.equip-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--robbe);
}

.equip-group-excluded li {
  color: var(--muted);
}

.equip-group-excluded li::before {
  background: transparent;
  border: 2px solid var(--muted);
}

.equip-source {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Buchungsplattformen ---------- */

.platforms {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.platform {
  display: grid;
  gap: 0.3rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--nebel);
  align-items: center;
}

.platform h3 {
  margin: 0;
}

.platform p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.platform a.platform-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--robbe);
  padding-bottom: 0.1rem;
}

.platform a.platform-link:hover {
  color: var(--robbe);
}

.platform-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Vor der Buchung ---------- */

.rules {
  margin: 3rem 0 0;
  border-top: 2px solid var(--ink);
}

.rules div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--nebel);
}

.rules dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.rules dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

/* ---------- Kontakt (dunkler Abschnitt) ---------- */

.contact {
  background: var(--wald);
  color: var(--paper);
  padding-block: var(--section-y);
}

.contact h2 {
  color: var(--paper);
}

.contact p {
  color: var(--wald-hell);
}

.contact a {
  color: var(--paper);
}

.contact a:hover {
  color: var(--wald-hell);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-lines li {
  padding: 1rem 0;
  border-top: 1px solid rgba(248, 247, 244, 0.22);
}

.contact-lines li:last-child {
  border-bottom: 1px solid rgba(248, 247, 244, 0.22);
}

.contact-label {
  display: block;
  font-size: 0.9rem;
  color: var(--wald-hell);
}

.contact-value {
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  overflow-wrap: anywhere;
}

.contact a.contact-button {
  margin-top: 1.5rem;
  background: var(--paper);
  color: var(--wald);
  border-color: var(--paper);
}

.contact a.contact-button:hover {
  background: var(--robbe);
  border-color: var(--robbe);
  color: #fff;
}

.contact :focus-visible {
  outline-color: var(--paper);
}

/* ---------- Anfahrt & Social ---------- */

.visit-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit-links a.button {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  background: var(--ink);
  color: #c8ccd0;
  padding-block: 2.5rem;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
}

.site-footer a {
  color: var(--paper);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}

.legal address {
  font-style: normal;
  margin-bottom: 1.5rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* ---------- Breitere Bildschirme ---------- */

@media (min-width: 640px) {
  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .platform {
    grid-template-columns: 1fr auto;
  }

  .platform p {
    grid-column: 1;
  }

  .platform a.platform-link {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

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

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr 0.9fr;
  }

  .equip-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .visit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 519px) {
  /* Wald etwas höher, Wohnmobil kleiner, damit die Baumreihe auf dem Smartphone sichtbar bleibt */
  :root {
    --forest-h: 170px;
  }

  .drive-by {
    width: calc(var(--forest-h) * 0.6);
  }

  .site-nav .nav-optional {
    display: none;
  }

  .brand {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .slide {
    flex-basis: 88%;
  }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  html,
  .slider {
    scroll-behavior: auto;
  }

  .drive-by {
    display: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Druck ---------- */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .slider-buttons,
  .contact-button {
    display: none;
  }

  .hero::before,
  .hero::after,
  .drive-by {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- Spiel-Empfehlung ---------- */

.game {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: #f1e4e2;
  border-top: 2px solid var(--robbe);
}

.game-inner {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.game h2 {
  margin-bottom: 0.4em;
}

.game p {
  color: var(--ink);
  margin-bottom: 0;
}

.game .button {
  justify-self: start;
}

@media (min-width: 860px) {
  .game-inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Bewertungen ---------- */

.reviews {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}

.review {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--nebel);
}

.review-score {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: var(--robbe);
}

.review blockquote {
  margin: 0 0 0.6rem;
}

.review blockquote p {
  margin: 0;
  max-width: 70ch;
}

.review-author {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--nebel);
}

.faq details:first-child {
  border-top: 2px solid var(--ink);
}

.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--robbe);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > p,
.faq details > .cancel-table {
  margin: 0 0 1.2rem;
  max-width: 70ch;
}

.cancel-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.cancel-table th,
.cancel-table td {
  text-align: left;
  padding: 0.6rem 0.5rem 0.6rem 0;
  border-bottom: 1px solid var(--nebel);
  vertical-align: top;
}

.cancel-table th {
  font-weight: 700;
}
