/* =========================
   BASISFARBEN
   ========================= */

:root {
  --lightyellow: #f5c311;
  --gelb: #f59e0b;
  --gelb-dunkel: #d97706;
  --text: #1f2937;
  --hell: #fffaf0;
  --grau: #6b7280;
  --shadow: rgba(0,0,0,0.1);
}

/* =========================
   GRUNDLAYOUT
   ========================= */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1.2rem;
  color: var(--text);
}

.container h2 {
  font-size: 1.4rem;
  color: var(--gelb-dunkel);
  margin: 1rem 0;
}

/* =========================
   TEXTLINKS
   ========================= */

.textlink {
  color: var(--gelb);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.textlink:hover {
  color: var(--gelb-dunkel);
  border-bottom-color: var(--gelb-dunkel);
}

/* =========================
   IMAGEMAP
   ========================= */

.imagemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
}

/* =========================
   HEADER
   ========================= */

.header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 60px;
  width: auto;
  border-radius: 12px;
}

/* =========================
   BURGER BUTTON
   ========================= */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* =========================
   NAVIGATION – DESKTOP
   ========================= */

.nav-modern {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-modern a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-modern a:hover {
  color: var(--gelb);
}

.nav-modern a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--gelb);
  transition: width 0.3s ease;
}

.nav-modern a:hover::after {
  width: 100%;
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  background: url("IMG_RAW/IMG_4582.jpeg") center / cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.7),
    rgba(255,255,255,0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero-content h2 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  line-height: 1.2;
  color: var(--lightyellow);
  text-shadow: 0 3px 6px rgba(0,0,0,0.7);
  margin-bottom: 1rem;
}

.hero-content h3 {
  font-size: clamp(1rem, 3vw, 1.4rem);
  line-height: 1.4;
  color: var(--gelb-dunkel);
  margin-bottom: 1rem;
}

.hero-content p {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--text);
}

/* =========================
   PRODUKTE
   ========================= */

.produkte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card img.kleiner {
  width: auto;
  height: 150px;
}

.card h3 {
  color: var(--gelb);
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.card p {
  color: var(--text);
  font-size: 1rem;
}

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

.footer {
  background: var(--hell);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--grau);
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
@media (max-width: 768px) {

  /* Header Flexbox für Desktop bleibt */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* verhindert Überlauf */
  }

  /* Burger sichtbar oben links */
  .burger {
    display: flex;
    position: relative;
    margin: 0.5rem 1rem;
    z-index: 20;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .burger span {
    width: 26px;
    height: 3px;
    background: var(--gelb-dunkel);
    border-radius: 2px;
  }

  /* Desktop-Navigation ausblenden */
  .nav-modern {
    display: none;
    width: 100%;
  }

  /* Mobile Navigation aufgeklappt unter Header */
  .nav-modern.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  .nav-modern a {
    font-size: 1.1rem;
    padding: 0.25rem 0;
  }

  /* Hero anpassen */
  .hero {
    height: auto;
    padding: 3rem 1rem;
  }

  .hero-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-content h3 {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
}