/* =========================================================
   Oase der Ruhe – Styles
   Schlicht, ruhig & warm. Farben & Schriften zentral hier in :root.
   ========================================================= */
:root {
  --bg: #fbf6ef;          /* warmes Creme */
  --bg-tint: #f4ebdf;     /* leicht abgesetzte Abschnitte */
  --text: #3b2f27;        /* warmes Dunkelbraun */
  --muted: #7a6a5d;
  --accent: #a0623f;      /* Terrakotta / Karamell */
  --accent-dark: #834d30;
  --line: #e9dccb;
  --white: #fffdfa;
  --ph: #ecdfcf;          /* Farbe der Foto-Platzhalter */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;

  --radius: 6px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.small { font-size: .9rem; color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85em 1.6em; border-radius: var(--radius);
  background: var(--accent); color: var(--white); text-decoration: none;
  font: 500 .95rem/1 var(--sans);
  border: 1px solid var(--accent); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn--light { background: var(--white); color: var(--accent-dark); border-color: var(--white); }
.btn--light:hover { background: var(--bg-tint); border-color: var(--bg-tint); }
.btn--small { padding: .6em 1.1em; font-size: .88rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Kopfzeile mit Reitern ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand__text { font: 400 1.3rem/1.05 var(--serif); }
.brand__text small { display: block; font: .66rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.tabs { border-top: 1px solid var(--line); }
.tabs__inner { display: flex; gap: 6px; }
.tabs a {
  padding: 12px 18px 11px; color: var(--muted); text-decoration: none; font-size: .95rem;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.tabs a:first-child { margin-left: -18px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.tabs .tabs__cta { display: none; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .45s ease; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* Menü gleitet sanft auf und zu */
  .tabs {
    display: grid; grid-template-rows: 0fr;
    opacity: 0; visibility: hidden; border-top-color: transparent;
    transition: grid-template-rows .5s ease, opacity .4s ease, border-color .4s ease, visibility 0s linear .5s;
  }
  .nav.is-open .tabs {
    grid-template-rows: 1fr; opacity: 1; visibility: visible; border-top-color: var(--line);
    transition: grid-template-rows .5s ease, opacity .4s ease, border-color .4s ease, visibility 0s;
  }
  .tabs__inner { flex-direction: column; gap: 0; min-height: 0; overflow: hidden; }
  .tabs a { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease, color .2s; }
  .nav.is-open .tabs a { opacity: 1; transform: none; transition-duration: .5s; }
  .nav.is-open .tabs a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .tabs a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .tabs a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .tabs a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .tabs a:nth-child(6) { transition-delay: .25s; }
  .tabs a, .tabs a:first-child { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .tabs a[aria-current="page"] { border-bottom-color: var(--line); font-weight: 600; }
  .tabs .tabs__cta {
    display: block; margin: 16px 0; padding: 12px; text-align: center; border: 0;
    background: var(--accent); color: var(--white); border-radius: var(--radius);
  }
}

/* ---------- Foto-Platzhalter ----------
   Jedes Element mit .ph und data-img zeigt das Foto, sobald die
   Datei existiert. Bis dahin: ruhige Fläche mit Beschriftung. */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--ph);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
/* Das Foto liegt in einer eigenen Ebene – so kann es sanft einblenden */
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: var(--img, none) center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease, transform 2.4s cubic-bezier(.2, .6, .2, 1);
}
.ph.has-img::before { opacity: 1; }
.ph::after {
  content: attr(data-label);
  color: var(--muted); font-size: .85rem; text-align: center; padding: 0 12px;
}
.ph.has-img::after { display: none; }

/* Langsamer, leichter Zoom beim Drüberfahren */
.card:hover .ph::before,
.gallery > .ph:hover::before { transform: scale(1.04); }
.card { transition: border-color .6s ease; }
.card:hover { border-color: #dcc8b1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem 4rem; align-items: center; }
.hero__media { aspect-ratio: 4 / 5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--bg-tint); }
.section--accent { background: var(--accent); color: var(--white); }
.section--accent .eyebrow { color: rgba(255,255,255,.75); }
.section--first { padding-top: clamp(32px, 5vw, 56px); }
.section__head { max-width: 620px; margin-bottom: 2.5rem; }

/* Seitenkopf der Unterseiten */
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-head .lead { margin-bottom: 0; }

/* Termin-Hinweis am Seitenende */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band__text { margin: 0; font: 400 clamp(1.3rem, 2.5vw, 1.7rem)/1.3 var(--serif); }
.section__head p:last-child { color: var(--muted); }

.intro__grid { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr 1.4fr; }
.features { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.features li { padding: .6rem 0 .6rem 1.4rem; border-top: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Behandlungen */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 3 / 2; border-radius: 0; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.prices { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; padding: 10px 0 0; }
.prices strong { font-weight: 500; }
.note { margin-top: 2rem; font-size: .9rem; color: var(--muted); max-width: 52em; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.steps li { padding-top: 18px; border-top: 1px solid var(--line); }
.steps__num { display: block; color: var(--accent); font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Über mich */
.about { display: grid; gap: 3rem 4rem; grid-template-columns: .85fr 1.15fr; align-items: start; }
.about__img { aspect-ratio: 4 / 5; position: sticky; top: 140px; } /* Foto bleibt beim Lesen stehen */
.about h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.about__closing { font: 400 1.3rem/1.5 var(--serif); color: var(--accent-dark); margin-top: 1.5rem; }
.contact h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.badges { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; background: var(--white); }

/* Galerie */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.gallery > * { aspect-ratio: 1; }

/* Gutscheine */
.voucher { display: grid; gap: 3rem 4rem; grid-template-columns: .9fr 1.1fr; align-items: center; }
.voucher__img { aspect-ratio: 4 / 3; }
.voucher .features { margin-bottom: 2rem; }

/* Kontakt */
.contact { display: grid; gap: 3rem 4rem; grid-template-columns: 1fr 1fr; align-items: start; }
address { font-style: normal; margin-bottom: 1.5rem; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.contact__list li { display: flex; gap: 1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact__list span { width: 100px; flex-shrink: 0; color: var(--muted); font-size: .9rem; }
.contact__list a { text-decoration: none; overflow-wrap: anywhere; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .4rem 2rem; margin: 0 0 1rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); display: grid; gap: 16px; }
.form h3 { margin: 0; }
.form .small { margin: -6px 0 4px; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--text); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.optional { font-size: .8rem; opacity: .8; }
.form__error { color: #a0473a; margin: 0; font-size: .9rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 28px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: inherit; }

/* Rechtsseiten */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- Ruhige Einblend-Animationen ----------
   Nur aktiv, wenn JavaScript läuft (Klasse .js am <html>). */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity 1.2s ease, transform 1.2s ease; }
.js .fade.is-in { opacity: 1; transform: none; }
body { animation: page-in .8s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .ph::before, .tabs, .tabs a, .nav__toggle span { transition: none !important; }
  .card:hover .ph::before, .gallery > .ph:hover::before { transform: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero__grid, .intro__grid, .about, .contact, .voucher { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; }
  .about__img { max-width: 420px; position: static; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery { gap: 8px; }
  .ph::after { font-size: .75rem; }
}
