/* Salon Petra – Stylesheet
   Keine externen Schriften, keine Abhängigkeiten. */

:root {
  --blau-900: #173a5c;
  --blau-700: #1f5488;
  --blau-600: #2a67a3;
  --blau-100: #dcecf8;
  --blau-50: #eef5fb;
  --text: #1c2630;
  --text-leise: #4a5866;
  --flaeche: #ffffff;
  --grund: #f4f6f8;
  --linie: #d5dde5;
  --fuss: #1b2733;
  --fuss-text: #eaf0f5;
  --radius: 14px;
  --breite: 68rem;
  --schatten: 0 1px 2px rgb(16 32 48 / 8%), 0 8px 24px rgb(16 32 48 / 8%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--grund);
}

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

a { color: var(--blau-700); text-underline-offset: 0.18em; }
a:hover { color: var(--blau-900); }

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #10202f;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 650; }
h3 { font-size: 1.3rem; font-weight: 650; }
h4 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

.innen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sprunglink {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #fff;
  color: var(--blau-900);
  font-weight: 600;
  border-radius: 8px;
}
.sprunglink:focus { top: 0.75rem; }

.nur-vorlesen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Kopf ---------- */

.kopf {
  color: #fff;
  background: linear-gradient(160deg, var(--blau-900) 0%, var(--blau-700) 55%, var(--blau-600) 100%);
}
.kopf .innen {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: 2rem;
}
.kopf-text { padding-block: 1.75rem 0; min-width: 0; }
.marke {
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 5vw, 4.75rem);
  font-weight: 250;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.marke a { color: #fff; text-decoration: none; }
.marke a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.claim { margin: 0.5rem 0 0; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); }
.kopf-bild {
  align-self: end;
  width: clamp(9rem, 26vw, 19rem);
  height: auto;
}

.hauptnav { margin-top: 1.25rem; }
.hauptnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
}
.hauptnav a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  min-height: 2.75rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
}
.hauptnav a:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.hauptnav a[aria-current="page"] { border-color: #fff; }

/* ---------- Inhalt ---------- */

main {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(rgb(244 246 248 / 86%), rgb(244 246 248 / 94%)), url(img/hintergrund.jpg) center top / cover no-repeat;
}
main > .innen > * + * { margin-top: clamp(1.5rem, 4vw, 2.75rem); }

.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.intro {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
.intro-text .aufmacher { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.rabatt { color: var(--text-leise); }

/* Bildergalerie: horizontal wischbar, per Tastatur und Tasten bedienbar */
.galerie { position: relative; }
.galerie-spur {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  background: #dfe6ec;
  scrollbar-width: thin;
}
.galerie-spur li { flex: 0 0 100%; scroll-snap-align: center; }
.galerie-spur img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.galerie-tasten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.galerie-tasten[hidden] { display: none; }
.galerie-zaehler { color: var(--text-leise); font-size: 0.95rem; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blau-700);
  border: 2px solid var(--blau-700);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.knopf:hover { background: var(--blau-900); border-color: var(--blau-900); color: #fff; }
.knopf.hell { color: var(--blau-900); background: #fff; border-color: #fff; }
.knopf.hell:hover { background: var(--blau-100); border-color: var(--blau-100); color: var(--blau-900); }
.knopf.rund { width: 2.75rem; padding: 0; }
.knopf svg { width: 1.1rem; height: 1.1rem; }

.zweispaltig {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.leistungen ul { margin: 0 0 1em; padding-left: 1.2em; }
.leistungen li { margin-bottom: 0.3em; }
.leistungen li::marker { color: var(--blau-600); }
.fussnote { color: var(--text-leise); font-size: 0.98rem; }

.team-liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-liste li {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}
.team-liste img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.team-liste p { margin: 0; padding: 0.8rem 1rem 1rem; line-height: 1.3; }
.team-liste strong { display: block; font-size: 1.15rem; }
.team-liste span { color: var(--text-leise); }

/* ---------- Preise ---------- */

.seitenkopf h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); font-weight: 650; margin: 0; }
.preisblock h2 { margin-bottom: 0.75rem; }
.preistabelle {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.preistabelle th, .preistabelle td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}
.preistabelle thead th { background: var(--blau-100); color: var(--blau-900); border-bottom: 0; }
.preistabelle thead th:first-child { border-radius: 8px 0 0 8px; }
.preistabelle thead th:last-child { border-radius: 0 8px 8px 0; }
.preistabelle tbody th { font-weight: 500; }
.preistabelle td, .preistabelle thead th:not(:first-child) { text-align: right; }
.preistabelle tbody tr:last-child > * { border-bottom: 0; }
.preistabelle tbody tr:hover > * { background: var(--blau-50); }

/* ---------- Rechtstexte ---------- */

.rechtstext { overflow-wrap: break-word; hyphens: auto; }
.rechtstext h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); font-weight: 650; }
.rechtstext h2 { margin-top: 2em; }
.rechtstext h3 { margin-top: 1.6em; }
.rechtstext h4 { margin-top: 1.3em; }
.rechtstext p, .rechtstext li { max-width: 46rem; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: 0.4em; }

/* ---------- Fuß ---------- */

.fuss { background: var(--fuss); color: var(--fuss-text); }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--blau-100); }
.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3.25rem);
}
.fuss h2 { font-size: 1.3rem; color: #fff; }
.zeiten { margin: 0; }
.zeiten div { display: flex; gap: 0.75rem; justify-content: space-between; max-width: 17rem; padding: 0.2rem 0; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; text-align: right; }
.hinweis-zu { font-weight: 700; }
address { font-style: normal; }
.telefon { font-size: 1.25rem; font-weight: 700; }

.kartenfeld {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  min-height: 15rem;
  padding: 1.25rem;
  text-align: center;
  background: #24384b;
  border: 1px solid #3a5269;
  border-radius: var(--radius);
  overflow: hidden;
}
.kartenfeld p { margin: 0; font-size: 0.95rem; }
.kartenfeld.geladen { padding: 0; display: block; }
.kartenfeld iframe { display: block; width: 100%; height: 20rem; border: 0; }
.karten-knoepfe { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.fuss-leiste { border-top: 1px solid #33485c; padding-block: 1rem; font-size: 0.95rem; }
.fuss-leiste .innen { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: center; }
.fuss-leiste ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.fuss-leiste a { display: inline-block; padding: 0.5rem 0; }
.fuss-leiste p { margin: 0; }
.betreuung { display: inline-block; }

/* ---------- Tablet und Smartphone ---------- */

@media (max-width: 56rem) {
  .fuss-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fuss-karte { grid-column: 1 / -1; }
}

@media (max-width: 46rem) {
  .intro, .zweispaltig { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .kopf .innen { column-gap: 0.5rem; align-items: end; }
  .kopf-text { display: contents; }
  .marke { grid-column: 1 / -1; grid-row: 1; padding-top: 1.25rem; position: relative; z-index: 1; }
  .claim { grid-column: 1; grid-row: 2; margin-bottom: 0.9rem; font-size: 0.98rem; line-height: 1.5; align-self: start; }
  .kopf-bild { grid-column: 2; grid-row: 1 / 3; width: min(58vw, 17rem); margin: 0 -0.25rem -1.6rem 0; }
  .kopf .kopf-aktion { grid-column: 1 / -1; grid-row: 3; margin: 0 0 0.9rem; position: relative; z-index: 1; }
  .kopf-aktion .knopf { width: 100%; }
  .hauptnav { grid-column: 1 / -1; grid-row: 4; margin-top: 0; }
  .hauptnav ul { padding-bottom: 0.75rem; }
  .hauptnav a { padding-inline: 0.7rem; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
  .team-liste { grid-template-columns: minmax(0, 1fr); }
  .team-liste li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; }
  .team-liste img { aspect-ratio: 1; height: 100%; }
  .preistabelle th, .preistabelle td { padding-inline: 0.35rem; }
  .preistabelle { font-size: 0.95rem; }
  .preistabelle tbody th { overflow-wrap: anywhere; hyphens: auto; }
}

/* ---------- Bewegung: Diashow, Ken-Burns-Effekt und sanftes Einblenden ---------- */

.ort { display: block; margin-top: 0.15rem; font-size: 0.92em; opacity: 0.92; }

/* Diashow (aktiv, sobald JavaScript läuft): Fotos blenden weich ineinander über */
.galerie.diashow { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); background: #dfe6ec; }
.galerie.diashow .galerie-spur {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0;
  scroll-snap-type: none;
  touch-action: pan-y;
}
.galerie.diashow .galerie-spur li {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.4s ease;
}
.galerie.diashow .galerie-spur li.bereit { display: block; }
.galerie.diashow .galerie-spur li.aktiv { display: block; opacity: 1; z-index: 1; }
.galerie.diashow .galerie-spur img { width: 100%; height: 100%; aspect-ratio: auto; }
.galerie.diashow .galerie-spur li.aktiv img { animation: kenburns-a 9s ease-out both; }
.galerie.diashow .galerie-spur li.aktiv:nth-child(even) img { animation-name: kenburns-b; }
.galerie.diashow.angehalten .galerie-spur img { animation-play-state: paused; }
@keyframes kenburns-a {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}
@keyframes kenburns-b {
  from { transform: scale(1.1) translate(1.5%, 1%); }
  to { transform: scale(1); }
}

.galerie.diashow .galerie-tasten {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 2.25rem 0.75rem 0.7rem;
  background: linear-gradient(to top, rgb(10 22 34 / 62%), rgb(10 22 34 / 0%));
}
.galerie.diashow .galerie-tasten[hidden] { display: none; }
.galerie-knopf {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  padding: 0;
  color: #fff;
  background: rgb(15 30 46 / 55%);
  border: 1.5px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.galerie-knopf:hover { background: var(--blau-700); transform: scale(1.06); }
.galerie-knopf svg { width: 1.15rem; height: 1.15rem; }
.galerie-pause .i-play { display: none; }
.galerie.angehalten .galerie-pause .i-play { display: block; }
.galerie.angehalten .galerie-pause .i-pause { display: none; }
.galerie-punkte { display: flex; flex: 1; justify-content: center; gap: 0.4rem; }
.galerie-punkte span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
  transition: width 0.4s ease, background 0.4s ease;
}
.galerie-punkte span.an { width: 1.5rem; background: #fff; }

.team-liste img { transition: transform 0.7s ease; }
.team-liste li:hover img { transform: scale(1.05); }
.team-liste li.sichtbar img { animation: kenburns-team 4s ease-out both; }
@keyframes kenburns-team {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.einblenden { opacity: 0; transform: translateY(1.25rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.einblenden.sichtbar { opacity: 1; transform: none; }

#inhalt, #fuss-zeiten { scroll-margin-top: 1rem; }

.kopf-aktion { margin: 1.1rem 0 0; }
.knopf.gross { min-height: 3.25rem; padding: 0.7rem 1.5rem; font-size: 1.1rem; box-shadow: 0 6px 18px rgb(8 24 40 / 25%); }
.knopf.gross svg { width: 1.3rem; height: 1.3rem; flex: none; }
.nummer { white-space: nowrap; }

/* ---------- Schnellleiste (nur Smartphone) ---------- */

.schnellleiste { display: none; }

@media (max-width: 46rem) {
  html { scroll-padding-bottom: 5rem; }
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .schnellleiste {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--blau-900);
    border-top: 1px solid rgb(255 255 255 / 25%);
    box-shadow: 0 -4px 16px rgb(0 0 0 / 18%);
  }
  .schnellleiste a {
    display: grid;
    justify-items: center;
    gap: 0.15rem;
    min-height: 4rem;
    padding: 0.55rem 0.25rem 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
  }
  .schnellleiste a + a { border-left: 1px solid rgb(255 255 255 / 18%); }
  .schnellleiste a:active, .schnellleiste a:hover { background: var(--blau-700); color: #fff; }
  .schnellleiste svg { width: 1.4rem; height: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .einblenden { opacity: 1; transform: none; }
  /* Diashow läuft auch hier, aber nur als ruhiges Überblenden ohne Zoom und Schwenk */
  .galerie.diashow .galerie-spur li { transition: opacity 1.4s ease !important; }
}

@media (forced-colors: active) {
  .knopf, .hauptnav a[aria-current="page"] { border: 2px solid ButtonText; }
}

@media print {
  .hauptnav, .galerie-tasten, .kartenfeld, .sprunglink, .schnellleiste { display: none !important; }
  .einblenden { opacity: 1 !important; transform: none !important; }
  body { padding-bottom: 0; }
  .kopf, .fuss { background: none; color: #000; }
  .marke a, .fuss a, .fuss h2 { color: #000; }
  .karte, .team-liste li { box-shadow: none; }
}
