/* ==========================================================================
   Nirwana Thai Massage – Design 2026
   Farben aus Logo (Pflaume) und Einrichtung (Gold, Lila-Wände)
   ========================================================================== */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --plum: #591954;
  --plum-deep: #2b0b29;
  --plum-soft: #efe4ee;
  --gold: #c9a24a;
  --gold-text: #8a6420;
  --bg: #f8f5f7;
  --surface: #ffffff;
  --ink: #241a23;
  --muted: #5e525c;
  --line: #e6dde4;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-text);
}
.section { padding-block: 96px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-inline: auto; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 700 15px/1 var(--body); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--plum-deep); }
.btn-gold:hover { background: #d8b360; color: var(--plum-deep); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-line { border-color: var(--plum); color: var(--plum); }
.btn-line:hover { background: var(--plum); color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,245,247,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--plum); }
.nav a:focus:not(:focus-visible) { outline: none; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(43,11,41,.78) 0%, rgba(43,11,41,.45) 50%, rgba(43,11,41,.1) 100%),
    linear-gradient(180deg, rgba(43,11,41,.1) 0%, rgba(43,11,41,.75) 100%);
}
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(43,11,41,.55) 0%, rgba(43,11,41,.9) 100%); }
}
.hero .wrap { position: relative; z-index: 1; padding-block: 120px 64px; display: flex; flex-direction: column; gap: 22px; width: 100%; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(40px, 6vw, 80px); max-width: 15ch; }
.hero p { font-size: 19px; max-width: 34em; color: #f1e7ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: #e5d6e2; padding-top: 10px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--gold); }

/* Intro */
.intro { padding-block: 88px 24px; }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.intro h2 { font-size: clamp(32px, 4vw, 48px); }
.intro p { font-size: 20px; color: var(--muted); }
@media (max-width: 820px) { .intro .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Massagen */
.massages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .massages { grid-template-columns: 1fr; } }
.massage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; display: flex; flex-direction: column; gap: 14px;
}
.massage .tag { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.massage h3 { font-size: 30px; color: var(--plum-deep); }
.massage p { color: var(--muted); }
.massage details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.massage summary {
  cursor: pointer; font-weight: 700; color: var(--plum); list-style: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
}
.massage summary::-webkit-details-marker { display: none; }
.massage summary::after { content: "+"; font-size: 20px; line-height: 1; }
.massage details[open] summary::after { content: "–"; }
.massage details p { margin-top: 10px; }

/* Preise */
.prices-band { background: var(--plum-deep); color: #f3e9f1; }
.prices-band .section-head h2 { color: #fff; }
.prices-band .section-head p { color: #d9c7d6; }
.prices-band .eyebrow { color: var(--gold); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 32px;
  background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 10px;
}
.price-card h3 { font-size: 26px; color: #fff; }
.price-card .desc { color: #cdb9c9; font-size: 15px; min-height: 3.4em; }
.price-list { list-style: none; margin: 10px 0 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.price-list li:last-child { border-bottom: 0; }
.price-list .min { color: #d9c7d6; }
.price-list .eur { font-weight: 700; color: var(--gold); font-size: 18px; }
.voucher {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  border-radius: var(--radius); padding: 28px 32px; background: var(--plum);
}
.voucher h3 { font-size: 26px; color: #fff; }
.voucher p { color: #ecdde9; }
.voucher > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 380px; min-width: 0; }

/* Räume / Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--plum-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(20,6,19,.94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb img { max-height: calc(100vh - 150px); max-width: min(1000px, 100%); border-radius: 8px; object-fit: contain; }
.lb figcaption { color: #d9c7d6; font-size: 15px; }
.lb button {
  position: absolute; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.3); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lb button:hover { border-color: var(--gold); color: var(--gold); }
.lb button svg { width: 24px; height: 24px; }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 16px; transform: none; } }

/* Besuch: Öffnungszeiten + Kontakt */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .visit { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .visit { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 24px; color: var(--plum-deep); display: flex; align-items: center; gap: 12px; }
.card h3 svg { width: 22px; height: 22px; color: var(--gold-text); flex: none; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 15px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; }
.contact-lines a { font-weight: 700; text-decoration: none; }
.map-card { padding: 0; overflow: hidden; }
.map-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.map-card .map { flex: 1; min-height: 240px; background: #fff center top / cover no-repeat; }
.map-card .map-foot { padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; color: var(--plum); }
.map-card .map-foot svg { width: 20px; height: 20px; }

/* Footer */
.footer { background: var(--plum-deep); color: #cdb9c9; padding-block: 56px 32px; font-size: 15px; }
.footer .wrap { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } }
.footer h4 { margin: 0 0 8px; color: #fff; font-family: var(--display); font-weight: 400; font-size: 20px; }
.footer a { color: #ecdde9; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Startseite: Filialwahl */
.chooser { min-height: 100vh; display: flex; flex-direction: column; background: var(--plum-deep); }
.chooser-head { padding: 36px 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: #e5d6e2; }
.chooser-head img { height: 64px; width: auto; }
.chooser-head p { font-size: 17px; }
.branches { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 760px) { .branches { grid-template-columns: 1fr; } }
.branch { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; overflow: hidden; }
.branch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.branch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,11,41,.35) 0%, rgba(43,11,41,.55) 45%, rgba(43,11,41,.95) 100%); }
.branch:hover img { transform: scale(1.04); }
.branch:hover, .branch:focus { color: #fff; }
.branch-body { position: relative; z-index: 1; padding: 40px; display: flex; flex-direction: column; gap: 10px; }
.branch-body .eyebrow { color: var(--gold); }
.branch-body h2 { font-size: clamp(40px, 5vw, 64px); }
.branch-body p { color: #ecdde9; }
.branch-body .go { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--gold); }
.branch-body .go svg { width: 20px; height: 20px; transition: transform .25s; }
.branch:hover .go svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .branch img, .branch-body .go svg { transition: none; } }
.chooser-foot { padding: 18px 24px; display: flex; justify-content: center; gap: 24px; font-size: 14px; }
.chooser-foot a { color: #cdb9c9; }

/* Rechtstexte */
.legal { padding-block: 64px 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 28px; color: var(--plum-deep); }
.legal h2, .legal h3, .legal h4 { font-family: var(--display); font-weight: 400; color: var(--plum-deep); margin: 32px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 12px; }

/* Hinweis-Animation für die Telefonnummer */
.phone-number { border-radius: 6px; padding: 2px 6px; margin-left: -6px; align-self: flex-start; }
.phone-number.flash { animation: flash 1.6s ease 0.4s; }
@keyframes flash { 0%, 100% { background: transparent; } 30%, 70% { background: var(--plum-soft); } }
@media (prefers-reduced-motion: reduce) { .phone-number.flash { animation: none; background: var(--plum-soft); } }

/* Hero: Bilder blenden langsam ineinander über */
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slides img { transition: none; } }

/* Preiskarten: Überschrift und Beschreibung gleich hoch, damit die Preise auf einer Linie starten */
@media (min-width: 641px) {
  .price-card h3 { min-height: 2.3em; }
  .price-card .desc { min-height: 3.4em; }
}
@media (min-width: 641px) and (max-width: 1199px) {
  .price-card .desc { min-height: 5.1em; }
}

/* Massage-Texte: durchgehend lesbar, gekürzt mit sanftem Ausblenden */
.massages { align-items: start; }
.massage-text { display: flex; flex-direction: column; gap: 12px; position: relative; }
.massage-text p { color: var(--muted); }
.js .massage-text.is-clamped { max-height: 9.2em; overflow: hidden; }
.js .massage-text.is-clamped::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface));
}
.more-btn {
  align-self: flex-start; background: none; border: 0; padding: 6px 0; min-height: 40px; cursor: pointer;
  font: 700 15px/1 var(--body); color: var(--plum); display: inline-flex; align-items: center; gap: 8px;
}
.more-btn::after { content: "↓"; transition: transform .25s; }
.more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.more-btn:hover { color: var(--plum-deep); }
.more-btn:focus:not(:focus-visible) { outline: none; }

/* Haus-Button: zurück nach oben zum Bilderbereich */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--plum); color: #fff; box-shadow: 0 6px 20px rgba(43,11,41,.25);
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--plum-deep); color: var(--gold); }
.to-top svg { width: 24px; height: 24px; }
.to-top:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Haus-Symbol im Menü */
.nav .nav-home { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav-home svg { width: 22px; height: 22px; }
@media (min-width: 921px) { .nav .nav-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Telefon- und E-Mail-Links mit Symbol */
.ico-link { display: inline-flex; align-items: center; gap: 10px; }
.ico-link svg { width: 18px; height: 18px; flex: none; }
.footer .ico-link svg { color: var(--gold); }
.contact-lines .ico-link svg { color: var(--plum); }

/* Kompaktere Zeilen in Öffnungszeiten/Kontakt */
.card .note { line-height: 1.5; }
.card .note + .note { margin-top: -8px; }
.contact-lines { gap: 2px; }
.contact-lines .ico-link { line-height: 1.5; padding-block: 3px; }

/* Footer: Zeilen mit Symbolen */
.foot-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; line-height: 1.5; }
.foot-lines .ico-link { align-items: flex-start; }
.foot-lines .ico-link svg { margin-top: 2px; color: var(--gold); }

/* Kartenbox: Bild über die ganze Höhe, unten weißer Verlauf für den Text */
.map-card a { position: relative; min-height: 320px; justify-content: flex-end; }
.map-card .map { position: absolute; inset: 0; min-height: 0; background-position: center top; background-size: cover; }
.map-card a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.92) 18%, rgba(255,255,255,0) 55%);
}
.map-card .map-foot { position: relative; z-index: 1; }

/* Desktop: größeres Logo bei gleicher Headerhöhe (76px), Abstand oben/unten halbiert (16px → 8px) */
@media (min-width: 921px) {
  .header .wrap { height: 76px; }
  .logo { display: flex; align-items: center; height: 100%; }
  .logo img { height: 60px; }
}

/* Mobil: Bildausschnitt nach rechts schieben, damit der Kopf der Frau zu sehen ist */
@media (max-width: 760px) {
  .hero-slides img:nth-child(1) { object-position: 80% center; }
  .hero-slides img:nth-child(2) { object-position: 76% center; }
  .hero-slides img:nth-child(3) { object-position: 82% center; }
}

/* Boxen dürfen nicht breiter als die Spalte werden (lange E-Mail-Adresse) */
.visit > *, .prices > *, .massages > * { min-width: 0; }
.contact-lines .ico-link, .foot-lines .ico-link { overflow-wrap: anywhere; min-width: 0; }
.contact-lines .ico-link { align-items: flex-start; }
.contact-lines .ico-link svg { margin-top: 3px; }
@media (max-width: 420px) { .card { padding: 26px 22px; } }

/* Startseite mobil: alles passt in einen Bildschirm */
@media (max-width: 760px) {
  .chooser { height: 100vh; height: 100svh; min-height: 560px; }
  .chooser-head { padding: 16px 20px 12px; gap: 6px; }
  .chooser-head img { height: 44px; }
  .chooser-head p { font-size: 15px; }
  .branches { grid-template-rows: 1fr 1fr; min-height: 0; }
  .branch { min-height: 0; }
  .branch-body { padding: 18px 20px; gap: 4px; }
  .branch-body .eyebrow { font-size: 11px; }
  .branch-body h2 { font-size: 34px; }
  .branch-body p { font-size: 14px; line-height: 1.45; }
  .branch-body .go { margin-top: 6px; font-size: 15px; }
  .chooser-foot { padding: 10px 20px; font-size: 13px; }
}
