/* Campers Welt – helle, freundliche Gestaltung im Stil der bisherigen Seite:
   weiße Inhaltsfläche auf hellem Oliv, moderne Schrift, Brauntöne aus dem Logo als Akzent. */
:root {
  --bg: #ecead2;
  --page: #ffffff;
  --paper: #f7f6ef;
  --ink: #23211c;
  --muted: #6b675a;
  --brown: #6d4a12;
  --brown-dark: #4f3c1a;
  --accent: #8a6420;
  --line: #e2dfcf;
  --sand: #d3ceaa;
  --sand-dark: #bfb68e;
  --ok: #3f6b2a;
  --error: #9b2c1c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(60, 50, 20, .08), 0 6px 20px rgba(60, 50, 20, .08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: .5em 0 .5em; }
h1 small { font-size: .55em; color: var(--muted); font-weight: 400; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

/* Die weiße Seite in der Mitte */
.page { max-width: 1260px; margin: 0 auto; background: var(--page); box-shadow: 0 0 24px rgba(80, 70, 30, .12); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { padding: 0 28px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf ---------- */
.topbar { display: flex; justify-content: flex-end; gap: 18px; font-size: .82rem; padding-top: 6px; padding-bottom: 6px; color: var(--muted); }
.topbar a { text-decoration: none; color: var(--muted); }
.topbar a:hover { color: var(--brown); }

.banner-image { margin: 0; font-size: 1rem; line-height: 0; }
.banner-image img { width: 100%; height: auto; }

/* Gezeichnetes Ersatz-Banner, falls kein Kopfbild hochgeladen ist */
.banner {
  position: relative; margin: 0; overflow: hidden; font-size: 1rem;
  border: 6px solid #5b4a2a; outline: 1px solid var(--sand); outline-offset: -12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 165 L90 120 L170 150 L300 45 L420 140 L520 105 L600 150 L700 80 L760 110 L880 30 L1010 140 L1100 95 L1200 130 L1200 190 L0 190Z' fill='%23d3ceaa'/%3E%3Cpath d='M0 190 H1200 V300 H0Z' fill='%23e5e2ca'/%3E%3C/svg%3E") center / cover no-repeat,
    linear-gradient(#efecdb, #ddd8b8);
}
.banner.has-image { background-size: cover; background-position: center; min-height: 180px; }
.brand { display: block; text-align: center; text-decoration: none; padding: 26px 16px 0; font: italic 700 clamp(2rem, 11vw, 6rem)/1 Georgia, "Times New Roman", serif; color: var(--brown); white-space: nowrap; }
.brand:hover { color: var(--brown); }
.brand-text { display: block; }
.brand-mirror { display: block; transform: scaleY(-1); opacity: .3; margin-top: -.18em; margin-bottom: -.45em; -webkit-mask-image: linear-gradient(to bottom, transparent 35%, #000 100%); mask-image: linear-gradient(to bottom, transparent 35%, #000 100%); }

/* ---------- Navigation: hell, mit brauner Zierlinie darunter ---------- */
/* Mitlaufende Leiste: beim Herunterscrollen weg, beim Hochscrollen wieder da */
.site-nav { background: var(--page); position: sticky; top: 0; z-index: 20; transition: transform .3s ease, box-shadow .3s ease; }
.site-nav.is-stuck { box-shadow: 0 2px 12px rgba(60, 50, 20, .12); }
.site-nav.is-stuck::after { opacity: 0; }
.site-nav.is-hidden { transform: translateY(-110%); }
.site-nav.is-hidden .sub { display: none !important; }
@media (prefers-reduced-motion: reduce) { .site-nav { transition: none; } }
.nav-bar { display: flex; align-items: center; gap: 20px; }
.site-nav::after {
  content: ""; display: block; height: 7px; margin: 2px 28px 0;
  background: radial-gradient(ellipse at center, rgba(79, 60, 26, .9) 0%, rgba(109, 74, 18, .55) 45%, rgba(109, 74, 18, 0) 72%);
  border-radius: 50%;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav #nav-list { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 0; }
.site-nav a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: .95rem; border-radius: 6px; }
.site-nav #nav-list > li:first-child > a { padding-left: 0; }
.site-nav a:hover { color: var(--brown); background: var(--paper); }
.site-nav a.active, .site-nav a[aria-current] { color: var(--brown); font-weight: 600; }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; padding: 6px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: block; }
.site-nav .sub-years { min-width: 110px; }

/* Suchfeld rechts in der Menüleiste */
.site-nav .nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search form { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); overflow: hidden; }
.nav-search form:focus-within { border-color: var(--brown); background: #fff; }
.nav-search input { width: 150px; border: 0; background: transparent; padding: 6px 4px 6px 14px; font: inherit; font-size: .9rem; outline: none; transition: width .2s; }
.nav-search input:focus { width: 200px; }
.nav-search button { border: 0; background: none; padding: 6px 12px 6px 6px; color: var(--muted); cursor: pointer; display: flex; }
.nav-search button:hover { color: var(--brown); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font: inherit; padding: 10px 0; cursor: pointer; }

@media (max-width: 760px) {
  .nav-bar { flex-wrap: wrap; gap: 0 12px; }
  .nav-toggle { display: block; }
  .site-nav #nav-list { display: none; flex-direction: column; padding: 0 0 8px; flex-basis: 100%; }
  .site-nav.open #nav-list { display: flex; }
  .site-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .site-nav a, .site-nav #nav-list > li:first-child > a { padding: 9px 4px; }
  .site-nav .has-sub > a::after { display: none; }
  .site-nav::after { margin: 0 16px; }
  .site-nav .nav-search { margin: 8px 0 4px; }
  .nav-search form { width: 100%; }
  .nav-search input, .nav-search input:focus { width: 100%; }
}

/* Suchergebnisse */
.search-form { display: flex; gap: 8px; max-width: 620px; margin-bottom: 12px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid #d3cfbd; border-radius: 6px; font: inherit; }
.search-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.search-results { list-style: none; margin: 20px 0; padding: 0; max-width: 860px; }
.search-results li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sr-img { flex: 0 0 140px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--sand-dark)); }
.sr-img img { width: 100%; height: 100%; object-fit: cover; }
.search-results h2 { font-size: 1.2rem; margin: 0 0 2px; }
.search-results h2 a { color: var(--ink); text-decoration: none; }
.search-results h2 a:hover { color: var(--brown); }
.search-results p { margin: 4px 0; font-size: .95rem; }
.search-results mark { background: #f3e2a9; color: inherit; padding: 0 2px; border-radius: 2px; }
@media (max-width: 560px) { .sr-img { flex-basis: 90px; } }

/* ---------- Inhalt ---------- */
main { flex: 1; padding-top: 8px; padding-bottom: 56px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brown); text-decoration: underline; }
.section-title { margin-top: 1.8em; margin-bottom: .2em; }
.intro { padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: .6em 0 .4em; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 4px solid var(--sand); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.prose blockquote p { margin: 0; }
.prose-img { margin: 1.5em 0; }
.prose-img img { border-radius: var(--radius); max-width: 100%; }
.prose-img figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 75ch; }
.hint { font-size: .9rem; color: var(--muted); }
.empty-note { padding: 24px; background: var(--paper); border-radius: var(--radius); color: var(--muted); }
.narrow { max-width: 620px; }

.flash { padding: 10px 14px; border-radius: var(--radius); background: #e9f1df; border: 1px solid #c4d9ae; color: var(--ok); }
.flash-error { background: #f8e5e0; border-color: #e6bcb1; color: var(--error); }
.flash-info { background: var(--paper); border-color: var(--line); color: var(--ink); }

/* Kacheln (Kategorien) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 20px 0; }
.tiles-big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tile-img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sand), var(--sand-dark)); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; }
.tile-body strong { font-size: 1.05rem; font-weight: 600; }
.tile-body small { color: var(--muted); white-space: nowrap; }
.tile-empty { background: var(--paper); }
.tile-empty strong { color: var(--muted); font-weight: 500; }
.tile-empty .tile-img { display: none; }
@media (max-width: 760px) {
  .tiles:not(.tiles-big) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .tiles:not(.tiles-big) .tile-body { flex-direction: column; gap: 0; }
}

/* Karten (Reisen) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; margin: 20px 0; }
.card { display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--sand-dark)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 10px 2px 0; }
.card-body h3 { margin: 0 0 4px; font-size: 1.2rem; }
.card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body h3 a:hover { color: var(--brown); }
.card-body p { margin: 4px 0; font-size: .95rem; color: #45423a; }
.meta { color: var(--muted) !important; font-size: .85rem !important; display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; background: rgba(35, 33, 28, .78); color: #fff; font-size: .78rem; padding: 2px 9px; border-radius: 20px; vertical-align: middle; }
.card-img .badge { position: absolute; top: 8px; left: 8px; }
.card-img .badge + .badge { left: auto; right: 8px; }
.badge-draft { background: var(--accent); }

/* Reise */
.entry-head h1 { margin-bottom: .3em; }
/* Steckbrief: kompakt rechts neben dem Textanfang, der Text fließt links daneben */
.entry-top { display: flow-root; margin-bottom: 8px; }
.entry-lead { margin: 0 0 16px; }
.facts {
  float: right; width: 300px; margin: 4px 0 16px 28px; padding: 12px 16px;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline;
  background: var(--paper); border-radius: var(--radius); font-size: .88rem; line-height: 1.4;
}
.facts div { display: contents; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 760px) {
  .facts { float: none; width: auto; margin: 4px 0 16px; }
}

/* „Unterwegs in“ am Ende jeder Berichtsseite */
.entry-regions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.entry-regions .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.entry-regions a { padding: 3px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: .88rem; text-decoration: none; color: var(--ink); background: #fff; }
.entry-regions a:hover { border-color: var(--brown); color: var(--brown); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0; }
.pager a, .pager span { padding: 6px 13px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager a:hover { border-color: var(--brown); }
.pager span[aria-current] { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Diashow */
.slideshow { margin: 20px 0 28px; outline: none; }
.ss-stage { position: relative; background: var(--page); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; max-height: 78vh; width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.ss-img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.ss-img.loading { opacity: .4; }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; border-radius: 50%; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }
.ss-btn:hover, .ss-btn:focus-visible { background: #fff; }
.ss-prev { left: 12px; }
.ss-next { right: 12px; }
.ss-bar { display: flex; align-items: center; gap: 12px; padding: 6px 2px 0; color: var(--muted); font-size: .9rem; }
.ss-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-caption { color: var(--ink); }
.ss-bar button { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 10px; cursor: pointer; font-size: .95rem; }
.ss-bar button:hover { color: var(--brown); border-color: var(--brown); }
.ss-thumbs { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; }
.ss-thumbs button { flex: 0 0 auto; padding: 0; border: 3px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .65; overflow: hidden; }
.ss-thumbs button.active { border-color: var(--brown); opacity: 1; }
.ss-thumbs img { width: 96px; height: 64px; object-fit: cover; }
.slideshow:fullscreen { background: #000; display: flex; flex-direction: column; }
.slideshow:fullscreen .ss-stage { flex: 1; aspect-ratio: auto; max-height: none; border-radius: 0; background: #000; }
.slideshow:fullscreen .ss-bar { padding: 8px 12px; color: #ccc; }
.slideshow:fullscreen .ss-caption { color: #fff; }
.slideshow:fullscreen .ss-bar button { background: transparent; border-color: #555; color: #ddd; }
.slideshow:fullscreen .ss-thumbs { padding: 8px; }

/* Umbau-Zeitleiste */
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--sand); }
.timeline li { position: relative; margin-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--brown); border: 3px solid #fff; }
.timeline time { color: var(--muted); font-size: .9rem; }
.timeline h3 { margin: 2px 0 6px; }
.before-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 800px; }
.before-after figure { margin: 0; }
.before-after img { border-radius: var(--radius); }
.before-after figcaption { font-size: .85rem; color: var(--muted); text-align: center; }

/* Formulare */
.form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d3cfbd; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.btn { display: inline-block; background: var(--brown); color: #fff; border: 0; padding: 10px 22px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brown-dark); color: #fff; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.site-footer a, .linklike { color: var(--muted); }
.site-footer a:hover, .linklike:hover { color: var(--brown); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer form { margin: 0; }

/* Reisekarte */
.travel-map { position: relative; height: min(70vh, 620px); min-height: 380px; margin: 16px 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, var(--sand), var(--sand-dark)); z-index: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.map-consent p { max-width: 46ch; margin: 0; background: rgba(255, 255, 255, .85); padding: 12px 16px; border-radius: var(--radius); }
.map-remember { font-size: .9rem; display: flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: var(--radius); }
.map-filter { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.map-filter legend { float: left; margin-right: 8px; font-weight: 600; padding: 0; }
.map-filter-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-filter-item .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pin); display: inline-block; }
.map-sec-wohnmobil { --pin: #2e7d32; }
.map-sec-kreuzfahrten { --pin: #1565c0; }
.map-sec-schraubertreffen { --pin: #d35400; }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pin, #c0392b); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.map-popup a { color: inherit; text-decoration: none; }
.map-popup img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.map-popup strong { display: block; font-size: 1rem; line-height: 1.3; }
.map-popup small { display: block; color: var(--muted); margin-top: 2px; }
.map-popup .map-popup-more { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; }
.leaflet-popup-content { margin: 10px 12px; }

/* Camping- und Stellplätze */
.campsites { margin: 32px 0; scroll-margin-top: 80px; }
.cs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 12px; }
.cs-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 80px; }
.cs-card:target { outline: 3px solid var(--accent); }
.cs-card h3 { margin: 0; font-size: 1.08rem; }
.cs-card p { margin: 0; }
.cs-meta { color: var(--muted); font-size: .9rem; }
.stars { color: #d4a017; letter-spacing: 1px; }
.stars-off { color: #d8d3c0; }
.cs-price strong { font-size: 1.05rem; }
.cs-amen { list-style: none; margin: 2px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.cs-amen li { font-size: .78rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1px 9px; }
.cs-note { font-size: .95rem; }
.cs-links { margin-top: auto !important; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; }
.cs-all { margin-top: 12px; }
.cs-jump { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0; }
.map-sec-stellplatz { --pin: #7b1fa2; }
