/* Google Fonts werden erst nach Zustimmung zu externen Inhalten per JS geladen (js/consent.js) */

:root {
  --bg: #f3e9d2;
  --bg-alt: #ece0c3;
  --bg-card: #fbf6e9;
  --header-bg: #3c2f1f;
  --header-text: #f0e2c4;
  --header-text-muted: #d8c49f;
  --accent: #a15a1f;
  --accent-light: #d9822b;
  --text-dark: #3c2f1f;
  --text-muted: #6b5a3f;
  --border: #d8c49f;
  --border-strong: #c2a876;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-light);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--header-text);
  letter-spacing: 0.3px;
}

.brand span {
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--header-text-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--header-text);
  border-bottom-color: var(--accent-light);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 4px;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--header-text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.lang-switch button:hover {
  color: var(--header-text);
}

.lang-switch button.active {
  background: var(--accent-light);
  color: var(--header-bg);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero-slide.active {
  opacity: 0.12;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text-dark);
}

.hero-text {
  max-width: 780px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  margin: 0 0 16px;
}

.page-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
}

/* Section headings */
.section {
  padding: 56px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* Map */
.map-section {
  background: var(--bg-alt);
}

.map-section-full #lp-map,
.map-section-full #lp-detail-map {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.map-section-full #lp-map {
  height: 75vh;
}

.map-section-full #lp-detail-map {
  height: 75vh;
}

#lp-map,
#lp-detail-map {
  width: 100%;
  border: 4px solid var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(60, 47, 31, 0.18);
  background: #2a2118;
}

#lp-map {
  height: 480px;
}

#lp-detail-map {
  height: 360px;
}

#lp-map .leaflet-tile-pane,
#lp-detail-map .leaflet-tile-pane {
  filter: sepia(0.55) saturate(1.6) hue-rotate(-8deg) brightness(0.78) contrast(1.15);
}

#lp-map .leaflet-control-attribution,
#lp-detail-map .leaflet-control-attribution {
  background: rgba(59, 47, 31, 0.75);
  color: var(--header-text-muted);
}

#lp-map .leaflet-control-attribution a,
#lp-detail-map .leaflet-control-attribution a {
  color: var(--header-text);
}

#lp-map .leaflet-control-zoom a,
#lp-detail-map .leaflet-control-zoom a {
  background: var(--header-bg);
  color: var(--header-text);
  border-color: var(--accent-light) !important;
}

#lp-map .leaflet-control-zoom a:hover,
#lp-detail-map .leaflet-control-zoom a:hover {
  background: var(--accent);
  color: #fff;
}

.lp-marker-dot {
  display: block;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 30%, #f6d69a, var(--accent-light) 55%, var(--accent) 100%);
  border: 2px solid #241a10;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.28), 0 0 10px 3px rgba(217, 130, 43, 0.5);
}

.leaflet-popup-content-wrapper {
  font-family: var(--font-body);
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

.popup-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--accent);
}

.popup-short {
  font-size: 12.5px;
  color: var(--text-dark);
  margin: 0 0 6px;
  max-width: 220px;
  line-height: 1.4;
}

.popup-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0;
}

.popup-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.popup-link:hover {
  color: var(--accent-light);
}

/* Marquee / Laufleiste */
.marquee-section {
  padding: 56px 0;
  overflow: hidden;
}

.marquee-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.suggest-section {
  padding: 8px 0 64px;
  text-align: center;
}

.suggest-section p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 16px;
}

.suggest-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.suggest-cta:hover {
  background: var(--accent-light);
  color: #fff;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: 260px;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(60, 47, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(60, 47, 31, 0.15);
}

.offer-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent-light);
}

.offer-card-body {
  padding: 16px;
}

.offer-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text-dark);
}

.offer-short {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.offer-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 3px 0;
}

.offer-meta strong {
  color: var(--text-dark);
  font-weight: 600;
}

.offer-meta-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

.offer-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 8px 14px;
}

.offer-link:hover {
  color: #fff;
  background: var(--accent);
}

.offer-cta {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 8px 14px;
}

.offer-cta:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

/* Tours grid (Touren-Seite) */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Forms */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(60, 47, 31, 0.08);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
}

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

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--accent-light);
}

/* About / contact layout */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 18px;
}

.founder-block {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 8px 0 28px;
}

.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 3px solid var(--accent-light);
}

.founder-block h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.founder-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 600px) {
  .founder-block {
    flex-direction: column;
    text-align: center;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.address-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.address-block h3 {
  font-family: var(--font-heading);
  margin: 0 0 14px;
}

.address-block p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Imprint */
.imprint-block {
  margin-bottom: 28px;
}

.imprint-block h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 10px;
}

.imprint-block p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 3px 0;
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text-muted);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--header-text);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13.5px;
  max-width: 320px;
}

.footer-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: var(--header-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  width: 100%;
}

.footer-nav-toggle .chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--header-text);
  border-bottom: 2px solid var(--header-text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto;
}

.footer-nav-toggle.open .chevron {
  transform: rotate(-135deg);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--header-text-muted);
  font-size: 13.5px;
}

.footer-nav a:hover {
  color: var(--header-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  font-size: 12.5px;
  text-align: center;
  color: var(--header-text-muted);
}

/* Ort-Detailseite */
.detail-hero {
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

.detail-hero h1 {
  font-family: var(--font-heading);
  font-size: 34px;
  margin: 0 0 12px;
}

.detail-short-text {
  font-size: 17px;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 0 14px;
}

.detail-meta-line {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.detail-meta-line strong {
  color: var(--text-dark);
}

.gallery-track {
  animation-duration: 40s;
}

.gallery-card {
  flex: 0 0 auto;
  width: 220px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 10, 0.92);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #f0e2c4;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: #f0e2c4;
  font-size: 14px;
  text-align: center;
}

.lightbox-copyright {
  color: #b5a996;
  font-size: 12.5px;
}

.itinerary-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
}

.itinerary-item {
  display: flex;
  gap: 18px;
  padding: 0 0 28px 0;
  position: relative;
}

.itinerary-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.itinerary-index {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.itinerary-item h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 4px 0 6px;
  color: var(--text-dark);
}

.itinerary-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .header-inner {
    position: relative;
  }

  .brand { order: 1; }
  .lang-switch { order: 2; }
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

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

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-nav-toggle {
    display: flex;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

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

  .footer-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.two-col { grid-template-columns: 1fr; }
  #lp-map { height: 360px; }
}

/* Cookie-Consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--header-bg);
  border-top: 3px solid var(--accent-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.cookie-banner-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  flex: 1 1 380px;
  margin: 0;
  color: var(--header-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cookie-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn-secondary {
  background: transparent;
  border: 1px solid var(--header-text-muted);
  color: var(--header-text);
}

.cookie-btn-secondary:hover {
  border-color: var(--header-text);
}

.cookie-btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.cookie-settings-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--header-text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: var(--header-text);
}

.map-consent-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.map-consent-placeholder p {
  max-width: 480px;
  margin: 0;
  font-size: 14.5px;
}
