/* =========================================================================
   Salon Waclawik – Grundlagen: Schriften, Farben, Typografie, Raster
   Werte und ihre Herkunft stehen in docs/02-look-and-feel.md.
   ========================================================================= */

@font-face { font-family: "Lora"; src: url("../assets/fonts/lora-variabel.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../assets/fonts/lora-kursiv-variabel.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --pflaume: #483137;
  --braun: #6a483c;
  --rose: #d9aaa0;
  --sand: #ebe7dc;
  --creme: #f7f4ee;
  --weiss: #fffdfb;
  --linie: rgba(106, 72, 60, .34);
  --rahmen: #6a483c;
  --rahmen-zart: rgba(106, 72, 60, .28);

  --font-titel: "Lora", Georgia, "Times New Roman", serif;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.6rem, 6.2vw, 5.625rem);
  --fs-h2: clamp(2rem, 4vw, 3.625rem);
  --fs-h2-klein: clamp(1.75rem, 3vw, 2.8rem);
  --fs-h3: 1.5rem;
  --fs-text: 1.0625rem;
  --fs-klein: .9rem;

  --sektion: clamp(3.5rem, 7vw, 5rem);
  --inhalt: 1245px;
  --rand: clamp(1.25rem, 4vw, 2.5rem);

  --dauer: .6s;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--pflaume);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--braun); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pflaume); outline-offset: 3px; }
/* Überschriften, die nur per Skript den Fokus bekommen (Schrittwechsel der Buchung), brauchen keinen Rahmen. */
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--rose); color: var(--pflaume); }

h1, h2, h3, h4 { font-family: var(--font-titel); font-weight: 400; margin: 0; color: var(--pflaume); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; }
h4 { font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
small { font-size: var(--fs-klein); }

/* Das Attribut hidden gewinnt immer – auch gegen display: grid/flex einzelner Bausteine. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--pflaume); color: var(--creme); padding: .75rem 1.25rem; }
.sprung:focus { top: 1rem; color: var(--creme); }

/* ---------- Raster ---------- */
.innen { width: min(100% - 2 * var(--rand), var(--inhalt)); margin-inline: auto; position: relative; z-index: 1; }
.innen--schmal { width: min(100% - 2 * var(--rand), 820px); }
.sektion { position: relative; padding-block: var(--sektion); overflow-x: clip; }
.sektion--sand { background: var(--sand); }
.sektion--weiss { background: var(--weiss); }
.sektion--eng { padding-block: calc(var(--sektion) * .6); }
.mittig { text-align: center; }
.vorspann { max-width: 38rem; margin: 1.25rem auto 0; color: var(--braun); }
.vorspann--links { margin-left: 0; }
.kennung { font-family: var(--font-text); font-weight: 400; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--braun); margin: 0 0 1rem; }

.zwei { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .zwei { grid-template-columns: 1fr 1fr; }
  .zwei--bild-breit { grid-template-columns: 1.08fr 1fr; }
  .zwei--text-breit { grid-template-columns: 1.15fr .85fr; }
  .zwei--oben { align-items: start; }
}

/* ---------- Text-Bausteine ---------- */
.fliesstext > * + * { margin-top: 1.1em; }
.fliesstext h2 { font-size: var(--fs-h2-klein); margin-top: 2.5rem; }
.fliesstext h3 { margin-top: 2rem; }
.fliesstext ul, .fliesstext ol { padding-left: 1.25rem; }
.fliesstext li + li { margin-top: .4em; }

.haken { list-style: none; display: grid; gap: .6rem; }
.haken li { position: relative; padding-left: 1.9rem; }
.haken li::before { content: ""; position: absolute; left: 0; top: .52em; width: 1rem; height: .5rem; border-left: 1px solid var(--braun); border-bottom: 1px solid var(--braun); transform: rotate(-45deg); }

/* Hinweis auf Angaben, die der Salon noch bestätigen muss – nur in der Vorschau sichtbar. */
.offen { background: rgba(217, 170, 160, .28); border-radius: 3px; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Bewegung ---------- */
.js .einblenden { opacity: 0; transform: translateY(24px); transition: opacity var(--dauer) var(--ease), transform var(--dauer) var(--ease); transition-delay: var(--verzug, 0ms); }
.js .einblenden--links { transform: translateX(-32px); }
.js .einblenden--oben { transform: translateY(-14px); }
.js .einblenden.sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .einblenden { opacity: 1; transform: none; }
}

@media print {
  .infoleiste, .kopf, .fuss, .mobilleiste, .straehne, .knopf { display: none !important; }
  body { background: #fff; }
}
