/* ============================================================
   TEINT Kosmetikstudio — Design Tokens
   Farbe:   Porzellan-Putty statt Creme; gedämpftes Verdigris statt
            Salbei/Terracotta-Klischee; Oxidrot nur als Signatur-Akzent.
   Type:    Fraunces (Display, zurückhaltend) + Inter (Text) +
            IBM Plex Mono (Eyebrows/Codes — Formel-/Laborcharakter)
   ============================================================ */

:root {
  --porcelain: #ECEAE2;
  --surface: #FAF8F4;
  --ink: #171C17;
  --ink-soft: #4A524B;
  --verdigris: #4B6358;
  --verdigris-dark: #2E3F37;
  --oxide: #B1613C;
  --rose: #E3B7A6;
  --line: rgba(23, 28, 23, 0.12);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--verdigris);
  color: var(--surface);
  border: 1px solid var(--verdigris);
}
.btn-primary:hover { background: var(--verdigris-dark); border-color: var(--verdigris-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 234, 226, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--ink); }
.header-cta { white-space: nowrap; }

@media (max-width: 780px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxide);
  margin: 0 0 1.25rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.hero-sub {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Signature: pigment / Tonwertkarte swatch strip */
.hero-signature { display: flex; flex-direction: column; gap: 1rem; }
.swatch-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.swatch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: linear-gradient(160deg,
    hsl(calc(18 + var(--h)) 46% 78%),
    hsl(calc(10 + var(--h)) 52% 62%));
  animation: swatch-drift 14s ease-in-out infinite;
  animation-delay: calc(var(--h) * -0.15s);
  will-change: transform;
}
.swatch::after {
  content: attr(data-code);
  position: absolute;
  left: 0.4rem;
  bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: rgba(23, 28, 23, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.swatch:hover::after { opacity: 1; }
@keyframes swatch-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.015); }
}
.swatch-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Philosophy ---------- */
.philosophy {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.philosophy-copy { max-width: 32rem; }

@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-grid .photo-frame { order: -1; max-width: 22rem; }
}
.philosophy-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 1.25rem;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 1.5rem;
}
.philosophy-quote em { font-style: italic; color: var(--oxide); }
.philosophy-text { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* ---------- Section headings (shared) ---------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 0.75rem;
}
.section-eyebrow--light { color: var(--rose); }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 2.5rem;
}
.section-title--light { color: var(--surface); }

/* ---------- Treatments (Formel-Ledger) ---------- */
.treatments { padding: 6rem 0; }
.treatment-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.treatment-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease;
}
.treatment-row:hover { background: var(--surface); }
.t-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--oxide);
}
.t-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.t-name small {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.t-duration {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.t-price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .treatment-row {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.4rem;
  }
  .t-duration, .t-price { grid-column: 2; }
}

/* ---------- Ablauf (Process) ---------- */
.process {
  background: var(--ink);
  color: var(--surface);
  padding: 6rem 0;
}
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.step-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--rose);
  margin-bottom: 1rem;
}
.process-steps h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}
.process-steps p {
  color: rgba(250, 248, 244, 0.72);
  margin: 0;
  font-size: 0.98rem;
}

@media (max-width: 780px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Trust ---------- */
.trust { padding: 6rem 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.trust-quote { margin: 0; }
.trust-quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
}
.trust-quote figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 780px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- Studio / Kontakt ---------- */
.studio {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 6rem 0;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
address { font-style: normal; color: var(--ink-soft); margin: 0 0 2rem; }
.studio-hours {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.studio-hours div {
  display: flex;
  justify-content: space-between;
  max-width: 18rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}
.studio-hours dt, .studio-hours dd { margin: 0; }
.contact-text { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 26rem; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 780px) {
  .studio-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo--footer { font-size: 1rem; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Responsive: Hero ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-signature { order: -1; }
}

/* ---------- Nav active state ---------- */
.main-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Teaser links (section -> dedicated page) ---------- */
.teaser-link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--verdigris);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.teaser-link:hover { border-color: var(--verdigris); gap: 0.6rem; }
.teaser-link--light { color: var(--rose); }

/* ---------- Photo frames (placeholder-ready) ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--porcelain);
  aspect-ratio: var(--photo-ratio, 4 / 5);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--surface);
  background: linear-gradient(0deg, rgba(23, 28, 23, 0.55), transparent);
}

/* ---------- Subpage hero (intro band, shared by inner pages) ---------- */
.subhero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.subhero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  max-width: 26rem;
}
.subhero-text {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Card grids (Behandlungen, Werte, Galerie) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.treatment-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.treatment-card .t-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--oxide);
}
.treatment-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0.5rem 0 0;
}
.treatment-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}
.treatment-card .t-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: auto;
}
.treatment-card .t-meta strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}

/* ---------- Erfahrungsberichte-Teaser (Startseite) ---------- */
.results-teaser { padding: 6rem 0; background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Values (Über uns) ---------- */
.value-card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 0.6rem;
}
.value-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Vorher/Nachher-Vergleich ---------- */
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--porcelain);
}
.ba-image {
  position: absolute;
  inset: 0;
}
.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-before { clip-path: inset(0 50% 0 0); }

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 100%; height: 100%; }
.ba-range::-moz-range-thumb { width: 2.5rem; height: 100%; border: none; background: transparent; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--surface);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(23, 28, 23, 0.25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171C17' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.1rem;
}
.ba-label {
  position: absolute;
  top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  background: rgba(23, 28, 23, 0.6);
  color: var(--surface);
  border-radius: 2px;
  pointer-events: none;
}
.ba-label--before { left: 0.85rem; }
.ba-label--after { right: 0.85rem; }

.ba-case-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.section .ba-case-layout { max-width: 56rem; }
.ba-case-layout + .ba-case-layout { margin-top: 5rem; }
.ba-case-layout--reverse .ba-slider { order: 2; }

@media (max-width: 780px) {
  .ba-case-layout { grid-template-columns: 1fr; }
  .ba-case-layout--reverse .ba-slider { order: 0; }
}

.ba-case {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ba-case-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--oxide);
  margin: 0 0 0.5rem;
}
.ba-case blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.ba-case figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Karte (Kontakt) ---------- */
.map-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--porcelain);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- CTA band (bottom of inner pages) ---------- */
.cta-band {
  background: var(--ink);
  color: var(--surface);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 0 1rem;
}
.cta-band p {
  color: rgba(250, 248, 244, 0.72);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* ---------- Section wrapper spacing (inner pages) ---------- */
.section { padding: 5.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--surface { background: var(--surface); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--stagger, 0ms), transform 0.6s ease var(--stagger, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .swatch { animation: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
