/* seiten.css – gemeinsamer Stil der Unterseiten (/massagen/, /massagen/<slug>/, /anfahrt/).
   Farben, Schriften, Knöpfe, Kopf- und Fußzeile wie auf der Startseite (index.html, Block „Marken-Violett“).
   Die Startseite hat ihren eigenen Stil im <style> und benutzt diese Datei nicht.
   Erzeugt werden die Seiten von werkzeuge/seiten_bauen.py. */

/* Schriften lokal (keine Verbindung zu Google). Lizenz: SIL Open Font License, siehe /fonts/LICENSE-*.txt */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-italic.woff2) format('woff2'); }

:root {
  --primary: #543697;   /* Knöpfe, Kontaktkarte */
  --dark: #3A2378;      /* dunkle Bänder, Fußzeile */
  --ink: #1E1830;       /* Text, Überschriften */
  --accent: #6B46B8;    /* Links, Hover */
  --icon: #543697;      /* kleine Überschriften */
  --cream: #E1DCEE;     /* Seitenhintergrund */
  --light: #C9C0DE;     /* Rahmen, Hinweisflächen */
  --soft: #EBE7F4;      /* helle Abschnitte */
  --paper: #F5F3FA;     /* Karten */
  --card: #B08D57;      /* Gold, nur Sterne */
  --muted: #5E574F;
  --line: rgba(31, 26, 23, .1);
  --radius: 12px;
  --shadow: 0 12px 30px -24px rgba(31, 26, 23, .3);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.65; font-size: 17px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barrierefreiheit */
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
#main:focus { outline: none; }

/* ===== Knöpfe (flach, 6 px Rundung) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 14px 30px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font: inherit; font-weight: 600; font-size: 1.02rem; letter-spacing: .03em;
  text-decoration: none; transition: background .25s, color .25s, box-shadow .25s;
}
.btn:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Kopfzeile ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(225, 220, 238, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(31, 26, 23, .08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; position: relative; padding: 6px 0; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; flex: none; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: .3s; }
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.burger.open::before { top: 21px; transform: rotate(45deg); }
.burger.open::after { top: 21px; transform: rotate(-45deg); }
.burger.open span { opacity: 0; }

/* ===== Seitenkopf ===== */
.page-head { padding: 36px 0 72px; }
.crumbs { margin-bottom: 30px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--icon); }
.crumbs a { color: var(--accent); font-weight: 500; text-decoration: none; display: inline-block; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--icon); }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.title { font-size: clamp(2rem, 4.2vw, 3rem); margin: 14px 0 26px; text-wrap: balance; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; }
.lead + .lead { margin-top: 12px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.intro-text p { margin-bottom: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 26px 0 30px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { font-family: var(--serif); font-size: 1.2rem; color: var(--primary); font-weight: 600; }
.hero-img { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; background: var(--light); }
.hero-img img { display: block; width: 100%; height: auto; }

/* ===== Abschnitte ===== */
.band { padding: 80px 0; }
.band-soft { background: var(--soft); }
.band-dark { background: var(--dark); color: #fff; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: 22px; }
.h3 { font-size: 1.5rem; margin-bottom: 16px; }
.band .lead { margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-col.wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }

/* Ablauf in Schritten */
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.steps b { display: block; line-height: 1.3; margin-top: 7px; }
.steps span { color: var(--muted); }

/* Karten und Preistabelle */
.panel { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.price-table thead th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--light); padding-top: 0; }
.price-table tbody th { font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table tbody td:last-child { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--primary); white-space: nowrap; }
.panel-note { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.panel .actions { margin-top: 22px; }

/* Listen */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before { content: "✦"; color: var(--icon); flex: none; margin-top: 1px; }

/* Häufige Fragen */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid rgba(31, 26, 23, .16); }
.faq details:first-of-type { border-top: 1px solid rgba(31, 26, 23, .16); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; min-height: 44px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 20px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; color: var(--primary); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 44px 20px 0; color: var(--muted); }

/* Aufruf zur Buchung (dunkles Band) */
.cta { text-align: center; }
.cta .h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 620px; margin: 0 auto 28px; }
.cta .actions { justify-content: center; }
.cta .btn { background: #fff; color: var(--primary); }
.cta .btn:hover { background: var(--light); color: var(--ink); }
.cta .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta .voucher { margin: 26px auto 0; font-size: 1rem; color: rgba(255, 255, 255, .8); }

/* Behandlungskarten (Übersicht und „Das könnte dich auch interessieren“) */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.t-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.t-card:hover { border-color: var(--accent); }
.t-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.t-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--light); }
.t-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.t-card h3 { font-size: 1.3rem; line-height: 1.25; hyphens: manual; }
.t-card h3 a { text-decoration: none; }
.t-card h3 a:focus-visible { outline: none; }
.t-card h3 a::after { content: ""; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.t-price { font-family: var(--serif); font-weight: 600; color: var(--primary); }
.t-text { color: var(--muted); font-size: 1rem; }
.t-more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }
.t-card:hover .t-more { color: var(--primary); }

/* ===== Anfahrt ===== */
.info-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); display: grid; gap: 22px; }
.info-card h2 { font-size: 1.7rem; }
.info-row b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; opacity: .85; font-weight: 500; }
.info-row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.info-card .btn { background: #fff; color: var(--primary); justify-self: start; }
.info-card .btn:hover { background: var(--light); color: var(--ink); }
.place-table { width: 100%; border-collapse: collapse; }
.place-table th, .place-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.place-table thead th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--light); padding-top: 0; }
.place-table tbody th { font-weight: 600; }
.place-table td.num { white-space: nowrap; }
.place-table a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.place-table a:hover { color: var(--primary); }
.text-block p + p { margin-top: 12px; }
.text-block .stops { margin-top: 18px; }
.link-row { margin-top: 18px; }
.link-row a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-row a:hover { color: var(--primary); }
.sources { margin-top: 48px; font-size: .9rem; color: var(--muted); }
.sources ul { list-style: none; display: grid; gap: 4px; margin-top: 4px; }

/* ===== Fußzeile (wie Startseite) ===== */
footer { background: var(--dark); color: rgba(255, 255, 255, .78); padding: 60px 0 36px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--light); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.brand-footer img { height: 92px; width: auto; display: block; filter: invert(1) brightness(1.1); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-info { margin-top: 28px; font-size: .92rem; line-height: 1.8; }
.social { display: inline-flex; flex-wrap: wrap; gap: 0 18px; margin-left: 18px; }
.copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ===== Tablet und Handy ===== */
@media (max-width: 960px) {
  .band { padding: 64px 0; }
  .intro-grid, .two-col, .two-col.wide-right { grid-template-columns: minmax(0, 1fr); }
  .hero-img { position: static; max-width: 640px; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 6px; padding: 20px 20px 28px;
    background: rgba(245, 243, 250, .98); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3);
    transform: translateY(calc(-100% - 78px)); visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
  .nav-links a:not(.btn) { font-size: 1.2rem; padding: 10px 0; display: inline-flex; min-height: 44px; align-items: center; }
  .nav-links .btn { margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .page-head { padding: 20px 0 52px; }
  .band { padding: 52px 0; }
  .title { font-size: 1.9rem; }
  /* Texte mind. 16 px, Tap-Ziele mind. 44 px */
  .eyebrow, .facts dt, .price-table thead th, .place-table thead th, .info-row b, .crumbs ol, .sources, .foot-info, .copy, .lead { font-size: 1rem; }
  .crumbs a, footer nav a, .foot-info a, .copy a, .info-row a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-info { line-height: 1.5; }
  .social { margin-left: 0; display: flex; gap: 0 22px; }
  .faq details p { padding-right: 0; }
  .btn-sm { font-size: 1rem; }
  .actions .btn { flex: 1 1 100%; }
  .info-card .btn { justify-self: stretch; }
  /* Anfahrt-Tabelle als Liste */
  .place-table thead { display: none; }
  .place-table tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .place-table th, .place-table td { border: 0; padding: 0; }
  .place-table tbody th { grid-column: 1 / -1; font-size: 1.05rem; }
  .place-table td.route { text-align: right; }
}
