/* Salon-Template — Basisdesign.
   Die Marke steckt komplett in drei Variablen (--accent, --accent-soft, --ink),
   die build.js pro Kunde in die Seite schreibt. Hier drin steht nichts Kundenspezifisches,
   damit diese Datei fuer alle Salons dieselbe bleibt. */

:root {
  --paper: #FCFAFA;
  --paper-2: #FFFFFF;
  --line: #E8E0E4;
  --muted: #7A6C74;
  --radius: 14px;
  --wrap: 1080px;
  --serif: ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --gruen: #1F7A4D;
  color-scheme: light;
}

/* 6.C des taste-skills: Dark Mode ist fuer verbraucherorientierte Seiten Pflicht.
   Nur die Neutralen kippen; der Markenakzent bleibt derselbe Farbton und wird
   nur so weit aufgehellt, dass er auf Dunkel den Kontrast haelt. */


* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  /* Platz fuer die feste Leiste am unteren Rand auf dem Handy. */
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* ------------------------------------------------------------ Kopfzeile */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252,250,250,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo {
  font: 600 19px/1 var(--serif);
  letter-spacing: .01em; text-decoration: none; margin-right: auto;
}
.nav { display: none; gap: 24px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* ------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: #fff;
  /* border/font/cursor zuruecksetzen, damit <button> genauso aussieht wie <a>. */
  border: 0; cursor: pointer; font-family: inherit;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; display: none; }

/* ---------------------------------------------------------------- Hero */

.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--accent-soft) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-in { padding-block: clamp(48px, 9vw, 104px); max-width: 720px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
h1 {
  margin: 0 0 18px;
  font: 400 clamp(36px, 7vw, 60px)/1.08 var(--serif);
  letter-spacing: -.02em;
}
h2 { margin: 0 0 14px; font: 400 clamp(24px, 4vw, 34px)/1.2 var(--serif); letter-spacing: -.015em; }
h3 { margin: 0 0 14px; font: 600 15px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.lede { margin: 0 0 26px; font-size: clamp(17px, 2.2vw, 19px); color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.nach-hero { margin: 0; padding-block: 0 8px; font-size: 15px; }
.nach-hero a { color: var(--accent); text-underline-offset: 3px; }

/* Der Oeffnungsstatus haengt an der Eyebrow-Zeile, statt eine eigene Zeile zu
   belegen: der Hero darf hoechstens vier Textelemente haben. */
#status.is-open { color: var(--gruen); }
#status.is-shut { color: var(--muted); }

/* ------------------------------------------------------------ Abschnitte */

.section { padding-block: clamp(48px, 8vw, 88px); }
.sec-titel {
  margin: 0 0 28px; font: 400 clamp(24px, 3.4vw, 32px)/1.15 var(--serif);
  letter-spacing: -.01em;
}
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

/* -------------------------------------------------------- Leistungen */

.svc-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.svc-list { margin: 0; }
.svc-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.svc-row dt { flex: 1; font-weight: 500; }
.svc-row dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent); font-weight: 600; }
.svc-note { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.fineprint { margin-top: 22px; font-size: 13px; color: var(--muted); }
.fineprint a { color: var(--accent); }

/* ------------------------------------------------------------- Galerie */

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--accent-soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* Platzhalter, solange der Salon noch keine Fotos geliefert hat. */
.shot--placeholder {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, #fff));
  opacity: calc(1 - var(--i) * .07);
}

/* ------------------------------------------------------------- Stimmen */

.reviews { display: grid; gap: 22px; grid-template-columns: 1fr; }
/* Regel 9.C verbietet drei identische Spalten. Die erste Stimme fuehrt,
   die uebrigen stehen kleiner darunter. */
.review--lead { margin: 0 0 22px; padding: 0; background: none; border: 0; }
.review--lead p { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35; max-width: 24ch; }
.review {
  margin: 0; padding: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.review p { margin: 0 0 14px; font: 400 18px/1.5 var(--serif); }
.review cite { font-size: 14px; color: var(--muted); font-style: normal; }

/* ---------------------------------------------- Zeiten, Kontakt, Karte */

.two-col { display: grid; gap: 48px; grid-template-columns: 1fr; }
.hours { margin: 0; }
.hours-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours-row dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours-row.is-closed { color: var(--muted); }

.contact { list-style: none; margin: 0 0 26px; padding: 0; }
.contact li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact span { width: 92px; flex: none; color: var(--muted); font-size: 14px; }
.contact a { color: var(--accent); text-decoration: none; font-weight: 500; }

.map { margin-top: 48px; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); display: block; }

/* Platzhalter, solange die Karte nicht angeklickt wurde. Muss genauso gross sein
   wie das spaetere iframe, sonst springt das Layout beim Klick. */
.map-platzhalter {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; height: 340px; padding: 24px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--accent-soft);
}
.map-laden {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.map-laden::before { content: "📍"; }
.map-laden:hover { filter: brightness(1.08); transform: translateY(-1px); }
.map-hinweis { margin: 0; font-size: 13px; color: var(--muted); max-width: 44ch; line-height: 1.5; }
.map-hinweis a { color: var(--accent); }

/* -------------------------------------------------------------- Fusszeile */

.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------- Aktionsleiste auf dem Handy */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; align-items: stretch;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(252,250,250,.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
}
.callbar a {
  flex: 1; min-height: 44px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; text-align: center;
  font-size: 14px; font-weight: 600; line-height: 1.15;
  border: 1px solid var(--line); color: var(--ink);
}
.callbar-main { background: var(--accent); color: #fff; border-color: var(--accent); flex: 1.4; }

/* ------------------------------------------------------------- Ab Tablet */

@media (min-width: 720px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .btn--sm { display: inline-flex; }
  /* Am Desktop ist die Leiste ueberfluessig — Kopfzeile und Kontakt reichen. */
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

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

/* Design-Kachel — die Farbwelt eines Designs aus dem Katalog, keine Fotografie.
   Wird von echten Fotos ersetzt, sobald der Salon welche liefert. */
.shot--design {
  position: relative;
  background: linear-gradient(150deg, var(--from) 0%, var(--to) 100%);
  display: flex; align-items: flex-end;
}
/* Der Glanzpunkt, der die Flaeche wie einen lackierten Nagel wirken laesst. */
.shot--design::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 28% 18%, color-mix(in srgb, var(--accent-dot) 70%, transparent) 0%, transparent 62%);
}
.shot--design figcaption {
  position: relative; width: 100%; padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  color: #fff;
}
.shot--design strong { display: block; font: 600 14px/1.3 var(--sans); }
.shot--design span { display: block; font-size: 12px; opacity: .85; line-height: 1.35; margin-top: 2px; }

/* ------------------------------------------------- Anfrageseite (Handwerk) */

/* Die Anfrageseite hat keine Callbar — also auch keinen Platz dafuer reservieren. */
.plain { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Und der Rueckweg muss auf dem Handy sichtbar bleiben: .btn--sm ist dort aus. */
.back { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--ink); }

.form-wrap { max-width: 640px; margin-inline: auto; }
.form-wrap h1 { font: 400 clamp(30px, 5vw, 42px)/1.12 var(--serif); margin: 6px 0 14px; letter-spacing: -.01em; }
.form-wrap .lede { margin-bottom: 34px; }

.form { display: grid; gap: 22px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: 15px; font-weight: 600; }
.feld .hint { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.feld input, .feld select, .feld textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 10px;
  /* 16px verhindert, dass iOS beim Antippen in das Feld hineinzoomt. */
  font-size: 16px;
}
.feld textarea { resize: vertical; min-height: 96px; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.feld input[type="file"] { padding: 10px; background: var(--accent-soft); border-style: dashed; }

.form .btn { justify-self: start; }
.form .fineprint { margin: 0; }

/* --------------------------------------------- Impressum & Datenschutz */

.recht { max-width: 680px; margin-inline: auto; }
.recht h1 { font: 400 clamp(30px, 5vw, 42px)/1.12 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.recht h2 { font-size: 18px; font-weight: 700; margin: 34px 0 8px; }
.recht p { margin: 0 0 12px; }
.recht a { color: var(--accent); }
/* Fehlende Pflichtangaben muessen wehtun, nicht sich verstecken. */
.fehlt {
  background: #FFE8E8; color: #9B1C1C; font-weight: 700;
  padding: 1px 6px; border-radius: 4px; white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110F;
    --paper-2: #1B1714;
    --line: #322A26;
    --muted: #A2958D;
    --ink: #F2EDE9;
    --gruen: #5FCB90;
    color-scheme: dark;
  }
  .topbar { background: rgba(20,17,15,.88); }
  .callbar { background: rgba(20,17,15,.94); }
  /* Der Akzent kommt pro Kunde aus der JSON und ist auf Hell abgestimmt.
     filter hebt ihn an, ohne den Farbton zu verschieben. */
  .btn, .callbar-main, .map-laden, .num { filter: brightness(1.35) saturate(.9); }
  .eyebrow, .review cite, .svc-row dd, .nach-hero a, .recht a, .map-hinweis a { filter: brightness(1.5) saturate(.85); }
  .feld input, .feld select, .feld textarea { background: var(--paper-2); }
  .fehlt { background: #4A1F1F; color: #FFB4B4; }
  /* Der Hero-Verlauf rechnet mit hellen Werten und wuerde sonst als heller
     Fleck ueber dem dunklen Seitenhintergrund stehen. */
  .hero { background: linear-gradient(180deg, var(--paper-2), var(--paper) 70%); }
}
