/* ============================================
   Mia die Biene – gemeinsames Stylesheet
   ============================================ */

:root {
  --honig: #FFF3D6;
  --honig-dunkel: #FCE4A8;
  --creme: #FFF8EC;
  --akzent: #F5A623;
  --akzent-dunkel: #D9860F;
  --braun: #5A3E2B;
  --braun-hell: #8C6A4F;
  --rose: #E88AA0;
  --gruen: #7FAE5C;
  --himmel: #FDF1DD;
  --weiss: #FFFFFF;
  --radius-gross: 28px;
  --radius-klein: 16px;
  --schatten: 0 10px 30px rgba(90, 62, 43, 0.12);
  --schatten-stark: 0 18px 40px rgba(90, 62, 43, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--creme);
  color: var(--braun);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text {
  font-family: "Trebuchet MS", "Century Gothic", Futura, system-ui, sans-serif;
  color: var(--braun);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px);
}

/* ---------- Kopfbereich ---------- */
header {
  background: var(--honig);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(90,62,43,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 32px);
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emoji { font-size: 2rem; }
.logo-text { font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-weight: 700; }

nav#hauptnav ul {
  list-style: none;
  display: flex;
  gap: clamp(8px, 1.4vw, 14px);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav#hauptnav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--braun);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 12px 8px;
  border-radius: 14px;
  background: var(--weiss);
  box-shadow: 0 2px 6px rgba(90,62,43,0.08);
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

nav#hauptnav a .nav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

nav#hauptnav a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(90,62,43,0.16);
}

nav#hauptnav a.active {
  background: var(--akzent);
  color: var(--weiss);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--braun);
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 90px) 0 clamp(60px, 9vw, 110px);
  background-image: url("../bilder/hero-banner.jpg");
  background-size: cover;
  background-position: center 55%;
  min-height: clamp(420px, 62vw, 620px);
  display: flex;
  align-items: center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V82 Q50,102 0,82 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V82 Q50,102 0,82 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0 clamp(18px, 4vw, 40px);
}

.hero-karte {
  background: rgba(255, 248, 236, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: var(--radius-gross);
  box-shadow: 0 14px 40px rgba(90,62,43,0.22);
  padding: clamp(28px, 4vw, 44px) clamp(26px, 4vw, 46px);
  width: clamp(300px, 34vw, 460px);
  margin-left: 44%;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--weiss);
  border: 2px solid var(--akzent);
  color: var(--akzent-dunkel);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 18px;
}

.hero h1 span { color: var(--akzent-dunkel); }

.hero p.intro {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--braun-hell);
  margin: 0 auto 28px;
  max-width: 42ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--akzent);
  color: var(--weiss);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(245,166,35,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,166,35,0.45); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--weiss);
  color: var(--akzent-dunkel);
  border: 2px solid var(--akzent);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-secondary:hover { background: var(--honig); transform: translateY(-2px); }

.hero-schmetterlinge {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.schmetterling {
  position: absolute;
  width: 82px;
  height: auto;
  animation: schmetterlingFliegen var(--dauer, 10s) ease-in-out infinite;
  animation-delay: var(--verzoegerung, 0s);
  filter: drop-shadow(0 5px 6px rgba(90,62,43,0.2));
}

@keyframes schmetterlingFliegen {
  0%   { transform: translate(0, 0) rotate(0deg) scaleX(1); }
  12%  { transform: translate(38px, -22px) rotate(8deg) scaleX(-1); }
  25%  { transform: translate(68px, 12px) rotate(-6deg) scaleX(-1); }
  38%  { transform: translate(38px, 50px) rotate(4deg) scaleX(1); }
  50%  { transform: translate(-12px, 68px) rotate(-10deg) scaleX(1); }
  63%  { transform: translate(-55px, 38px) rotate(6deg) scaleX(-1); }
  75%  { transform: translate(-68px, -6px) rotate(-4deg) scaleX(-1); }
  88%  { transform: translate(-30px, -30px) rotate(8deg) scaleX(1); }
  100% { transform: translate(0, 0) rotate(0deg) scaleX(1); }
}

.flower-divider {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 50px 0 10px;
  opacity: 0.55;
  font-size: 1.3rem;
}

/* ---------- Seiten-Kopf (Unterseiten) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--himmel) 0%, var(--creme) 100%);
  padding: clamp(46px, 8vw, 74px) 0 clamp(30px, 5vw, 50px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.page-hero p.intro { max-width: 60ch; margin: 0 auto; color: var(--braun-hell); font-size: clamp(1rem, 1.6vw, 1.1rem); }

.seiten-welle {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.seiten-welle svg { width: 100%; height: 44px; display: block; }

/* ---------- Kachel-Bereich ---------- */
.angebote { padding: 20px 0 clamp(60px, 10vw, 100px); }

.angebote-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.angebote-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.angebote-head p { color: var(--braun-hell); font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.kachel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.kachel {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kachel:hover { transform: translateY(-6px); box-shadow: var(--schatten-stark); }

.kachel-bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--honig); }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.kachel:hover .kachel-bild img { animation: kachelWippen 0.6s ease; }

@keyframes kachelWippen {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.08) rotate(-2deg); }
  60%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1.06) rotate(0deg); }
}

.kachel-inhalt { padding: 22px clamp(18px, 3vw, 24px) 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kachel-tag { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--akzent-dunkel); }
.kachel h3 { font-size: 1.35rem; }
.kachel-inhalt p { color: var(--braun-hell); font-size: 0.95rem; margin: 0; }
.kachel-pfeil { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--akzent-dunkel); display: flex; align-items: center; gap: 6px; }

/* ---------- Inhaltsblöcke ---------- */
.inhalt-block { padding: 20px 0 clamp(50px, 8vw, 90px); }

.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.zweispaltig img {
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
}

.karte {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: clamp(24px, 4vw, 40px);
}

.hinweis-box {
  background: var(--honig);
  border-radius: var(--radius-klein);
  padding: 18px 22px;
  font-size: 0.95rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0;
}

.hinweis-box .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- Freischalt-Buttons (Weg B: Ehrlichkeits-Locker) ---------- */
.freischalt-bereich {
  background: var(--weiss);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
  padding: clamp(26px, 4vw, 40px);
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
}

.freischalt-bereich h3 { font-size: 1.3rem; margin-bottom: 10px; }
.freischalt-bereich p { color: var(--braun-hell); margin-bottom: 24px; }

.ehrlichkeits-hinweis {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: var(--honig);
  border: 2px dashed var(--akzent);
  border-radius: var(--radius-klein);
  padding: 18px 22px;
  margin: 0 0 26px;
}
.ehrlichkeits-hinweis .icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.ehrlichkeits-hinweis p {
  margin: 0;
  color: var(--braun);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
}

.freischalt-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.freischalt-schritt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.freischalt-schritt .schritt-nummer {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--akzent);
  color: var(--weiss);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Kontaktformular ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 50px);
  align-items: start;
}

form.kontaktformular { display: flex; flex-direction: column; gap: 16px; }

.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 700; font-size: 0.92rem; }
.feld input, .feld textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--honig-dunkel);
  border-radius: var(--radius-klein);
  background: var(--creme);
  color: var(--braun);
  resize: vertical;
}
.feld input:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
}

.kontakt-info { display: flex; flex-direction: column; gap: 18px; }
.kontakt-info .karte { display: flex; gap: 14px; align-items: flex-start; }
.kontakt-info .icon { font-size: 1.6rem; }

/* ---------- Video-Galerie ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.video-karte {
  position: relative;
  display: block;
  border-radius: var(--radius-klein);
  overflow: hidden;
  box-shadow: var(--schatten);
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-stark); }
.video-karte img { width: 100%; height: 100%; object-fit: cover; display: block; }

.video-karte-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(90,62,43,0.55);
  color: var(--weiss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  pointer-events: none;
  transition: background 0.2s ease;
}
.video-karte:hover .video-karte-play { background: var(--akzent); }

/* ---------- Fußbereich ---------- */
footer {
  background: var(--braun);
  color: var(--honig);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: var(--honig); text-decoration: underline; }
footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover { background: var(--akzent); transform: translateY(-2px); }
.social-icons svg { width: 19px; height: 19px; fill: var(--honig); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.sichtbar { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav#hauptnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--honig);
    box-shadow: 0 8px 16px rgba(90,62,43,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav#hauptnav.offen { max-height: 320px; z-index: 1; }
  nav#hauptnav ul { flex-direction: column; gap: 0; padding: 10px clamp(18px,4vw,32px) 18px; }
  nav#hauptnav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    display: flex;
    width: 100%;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(90,62,43,0.08);
    font-size: 0.95rem;
  }
  nav#hauptnav a .nav-icon { font-size: 1.2rem; }
  nav#hauptnav a:hover { transform: none; box-shadow: none; }
  nav#hauptnav a.active { background: none; color: var(--akzent-dunkel); }
  .nav-toggle { display: block; }

  .hero-inner { justify-content: center; padding: 0 clamp(18px, 5vw, 32px); }
  .hero-karte { width: 100%; margin-left: 0; }

  .zweispaltig { grid-template-columns: 1fr; text-align: center; }
  .zweispaltig .bild-erst { order: -1; }

  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .kachel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-eyebrow { font-size: 0.75rem; }
  .kachel-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--akzent-dunkel);
  outline-offset: 3px;
}
