/*
Theme Name: Christrosen
Theme URI: https://christrosen.de/
Author: Geywitz Gartenbau Christrosenkulturen
Author URI: https://christrosen.de/
Description: Maßgeschneidertes, edel-botanisches WordPress-Theme für Geywitz Gartenbau Christrosenkulturen (Helleborus-Kulturen seit 1934). DSGVO-konform ohne externe Schriftarten, mit nativer Slideshow, Galerie-Lightbox und HTML5-Audio-Player.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 8.5
Requires PHP: 7.4
Text Domain: christrosen
*/

:root {
  --bg-cream: #faf8f5;
  --bg-card: #ffffff;
  --bg-soft: #f2efe9;
  --forest-dark: #1d3528;
  --forest-mid: #2d4f3c;
  --forest-light: #e6eee8;
  --helleborus-rose: #9e6b78;
  --gold-accent: #c5a365;
  --text-main: #2a2d2b;
  --text-muted: #5c645f;
  --border-subtle: #e2ddd5;
  --font-serif: "Georgia", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-sans:
    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-soft: 0 10px 30px rgba(29, 53, 40, 0.07);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lightbox-locked {
  overflow: hidden !important;
}

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

a {
  color: var(--forest-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--helleborus-rose);
}

/* Monochrome Vector Icons */
.icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Screen-reader helper */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Top Contact Bar */
.topbar {
  background: var(--forest-dark);
  color: #f4f1ea;
  font-size: 13.5px;
  padding: 9px 24px;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-company {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topbar-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f4f1ea;
  text-decoration: none;
}

.contact-item .icon {
  color: var(--gold-accent);
}

a.contact-item:hover {
  color: var(--gold-accent);
  text-decoration: none;
}

/* Site Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.brand img,
.brand .custom-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--forest-dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  color: var(--forest-dark);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a {
  background: var(--forest-light);
  color: var(--forest-dark);
}

/* Dropdown Submenu (e.g. Wissen -> Arten, Botanik, Literatur) */
.main-nav .menu-item-has-children > a::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.75;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  z-index: 200;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  padding: 8px 12px;
  font-size: 14.5px;
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav .sub-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 18px;
    background: transparent;
  }
}

/* Main Container */
.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 64px;
  flex: 1;
}

.container-narrow {
  max-width: 820px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--forest-dark);
  font-weight: normal;
  line-height: 1.28;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--helleborus-rose);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-family: var(--font-sans);
}

.page-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* Hero Slideshow (Startseite) */
.hero-slideshow {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 460px;
  background: radial-gradient(
    circle at 75% 30%,
    #355c46 0%,
    #1d3528 55%,
    #122119 100%
  );
  margin-bottom: 44px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 36, 27, 0.78) 0%,
    rgba(20, 36, 27, 0.15) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
}

.slide-overlay h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-overlay p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
}

.slider-controls {
  position: absolute;
  bottom: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: #14241b;
}

/* Two-Column Welcome & Info Grid */
.welcome-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 820px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .hero-slideshow {
    height: 340px;
  }
  .slide-overlay h2 {
    font-size: 26px;
  }
}

.editorial-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.editorial-card h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.editorial-card h3 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.editorial-card h4 {
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.editorial-card p + p,
.entry-content p + p {
  margin-top: 14px;
}

.entry-content ul,
.entry-content ol {
  margin: 14px 0 18px 24px;
}

.entry-content li + li {
  margin-top: 8px;
}

.lead-quote,
.entry-content blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--forest-mid);
  border-left: 3px solid var(--gold-accent);
  padding-left: 18px;
  margin: 18px 0 22px;
}

.sidebar-card {
  background: var(--forest-dark);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
  color: #e9dfc8;
  font-size: 22px;
  margin-bottom: 12px;
}

.sidebar-card .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 16px 0;
}

.sidebar-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 10px;
}

.sidebar-meta a {
  color: inherit;
  text-decoration: none;
}

.sidebar-meta a:hover {
  color: var(--gold-accent);
}

.sidebar-meta .icon {
  color: var(--gold-accent);
  margin-top: 4px;
}

/* Wissen Overview Cards */
.wissen-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.wissen-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.wissen-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-accent);
  color: inherit;
}

.wissen-card-img {
  height: 210px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.wissen-card-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.wissen-card-body {
  padding: 26px;
}

.wissen-card-body h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Botanik Circular Sections */
.botanik-item {
  display: grid !important;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.botanik-item > .wp-block-group__inner-container {
  display: contents;
}

.botanik-item > div,
.botanik-item > .wp-block-group__inner-container > div {
  min-width: 0;
}

@media (max-width: 680px) {
  .botanik-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.botanik-circle,
.botanik-circle img,
.is-style-rounded img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--gold-accent);
  padding: 12px;
  background: #fff;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Poesie Full Reading Layout */
.poesie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 28px;
}

@media (max-width: 600px) {
  .poesie-grid {
    grid-template-columns: 1fr;
  }
}

.poem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 34px 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.poem-ornament {
  width: 22px;
  height: 22px;
  color: var(--gold-accent);
  margin-bottom: 10px;
  display: block;
}

.poem-card h2,
.poem-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-soft);
}

.poem-body {
  font-family: var(--font-serif);
  color: var(--text-main);
  font-size: 16.5px;
  line-height: 1.8;
}

.poem-body p + p {
  margin-top: 14px;
}

.poem-author {
  margin-top: 16px;
  font-style: italic;
  color: var(--helleborus-rose);
  font-family: var(--font-serif);
}

/* Musik & Audio Player */
.album-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  background: var(--bg-card);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}

@media (max-width: 820px) {
  .album-layout {
    grid-template-columns: 1fr;
  }
}

.album-cover img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tracklist {
  list-style: none;
  margin: 16px 0 0;
}

.track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  border-bottom: 1px solid var(--bg-soft);
  flex-wrap: wrap;
}

.track-item:hover {
  background: var(--forest-light);
}

.track-title {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-num {
  color: var(--gold-accent);
  font-family: var(--font-serif);
  font-weight: bold;
  width: 24px;
}

.track-item audio,
.full-cd-box audio {
  height: 36px;
  max-width: 260px;
}

.full-cd-box {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--forest-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Gallery Grid, Gutenberg Galleries & Filter Pills */
.gallery-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.gallery-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gallery-pill.active,
.gallery-pill:hover {
  background: var(--forest-dark);
  color: #fff;
  border-color: var(--forest-dark);
}

.gallery-section {
  margin-bottom: 44px;
}

.gallery-section.is-hidden {
  display: none;
}

.gallery-section h2,
.gallery-section h3 {
  margin-bottom: 18px;
}

.gallery-grid,
.wp-block-gallery,
.wp-block-gallery.has-nested-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 20px !important;
  list-style: none;
  width: 100%;
}

.gallery-item,
.wp-block-gallery .wp-block-image,
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  width: 100% !important;
  max-width: 100% !important;
  flex-grow: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  position: relative;
  margin: 0 !important;
}

.gallery-item img,
.wp-block-gallery .wp-block-image img,
.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.gallery-item:hover img,
.wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.05);
}

.gallery-copyright-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e9dfc8;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Theme Lightbox Overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 16, 0.94);
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 85vw;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin-top: 14px;
  color: #f4f1ea;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--gold-accent);
  border-color: var(--gold-accent);
  color: #14241b;
}

.lightbox-btn.is-hidden {
  display: none;
}

.lightbox-btn .icon {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: 24px;
  right: 28px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
