/* ---------------------------------------
   Schriftarten: Nunito + Kalam (lokal)
   --------------------------------------- */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito/Nunito-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalam';
  src: url('fonts/kalam/Kalam-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

strong {
  font-weight: 700;
}

/* Grundschrift */
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 200;
  background-color: #ffffff;
  color: #2f2f2f;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------
   Farbvariablen
   --------------------------------------- */

:root {
  --green: #4a7c45;
  --brown: #8b5e3c;
  --beige: #f5efe4;
  --light-green: #eef6ec;
  --dark: #2f2f2f;
  --max-width: 1000px;
}

/* ---------------------------------------
   Grundlayout
   --------------------------------------- */

* {
  box-sizing: border-box;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---------------------------------------
   Header & Navigation
   --------------------------------------- */

header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--green);
  padding: 1rem 0;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area img {
  height: clamp(50px, 8vw, 90px);
  width: auto;
}

/* Navigation Desktop */
.nav-links {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.05rem;
}

.nav-menu li a:hover {
  color: var(--green);
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--green);
}

/* Mobile Menü */
@media (max-width: 800px) {

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	z-index: 5000;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
	position: relative;
	z-index: 6000;
  }
}

/* ---------------------------------------
   Buttons
   --------------------------------------- */

.btn-primary {
  background-color: var(--green);
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 200;
}

/* ---------------------------------------
   Vollbreites Headerbild + Logo Overlay
   --------------------------------------- */

.hero-image-wrapper {
  position: relative;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Logo über dem Bild – zentriert & groß */
.hero-overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: clamp(220px, 34vw, 420px);
  height: auto;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {

  /* Hintergrundbild ausblenden */
  .hero-image {
    display: none;
  }

  /* Wrapper anpassen, damit keine leere Fläche bleibt */
  .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px 0; /* etwas Luft für das Logo */
  }

  /* Logo sichtbar, zentriert, nicht mehr absolut */
  .hero-overlay-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: block;
    margin: 0 auto;
    max-width: 60%; /* kannst du anpassen */
    height: auto;
  }
}


/* ---------------------------------------
   Hero-Bereich
   --------------------------------------- */

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.motto {
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 1rem;
  display: inline-block;
  background-color: var(--beige);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* ---------------------------------------
   Überschriften in Kalam
   --------------------------------------- */

h1, h2, h3 {
  font-family: 'Kalam', 'Nunito', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.6rem;
  color: var(--green);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--green);
}

h3 {
  font-size: 1.4rem;
  color: var(--brown);
}

/* ---------------------------------------
   Sektionen
   --------------------------------------- */

section {
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

.section-header p {
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------------------------------------
   Kurskarten
   --------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

.card-image {
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: auto;
  border: 4px solid #ffffff; /* weißer Rahmen */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* dezenter Schatten */
}

@media (max-width: 600px) {
  .card-image {
    width: 70%;      /* Bild wird kleiner */
    margin: 0 auto;  /* zentriert das Bild */
    display: block;
  }
}


.pill {
  display: inline-block;
  background-color: var(--beige);
  color: var(--brown);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.offer-list {
  list-style: none;
  margin-top: 0.5rem;
}

.offer-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ---------------------------------------
   Über uns
   --------------------------------------- */

.about-text {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  text-align: center;
}

/* ---------------------------------------
   Wegbeschreibung
   --------------------------------------- */
.weg-bild-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.weg-bild {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* optional */
}

/* ---------------------------------------
   Kontakt
   --------------------------------------- */
.kontakt-box {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  max-width: 420px;
  margin: 2rem auto;
  text-align: center;
}

/* Slogan hervorheben */
.kontakt-slogan {
  font-family: 'Kalam', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a6b2e; /* warmes Naturgrün passend zum Hof */
  margin-bottom: 1.2rem;
}

/* Links im Kontaktbereich */
.kontakt-box a {
  color: #4a6b2e;
  font-weight: 600;
  text-decoration: none;
}

.kontakt-box a:hover {
  text-decoration: underline;
}


/* ---------------------------------------
   Footer mit Hintergrundbild + Logo
   --------------------------------------- */

.footer-hero {
  position: relative;
  width: 100%;
  height: 160px; /* kleiner als vorher */
  overflow: hidden;
  margin-top: 2rem;
}

.footer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Abdunklung */
.footer-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 5;
}

/* Weißes Logo – kleiner */
.footer-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: clamp(100px, 14vw, 180px); /* kleiner als vorher */
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* Copyright-Text */
.footer-copy {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 0.85rem;
  z-index: 20;
}

.footer-copy a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.3rem;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ---------------------------------------
   Responsive
   --------------------------------------- */

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------
   Mail / Phone Links
   --------------------------------------- */
#mail-link, #phone-link {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
