/*
Theme Name: Imkerei Bartels
Theme URI: https://www.imkerei-bartels.de
Author: Familienimkerei Bartels
Description: Eigenes Theme für die Familienimkerei Bartels. Texte, Bilder, WhatsApp-Nummer und Farben lassen sich unter Design → Anpassen → "Imkerei Bartels – Startseite" ändern. Keine externen Schriften (datenschutzfreundlich).
Version: 1.8.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bartels-imkerei
*/

:root {
  --gold: #e6b422;
  --gruen-dunkel: #2a4430;
  --gruen-text: #1f3526;
  --creme: #fdfbf6;
  --creme-band: #f8f1e1;
  --creme-box: #f6eedd;
  --kachel: #2f4a37;
  --gold-icon: #d49a14;
  --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: Georgia, "Times New Roman", "DejaVu Serif", serif;
  --schrift-hand: "Segoe Script", "Bradley Hand", "Brush Script MT", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--schrift-text);
  color: #22392a;
  background: var(--creme);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .88; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--schrift-titel); margin: 0; color: var(--gruen-text); }
p { margin: 0; }
.inhalt { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- KOPFZEILE ---------- */
.kopf { background: var(--creme); border-bottom: 2px solid var(--gold); }
.kopf .inhalt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { width: 112px; height: 112px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--schrift-titel); }
.logo-text .klein { font-size: 22px; font-weight: 500; }
.logo-text .gross { font-size: 38px; font-weight: 700; margin-top: 2px; }
.menue { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 17px; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.menue a { display: block; padding: 8px 0; border-bottom: 3px solid transparent; }
.menue .current-menu-item > a,
.menue .current_page_item > a { border-bottom-color: var(--gold); }
.knopf-gold { background: var(--gold); color: #22392a; font-weight: 700; font-size: 16px; padding: 13px 24px; border-radius: 999px; }

/* ---------- HERO ---------- */
.hero { position: relative; background-color: #fbeccb; overflow: hidden; }
.hero-bg { position: absolute; top: 0; bottom: 0; right: -9%; height: 100%; width: auto; min-width: 100%; max-width: none; object-fit: cover; object-position: left center; display: block; }
.hero-schleier { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253,244,224,.94) 0%, rgba(253,244,224,.80) 34%, rgba(253,244,224,0) 62%); }
.hero .inhalt { position: relative; z-index: 1; }
.hero-text { max-width: 700px; padding: 44px 0; display: flex; flex-direction: column; gap: 16px; }
.hero-text h1 { font-size: 50px; line-height: 1.1; font-weight: 600; }
.hero-text p { font-size: 20px; max-width: 580px; }
.knopf-gruen { align-self: flex-start; background: var(--gruen-dunkel); color: #fdfbf6; font-weight: 700; font-size: 17px; padding: 16px 28px; border-radius: 999px; margin-top: 6px; }

/* ---------- VORTEILE ---------- */
.vorteile { background: var(--creme-band); }
.vorteile .inhalt { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 20px 32px; padding-top: 22px; padding-bottom: 22px; }
.vorteil { display: flex; align-items: center; gap: 16px; font-size: 19px; }
.vorteil svg { width: 44px; height: 44px; fill: none; stroke: var(--gold-icon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- HONIGVIELFALT ---------- */
.vielfalt .inhalt { padding-top: 36px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 22px; }
.titelzeile { display: flex; align-items: center; gap: 24px; }
.titelzeile .linie { flex: 1; height: 2px; background: var(--gold); min-width: 20px; }
.titelzeile h2 { font-size: 40px; font-weight: 600; text-align: center; }
.kacheln { display: flex; flex-wrap: wrap; gap: 24px; }
.kachel { flex: 1 1 190px; margin: 0; border-radius: 10px; overflow: hidden; background: var(--kachel); }
.kachel img { width: 100%; height: 160px; object-fit: cover; }
.kachel figcaption { padding: 10px 12px; text-align: center; color: #fdfbf6; font-weight: 700; font-size: 18px; }


/* ---------- VIDEO & INFO-BILD ---------- */
.medien .inhalt { padding-top: 4px; padding-bottom: 28px; }
.medien-raster { display: grid; grid-template-columns: 2.37fr 1fr; gap: 24px; align-items: start; }
.medien-raster.einzeln { grid-template-columns: minmax(0, 420px); justify-content: center; }
.medien-box { margin: 0; border-radius: 10px; overflow: hidden; background: var(--kachel); }
.medien-box figcaption { padding: 10px 12px; text-align: center; color: #fdfbf6; font-weight: 700; font-size: 18px; }
.medien-flaeche { position: relative; background: var(--creme-box); }
.medien-video .medien-flaeche { aspect-ratio: 16 / 9; }
.medien-info .medien-flaeche { aspect-ratio: 3 / 4; }
.medien-flaeche video, .medien-flaeche img, .medien-flaeche a { display: block; width: 100%; height: 100%; }
.medien-flaeche video { object-fit: cover; background: #000; }
.medien-flaeche img { object-fit: cover; }
.play-knopf { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(20,30,22,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.play-knopf[hidden] { display: none; }
.play-knopf:hover { background: rgba(20,30,22,.04); }
.play-knopf svg { width: 92px; height: 92px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); transition: transform .2s; }
.play-knopf:hover svg { transform: scale(1.08); }
.play-knopf circle { fill: rgba(253,251,246,.94); stroke: var(--gold); stroke-width: 3; }
.play-knopf path { fill: var(--gruen-dunkel); }
.play-knopf:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.medien-leer { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; border: 2px dashed var(--gold); }
.medien-leer p { font-size: 16px; line-height: 1.6; }
@media (max-width: 700px) { .medien-raster { grid-template-columns: 1fr; } .medien-info { max-width: 420px; width: 100%; margin: 0 auto; } .play-knopf svg { width: 72px; height: 72px; } }

/* ---------- NACHHALTIGKEIT ---------- */
.nachhaltig .inhalt { padding-top: 8px; padding-bottom: 40px; }
.nachhaltig-box { background: var(--creme-box); border-radius: 18px; overflow: hidden; display: flex; flex-wrap: wrap; align-items: stretch; }
.nachhaltig-bild { flex: 1 1 300px; max-width: 480px; min-height: 170px; }
.nachhaltig-bild img { width: 100%; height: 100%; min-height: 170px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%); mask-image: linear-gradient(to right, #000 70%, transparent 100%); }
.nachhaltig-text { flex: 2 1 420px; padding: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.nachhaltig-text .text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.nachhaltig-text h2 { font-size: 32px; font-weight: 600; }
.nachhaltig-text p { font-size: 17px; }
.stempel { display: flex; align-items: center; gap: 16px; }
.stempel svg { width: 92px; height: 92px; fill: none; stroke: #22392a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stempel span { font-family: var(--schrift-hand); font-size: 24px; line-height: 1.2; transform: rotate(-6deg); display: inline-block; }

/* ---------- FOOTER ---------- */
.fuss { background: var(--gruen-dunkel); color: #fdfbf6; }
.fuss > .inhalt { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 18px; padding-bottom: 18px; }
.fuss .fuss-logo { width: 104px; height: 104px; object-fit: contain; }
.fuss .ort { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.fuss .ort svg { width: 20px; height: 20px; fill: #fdfbf6; }
.fuss .ort:hover, .fuss .adresse:hover, .fussmenue a:hover { text-decoration: underline; opacity: 1; }
.fuss a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fuss .trenner { width: 1px; height: 32px; background: #6d8470; }
.fuss .spruch { font-family: var(--schrift-hand); font-size: 24px; font-style: italic; }
.fuss .adresse { margin-left: auto; font-size: 15px; color: #d9e0d4; }
.fussnav { border-top: 1px solid #44604a; }
.fussmenue { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: #d9e0d4; }

/* ---------- NORMALE SEITEN / BEITRÄGE ---------- */
.seite { padding: 56px 0 72px; }
.inhalt.schmal { max-width: 820px; }
.seitentitel { font-size: 44px; line-height: 1.15; font-weight: 600; margin-bottom: 24px; }
.seitentitel a:hover { opacity: 1; text-decoration: underline; }
.beitrag { margin-bottom: 48px; }
.beitragsbild { margin-bottom: 24px; border-radius: 10px; overflow: hidden; }
.eintrag { font-size: 18px; line-height: 1.7; }
.eintrag h2, .eintrag h3 { margin: 32px 0 12px; }
.eintrag h2 { font-size: 30px; }
.eintrag h3 { font-size: 24px; font-family: var(--schrift-titel); color: var(--gruen-text); }
.eintrag p, .eintrag ul, .eintrag ol { margin-bottom: 18px; }
.eintrag a { color: var(--gruen-dunkel); text-decoration: underline; }
.seitennav { margin-top: 24px; }

.eintrag .wp-block-button__link { background: var(--gruen-dunkel); color: #fdfbf6; font-weight: 700; font-size: 17px; padding: 14px 28px; border-radius: 999px; text-decoration: none; }
.eintrag .wp-block-buttons { margin: 8px 0 28px; }
.eintrag ul, .eintrag ol { padding-left: 1.4em; }
.eintrag li { margin-bottom: 8px; }
.eintrag h2:first-child { margin-top: 0; }

@media (max-width: 1300px) { .hero-text h1 { font-size: 42px; } .hero-text p { font-size: 18px; } }

/* ---------- HANDY ---------- */
@media (max-width: 700px) {
  .hero-bg { top: auto; bottom: 0; right: 0; width: 100%; height: 240px; object-position: 78% 50%; }
  .hero-schleier { background: linear-gradient(180deg, rgba(253,244,224,.97) 0%, rgba(253,244,224,.92) 55%, rgba(253,244,224,0) 100%); }
  .hero-text { padding: 32px 0 250px; }
  .hero-text h1 { font-size: 36px; }
  .titelzeile h2 { font-size: 30px; }
  .titelzeile .linie { display: none; }
  .nachhaltig-text h2 { font-size: 26px; }
  .fuss .adresse { margin-left: 0; }
  .fuss .trenner { display: none; }
  .seitentitel { font-size: 34px; }
}
