:root {
  --gelb: #fdd835;
  --schwarz: #111;
  --grau: #f5f5f5;
  --text: #222;
}

/* ===== Basis ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  line-height: 1.6;
  background: #f9f9f9;
  color: var(--text);
  font-family: 'Roboto', sans-serif;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header & Navigation ===== */
.site-header {
  background: #000;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2000;
}
.logo { font-size: 1.25rem; font-weight: 700; }
.logo span { color: var(--gelb); }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gelb);
  transition: width .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Home-Icon */
.home-link {
  color: #fff;
  font-size: 20px;
  margin-left: 16px;
  display: grid;
  place-items: center;
  transition: transform .2s ease, opacity .2s ease;
}
.home-link:hover { color: var(--gelb); opacity: .9; transform: scale(1.1); }

/* Burger mobil */
.burger { display: none; background: transparent; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== Flash-Info ===== */
.flash {
  margin: 12px auto 0;
  max-width: 1100px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
}
.flash.ok    { background:#e8f5e9; color:#1b5e20; }
.flash.fail  { background:#ffebee; color:#b71c1c; }
.flash.error { background:#fff8e1; color:#8d6e63; }

/* ===== Hero ===== */
.hero { padding: 0; background: #fafafa; }

/* Bild oben: immer volle Breite, sauber geschnitten */
.hero-banner {
  width: 100%;
  /* keine feste Höhe mehr, kein overflow */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;           /* neutraler Hintergrund für freie Ränder */
  padding: 0;                 /* kein extra Abstand */
}


/* IMG weiterhin verwenden (für SEO/Lazyload); verdeckt aber den Background nicht */
.hero-banner img {
  display: block;
  width: auto;                /* Bildbreite richtet sich nach dem Seitenverhältnis */
  max-width: 100%;            /* niemals breiter als der Bildschirm */
  height: auto;               /* natürliche Höhe */
  max-height: calc(100vh - 140px); /* nicht höher als die Bildschirmhöhe (Header + Luft) */
  object-fit: contain;        /* immer komplett sichtbar */
  object-position: center;    /* mittig */
  margin: 0 auto;
  background: #fff;
}


/* Inhalt unter dem Bild */
.hero-content {
  text-align: center;
  padding: 28px 16px 48px;
}
.hero-content h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.8rem);
  margin: 0 0 12px;
}
.hero-content p {
  font-size: clamp(1rem, .5vw + .95rem, 1.2rem);
  margin: 0 0 20px;
  opacity: .95;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--gelb);
  color: var(--schwarz);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.btn:hover { background: #ffeb3b; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.btn-lg { font-size: 1.05rem; }

/* ===== Sektionen allgemein ===== */
section { padding: 56px 0; text-align: center; }

/* Leistungen – Karten */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,.1);
  font-weight: 700;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-5px); }

/* „Warum wir?“ Liste */
#ueber-uns ul {
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  display: inline-block;
  text-align: left;
}
#ueber-uns li { margin: 6px 0; line-height: 1.35; }
#ueber-uns li::before {
  content: "✓";
  color: var(--gelb);
  font-weight: 700;
  margin-right: 6px;
}

/* Kontaktformular */
form { max-width: 520px; margin: 0 auto; text-align: left; }
form label { display: block; font-weight: 700; margin-top: 10px; margin-bottom: 4px; }
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin: 6px 0 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
form textarea { min-height: 120px; }
form button {
  width: 100%;
  background: var(--gelb);
  color: var(--schwarz);
  padding: 12px;
  font-size: 1rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s ease;
}
form button:hover { background: #ffeb3b; }

/* ===== Footer ===== */
footer {
  background: var(--schwarz);
  color: #fff;
  padding: 20px 0;
}
.footer-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
footer .impressum-btn {
  display: inline-block;
  background: var(--gelb);
  color: var(--schwarz);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease;
}
footer .impressum-btn:hover { background: #ffeb3b; }

/* ===== WhatsApp Floating Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1000;
}
.whatsapp-btn:hover { background: #20b955; transform: scale(1.05); }
.whatsapp-btn::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url("https://cdn.jsdelivr.net/gh/simple-icons/simple-icons/icons/whatsapp.svg") no-repeat center/contain;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header { justify-content: space-between; }
  .nav-links { display: none; }
  .nav-links.active { display: flex; position: absolute; top: 56px; right: 16px; background: #000; padding: 10px; border-radius: 6px; flex-direction: column; gap: 10px; }
  .burger { display: block; margin-left: 8px; }

  .hero-content { padding: 20px 14px 36px; }
  section { padding: 30px 10px; }
  .card-container { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; gap: 8px; }
  .whatsapp-btn { width: 50px; height: 50px; }
  .whatsapp-btn::before { width: 24px; height: 24px; }
}
