/* ==========================================================================
   Juliane Heilpraktiker Onepage – Stylesheet
   ========================================================================== */

/* ── Custom Properties ──────────────────────────────────────────── */
:root {
  --jho-bg:           #FAFAF7;
  --jho-bg-alt:       #F3F0EB;
  --jho-bg-brand:     #EBF2ED;
  --jho-bg-dark:      #2A2F2A;
  --jho-white:        #FFFFFF;
  --jho-text:         #2A2A2A;
  --jho-text-light:   #F5F5F3;
  --jho-muted:        #6B7280;
  --jho-brand:        #4A7C59;
  --jho-brand-hover:  #3B6548;
  --jho-brand2:       #8B7355;
  --jho-radius:       12px;
  --jho-radius-lg:    20px;
  --jho-shadow:       0 2px 12px rgba(0,0,0,.06);
  --jho-shadow-hover: 0 8px 30px rgba(0,0,0,.1);
  --jho-max-width:    1140px;
  --jho-header-h:     72px;
  --jho-transition:   .3s ease;
  --jho-font:         system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────── */
.jho-section,
.jho-header,
.jho-footer {
  font-family: var(--jho-font);
  color: var(--jho-text);
  line-height: 1.7;
  box-sizing: border-box;
}
.jho-section *,
.jho-header *,
.jho-footer * {
  box-sizing: border-box;
}
.jho-section img {
  max-width: 100%;
  height: auto;
}
.jho-section a {
  color: var(--jho-brand);
  text-decoration: none;
  transition: color var(--jho-transition);
}
.jho-section a:hover {
  color: var(--jho-brand-hover);
}

/* ── Section Defaults ────────────────────────────────────────────── */
.jho-section {
  padding: 5rem 1.5rem;
  scroll-margin-top: var(--jho-header-h);
}
.jho-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .5rem !important;
}
.jho-section-subtitle {
  text-align: center;
  color: var(--jho-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 3rem !important;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.jho-btn-primary .wp-block-button__link {
  background: var(--jho-brand);
  color: var(--jho-white);
  border: 2px solid var(--jho-brand);
  border-radius: 50px !important;
  padding: .85rem 2rem !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  transition: all var(--jho-transition) !important;
}
.jho-btn-primary .wp-block-button__link:hover {
  background: var(--jho-brand-hover);
  border-color: var(--jho-brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(74,124,89,.35);
}
.jho-btn-secondary .wp-block-button__link {
  background: transparent;
  color: var(--jho-brand);
  border: 2px solid var(--jho-brand);
  border-radius: 50px !important;
  padding: .85rem 2rem !important;
  font-weight: 600 !important;
  font-size: .95rem !important;
  transition: all var(--jho-transition) !important;
}
.jho-btn-secondary .wp-block-button__link:hover {
  background: var(--jho-brand);
  color: var(--jho-white);
}

/* WordPress-Editor: Custom-Farben erlauben */
.jho-btn-primary.has-background .wp-block-button__link,
.jho-btn-secondary.has-background .wp-block-button__link {
  background: inherit;
}
.jho-btn-primary.has-text-color .wp-block-button__link,
.jho-btn-secondary.has-text-color .wp-block-button__link {
  color: inherit;
}
.jho-btn-primary.has-border-color .wp-block-button__link,
.jho-btn-secondary.has-border-color .wp-block-button__link {
  border-color: inherit;
}

/* ── Header ──────────────────────────────────────────────────────── */
.jho-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 1.5rem !important;
  min-height: var(--jho-header-h);
  display: flex;
  align-items: center;
}
.jho-header-inner {
  max-width: var(--jho-max-width);
  margin: 0 auto;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
  position: relative;
}
.jho-logo {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  margin: 0 !important;
  color: var(--jho-text);
}
.jho-logo a {
  color: inherit !important;
  text-decoration: none !important;
}
.jho-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.jho-nav-links {
  margin: 0 !important;
  white-space: nowrap;
}
.jho-nav-links a {
  color: var(--jho-muted) !important;
  text-decoration: none !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .25rem .5rem;
  transition: color var(--jho-transition);
}
.jho-nav-links a:hover {
  color: var(--jho-brand) !important;
}
.jho-header-cta {
  margin: 0 !important;
}
.jho-header-cta .wp-block-button__link {
  padding: .6rem 1.4rem !important;
  font-size: .85rem !important;
}

/* Hamburger toggle (inserted by JS) */
.jho-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.jho-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--jho-text);
  border-radius: 2px;
  transition: all var(--jho-transition);
}
.jho-menu-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.jho-menu-active span:nth-child(2) {
  opacity: 0;
}
.jho-menu-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.jho-hero {
  background: var(--jho-white);
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  min-height: calc(80vh - var(--jho-header-h));
  display: flex;
  align-items: center;
}
.jho-hero h1,
.jho-hero .wp-block-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  line-height: 1.2 !important;
  font-weight: 700;
  margin-bottom: .75rem !important;
}
.jho-subline {
  font-size: 1.15rem !important;
  color: var(--jho-muted);
  line-height: 1.75 !important;
  margin-bottom: 2rem !important;
}
.jho-hero-img img {
  border-radius: var(--jho-radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
}

/* ── Leistungen ──────────────────────────────────────────────────── */
.jho-leistungen {
  background: var(--jho-bg-alt);
}
.jho-card-grid {
  gap: 2rem !important;
}
.jho-card-grid > .wp-block-column {
  background: var(--jho-white);
  border-radius: var(--jho-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--jho-shadow);
  text-align: center;
  transition: box-shadow var(--jho-transition), transform var(--jho-transition);
}
.jho-card-grid > .wp-block-column:hover {
  box-shadow: var(--jho-shadow-hover);
  transform: translateY(-4px);
}
.jho-card-icon {
  color: var(--jho-brand);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.jho-card-icon svg {
  width: 48px;
  height: 48px;
}
.jho-card-grid h3,
.jho-card-grid .wp-block-heading {
  font-size: 1.2rem !important;
  font-weight: 600;
  margin-bottom: .5rem !important;
}
.jho-card-grid p:not(.jho-card-icon) {
  color: var(--jho-muted);
  font-size: .95rem;
}

/* ── Über mich ───────────────────────────────────────────────────── */
.jho-about {
  background: var(--jho-white);
}
.jho-about-img img {
  border-radius: var(--jho-radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 3/4;
}
.jho-about h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  margin-bottom: 1rem !important;
}
.jho-about .wp-block-list {
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.jho-about .wp-block-list li {
  margin-bottom: .5rem;
  color: var(--jho-muted);
}
.jho-about .wp-block-list li::marker {
  color: var(--jho-brand);
}

/* ── Schwerpunkte ────────────────────────────────────────────────── */
.jho-schwerpunkte {
  background: var(--jho-bg-alt);
}
.jho-schwerpunkt-grid {
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.jho-schwerpunkt-grid > .wp-block-column {
  background: var(--jho-white);
  border-radius: var(--jho-radius);
  padding: 1.75rem;
  box-shadow: var(--jho-shadow);
  border-top: 3px solid var(--jho-brand);
  transition: box-shadow var(--jho-transition), transform var(--jho-transition);
}
.jho-schwerpunkt-grid > .wp-block-column:hover {
  box-shadow: var(--jho-shadow-hover);
  transform: translateY(-3px);
}
.jho-schwerpunkt-grid h3,
.jho-schwerpunkt-grid .wp-block-heading {
  font-size: 1.05rem !important;
  font-weight: 600;
  margin-bottom: .4rem !important;
}
.jho-schwerpunkt-grid p {
  color: var(--jho-muted);
  font-size: .9rem;
  margin-bottom: 0 !important;
}

/* ── Diagnostik ──────────────────────────────────────────────────── */
.jho-diagnostik {
  background: var(--jho-bg-brand);
}
.jho-diagnostik h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  margin-bottom: 1rem !important;
}
.jho-diagnostik-card {
  background: var(--jho-white) !important;
  border-radius: var(--jho-radius) !important;
  padding: 2rem !important;
  box-shadow: var(--jho-shadow);
}
.jho-diagnostik-card h3 {
  font-size: 1.15rem !important;
  font-weight: 600;
  margin-bottom: .75rem !important;
}
.jho-diagnostik-card .wp-block-list li {
  margin-bottom: .6rem;
  color: var(--jho-muted);
}
.jho-diagnostik-card .wp-block-list li::marker {
  color: var(--jho-brand);
}

/* ── Ablauf ──────────────────────────────────────────────────────── */
.jho-ablauf {
  background: var(--jho-white);
}
.jho-step-grid {
  gap: 2rem !important;
}
.jho-step-grid > .wp-block-column {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}
.jho-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--jho-brand);
  color: var(--jho-white);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}
.jho-step-grid h3,
.jho-step-grid .wp-block-heading {
  font-size: 1.1rem !important;
  font-weight: 600;
  margin-bottom: .5rem !important;
}
.jho-step-grid p {
  color: var(--jho-muted);
  font-size: .95rem;
}
/* connector line between steps */
.jho-step-grid > .wp-block-column:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -1rem;
  width: 2rem;
  height: 2px;
  background: var(--jho-brand);
  opacity: .3;
}

/* ── Testimonials ────────────────────────────────────────────────── */
.jho-testimonials {
  background: var(--jho-bg-alt);
}
.jho-quote-grid {
  gap: 2rem !important;
}
.jho-quote-grid > .wp-block-column {
  background: var(--jho-white);
  border-radius: var(--jho-radius);
  padding: 2rem;
  box-shadow: var(--jho-shadow);
  text-align: center;
}
.jho-quote-text {
  font-style: italic;
  line-height: 1.75;
  color: var(--jho-text);
  margin-bottom: .75rem !important;
  position: relative;
}
.jho-quote-text::before {
  content: '\201E';
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--jho-brand);
  font-style: normal;
  margin-bottom: .5rem;
}
.jho-quote-author {
  font-size: .85rem !important;
  color: var(--jho-muted) !important;
  font-style: normal;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.jho-faq {
  background: var(--jho-white);
}
.jho-faq .wp-block-details {
  background: var(--jho-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--jho-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow var(--jho-transition);
}
.jho-faq .wp-block-details:hover {
  box-shadow: var(--jho-shadow);
}
.jho-faq .wp-block-details summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.jho-faq .wp-block-details summary::-webkit-details-marker {
  display: none;
}
.jho-faq .wp-block-details summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--jho-brand);
  transition: transform var(--jho-transition);
  flex-shrink: 0;
}
.jho-faq .wp-block-details[open] summary::after {
  transform: rotate(45deg);
}
.jho-faq .wp-block-details p {
  padding: 0 1.5rem 1.25rem;
  color: var(--jho-muted);
  line-height: 1.75;
  margin-top: 0 !important;
}

/* ── Kontakt ─────────────────────────────────────────────────────── */
.jho-kontakt {
  background: var(--jho-bg-alt);
}
.jho-kontakt-grid {
  gap: 2.5rem !important;
}
.jho-kontakt-info,
.jho-kontakt-form {
  background: var(--jho-white) !important;
  border-radius: var(--jho-radius) !important;
  padding: 2.5rem !important;
  box-shadow: var(--jho-shadow);
}
.jho-kontakt-info h3,
.jho-kontakt-form h3 {
  font-size: 1.15rem !important;
  font-weight: 600;
  margin-bottom: 1.25rem !important;
}
.jho-kontakt-info p {
  margin-bottom: .6rem !important;
  color: var(--jho-muted);
}

/* ── Hinweis ─────────────────────────────────────────────────────── */
.jho-hinweis {
  background: var(--jho-bg);
  padding: 2rem 1.5rem !important;
  text-align: center;
}
.jho-hinweis p {
  font-size: .8rem !important;
  color: var(--jho-muted);
  max-width: 760px;
  margin: 0 auto !important;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.jho-footer {
  background: var(--jho-bg-dark) !important;
  padding: 2.5rem 1.5rem !important;
}
.jho-footer,
.jho-footer p,
.jho-footer a {
  color: var(--jho-text-light) !important;
}
.jho-footer a {
  opacity: .8;
  transition: opacity var(--jho-transition);
}
.jho-footer a:hover {
  opacity: 1;
}
.jho-footer-inner {
  max-width: var(--jho-max-width);
  margin: 0 auto;
}
.jho-footer p {
  font-size: .9rem !important;
  margin-bottom: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jho-section {
    padding: 3.5rem 1.25rem;
  }

  /* Header mobile */
  .jho-menu-toggle {
    display: flex;
  }
  .jho-nav {
    display: none;
    position: absolute;
    top: var(--jho-header-h);
    left: -1.5rem;
    right: -1.5rem;
    background: var(--jho-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-top: 1px solid rgba(0,0,0,.06);
    z-index: 999;
  }
  .jho-nav.jho-nav-open {
    display: flex;
  }
  .jho-nav-links {
    display: flex;
    flex-direction: column;
    gap: .25rem;
  }
  .jho-nav-links a {
    display: block;
    padding: .6rem .5rem !important;
    font-size: 1rem !important;
  }
  .jho-header-cta {
    width: 100%;
  }
  .jho-header-cta .wp-block-button {
    width: 100%;
  }
  .jho-header-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
    display: block !important;
  }

  /* Hero mobile */
  .jho-hero {
    min-height: auto;
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  .jho-hero .wp-block-columns {
    flex-direction: column-reverse !important;
  }
  .jho-hero-img img {
    aspect-ratio: 16/10;
    margin-bottom: 1.5rem;
  }

  /* Card grids single column */
  .jho-card-grid,
  .jho-schwerpunkt-grid,
  .jho-step-grid,
  .jho-quote-grid,
  .jho-kontakt-grid {
    flex-direction: column !important;
  }

  /* Step connector hide */
  .jho-step-grid > .wp-block-column::after {
    display: none;
  }
}

/* Größere Tablets: 2-spaltige Schwerpunkte-Ansicht */
@media (min-width: 768px) and (max-width: 1024px) {
  .jho-schwerpunkt-grid {
    flex-wrap: wrap !important;
  }
  .jho-schwerpunkt-grid > .wp-block-column {
    flex-basis: calc(50% - 1rem) !important;
    flex-grow: 0 !important;
  }
}
