/* ==========================================================================
   Kun Massage Praxis · kun-massage.ch
   Statische Website (Entscheid 07.10.2026). Basis: Mockup in _mockup/.
   Farben = Design-System (Vault: 03 Kunden/kun-massage.ch/Claude Kontext.md)
   Schriftgrössen nur fluid (clamp, rem), Referenz-Viewports 375px bis 1280px.
   ========================================================================== */

/* ---------- Schrift (lokal, keine externen Ressourcen) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Farben (Namen wie im Design-System) */
  --color-primary: #a86437;
  --color-secondary: #794421;
  --color-heading: #34261d;        /* Heading Text Color, im Mockup --ink */
  --color-body: #735f50;           /* Body Text Color, im Mockup --muted */
  --color-link: #a86437;
  --color-background: #f7f1e8;
  --color-paper: #fffaf4;
  --color-border: #eadcca;
  --color-surface: #efe3d3;
  --color-white: #ffffff;
  /* Akzente auf dunklem Grund (aus Mockup, nicht im Design-System) */
  --color-on-dark-accent: #d8b08d;
  --color-on-dark-text: #e8d8c8;

  /* Spacing (jm-space-*) */
  --space-xs: 0.625rem;   /* 10px */
  --space-s: 1.25rem;     /* 20px */
  --space-m: 2.5rem;      /* 40px */
  --space-l: 3.75rem;     /* 60px */
  --space-section: clamp(3.5rem, 2.85rem + 2.76vw, 5.125rem); /* 56 -> 82px */

  /* Typografie */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: Arial, Helvetica, sans-serif;
  --text-h1: clamp(2.25rem, 1.939rem + 1.326vw, 3rem);          /* 36 -> 48px */
  --text-h2: clamp(2rem, 1.689rem + 1.326vw, 2.75rem);          /* 32 -> 44px */
  --text-h3: clamp(1.375rem, 1.2455rem + 0.5525vw, 1.6875rem);  /* 22 -> 27px */
  --text-lead: clamp(1.1875rem, 1.0842rem + 0.4237vw, 1.375rem); /* jm-text-lead */
  --text-intro: clamp(1.0625rem, 1.0106rem + 0.221vw, 1.1875rem); /* 17 -> 19px */
  --text-quote: clamp(1.125rem, 1.0473rem + 0.3315vw, 1.3125rem); /* 18 -> 21px */
  --text-body: clamp(1rem, 0.974rem + 0.11vw, 1.0625rem);        /* 16 -> 17px */
  --text-eyebrow: clamp(0.8125rem, 0.7606rem + 0.221vw, 0.9375rem); /* 13 -> 15px */
  --text-small: 0.875rem;
  --line-headings: 1.15;
  --line-body: 1.7;

  /* Form */
  --radius: 1.75rem;       /* 28px */
  --radius-card: 1.375rem; /* 22px */
  --max: 80rem;            /* 1280px */
  --gutter: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); /* 22 -> 36px */
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  color: var(--color-heading);
  background: var(--color-background);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-headings);
  color: var(--color-heading);
  margin: 0;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-heading); color: var(--color-white);
  padding: var(--space-xs) var(--space-s); z-index: 100;
}
.skip-link:focus { left: var(--space-s); top: var(--space-s); }

/* ---------- Ferienhinweis (Steuerung: assets/js/ferien.js) ---------- */
.ferien-hinweis {
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
  font-size: var(--text-body);
  padding: 0.75rem var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  min-height: 5.75rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-m);
}
.logo { display: block; text-decoration: none; line-height: 0; }
.logo svg { height: 3.5rem; width: auto; }
.nav { display: flex; align-items: center; gap: 2.125rem; font-weight: 700; font-size: 1.0625rem; }
.nav a, .mobile-nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
}
.nav a[aria-current="page"], .nav a:hover,
.mobile-nav a[aria-current="page"], .mobile-nav a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--color-primary); color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  text-decoration: none; font-weight: 700; gap: 0.5rem;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.btn:hover { background: var(--color-secondary); border-color: var(--color-secondary); }
.btn.secondary { background: transparent; color: var(--color-primary); }
.btn .icon { width: 1.125rem; height: 1.125rem; fill: currentColor; flex: none; }
.btn.secondary:hover { background: var(--color-paper); }

/* ---------- Bausteine ---------- */
.main { padding: 2.625rem 0 0; }
.eyebrow {
  font-size: var(--text-eyebrow);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 900;
  margin-bottom: var(--space-s);
}
.section { padding: var(--space-section) 0; }
.section.white { background: var(--color-white); }
.section-title { font-size: var(--text-h2); letter-spacing: -.025em; margin: 0 0 0.875rem; }
.section-intro { font-size: var(--text-intro); color: var(--color-body); max-width: 47.5rem; margin: 0 0 2.375rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.25rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }

/* ---------- Hero (2/5 + 3/5) ---------- */
.hero-panel {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 35.625rem; /* 570px */
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 2.125rem; /* 34px */
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(85, 55, 32, .08);
}
.hero-text {
  padding: 4.5rem clamp(2rem, 1rem + 2.5vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-text h1 { font-size: var(--text-h1); letter-spacing: -.035em; margin: 0 0 1.5rem; }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-body); max-width: 35rem; margin: 0 0 2.125rem; }
.actions-label { font-size: var(--text-small); font-weight: 700; color: var(--color-body); margin: 0 0 0.625rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.actions-stack { flex-direction: column; }
.actions-stack .btn { width: 100%; }
.hero-image { min-height: 35.625rem; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* ---------- Bilder / Karten ---------- */
.image-round { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); }
.image-round img { width: 100%; height: 29.375rem; /* 470px */ object-fit: cover; }
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card img { height: 13.125rem; width: 100%; object-fit: cover; object-position: center 25%; }
.service-card .body { padding: 1.5rem; }
.service-card h3 { font-size: var(--text-h3); line-height: 1.12; margin: 0 0 0.625rem; }
.service-card p { color: var(--color-body); margin: 0; }
/* Sprunganker nicht unter dem fixierten Header verstecken */
[id] { scroll-margin-top: 7rem; }
/* ganze Karte klickbar über den Titel-Link */
.service-card { position: relative; }
.card-link { text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-card:has(.card-link):hover { border-color: var(--color-primary); }
.service-card:has(.card-link:focus-visible) { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.card-link:focus-visible { outline: none; }
.price { font-weight: 900; color: var(--color-primary); margin-top: 0.75rem; }
.more { margin: 1.875rem 0 0; }

/* ---------- Bewertungen ---------- */
.stars { color: var(--color-primary); font-size: 1.75rem; letter-spacing: 2px; line-height: 1; margin-bottom: var(--space-s); }
.quote { font-size: var(--text-quote); color: var(--color-heading); margin: 0 0 var(--space-xs); }
.quote-source { color: var(--color-body); font-size: var(--text-small); }

/* ---------- Kontakt-Streifen ---------- */
.contact-strip {
  background: var(--color-heading);
  color: var(--color-white);
  border-radius: 1.875rem; /* 30px */
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2rem; align-items: start;
}
.contact-strip .eyebrow { color: var(--color-on-dark-accent); }
.contact-strip .section-title { color: var(--color-white); font-size: clamp(1.75rem, 1.55rem + 0.9vw, 2.25rem); }
.contact-strip p { color: var(--color-on-dark-text); margin: 0; }
.contact-strip a { color: var(--color-white); text-decoration: none; font-weight: 800; }
.contact-strip a:hover { text-decoration: underline; }
.contact-strip .btn { font-weight: 700; }
.contact-strip .btn:hover { text-decoration: none; }
.btn.secondary.on-dark { color: var(--color-white); border-color: var(--color-on-dark-text); }
.btn.secondary.on-dark:hover { background: rgba(255, 255, 255, .08); border-color: var(--color-white); }
.hours { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.375rem; margin: 0; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--color-body); }
.contact-strip .hours dd { color: var(--color-on-dark-text); }
.contact-strip .label { display: block; font-weight: 700; color: var(--color-on-dark-accent); margin-bottom: 0.25rem; }

/* ---------- Unterseiten ---------- */
.subhero {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 1.875rem;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}
.subhero h1 { font-size: var(--text-h1); letter-spacing: -.035em; margin: 0 0 1.125rem; max-width: 22ch; }
.subhero .lead { margin: 0; max-width: 42rem; }
.service-card .meta { font-size: var(--text-small); color: var(--color-body); margin-top: 0.75rem; }
.service-card .price { margin-top: auto; padding-top: 0.75rem; }
.service-card .body { display: flex; flex-direction: column; flex: 1; }
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 1.25rem; overflow: hidden;
}
.price-table th, .price-table td { padding: 1rem 1.375rem; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { background: var(--color-surface); color: var(--color-heading); font-weight: 700; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.table-note { color: var(--color-body); font-size: var(--text-small); margin-top: 0.875rem; }
.faq details {
  max-width: 50rem;
  background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 1rem;
  padding: 1.125rem 1.375rem; margin-bottom: 0.75rem;
}
.faq summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
.faq details p { color: var(--color-body); margin: 0.75rem 0 0; }

.kun-quote { margin: 0 0 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--color-primary); }
.kun-quote p { font-family: var(--font-heading); font-size: var(--text-quote); line-height: 1.45; color: var(--color-heading); margin: 0 0 0.5rem; }
.kun-quote footer { color: var(--color-primary); font-weight: 700; font-size: var(--text-small); }
.timeline-grid { align-items: start; }
.timeline-title { font-size: var(--text-h3); margin: 0 0 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--color-border); }
.timeline li { position: relative; padding: 0 0 1.25rem 1.5rem; color: var(--color-body); }
.timeline li::before {
  content: ''; position: absolute; left: -0.4375rem; top: 0.45rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  background: var(--color-primary); border: 2px solid var(--color-white);
}
.timeline .year { display: block; font-weight: 800; color: var(--color-heading); }
.gallery .image-round img { height: 16.25rem; }
.image-round img.img-portrait { object-position: 68% 30%; }

.contact-card {
  background: var(--color-paper); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: 1.75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
}
.contact-card h3 { font-size: var(--text-h3); }
.contact-card p { color: var(--color-body); margin: 0 0 0.75rem; }
.contact-card .btn { margin-top: auto; }
.contact-card .contact-mail { margin: 0.5rem 0 0; font-size: var(--text-small); }
.contact-card .contact-mail a { color: var(--color-body); }
.align-start { align-items: start; }
.address { font-style: normal; color: var(--color-body); margin: 0 0 1.5rem; line-height: var(--line-body); }
.address strong { color: var(--color-heading); }
.hours-large { grid-template-columns: max-content 1fr; column-gap: 1.5rem; row-gap: 0.75rem; }
.hours-large dt { color: var(--color-heading); }
.info-list { list-style: none; margin: 0; padding: 0; max-width: 50rem; }
.info-list li {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 1rem;
  padding: 1rem 1.375rem; margin-bottom: 0.75rem; color: var(--color-body);
}
.info-list strong { color: var(--color-heading); }
.info-list a { color: var(--color-link); }

.legal { max-width: 47.5rem; padding: var(--space-m) 0 var(--space-section); }
.legal h1 { font-size: var(--text-h1); letter-spacing: -.035em; margin: 0 0 1.5rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: var(--text-h3); margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--color-body); }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--color-link); }
.legal .lead { margin-bottom: 0.5rem; }
.legal-note { font-size: var(--text-small); margin-top: 2rem; }
.footer a[aria-current="page"] { color: var(--color-primary); }

/* PLATZHALTER-Markierung: nur während der Entwicklung, vor Go-Live dürfen keine .todo mehr im HTML stehen */
.todo { outline: 2px dashed #d4a017; outline-offset: 2px; background: #fff3c4; color: #5a4300; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  color: var(--color-body);
  background: var(--color-paper);
  font-size: var(--text-small);
}
.footer .wrap { display: flex; justify-content: space-between; gap: 1.25rem; }
.footer a { text-decoration: none; color: var(--color-body); margin-left: 1.125rem; }
.footer a:hover { color: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr; min-height: 0; }
  .hero-image { min-height: 20rem; order: -1; }
  .hero-text { padding: 2.625rem var(--gutter); }
}
@media (max-width: 980px) {
  .grid-2, .grid-3, .contact-strip { grid-template-columns: 1fr; }
  .grid-2 { gap: var(--space-m); }
  .image-round img { height: 20rem; }
  .footer .wrap { display: block; }
  .hours-large { grid-template-columns: 1fr; row-gap: 0.125rem; }
  .hours-large dd { margin-bottom: 0.625rem; }
  .price-table th, .price-table td { padding: 0.75rem 0.875rem; }
  .footer a { display: inline-block; margin: 0.625rem 1.125rem 0 0; }
}
/* Navigation: Desktop-Menü braucht ca. 820px (Logo 217 + Abstand 40 + Menü 501 + Ränder).
   Darunter mobile Variante: Header scrollt weg, Logo kleiner, kurze Labels einzeilig. */
@media (max-width: 859px) {
  .site-header { position: static; }
  .header-inner { min-height: 0; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .logo svg { height: 2.5rem; }
  .nav { display: none; }
  .mobile-nav {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    column-gap: 0.75rem; row-gap: 0.25rem;
    max-width: 30rem;
    padding: 0 var(--gutter) 0.5rem; font-weight: 800; font-size: 1rem;
  }
  .mobile-nav a { white-space: nowrap; padding: 0.375rem 0; }
  .main { padding-top: 1.5rem; }
}
/* sehr schmale Displays */
@media (max-width: 360px) {
  .mobile-nav { font-size: 0.875rem; column-gap: 0.5rem; }
}
@media (max-width: 400px) {
  .price-table th, .price-table td { padding: 0.625rem 0.5rem; font-size: 0.875rem; }
  .contact-card { padding: 1.25rem; }
  .contact-card .btn { white-space: normal; max-width: 100%; padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
