/*
Theme Name: Bio Imkerei Hildebrand
Theme URI: https://bio-bienen.com
Author: Bio Imkerei Hildebrand
Author URI: https://bio-bienen.com
Description: Schlankes, modernes und vollständig deutsches Theme für die Bio Imkerei Hildebrand. Eigenes Design mit Startseite, Über uns, Produkte und Kontakt.
Version: 1.1.3
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bio-imkerei
*/

/* ==========================================================================
   Design-Variablen
   ========================================================================== */
:root {
  --honig: #e0a106;
  --honig-dunkel: #b87c05;
  --honig-hell: #f6cf6b;
  --creme: #fdf8ee;
  --creme-dunkel: #f5ecd8;
  --bg: #fdfbf5;
  --dunkel: #2b2620;
  --grau: #6b6357;
  --weiss: #ffffff;
  --schatten: 0 10px 30px rgba(43, 38, 32, 0.08);
  --schatten-stark: 0 18px 45px rgba(43, 38, 32, 0.16);
  --radius: 16px;
  --max-breite: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Basis
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dunkel);
  background: var(--bg);
  line-height: 1.7;
  font-size: 18px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--dunkel);
  font-weight: 700;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }

a { color: var(--honig-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-breite);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--creme { background: var(--creme); }
.section--dunkel { background: var(--dunkel); color: var(--creme); }
.section--dunkel h1,
.section--dunkel h2,
.section--dunkel h3 { color: var(--weiss); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--honig-dunkel);
  display: block;
  margin-bottom: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--honig);
  color: var(--dunkel);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid var(--honig);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--honig-dunkel);
  border-color: var(--honig-dunkel);
  color: var(--weiss);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--dunkel);
  border-color: var(--dunkel);
}
.btn--ghost:hover {
  background: var(--dunkel);
  color: var(--weiss);
}
.btn--light {
  background: var(--weiss);
  border-color: var(--weiss);
  color: var(--dunkel);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--creme-dunkel);
}

/* Eingeloggt: Sticky-Header unter die WordPress-Admin-Leiste schieben */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
  max-width: var(--max-breite);
  margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .logo-bee { font-size: 1.8rem; }

/* WordPress Custom-Logo auf kompakte Höhe begrenzen */
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.custom-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
@media (max-width: 560px) {
  .custom-logo { height: 44px; }
}
.site-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dunkel);
  margin: 0;
  line-height: 1.1;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honig-dunkel);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--dunkel);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--honig-dunkel);
  border-bottom-color: var(--honig);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dunkel);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(253, 248, 238, 0.96), rgba(246, 207, 107, 0.55)),
    var(--creme);
  padding: 96px 0 104px;
  overflow: hidden;
}
.hero::after {
  content: "🍯";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 18rem;
  opacity: 0.08;
  transform: rotate(-10deg);
}
.hero__inner { max-width: 720px; position: relative; z-index: 2; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--honig-dunkel);
  margin-bottom: 16px;
  display: block;
}
.hero p.lead { font-size: 1.25rem; color: var(--grau); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero mit Hintergrundfoto (z. B. Nordschwarzwald) */
.hero--photo {
  background-size: cover;
  background-position: center;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(31, 24, 15, 0.74) 0%, rgba(31, 24, 15, 0.42) 55%, rgba(31, 24, 15, 0.25) 100%);
}
.hero--photo::after { display: none; }
.hero--photo .hero__eyebrow { color: var(--honig-hell); }
.hero--photo h1 { color: #fff; }
.hero--photo p.lead { color: rgba(255, 255, 255, 0.92); }
.hero--photo .btn--ghost { color: #fff; border-color: #fff; }
.hero--photo .btn--ghost:hover { background: #fff; color: var(--dunkel); }

/* ==========================================================================
   Schwarm-Video
   ========================================================================== */
.videoblock__frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten-stark);
  background: #000;
  line-height: 0;
}
.videoblock__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Galerie (Masonry) + Lightbox
   ========================================================================== */
.galerie {
  columns: 3 280px;
  column-gap: 16px;
}
.galerie__item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.galerie__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}
.galerie__item:hover img { transform: scale(1.05); }
.galerie__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 14px 12px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.galerie__item:hover .galerie__cap,
.galerie__item:focus-visible .galerie__cap { opacity: 1; }
.galerie__item:focus-visible {
  outline: 3px solid var(--honig);
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 15, 8, 0.93);
}
.lightbox.is-open { display: flex; }
.lightbox__figure {
  margin: 0;
  max-width: 1000px;
  text-align: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.lightbox__cap {
  color: #f3ece0;
  margin-top: 14px;
  font-size: 0.95rem;
}
.lightbox__close {
  position: absolute;
  top: 14px;
  right: 24px;
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (max-width: 600px) {
  .galerie { columns: 2 150px; }
}

/* ==========================================================================
   Dekoratives Bienen-Band
   ========================================================================== */
.bienen-band {
  background: var(--weiss);
  padding: 24px 0 8px;
  text-align: center;
}
.bienen-band img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* ==========================================================================
   Animierte Biene
   ========================================================================== */
.bee-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}
.bee {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  animation: bee-cross 22s linear infinite;
}
.bee__bob {
  animation: bee-bob 2s ease-in-out infinite;
}
/* Volle Biene = 835x895 px, per scale auf Anzeigegröße verkleinert */
.bee__rig {
  position: relative;
  width: 835px;
  height: 895px;
  transform: scale(0.11);
  transform-origin: 0 0;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.2));
}
.bee__body {
  position: absolute;
  left: 0;
  top: 215px;
  width: 835px;
  height: auto;
}
.bee__wing {
  position: absolute;
  left: 85px;
  top: 0;
  width: 469px;
  height: auto;
  transform-origin: 435px 325px; /* Flügelansatz am Körper */
  animation: bee-flap 0.13s ease-in-out infinite;
}

@keyframes bee-cross {
  0%   { transform: translate(-16vw, 26vh) rotate(6deg); }
  18%  { transform: translate(42vw, 12vh) rotate(-4deg); }
  34%  { transform: translate(122vw, 22vh) rotate(6deg); }
  100% { transform: translate(122vw, 22vh) rotate(6deg); }
}
@keyframes bee-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes bee-flap {
  0%, 100% { transform: rotate(5deg); }
  50%      { transform: rotate(-13deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bee-stage { display: none; }
}

/* ==========================================================================
   Feature-/Karten-Grid
   ========================================================================== */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--schatten);
  border: 1px solid var(--creme-dunkel);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--schatten-stark); }
.card .icon { font-size: 2.6rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grau); margin: 0; }

/* ==========================================================================
   Split / Über-uns Bereich
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten-stark);
  background: linear-gradient(135deg, var(--honig-hell), var(--honig));
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Statistiken
   ========================================================================== */
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 32px; }
.stat strong {
  display: block;
  font-size: 2.4rem;
  color: var(--honig-dunkel);
  line-height: 1;
}
.stat span { color: var(--grau); font-size: 0.95rem; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 1.05rem;
}
.contact-info .ic { font-size: 1.5rem; }
.contact-info a { color: var(--dunkel); }

.wpcf7, .contact-form { background: var(--weiss); padding: 32px; border-radius: var(--radius); box-shadow: var(--schatten); }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--creme-dunkel);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 18px;
  background: var(--creme);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--honig); border-color: var(--honig); }

/* ==========================================================================
   EU-Bio-Siegel
   ========================================================================== */
.bio-band { padding: 56px 0; }
.bio-band__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
}
.bio-band__text { max-width: 520px; }
.bio-band__text h2 { margin-bottom: 6px; }
.bio-band__text p { color: var(--grau); margin: 0; }

.bio-siegel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.bio-siegel__logo {
  display: block;
  height: auto;
  /* Keine Stilisierung (kein border-radius, keine Effekte) – EU-Vorschrift */
}
.bio-siegel--gross .bio-siegel__logo { width: 110px; }
.bio-siegel--klein .bio-siegel__logo { width: 64px; }
.bio-siegel__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.bio-siegel--gross .bio-siegel__text strong { font-size: 1.1rem; }
.bio-siegel__text strong { color: var(--dunkel); letter-spacing: 0.02em; }
.bio-siegel__text span { font-size: 0.85rem; color: var(--grau); }

/* Im dunklen Footer hellere Schrift */
.site-footer .bio-siegel { margin-top: 20px; }
.site-footer .bio-siegel__text strong { color: var(--weiss); }
.site-footer .bio-siegel__text span { color: #c9c0b2; }

/* ==========================================================================
   Produktkatalog
   ========================================================================== */
.produkt-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.produkt-card {
  background: var(--weiss);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  border: 1px solid var(--creme-dunkel);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.produkt-card:hover { transform: translateY(-6px); box-shadow: var(--schatten-stark); }
.produkt-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--honig-hell), var(--honig));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.produkt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.produkt-card__placeholder { font-size: 4.5rem; }
.produkt-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dunkel);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--schatten);
}
.produkt-card__badge--inline {
  position: static;
  background: var(--creme-dunkel);
}
.produkt-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.produkt-card__title { margin: 0 0 8px; font-size: 1.25rem; }
.produkt-card__desc { color: var(--grau); margin: 0 0 18px; flex: 1; }
.produkt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.produkt-card__preis { font-size: 1.5rem; font-weight: 800; color: var(--honig-dunkel); }
.produkt-card__verfueg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 12px;
  border-radius: 999px;
}
.produkt-detail-meta { display: flex; align-items: center; gap: 14px; margin: 8px 0 24px; flex-wrap: wrap; }

/* ==========================================================================
   Seiteninhalt (page.php / Beiträge)
   ========================================================================== */
.page-hero {
  background: var(--creme);
  padding: 36px 0;
  text-align: center;
  border-bottom: 1px solid var(--creme-dunkel);
}
.page-hero h1 { margin-bottom: 0; }
.page-hero .eyebrow { margin-bottom: 8px; display: block; }

/* Kopfbereich mit Foto-Hintergrund (Beitragsbild) */
.page-hero--photo {
  position: relative;
  padding: 58px 0;
  border-bottom: 0;
  background-size: cover;
  background-position: center;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(31, 24, 15, 0.7) 0%, rgba(31, 24, 15, 0.42) 100%);
}
.page-hero--photo .container { position: relative; z-index: 1; }
.page-hero--photo h1 { color: #fff; }
.page-hero--photo .eyebrow { color: var(--honig-hell); }
.page-hero--photo p { color: rgba(255, 255, 255, 0.92); margin-bottom: 0; }

.entry-content { max-width: 820px; margin: 0 auto; padding: 56px 24px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* ==========================================================================
   Zertifizierung
   ========================================================================== */
.zert { padding: 56px 0 72px; }
.zert__inner { max-width: 760px; }
.zert__intro { max-width: 760px; margin: 0 auto 36px; color: var(--grau); }
.zert__card {
  background: var(--weiss);
  border: 1px solid var(--creme-dunkel);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.zert__siegel {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--creme-dunkel);
  margin-bottom: 8px;
}
.zert__table { width: 100%; border-collapse: collapse; }
.zert__table th,
.zert__table td {
  text-align: left;
  padding: 14px 8px;
  border-bottom: 1px solid var(--creme-dunkel);
  vertical-align: top;
}
.zert__table th {
  width: 38%;
  color: var(--grau);
  font-weight: 600;
}
.zert__table td { color: var(--dunkel); font-weight: 600; }
.zert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.zert__hinweis {
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--grau);
}
@media (max-width: 600px) {
  .zert__card { padding: 24px; }
  .zert__table th { width: 100%; display: block; padding-bottom: 2px; }
  .zert__table td { display: block; padding-top: 0; }
  .zert__actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dunkel);
  color: #c9c0b2;
  padding: 64px 0 28px;
}
.site-footer a { color: var(--honig-hell); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--weiss); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    border-bottom: 1px solid var(--creme-dunkel);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px;
  }
  .main-nav li { padding: 8px 0; border-bottom: 1px solid var(--creme); }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  body { font-size: 17px; }
}
