/* Sarah Jana Yoga – gemeinsame Styles für alle Seiten
   Farbschema angelehnt an sarah-weddings.at: warmes Weiß, Creme, Beige/Taupe als Akzent,
   feine Haarlinien und eine Schreibschrift für einzelne Akzentwörter.
   Alle Farben stehen hier oben und lassen sich zentral anpassen. */
:root {
  --white: #FFFFFF;
  --cream: #FAF6F1;      /* Grundfläche */
  --beige: #EFE6DB;      /* Bänder, Karten */
  --sand: #E2D4C3;       /* Linien, Rahmen */
  --taupe: #B49A80;      /* Hauptakzent */
  --taupe-dark: #8A7058; /* Akzent auf hellem Grund (Text, Buttons) */
  --ink: #2E2925;        /* Text */
  --muted: #6E655D;      /* gedämpfter Text */
  --mark: #F3E3C7;       /* Platzhalter-Markierung */

  --f-display: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.25rem, 4vw + 1rem, 3.25rem);
  --step-4: clamp(2.6rem, 6vw + 1rem, 4.6rem);

  --wrap: 70rem;
  --header-h: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--taupe-dark); outline-offset: 3px; border-radius: 2px; }

/* Akzente */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--taupe); }
.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--taupe);
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: 0;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.9rem; color: var(--taupe); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 4rem; background: var(--sand); }
.ornament svg { width: 18px; height: 18px; }

/* Formatierter Text aus dem Editor */
.rich > * + * { margin-top: 0.9em; }
.rich ul, .rich ol { margin-block: 0; padding-left: 1.2em; }
.rich li + li { margin-top: 0.3em; }
.rich a { color: var(--taupe-dark); text-underline-offset: 3px; }
.legal .rich h3, .legal .rich strong { color: var(--ink); }

/* Platzhalter: deutlich sichtbar, damit nichts davon live geht */
.ph {
  background: linear-gradient(transparent 55%, var(--mark) 55%);
  border-bottom: 1px dashed var(--taupe-dark);
  padding-inline: 0.1em;
}
.draft-note {
  background: var(--ink);
  color: var(--cream);
  font-size: var(--step--1);
  text-align: center;
  padding: 0.5rem 16px;
}
.draft-note .ph { background: none; border-bottom-color: var(--mark); color: var(--mark); }

/* Sticky-Menüband */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(46, 41, 37, 0.45); }
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  flex: none;
}
.logo img { display: block; width: auto; height: 62px; }
.nav { display: flex; align-items: center; gap: 0.2rem 1.9rem; }
.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.4rem;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--taupe);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--taupe-dark); }
.nav .sep { width: 1px; height: 1.1rem; background: var(--sand); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--sand);
  border-radius: 999px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border: 1px solid var(--taupe-dark);
  transition: background .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--taupe-dark); color: var(--white); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--white); }

/* Bilder & Platzhalter */
.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 100%, #D8C6B2 0%, transparent 70%),
    linear-gradient(170deg, #F1E8DD 0%, #E4D6C5 55%, #D3BFA9 100%);
  display: grid;
  place-items: end center;
  isolation: isolate;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.photo-label {
  margin-bottom: 1.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--white);
  border: 1px dashed var(--taupe-dark);
  padding: 0.35rem 0.9rem;
  text-align: center;
}
.credit {
  position: absolute;
  right: 0; bottom: 0;
  font-size: 0.66rem;
  color: var(--white);
  background: rgba(46, 41, 37, 0.55);
  padding: 0.2rem 0.55rem;
}
.credit a { text-decoration: none; }
.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--taupe);
  pointer-events: none;
}

/* Abschnitte */
.section { padding-block: 6rem; }
.section-head { display: grid; gap: 1rem; max-width: 42rem; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }

/* Seitenkopf der Unterseiten */
.page-hero { padding-block: 5rem 3.5rem; text-align: center; background: var(--white); border-bottom: 1px solid var(--sand); }
.page-hero .wrap { display: grid; gap: 1.1rem; justify-items: center; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero p.lead { color: var(--muted); max-width: 38rem; }

/* Kontakt-Band */
.contact { background: var(--beige); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1.2fr 1fr;
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--sand);
}
.contact-card { padding: 1.8rem 1.4rem 1.8rem 0; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.contact-card + .contact-card { padding-left: 1.4rem; border-left: 1px solid var(--sand); }
.contact-card .label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe-dark); }
.contact-card .value { font-family: var(--f-display); font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.375rem); font-weight: 500; overflow-wrap: anywhere; }
.contact-card p { font-size: 0.93rem; color: var(--muted); }
.contact-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.contact-cta span { font-size: 0.95rem; color: var(--muted); }

/* Fußzeile */
.site-footer { background: var(--ink); color: #CFC3B5; font-size: var(--step--1); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem 2rem;
  padding-block: 2.2rem;
}
.footer-logo img { display: block; width: auto; height: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* Mobil */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sand);
    padding: 0.5rem 16px 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--beige); }
  .nav a::after { display: none; }
  .nav .sep { display: none; }
  .section { padding-block: 4.5rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact-card:nth-child(n+3) { border-top: 1px solid var(--sand); }
}
@media (max-width: 560px) {
  .logo img { height: 50px; }
  :root { --header-h: 68px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card, .contact-card + .contact-card { padding: 1.4rem 0; border-left: 0; }
  .contact-card + .contact-card { border-top: 1px solid var(--sand); }
  .frame::before { inset: 10px -10px -10px 10px; }
}

/* Kontaktformular */
.form-wrap { margin-top: 3.5rem; background: var(--white); padding: 2.6rem; border-top: 1px solid var(--taupe); }
.form-wrap h3 { font-size: var(--step-2); margin-bottom: 1.6rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe-dark); min-width: 0; }
.contact-form label small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 300 1rem/1.5 var(--f-body); color: var(--ink); letter-spacing: 0; text-transform: none;
  background: var(--cream); border: 1px solid var(--sand); border-radius: 0; padding: 0.8rem 0.9rem; width: 100%; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--taupe-dark); background: var(--white); box-shadow: 0 0 0 3px rgba(180,154,128,.18); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.contact-form fieldset[hidden] { display: none; }
.contact-form label.check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.contact-form label.check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.2rem; flex: none; accent-color: var(--taupe-dark); }
.contact-form label.check a { color: var(--taupe-dark); }
.contact-form button { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok, .form-error { grid-column: 1 / -1; padding: 1rem 1.2rem; font-size: 0.98rem; }
.form-ok { background: #EEF4EA; border-left: 2px solid #7E9C74; }
.form-ok .script { font-size: 1.4rem; }
.form-error { background: #FBEFEC; border-left: 2px solid #B0614F; color: #6E2E22; }
@media (max-width: 640px) {
  .form-wrap { padding: 1.8rem 1.2rem; }
  .contact-form, .contact-form fieldset { grid-template-columns: 1fr; }
}
