/* Relax Sohlen Reflex – Stylesheet
   Mobile first: Grundstil gilt fürs Handy, größere Bildschirme per @media.
   Keine externen Schriften oder Dienste (DSGVO-freundlich). */

:root {
  --teal-900: #1f3d38;
  --teal-700: #2f5d55;
  --teal-500: #4f8a7d;
  --sage-200: #d9e6dc;
  --sage-100: #eaf1eb;
  --cream:    #fbf8f3;
  --sand:     #f3ece1;
  --text:     #24302d;
  --muted:    #5d6b67;
  --white:    #ffffff;
  --accent:   #c9825b;   /* warmes Terrakotta für kleine Akzente */

  --radius: 18px;
  --shadow: 0 6px 24px rgba(31, 61, 56, .08);
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --callbar-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px – gut lesbar auf dem Handy */
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

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

a { color: var(--teal-700); }

h1, h2, h3 { font-family: var(--font-head); color: var(--teal-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(31, 61, 56, .06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal-900); font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.brand img { width: 38px; height: 38px; }

.nav { position: relative; }
.menu-btn { cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 0; background: none; padding: 0; }
.menu-btn:focus-visible { outline: 2px solid var(--teal-500); }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: var(--teal-900); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after  { top: 7px; }
.nav.open .burger { background: transparent; }
.nav.open .burger::before { transform: translateY(7px) rotate(45deg); }
.nav.open .burger::after  { transform: translateY(-7px) rotate(-45deg); }

.nav ul {
  display: none;
  position: absolute; right: 0; top: 56px;
  min-width: 230px; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border-radius: 14px; box-shadow: 0 12px 32px rgba(31, 61, 56, .16);
}
.nav.open ul { display: block; }
.nav li a { display: block; padding: 14px 16px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; }
.nav li a:hover, .nav li a:focus-visible { background: var(--sage-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }

/* Handy/Tablet (Touch) vs. PC/Laptop (Maus) */
.only-pointer,
.hero-actions.only-pointer { display: none; }
@media (hover: hover) and (pointer: fine) {
  .only-touch,
  .hero-actions.only-touch { display: none; }
  .only-pointer { display: inline-flex; }
  .hero-actions.only-pointer { display: flex; }
}
.btn-primary { background: var(--teal-700); color: var(--white); box-shadow: 0 6px 18px rgba(47, 93, 85, .28); }
.btn-primary:hover { background: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-900); border: 1.5px solid rgba(31, 61, 56, .25); }
.btn-ghost:hover { background: var(--white); }

/* ---------- Begrüßung ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--sage-200) 0%, transparent 60%),
    radial-gradient(90% 60% at 0% 100%, var(--sand) 0%, transparent 70%),
    var(--cream);
}
.hero::after { /* zarte Blattform als Deko */
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 0 60% 0 60%; background: var(--sage-100); opacity: .8; transform: rotate(-12deg); z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal-500); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .92rem; color: var(--muted); margin: 0; }
.hero-grid { display: grid; gap: 36px; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sage-200); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--sage-100); }
.section-intro { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }

/* ---------- Angebote ---------- */
.cards { display: grid; gap: 18px; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 26px 22px 22px; box-shadow: var(--shadow);
  border: 1px solid rgba(31, 61, 56, .06);
}
.card-featured { border: 2px solid var(--teal-500); }
.badge {
  position: absolute; top: -12px; left: 22px; margin: 0;
  background: var(--teal-700); color: var(--white); font-size: .78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .03em;
}
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--sage-200); color: var(--muted); font-weight: 500; }
.price { font-family: var(--font-head); font-size: 1.4rem; color: var(--teal-900); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500); transform: rotate(-45deg);
}
.card-icon { font-size: 1.8rem; line-height: 1; margin: 0 0 10px; }

/* ---------- Terminzeiten ---------- */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.slot-group { background: var(--white); border-radius: var(--radius); padding: 16px 12px; box-shadow: var(--shadow); }
.slot-group h3 { font-size: 1.1rem; margin-bottom: 12px; }
.slot-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-group li { background: var(--sage-100); color: var(--teal-900); padding: 7px 10px; border-radius: 999px; font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; width: 100%; text-align: center; }
.slot-group .uhr { display: none; }
#termine .hero-actions { margin-top: 0; }
.online-link { margin: -4px 0 24px; color: var(--muted); font-size: .98rem; }
.online-link a { color: var(--teal-700); font-weight: 600; text-underline-offset: 3px; }

.gift { margin-top: 26px; padding: 16px 18px; background: var(--sand); border-radius: 14px; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--white); border-radius: var(--radius); padding: 20px 20px 18px 74px; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage-200); color: var(--teal-900); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
.steps h3 { margin-bottom: .25em; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.hint { font-size: .92rem; color: var(--muted); max-width: 60ch; }

/* ---------- Über mich ---------- */
.about { display: grid; gap: 28px; }
.about-photo { margin: 0; border-radius: 160px 160px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 340px; aspect-ratio: 4 / 5; background: var(--sage-200); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-photo.no-photo { display: none; }
.about-quote { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.4; color: var(--teal-700); border-left: 3px solid var(--sage-200); padding: 4px 0 4px 16px; margin: 1.2em 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 12px; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  background: var(--white); border-radius: var(--radius); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); min-height: 72px; transition: transform .15s;
}
.contact-item:active { transform: scale(.99); }
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-500); }
.contact-item small { display: block; margin-top: 4px; color: var(--teal-700); font-weight: 600; font-size: .9rem; }
.icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: var(--teal-700); }

.hours { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hours dl { margin: 0 0 12px; }
.hours dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sage-100); }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--muted); text-align: right; }
.small { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--teal-900); color: rgba(255,255,255,.85); padding: 36px 0; font-size: .95rem; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--white); }

/* ---------- Feste Anruf-Leiste (Handy) ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); box-shadow: 0 -4px 20px rgba(31, 61, 56, .12);
}
.callbar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.callbar-main { flex: 1; background: var(--teal-700); color: var(--white); }
.callbar-main svg { width: 20px; height: 20px; fill: currentColor; }
.callbar-alt { padding: 0 20px; color: var(--teal-900); border: 1.5px solid rgba(31, 61, 56, .2); }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal address { font-style: normal; }
body.no-callbar { padding-bottom: 0; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

/* ---------- Platzhalter (vor Veröffentlichung entfernen) ---------- */
.todo { background: #fff1c2; color: #6b4e00; padding: 0 .3em; border-radius: 4px; font-family: var(--font-body); font-size: .85em; font-weight: 600; }
.todo-block { outline: 2px dashed #e7c75b; outline-offset: 6px; border-radius: 6px; }

/* ================= Größere Bildschirme ================= */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .slots { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 26px; }
  .slot-group { padding: 20px 22px; }
  .slot-group li { padding: 8px 14px; font-size: .98rem; width: auto; }
  .slot-group .uhr { display: inline; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-item { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .topbar { padding: 14px 32px; }
  .menu-btn { display: none; }
  .nav ul, .nav.open ul { position: static; display: flex; gap: 4px; box-shadow: none; background: none; padding: 0; min-width: 0; }
  .nav li a { padding: 10px 14px; }
  .hero { padding: 90px 0 100px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .hero-photo { aspect-ratio: 4 / 5; border-radius: 26px 160px 26px 26px; }
  .hero::after { width: 380px; height: 380px; right: -80px; bottom: -120px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
  .card-featured { grid-column: auto; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 70px 20px 22px; }
  .about { grid-template-columns: 340px 1fr; align-items: center; gap: 56px; }
  .contact-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Handy: Buttons + Online-Link vor den Zeitfenstern, damit sie nach dem Sprung sofort sichtbar sind */
#termine { scroll-margin-top: -48px; }
#termine .wrap { display: flex; flex-direction: column; }
#termine .slots { order: 1; margin-top: 4px; }
#termine .hint { order: 2; }
@media (min-width: 640px) {
  #termine { scroll-margin-top: 0; }
  #termine .slots, #termine .hint { order: 0; }
}
