/* ================= FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Rubik+Dirt&display=swap');


/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --cream: #C1E1C1;
  --text-dark: #2d2d2d;
  --primary: #2d7a6f;
  --primary-soft: rgba(45, 122, 111, 0.9);
  --accent: #e8b4a3;
  --secondary: #C1E1C1;
}

/* ================= BASE ================= */
body {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
}

/* ================= GLOBAL TEXT IMPROVEMENT ================= */
section {
  margin-bottom: 3rem;
}

h1, h2 {
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */
header {
  background: var(--cream);
  padding: 2rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 15px 20px;
}

.header-content h1 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-logo {
  height: 100px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ================= NAVIGATION ================= */
nav {
  width: 100%;
  margin: 0;
  padding: 18px 0;
  background-color: #2f6656;
  border-radius: 0; /* über ganze Seite */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: inline-block;
  padding: 10px 4px;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--cream);
  transition: color 0.25s ease, transform 0.25s ease;
}

nav ul li a:hover {
  color: #2dd9a3;
  transform: translateY(-2px);
}

nav ul li a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 4px auto 0;
  background-color: #2dd9a3;
  border-radius: 10px;
  transition: width 0.25s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 700px;
  padding: 2rem;
}

.hero h1,
.hero h2 {
  font-family: "Rubik Dirt", serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: #096c4d;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

/* ================= ONLY FOR BACKLINK ================ */


a.btn[href="index.html"] {
  display: block;
  width: fit-content;
  margin: 2.5rem auto;

  /* etwas stärkerer Farbverlauf */
  background: linear-gradient(135deg, var(--primary), #1f5e55);

  border-radius: 14px;
  padding: 1rem 2.4rem;

  box-shadow: 0 10px 22px rgba(45, 122, 111, 0.25);
}

/* Hover Effekt */
a.btn[href="index.html"]:hover {
  background: linear-gradient(135deg, #1f5e55, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(45, 122, 111, 0.35);
}

/* Klick Effekt */
a.btn[href="index.html"]:active {
  transform: scale(0.97);
}


/* ================= GENERAL SECTIONS ================= */
section {
  padding: 6rem 2rem;
}

section h1,
section h2 {
  text-align: center;
}

section > p,
section > div > p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= INTRO ================= */
.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.intro h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
}


/* ================= SLIDER GALLERY ================= */
.gallery {
  width: 100%;
  padding: 4rem 2rem;
  background-color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider {
  width: 100%;
  max-width: 800px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.slider img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  animation: fadeIn 0.6s ease-in-out;
}

.slider img.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ================= IMAGE GALLERY ================= */

.gallery-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 18px;
}

/* ITEM */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;

  /*  kein weißer Hintergrund */
  background: none;

  /* gleiche Optik wie Cards */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* HOVER */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

/* BILDER */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

/* ZOOM */
.gallery-item:hover img {
  transform: scale(1.05);
}

/* GRID FORMEN */
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
}

@media (max-width: 640px) {
  .image-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* ================= FLOATING CONTACT BUTTON ================= */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;

  padding: 14px 22px;
  background: var(--primary); /* dein dunkles Grün */
  color: white;

  border-radius: 12px; /* statt Kreis */
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

/* Hover Effekt */
.contact-fab:hover {
  transform: translateY(-3px);
  background: var(--primary-soft);
}

/* ================= PAGE CONTENT WRAPPER ================= */
body > h1,
body > h2,
body > h3,
body > p,
body > .hof-image,
body > .back-link {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

body > h1,
body > h2,
body > h3 {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

body > p {
  padding-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.8;
}

body > .hof-image {
  display: block;
  max-width: 100%;
  height: auto;
  padding: 2rem;
  padding-bottom: 1.5rem;
}

body > .back-link {
  display: inline-block;
  padding: 1rem 2rem;
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s ease;
}

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

/* ================= UTILITY IMAGES ================= */
.centered-image,
body > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  padding: 1.5rem 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }

  .hero {
    min-height: 400px;
    padding: 6rem 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .intro {
    padding: 4rem 1rem;
  }

  .gallery {
    padding: 3rem 1rem;
  }

  .card-grid {
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gallery-section {
    padding: 1rem;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 520px) {
  .contact-fab {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .contact-icon {
    width: 25px;
    height: 25px;
  }
}

/* ================= CONTACT PAGE MAP ================= */

.contact-section {
  padding: 4rem 2rem;
}

/* Layout (FIX: gleiche Höhe oben) */
.contact-layout {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;

  align-items: start; /*  wichtig: beide Blöcke oben bündig */
}

/* Formular Box */
.contact-container {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-container h1 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Form Felder */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  outline: none;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Button */
.contact-form button {
  margin-top: 1rem;
  padding: 0.9rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: var(--primary-soft);
}

/* Map Box */
.map-box {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.map-box h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.map-box iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  margin-top: 1rem;
}


    /* ================= DROPDOWN MENÜ ================= */
    .dropdown-menu {
      display: none; /* Standardmäßig versteckt */
    }

    .dropdown:hover .dropdown-menu {
      display: block; /* Dropdown-Menü anzeigen beim Hover */
    }

    /* Dropdown Menü verstecken */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #3b7f6b;
    min-width: 200px;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Dropdown sichtbar bei Hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Links im Dropdown */
.dropdown-menu li a {
    color: white;
    padding: 10px;
    display: block;
}

/* Hover Effekt */
.dropdown-menu li a:hover {
    background-color: #2f6656;
}

/* Wichtig für Position */
nav ul li {
    position: relative;
}

/* =================  HOVER CARDS ================= */

.cards-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Karte */
.cards-container .card {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;

  /* KEIN weißer Hintergrund */
  background: none;

  /* leichter Schatten optional */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  transition: transform 0.4s ease;
}

.cards-container .card:hover {
  transform: translateY(-6px);
}

/* Bild */
.cards-container .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;

  transition: transform 0.6s ease;
}

/* Weißer Overlay-Block */
.cards-container .overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  background: white;
  color: #111;

  padding: 22px;

  /* komplett versteckt */
  transform: translateY(100%);

  /* smooth Animation */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Text Animation */
.cards-container .overlay h3,
.cards-container .overlay p {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.cards-container .overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.cards-container .overlay p {
  line-height: 1.5;
  transition-delay: 0.15s;
}

/* Hover Effekte */
.cards-container .card:hover img {
  transform: scale(1.05);
}

.cards-container .card:hover .overlay {
  transform: translateY(0);
}

.cards-container .card:hover .overlay h3,
.cards-container .card:hover .overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }

  .cards-container .card {
    height: 300px;
  }
}

/* ================= INFO SECTION ================= */

.info-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.info-section h2 {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

/* ================= INFO SECTION FIX ================= */

.info-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.info-section h2 {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.info-cards {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.8rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  display: block;
  background: #ffffff !important;
  padding: 1.8rem 2rem !important;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.info-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.info-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

@media (max-width: 768px) {
  .info-cards {
    grid-template-columns: 1fr !important;
  }

  .info-section h2 {
    font-size: 2.2rem;
  }
}



/* ================= FOOTER ================= */

footer {
  position: relative;
  background: rgba(193, 225, 193, 0.95);
  padding: 28px 20px 34px;
  margin-top: 60px;
  border-top: 1px solid rgba(45, 122, 111, 0.18);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.footer-content a:hover {
  background: rgba(45, 122, 111, 0.12);
  transform: translateY(-2px);
}

.admin-link {
  border: 1px solid rgba(45, 122, 111, 0.25);
  background: rgba(255, 255, 255, 0.35);
}

.admin-link:hover {
  background: var(--primary) !important;
  color: white !important;
}

footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background: var(--primary);
}


/* ================= IMPRESSUM ================== */

.intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro address {
  font-style: normal;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.intro h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}