/* ============================================================
   Camping Lienen – Custom CSS Overrides
   Ergänzungen zu main.css (main.css bleibt unverändert)
   ============================================================ */

/* Font override: Nunito Sans statt Raleway */
:root {
  --font-main: 'Nunito Sans', sans-serif;
}

/* ------------------------------------------------------------
   Hero: eyebrow (.text-accent) gleiche Farbe wie h1
   ------------------------------------------------------------ */
#campHero .text-accent {
  color: #f4f7f0 !important;
}

/* ------------------------------------------------------------
   Hero: Eyebrow-Text zentriert zur Überschrift
   (main.css setzt max-width:600px auf .hero-content p ohne
   margin:auto – dadurch wäre der Block linksbündig)
   ------------------------------------------------------------ */
#campHero .hero-text-box p {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------
   Hero: Text-Box mit semi-transparentem Hintergrund
   ------------------------------------------------------------ */
.hero-text-box {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
}
/* ------------------------------------------------------------
   Navbar: immer heller Hintergrund mit dunklem Text
   ------------------------------------------------------------ */
#campNav {
  background: rgba(244, 247, 240, 0.97) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 2px 20px rgba(61, 122, 79, 0.15);
}

#campNav .navbar-brand {
  color: var(--camp-text) !important;
}

#campNav .nav-link {
  color: rgba(28, 46, 31, 0.85) !important;
  border-bottom: 3px solid transparent;
  transition: border-color 500ms ease, color var(--transition);
  padding-bottom: 2px;
}

#campNav .nav-link:hover {
  color: var(--camp-accent) !important;
  border-bottom-color: #008000;
}

#campNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828,46,31,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#campNav .btn.nav-link {
    padding-bottom: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ------------------------------------------------------------
   Navbar: Glow-Animation "Aktuelles"-Link
   ------------------------------------------------------------ */
@keyframes nav-aktuelles-glow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 16px rgba(0, 140, 0, 0.95), 0 0 6px rgba(0, 140, 0, 0.8), 0 0 30px rgba(0, 140, 0, 0.5); }
}
#campNav .nav-aktuelles .nav-link {
  animation: nav-aktuelles-glow 2.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  #campNav .nav-aktuelles .nav-link { animation: none; }
}

/* ------------------------------------------------------------
   Logo in Navbar und Footer
   ------------------------------------------------------------ */
.camp-logo {
  height: 65px;
  width: auto;
  display: block;
}

.camp-logo--footer {
  height: 100px;
  /* SVG in Footer-Linkfarbe: rgba(244,247,240,0.6) */
  filter: brightness(0) invert(1) opacity(0.6);
}

@media (max-width: 1199.98px) {
  #campNav .camp-logo { height: 58px; }
}
/* ------------------------------------------------------------
   Footer: Sticky-Reveal – Inhalt scrollt über den Footer
   ------------------------------------------------------------ */
main {
  position: relative;
  z-index: 1;
  background: var(--camp-bg);
}

#campFooter {
  position: sticky;
  bottom: 0;
  z-index: 0;
}

/* ------------------------------------------------------------
   Footer: Textfarben – Tabelle und Bottom-Links wie footer-links
   ------------------------------------------------------------ */
#campFooter .footer-links li {
  color: rgba(244, 247, 240, 0.6);
}

#campFooter .footer-contact-table td {
  color: rgba(244, 247, 240, 0.6);
  font-size: 0.9rem;
  vertical-align: top;
}

#campFooter .footer-contact-table a {
  color: rgba(244, 247, 240, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

#campFooter .footer-contact-table a:hover {
  color: var(--camp-accent);
}

#campFooter .footer-bottom a {
  color: rgba(244, 247, 240, 0.6);
  transition: color var(--transition);
}

#campFooter .footer-bottom a:hover {
  color: var(--camp-accent);
}

/* ------------------------------------------------------------
   Unterseite: farbige Hinweis-Boxen (grün / rot)
   ------------------------------------------------------------ */
.subpage-hint-green {
  background-color: #e8f5e9;
  border: 1px solid #2e7d32;
  color: #000;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

.subpage-hint-red {
  background-color: #fff3e0;
  border: 1px solid #e65100;
  color: #000;
  padding: 1rem;
  margin-top: 0.75rem;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   Unterseiten: Abschnitts-Überschrift (zwischen p und h1)
   ------------------------------------------------------------ */
.camp-subpage-heading {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .camp-subpage-heading {
    font-size: 1.75rem;
  }
}

/* ------------------------------------------------------------
   Unterseiten: inaktiver Tab schwarz
   ------------------------------------------------------------ */
.subpage-text-col .nav-tabs .nav-link:not(.active) {
  color: #000;
}

/* ------------------------------------------------------------
   Unterseiten: Tab-Leiste ausblenden wenn nur ein Tab (kein Preise)
   ------------------------------------------------------------ */
.subpage-text-col .nav-tabs:has(li:only-child) {
  display: none;
}

/* ------------------------------------------------------------
   Unterseiten-Layout: Spaltenreihenfolge Text / Carousel ab md
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .camp-layout-text-links .subpage-text-col     { order: 1; }
  .camp-layout-text-links .subpage-carousel-col { order: 2; }
  .camp-layout-foto-links .subpage-text-col     { order: 2; }
  .camp-layout-foto-links .subpage-carousel-col { order: 1; }
}

/* ------------------------------------------------------------
   Karten-Flex-Layout (Unterkunft & Aktivitäten)
   ------------------------------------------------------------ */
.acc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ------------------------------------------------------------
   16:9 Bild-Wrapper (Unterseiten-Vorschau & Carousel-Sliders)
   ------------------------------------------------------------ */
.camp-img-ratio {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.camp-img-ratio img {
  object-fit: cover;
  object-position: center;
}

/* ------------------------------------------------------------
   Mehr erfahren – Button (Unterkunft- und Aktivitäts-Karten)
   ------------------------------------------------------------ */
.camp-btn-mehr {
  display: inline-block;
  margin-top: .5rem;
  background-color: var(--camp-accent);
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: .35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background-color var(--transition);
}

.camp-btn-mehr:hover {
  background-color: #2d5e3f;
  color: #fff;
}

/* ------------------------------------------------------------
   Mehr erfahren – Button (Unterseiten-Liste)
   ------------------------------------------------------------ */
.camp-btn-subpage-url {
  background-color: var(--camp-accent);
  color: #fff;
  padding: .55rem 1.4rem;
  border-radius: .35rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--transition);
}

.camp-btn-subpage-url:hover {
  background-color: #2d5e3f;
  color: #fff;
}

/* ------------------------------------------------------------
   Testimonials: gleichmäßige Kartenhöhe
   ------------------------------------------------------------ */
.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}

.testimonial-text {
  flex: 1;
}

/* ------------------------------------------------------------
   Abschnitts-Subheadings: fett und 20 % größer (1rem → 1.2rem)
   ------------------------------------------------------------ */
.camp-section-subheading {
  font-weight: 700;
  font-size: 1.2rem;
}

/* ------------------------------------------------------------
   Galerie: Overlay-Hover
   ------------------------------------------------------------ */
#gallery .gallery-overlay { opacity: 0; transition: opacity 0.3s; }
#gallery .gallery-item:hover .gallery-overlay { opacity: 1; }

/* ------------------------------------------------------------
   Newsticker
   ------------------------------------------------------------ */
.newsticker-bar {
  background-color: #1a4a7a;
  overflow: hidden;
  width: 100%;
  padding: 0.6rem 0;
  position: relative;
  z-index: 1020;
}
.newsticker-inner {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
}
.newsticker-inner:hover {
  animation-play-state: paused;
}
.newsticker-item {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-right: 5rem;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   Navbar: Sprachauswahl-Dropdown – Hintergrundfarbe wie Navbar
   ------------------------------------------------------------ */
.nav-lang-dropdown .dropdown-menu {
  background-color: rgba(244, 247, 240, 0.97);
  border-color: rgba(61, 122, 79, 0.25);
}

.nav-lang-dropdown .dropdown-item {
  color: rgba(28, 46, 31, 0.85);
}

.nav-lang-dropdown .dropdown-item:hover,
.nav-lang-dropdown .dropdown-item:focus {
  background-color: rgba(61, 122, 79, 0.12);
  color: var(--camp-accent);
}

/* ------------------------------------------------------------
   Icon-Sprite (inline SVG) ausblenden
   ------------------------------------------------------------ */
#camp-icon-sprite {
  display: none;
}
