/* =========================================================================
   HEVORA · Breathwork & Coaching
   Palette aus der Broschüre: tiefes Olivgrün, Salbei, Creme, Sand.
   Display: Marcellus (klassische Antiqua) · Text/UI: Jost (geometrisch)
   Signatur: die langsam "atmende" Sonne.
   ========================================================================= */

:root {
  --olive:       #3d4429;
  --olive-deep:  #333a22;
  --olive-line:  #4c5436;
  --sage:        #8a8b6f;
  --sage-soft:   #9a9b81;
  --cream:       #f0eee6;
  --cream-2:     #f7f6ef;
  --sand:        #cfcbb4;
  --ink:         #2b3019;
  --muted:       #6f7358;

  --maxw: 1140px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius: 2px;

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 18px 50px -28px rgba(43, 48, 25, .55);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--olive); color: var(--cream);
  padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* ----------------------------- Sunburst ----------------------------- */
.brand-mark { display: inline-flex; width: 38px; height: 38px; color: var(--cream); }
.brand-mark .sunburst { width: 100%; height: 100%; }
.brand-mark.small { width: 46px; height: 46px; }

@keyframes breathe {
  0%, 100% { transform: scale(.92); opacity: .85; }
  50%      { transform: scale(1);   opacity: 1; }
}
.breathing .sunburst { animation: breathe 9s ease-in-out infinite; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .breathing .sunburst { animation: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding-block: .5rem;
}
.site-header.scrolled,
body:not([data-page=""]) .site-header {
  background: var(--olive);
  box-shadow: 0 1px 0 var(--olive-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cream); }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.4rem; letter-spacing: .42em; padding-left: .42em; color: var(--cream);
}

.primary-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.4vw, 2.3rem); margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--cream); font-size: .82rem;
  letter-spacing: .18em; text-transform: uppercase; padding: .35rem 0; position: relative;
  opacity: .85; transition: opacity .25s ease;
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--sand); transition: width .3s ease;
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { width: 100%; }
.primary-nav a[aria-current="page"] { opacity: 1; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: .4rem;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cream); transition: .3s; }

/* ----------------------------- Hero ----------------------------- */
.hero {
  background: var(--olive);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) 0 clamp(3.5rem, 11vh, 7rem);
  margin-top: -3.4rem; /* hinter den transparenten Header ziehen */
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 740px; margin-inline: auto; }
.hero .brand-mark { width: clamp(72px, 14vw, 104px); height: clamp(72px, 14vw, 104px); margin: 1.5rem auto 2.2rem; }
.hero-word {
  font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: .26em; padding-left: .26em;
  margin: 0; color: var(--cream); font-weight: 400;
}
.hero-claim {
  font-family: var(--font-body); font-weight: 300; letter-spacing: .3em;
  text-transform: uppercase; font-size: clamp(.8rem, 2.2vw, 1rem);
  margin: 1.1rem 0 0; color: var(--sand);
}
.hero-tagline {
  font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--cream); margin: 2.4rem auto 0; max-width: 30ch; line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.6rem; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .85rem 1.7rem; text-decoration: none; border: 1px solid currentColor;
  border-radius: var(--radius); transition: background .25s, color .25s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.btn-light:hover { background: var(--sand); border-color: var(--sand); }
.btn-outline { color: var(--cream); }
.btn-outline:hover { background: rgba(240,238,230,.12); }
.btn-dark { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.btn-dark:hover { background: var(--olive-deep); }

/* ----------------------------- Sections ----------------------------- */
.section { padding-block: clamp(3.2rem, 9vh, 6rem); }
.section-cream { background: var(--cream); }
.section-cream-2 { background: var(--cream-2); }
.section-sage { background: var(--sage); color: var(--cream); }
.section-olive { background: var(--olive); color: var(--cream); }

.eyebrow {
  font-family: var(--font-body); font-weight: 400; font-size: .78rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem;
}
.section-sage .eyebrow, .section-olive .eyebrow { color: var(--sand); }

.section h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin: 0 0 1.2rem; letter-spacing: .03em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); font-weight: 300; max-width: 60ch; }

/* Sunburst-Trenner zwischen Blöcken */
.divider { display: flex; justify-content: center; padding-block: clamp(2rem, 6vh, 3.5rem); }
.divider .brand-mark { width: 52px; height: 52px; color: var(--sage); }
.section-olive .divider .brand-mark,
.section-sage .divider .brand-mark { color: var(--sand); }

/* ----------------------------- Grids / Cards ----------------------------- */
.cols-2 { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-items: start; }
.cols-3 { display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: repeat(3, 1fr); }

.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.feature-list li {
  padding: .65rem 0 .65rem 2rem; position: relative; border-bottom: 1px solid rgba(111,115,88,.22);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--sage);
}
.section-sage .feature-list li, .section-olive .feature-list li { border-color: rgba(240,238,230,.22); }
.section-sage .feature-list li::before, .section-olive .feature-list li::before { background: var(--sand); }

.card {
  background: var(--cream-2); border: 1px solid rgba(111,115,88,.18);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); height: 100%;
}
.section-sage .card, .section-olive .card { background: rgba(240,238,230,.08); border-color: rgba(240,238,230,.2); }
.card h3 { font-size: 1.35rem; margin: 0 0 .6rem; }

/* Schritte (Ablauf) */
.steps { counter-reset: step; display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.step-num {
  counter-increment: step; font-family: var(--font-display); font-size: 1.6rem;
  width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; flex: none;
}
.step-num::before { content: counter(step); }
.step h3 { margin: .2rem 0 .3rem; font-size: 1.25rem; }
.step p { margin: 0; }

/* Preis-Box */
.pricecard {
  background: var(--olive); color: var(--cream); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center;
}
.pricecard .price { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem); margin: .3rem 0; }
.pricecard .sub { color: var(--sand); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }

/* ----------------------------- PDF / Broschüren ----------------------------- */
.brochure-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr 1fr; }
.brochure {
  background: var(--cream-2); border: 1px solid rgba(111,115,88,.2);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.brochure-preview { aspect-ratio: 4 / 3; background: var(--olive); position: relative; }
.brochure-preview object,
.brochure-preview embed,
.brochure-preview iframe { width: 100%; height: 100%; border: 0; }
.brochure-preview .fallback {
  position: absolute; inset: 0; display: grid; place-items: center; gap: .8rem; color: var(--cream);
}
.brochure-preview .fallback .brand-mark { width: 64px; height: 64px; color: var(--sand); }
.brochure-body { padding: clamp(1.3rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.brochure-body .tag {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.brochure-body h3 { font-size: 1.3rem; margin: 0; }
.brochure-body p { margin: 0; color: var(--muted); }
.brochure-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.brochure-meta { font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.missing { color: #8a4b2f; font-size: .85rem; }

/* ----------------------------- About ----------------------------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: var(--gap); align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: auto; display: block; }
.about-photo.placeholder { display: grid; place-items: center; color: var(--olive); background: var(--sand); aspect-ratio: 3/4; }
.about-photo.placeholder .brand-mark { width: 90px; height: 90px; color: var(--olive); }

/* ----------------------------- Kontakt ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.contact-card { background: var(--cream-2); border: 1px solid rgba(111,115,88,.2); padding: clamp(1.6rem,3vw,2.2rem); border-radius: var(--radius); }
.contact-card h3 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; }
.contact-list .icon { width: 20px; height: 20px; flex: none; color: var(--sage); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ----------------------------- Page hero (Unterseiten) ----------------------------- */
.page-hero {
  background: var(--olive); color: var(--cream); text-align: center;
  padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(2.5rem, 7vh, 4rem); margin-top: -3.4rem;
}
.page-hero .brand-mark { width: 56px; height: 56px; margin: 0 auto 1.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0; letter-spacing: .04em; }
.page-hero p { color: var(--sand); margin: 1rem auto 0; max-width: 50ch; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--olive-deep); color: var(--cream); padding-top: clamp(3rem, 7vh, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); padding-bottom: 2.5rem; }
.footer-brand .brand-mark { color: var(--sand); margin-bottom: .8rem; }
.footer-word { font-family: var(--font-display); letter-spacing: .3em; margin: 0; font-size: 1.2rem; }
.footer-claim { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--sand); margin: .3rem 0 .8rem; }
.footer-tag { font-style: italic; color: rgba(240,238,230,.8); margin: 0; }
.footer-col h3 { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; color: var(--sand); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: rgba(240,238,230,.85); text-decoration: none; }
.footer-col a:hover { color: var(--cream); }
.footer-col address { font-style: normal; color: rgba(240,238,230,.85); line-height: 1.8; }
.footer-col address a { color: var(--sand); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(240,238,230,.14); padding-block: 1.4rem; font-size: .82rem; color: rgba(240,238,230,.7);
}
.footer-bottom a { color: var(--sand); text-decoration: none; }

/* ----------------------------- Bild-Band ----------------------------- */
.media-band { position: relative; overflow: hidden; }
.media-band img {
  width: 100%; height: clamp(300px, 52vh, 520px); object-fit: cover; display: block;
}
.media-band .overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 1.5rem;
  background: linear-gradient(to bottom, rgba(61,68,41,.25), rgba(61,68,41,.55));
  color: var(--cream);
}
.media-band .overlay p {
  font-family: var(--font-display); font-style: normal; letter-spacing: .04em;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem); margin: 0; max-width: 22ch; line-height: 1.3;
}
.media-band .overlay .kicker {
  font-family: var(--font-body); font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
  font-size: .78rem; color: var(--sand); margin: 0 0 .9rem;
}

/* Bild neben Text (z. B. Breathwork) */
.media-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-figure img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; display: block; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
  .cols-2, .cols-3, .about-grid, .contact-grid, .brochure-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--olive); transform: translateX(100%); transition: transform .35s ease;
    padding: 5rem 2rem 2rem; box-shadow: var(--shadow);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; gap: 1.4rem; }
  .primary-nav a { font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ===================== Dashboard (einfache Version) ===================== */
.dash-top { background: var(--olive); color: var(--cream); }
.dash-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.dash-top .brand-word { font-size: 1.1rem; }
.dash-top a { color: var(--sand); text-decoration: none; font-size: .85rem; }
.login-wrap { min-height: 78vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-card, .pdf-card {
  background: var(--cream-2); border: 1px solid #d6d3c2; border-radius: 4px; padding: clamp(1.6rem,4vw,2.4rem);
}
.login-card { width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.login-card .brand-mark { width: 54px; height: 54px; color: var(--olive); display: block; margin: 0 auto 1rem; }
.login-card h1 { text-align: center; letter-spacing: .3em; padding-left: .3em; font-size: 1.4rem; margin: .2rem 0 1.4rem; }
.form-field { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .4rem; }
input[type=text], input[type=email], input[type=password], input[type=file], textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid #c8c5b3; border-radius: 3px; background: #fff;
  font-family: inherit; font-size: 1rem; color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
.pdf-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.pdf-card .preview { aspect-ratio: 4/3; background: var(--olive); border-radius: 3px; overflow: hidden; margin: .8rem 0; }
.pdf-card .preview object { width: 100%; height: 100%; border: 0; }
.flash { padding: .9rem 1.1rem; border-radius: 3px; margin: 1.2rem 0; }
.flash.ok { background: #e3ead0; color: #3d4429; border: 1px solid #b9c79a; }
.flash.err { background: #f3dcd2; color: #8a3b1f; border: 1px solid #e0b3a0; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 760px) { .pdf-grid { grid-template-columns: 1fr; } }
