@charset "UTF-8";

:root {
  --bs-light: #f6f7eb;
  --bs-dark: #c5b9b2;
  --bs-primary: #c7cbb4;
  --bs-text: #2E2E2E;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/NunitoSans.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ITC Giovanni";
  src: url("/assets/fonts/GiovanniStd-Book.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: var(--bs-light);
  margin: 0;
  color: var(--bs-text);
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  line-height: 1.5;
}

main {
  margin-top: 100px;
}

main.gradient {
  background: linear-gradient(to bottom, var(--bs-light) 50%, var(--bs-primary));
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ITC Giovanni', serif;
  color: var(--bs-text);
}

h1 {
  font-size: 2.75rem;
  /* font-weight: 600; */
}

h2 {
  font-size: 2.25rem;
  /* font-weight: 300; */
}

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

a:hover {
  text-decoration: underline;
}

.text {
  color: var(--bs-text) !important;
}

/* ==============================
   Navbar
============================== */

.navbar {
  background-color: var(--bs-dark) !important;
  box-shadow: 0px 3px 10px rgba(46, 46, 46, 0.48);
  z-index: 99;
}

.navbar-brand:hover {
  text-decoration: none;
}

.navbar-brand img:nth-of-type(2) {
  margin-left: -8px;
  margin-bottom: -3px;
}

.navbar .nav-link {
  color: var(--bs-text);
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  transition: color 0.2s ease, text-decoration 0.2s ease
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--bs-text);
  text-decoration: underline;
}

/* Telefon-Button */
.btn-outline-dark {
  background-color: var(--bs-light);
  border-color: var(--bs-text);
  color: var(--bs-text);
  font-weight: bold;
  border-radius: 8px;
  padding: 8px 12px;
}

.btn-outline-dark:hover {
  /* background-color: var(--bs-primary); */
  background-color: var(--bs-light);
  border-color: var(--bs-text);
  /* border-width: 5px; */
 -webkit-box-shadow: -10px 0px 13px -7px #C7CBB4, 10px 0px 13px -7px #C7CBB4, 5px 5px 15px 5px #C7CBB4; 
box-shadow: -10px 0px 13px -7px #C7CBB4, 10px 0px 13px -7px #C7CBB4, 5px 5px 15px 5px #C7CBB4;
  color: var(--bs-text);
  text-decoration: none;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
      display: block;
    }
  }

/* ==============================
   Section-Layout
============================== */

section {
  padding: 100px 0;
}

section.light {
  background-color: var(--bs-light);
}

section.dark {
  background-color: var(--bs-dark);
}

section.accent {
  background-color: var(--bs-primary);
}

section .container {
  max-width: 900px;
  margin: auto;
}

section .container.small {
  max-width: 620px;
}

section .container.fit {
  max-width: fit-content
}

/* Hero */

/* .hero-section {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
  background: url('img/dahmesonnenaufgüberghundestrosten04-17-6747.jpg');
  background-size: cover;
  background-position: center;
} */

.hero-section {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

/* Startseite mit Hintergrundbild */
.hero-section:not(.hero-double) {
  background: url('img/dahmesonnenaufgüberghundestrosten04-17-6747.jpg') center/cover no-repeat;
  background: image-set(url('img/dahmesonnenaufgüberghundestrosten04-17-6747.avif') type("image/avif"))  center/cover no-repeat;
}


/* Unterseite mit zwei Bildern */
.hero-double {
  display: flex;
  height: 80vh;
}

.hero-double .hero-image {
  flex: 1;
  overflow: hidden;
}

.hero-double img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 📱 Mobil: nur das erste Bild anzeigen */
.hero-double .hero-image:nth-child(2) {
  display: none;
}

/* 💻 Tablet (ab 768px): beide Bilder nebeneinander */
@media (min-width: 768px) {
  .hero-section {
    height: 60vh;
    overflow: hidden;
  }

  .hero-double {
    height: 60vh;
  }

  .hero-double .hero-image:nth-child(2) {
    display: block;
  }
}

/* 🖥️ Desktop (ab 992px): etwas größere Hero-Höhe */
@media (min-width: 992px) {
  .hero-section {
    height: 65vh;
    overflow: hidden;
  }

  .hero-double {
    height: 65vh;
  }
}

.logo {
  top: 20px;
  left: 20px;
  position: absolute;
  width: 70px;
  height: auto;
}

.logo-text {
  position: absolute;
  bottom: 20px;
  /* left: 50%; */
  right: 0;
  /* transform: translate(-50%); */
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .logo {
    width: 150px;
  }

  .logo-text {
    width: 75%;
  }
}

.hero-img {
  object-fit: cover;
  object-position: left;
  width: 100%;
  height: 100%;
}

.box-container {
  width: 1100px;
  margin: auto;
}

.box {
  padding: 2rem;
  background-color: color-mix(in srgb, var(--bs-primary), transparent 20%);
  align-items: center;
  border-radius: .5rem;
  max-width: 250px;
}

/* ==============================
   Footer
============================== */

footer {
  background-color: var(--bs-dark);
  color: var(--bs-text);
  font-size: 1.25rem;
  text-align: center;
  padding: 2rem 0;
}

footer h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* ==============================
   Map
============================== */

#map {
  height: 400px;
  width: 90%;
  position: relative;
  margin: 0 auto 3rem;
  z-index: 50;
}

@media (min-width: 576px) {
  #map {
    width: 70%;
  }
}

.leaflet-layer {
  filter: grayscale(0.3);
}

/* ==============================
   Zeitstrahl
=============================== */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 100px; /* etwas Platz unten */
  z-index: 0; /* Linie ganz hinten */
}

/* Grundlinie */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 20px;
  bottom: var(--line-bottom, 200px);
  left: 50%;
  margin-left: -3px;
  z-index: 0;
  transition: bottom 0.3s ease-out;
}

/* Fortschrittslinie */
.timeline::before {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--bs-primary);
  top: 20px;
  left: 50%;
  margin-left: -3px;
  height: var(--progress-height, 4px); /* Mindesthöhe, damit sichtbar */
  z-index: 1;
  transition: height 0.2s ease-out;
  pointer-events: none;
}

/* Container für jedes Timeline-Element */
.timeline-container {
  padding: 10px 40px 100px;
  position: relative;
  background-color: inherit;
  width: 50%;
  z-index: 1;
}

/* Kreise */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 33px;
  height: 33px;
  right: -17px;
  background-color: white;
  border: 4px solid var(--bs-primary);
  top: 15px;
  border-radius: 50%;
  z-index: 2;
}

/* Links/Rechts Positionierung */
.left {
  left: 0;
}

.right {
  left: 50%;
}

/* Pfeile für Container */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--bs-primary);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bs-primary);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 31px;
  border: medium solid var(--bs-primary);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bs-primary) transparent transparent;
}

/* Kreise rechts verschieben für rechte Container */
.right::after {
  left: -16px;
}

/* Inhalt der Boxen */
.content {
  padding: 20px 30px;
  background-color: var(--bs-primary);
  position: relative;
  border-radius: 6px;
  z-index: 1; /* vor Linie */
}

/* Jahreszahlen */
.year {
  position: absolute;
  top: 20px;
  font-size: 20px;
  font-weight: bold;
  color: var(--bs-text);
  z-index: 2; /* vor Linie */
}

.left .year {
  right: -100px;
  text-align: left;
}

.right .year {
  left: -100px;
  text-align: right;
}

@media screen and (max-width: 600px) {
  .timeline-container {
    margin-top: -20px;
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    padding-bottom: 80px;
    position: relative;
  }

  /* Linie links ausrichten */
  .timeline::after,
  .timeline::before {
    left: 31px !important;
    margin-left: 0;
    margin-top: 20px;
  }

  /* Kreise auf der Linie */
  .timeline-container::after {
    left: 33px;
    transform: translateX(-50%);
    top: 40px; /* gleiche Höhe wie Pfeil */
  }

  /* Pfeile links ausrichten und auf Höhe des Kreises */
  .timeline-container::before {
    left: 66px; /* auf Linie */
    top: 50px;   /* gleiche Höhe wie Kreis */
    transform: translateX(-50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
  }

  /* Rechte Container links setzen */
  .right {
    left: 0%;
  }

  /* Jahreszahlen mobil */
  .year {
    position: relative;
    left: 0 !important;
    right: 0 !important;
    text-align: left !important;
    margin-top: -30px;
    margin-bottom: 30px;
    color: white;
  }

  /* Optional: Content vertikal ausrichten */
  .content {
    margin-top: 10px; /* Abstand zwischen Pfeil/Kreis und Box */
  }
}

