/* =====================================================================
   bienenbeute.com – Weta-Look (WordPress-Theme Weta 1.1.2) für Typemill Cyanine 2.4.2
   Einfügen in: Typemill > Themes > Cyanine > (Konfiguration) > Feld "Custom CSS"
   Werte aus theme/THEME-NOTES.md + theme/computed-styles.json (Desktop 1280 px)
   ===================================================================== */

/* ---------- Schriften (optional Google Fonts; siehe DESIGN-PLAN.md § Schriften) ---------- */
/* @import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;1,400;1,600&display=swap'); */

/* Source Sans Pro überall (die Cyanine-Schriftauswahl bietet sie nicht an; dort "helvetica,sans-serif" wählen,
   dann greift ohne Google Fonts automatisch Helvetica/Arial als Fallback) */
body, body .navigation, body button, body .button, body .mainnavigation,
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: "Source Sans Pro", "Source Sans 3", Helvetica, Arial, sans-serif;
}

/* ---------- Grundlayout: weiß, einspaltig, zentriert ---------- */
body.optimize-text { padding: 0 !important; background: #fff; color: #555; font-size: 16px; }
main, footer { border: 0 !important; background: #fff !important; color: #555 !important; }
main { padding-bottom: 0 !important; }

@media screen and (min-width: 50em) {
  .grid-container {
    display: grid !important;
    max-width: none !important;
    grid-template-columns: 100% !important;
    grid-column-gap: 0 !important;
    grid-template-areas: "gridHeader" "gridSidebar" "gridMain" !important;
  }
}
/* Desktop wie Weta: Inhaltsspalte 660 px links, rechte Seitenleiste 280 px mit der DN-Front-Grafik
   (die Grafik kommt als CSS-Hintergrund, weil Cyanine keine Widget-Bereiche hat; Pfad = Typemill-Live-Bild) */
@media screen and (min-width: 64em) {
  .grid-container {
    grid-template-columns: minmax(20px, 1fr) minmax(0, 660px) 60px 280px minmax(20px, 1fr) !important;
    grid-template-areas:
      "gridHeader gridHeader gridHeader gridHeader gridHeader"
      "gridSidebar gridSidebar gridSidebar gridSidebar gridSidebar"
      ". gridMain . gridAside ." !important;
  }
  .grid-container::after {
    content: ""; grid-area: gridAside; align-self: start;
    margin-top: 64px; height: 300px;
    background: url("/media/live/dn-front-clean-960px-text.png") no-repeat center top / contain;
  }
  body:has(figure.homehero) .grid-container::after { display: none; }   /* Startseite: Grafik steht schon im Inhalt */
  body:has(figure.homehero) .grid-container { grid-template-areas:
      "gridHeader gridHeader gridHeader gridHeader gridHeader"
      "gridSidebar gridSidebar gridSidebar gridSidebar gridSidebar"
      ". gridMain gridMain gridMain ." !important; }
  .grid-main { max-width: none !important; padding: 64px 0 40px !important; }
}

/* ---------- Header: großes zentriertes Logo + Georgia-Titel + Tagline ---------- */
.grid-header { text-align: center; padding: 40px 16px 24px !important; border-bottom: 0; }
.grid-header .logo a { display: inline-block; text-decoration: none; }
.grid-header .logo-image { width: 330px; max-width: 60vw !important; height: auto; display: block; margin: 0 auto; }
.grid-header .logo a::after {            /* Site-Title wie Weta */
  content: "bienenbeute.com";
  display: block; margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: 50px; line-height: 65px; letter-spacing: 1px; text-transform: uppercase; font-style: italic; color: #bbb;
}
.grid-header .logo p::after {            /* Tagline */
  content: "Die imker- & bienenfreundliche Bienenkiste";
  display: block; margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 14px; color: #999;
}
@media screen and (max-width: 63.99em) {      /* Weta: Titel 30 px, Tagline erst ab 1023 px sichtbar */
  .grid-header .logo a::after { font-size: 30px; line-height: 39px; }
  .grid-header .logo p::after { display: none; }
}

/* ---------- Hauptnavigation: horizontale Leiste, Dropdowns, sticky ---------- */
.grid-sidebar { padding: 0 !important; background: #fff; border-top: 1px solid #ededee; border-bottom: 1px solid #ededee; }
.mainnavigation, .mainnavigation a { font-family: "Source Sans Pro", "Source Sans 3", Helvetica, Arial, sans-serif; }
.mainnavigation li { border: 0 !important; margin: 0 !important; }
.mainnavigation a { color: #282828 !important; background: transparent !important; font-weight: 400 !important; text-decoration: none; }
.mainnavigation a.arrow-after::after { content: none !important; }
.mainnavigation .active > a, .mainnavigation .activeParent > a { text-decoration: underline; }
.mainnavigation a:hover, .mainnavigation a:focus { text-decoration: underline; }
/* Mobil (< 50em): Cyanine-Burger bleibt, nur heller */
#burger:checked ~ .menu, #burger:checked ~ .burgerbutton { background: #fff !important; color: #282828 !important; }
.menu a { color: #282828 !important; }
.burgerbutton { color: #282828; padding: 12px 20px; }
.mainnavigation ul a { padding-left: 2rem !important; }

@media screen and (min-width: 50em) {
  .grid-sidebar { position: sticky; top: 0; z-index: 40; }
  #contentnav { position: relative; width: auto; }
  .mainnavigation { display: flex; justify-content: center; flex-wrap: wrap; margin: 0; font-size: 17px !important; overflow: visible; }
  .mainnavigation > li { position: relative; }
  .mainnavigation > li > a { padding: 19px 18px !important; width: auto !important; }
  .mainnavigation > li > ul {
    display: none !important; position: absolute; left: 0; top: 100%;
    min-width: 230px; background: #fff; border: 1px solid #ededee; z-index: 50; text-align: left;
  }
  .mainnavigation > li:hover > ul, .mainnavigation > li:focus-within > ul { display: block !important; }
  .mainnavigation ul a { display: block; padding: 10px 18px !important; font-size: 16px; }
  .contentnav.collapse .folder > ul { display: none; }
  #expander { display: none !important; }
}

/* ---------- Inhalt: 660 px Spalte, Source Sans Pro, Weta-Größen ---------- */
.grid-main {
  max-width: 700px !important; margin: 0 auto !important;
  padding: 64px 20px 40px !important;
  font-family: "Source Sans Pro", "Source Sans 3", Helvetica, Arial, sans-serif;
  font-weight: 400 !important; color: #555;
}
#breadcrumb { display: none; }
article h1, article h2, article h3, article h4, article h5, article h6 { color: #282828; font-weight: 400; font-family: inherit; }
article h1 { font-size: 26px; line-height: 1.3; margin: 0 0 30px; padding: 0; }
article h2 { font-size: 21px; line-height: 1.4; margin: 40px 0 16px; }
article h3 { font-size: 20px; line-height: 1.45; }
article h4 { font-size: 18px; line-height: 1.5; margin: 24px 0 8px; font-weight: 600; }
article p { font-size: 19px; line-height: 1.65; margin: 0 0 30px; }
article ul, article ol { font-size: 16px; line-height: 1.8; padding-left: 50px; margin: 0 0 30px; }
article ul { list-style: none; }
article ul li { position: relative; padding-left: 24px; }
article ul li::before { content: "\2013"; position: absolute; left: 0; top: 0; }
article a, main a { color: #282828 !important; text-decoration: underline; }
article a:hover { color: #555 !important; }
article hr { border: 0; border-top: 1px solid #ededee; margin: 40px 0; }
a.tm-heading-anchor { display: none; }

/* ---------- Bilder: zentriert, max. Spaltenbreite, Bildunterschrift klein/kursiv ---------- */
article figure { margin: 0 0 30px; text-align: center; }
article figure img { max-width: 100%; height: auto; display: inline-block; }
article figcaption { font-size: 14px; font-style: italic; color: #999; margin-top: 8px; }
article figcaption a { color: #555 !important; }
article p img { max-width: 100%; height: auto; }

/* Portfolio-Übersicht: Bild-Links mittig */
article p > a > img { display: block; margin: 0 auto; }

/* Startseite: die 9 Bilder der früheren Jetpack-Diashow als 3-spaltige Galerie */
article figure.slide { display: inline-block; width: 30.5%; margin: 0 1% 24px; vertical-align: top; }
article figure.slide img { width: 100%; }
article figure.slide figcaption { display: block; font-size: 13px; line-height: 1.4; }
@media screen and (max-width: 40em) { article figure.slide { width: 46.5%; margin: 0 1% 18px; } }
article figure.homehero img { max-width: 560px; width: 100%; }

/* ---------- Seitennavigation unten (Cyanine "bottompager") dezent wie Weta ---------- */
#bottompager a.navigation { background: #fff !important; color: #282828 !important; border: 1px solid #282828 !important;
  font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
#bottompager a.navigation:hover { background: #ebebeb !important; }
/* About-Seiten haben eigene "Nächste →/← Vorherige"-Links im Text (wie in WordPress) -> Cyanine-Pager dort ausblenden */
.grid-main:has(article a[href*="/about"]) #bottompager { display: none !important; }

/* Ordnerseiten: Unterseiten-Liste (navigationFlat) schlicht */
.grid-main nav ul li { border-color: #ededee !important; }

/* ---------- Footer: #f5f5f5, 14 px ---------- */
footer, body > .w-100.center.f6 { background: #f5f5f5 !important; color: #555 !important; font-size: 14px; }
footer { padding: 60px 0 10px; }
body > .w-100.center.f6 { padding: 10px 0 40px; }
footer .grid-footer, body > .w-100.center.f6 .grid-footer { max-width: 1000px; margin: 0 auto; }
footer a, body > .w-100.center.f6 a { color: #555 !important; text-decoration: none; }
footer a:hover, body > .w-100.center.f6 a:hover { text-decoration: underline; }
footer h3, footer h4 { font-size: 16px; color: #282828; font-weight: 600; }

/* ---------- Kontaktformular (Plugin contactform) im Weta-Stil ---------- */
.tm-contactform form input, .tm-contactform form textarea { background: #fff; border: 1px solid #a9a9a9; padding: 10px 12px; font-size: 16px; }
.tm-contactform form input[type="submit"], .tm-contactform form button {
  width: auto; padding: 18px 20px; background: #fff !important; color: #282828 !important; border: 1px solid #282828 !important;
  font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.tm-contactform form input[type="submit"]:hover, .tm-contactform form button:hover { background: #ebebeb !important; opacity: 1; }

/* Fix: footer and copyright also use .grid-container, so the desktop
   content grid and the DN-Front ::after were applied there (huge grey
   gap + duplicate sidebar graphic). Keep that grid on the page shell only. */
footer .grid-container,
body > .w-100.center.f6 .grid-container {
  display: block !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}
footer .grid-container::after,
body > .w-100.center.f6 .grid-container::after {
  content: none !important;
  display: none !important;
  background: none !important;
  height: 0 !important;
  margin: 0 !important;
}
