/* ============================================================
   ALSTER BEAUTY INSTITUT — Hamburg
   Warm Editorial · Creme / Sand / Espresso-Braun
   Typografie: Federo (Display) · Funnel Sans (Body) · Libre Caslon (Akzent)
   ============================================================ */

/* ---------- Fonts (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Federo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/federo-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/funnel-sans-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/funnel-sans-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/libre-caslon-text-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/libre-caslon-text-italic.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --cream:      #F7F0E8;
  --sand:       #EAD5C9;
  --sand-soft:  #F3E6DD;
  --rose:       #A96F63;
  --wine:       #6E2A35;
  --wine-deep:  #54202A;
  --brown:      #362724;
  --brown-deep: #54202A;
  --brown-70:   rgba(54, 39, 36, 0.72);
  --brown-50:   rgba(54, 39, 36, 0.5);
  --brown-25:   rgba(54, 39, 36, 0.25);
  --brown-15:   rgba(54, 39, 36, 0.15);
  --brown-08:   rgba(54, 39, 36, 0.08);
  --cream-70:   rgba(247, 240, 232, 0.72);
  --cream-25:   rgba(247, 240, 232, 0.25);

  --display: 'Federo', 'Trebuchet MS', sans-serif;
  --body:    'Funnel Sans', 'Segoe UI', system-ui, sans-serif;
  --accent:  'Libre Caslon Text', Georgia, serif;

  --r-s: 14px;
  --r-m: 24px;
  --r-l: 40px;
  --r-max: 1000px;

  --pad: clamp(4rem, 8.5vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--brown);
  background: var(--cream);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 3px; }

section { scroll-margin-top: 100px; }

.wrap { width: min(1260px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typo ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.d-xl { font-size: clamp(2.8rem, 6.4vw, 5.5rem); }
.d-lg { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
.d-md { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }

.accent-it {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--wine);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow .spark { font-style: normal; font-size: 0.8em; color: var(--rose); }
.eyebrow.center { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--brown-70); max-width: 58ch; }
.muted { color: var(--brown-70); }

/* ---------- Buttons (Pill mit Text-Slide) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.1rem 2.1rem;
  border-radius: var(--r-max);
  border: 1px solid var(--brown);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn { border-color: var(--wine); }
.btn-dark { background: var(--wine); color: var(--cream); }
.btn-dark:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: var(--cream); }
.btn-sand { background: var(--sand); color: var(--wine); border-color: var(--sand); }
.btn-sand:hover { background: var(--cream); border-color: var(--cream); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--sand);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--brown-15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 88px;
}
.brand { display: flex; flex-direction: column; line-height: 1; gap: 0.3rem; }
.brand .b1 {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand .b2 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--brown-70);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 0.4rem 0; white-space: nowrap; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.85rem 1.6rem; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 46px; height: 46px;
  position: relative;
  z-index: 120;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--brown);
  margin: 7px auto;
  border-radius: 2px;
  transition: transform 0.35s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a.big {
  font-family: var(--display);
  font-size: clamp(1.9rem, 7.5vw, 2.9rem);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--brown-15);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.mobile-menu .menu-foot { margin-top: 2.2rem; color: var(--brown-70); font-size: 0.9rem; line-height: 1.9; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--sand);
  padding: clamp(2.5rem, 5.5vh, 4.5rem) 0 0;
  overflow: clip;
}
.hero-copy { text-align: center; max-width: 880px; margin-inline: auto; }
.hero-copy .eyebrow { justify-content: center; margin-bottom: 1.6rem; }
.hero-copy h1 { margin-bottom: 1.7rem; }
.hero-copy h1 .accent-it { font-size: 0.94em; }
.hero-copy .lead { margin: 0 auto 2.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* Foto-Band */
.photo-ticker {
  margin-top: clamp(3rem, 6vh, 4.5rem);
  padding-bottom: clamp(2.8rem, 5.5vh, 4.5rem);
  overflow: clip;
}
.photo-track {
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  width: max-content;
  animation: ticker 58s linear infinite;
}
.photo-track .ph {
  width: clamp(230px, 24vw, 330px);
  height: clamp(280px, 30vw, 400px);
  object-fit: cover;
  border-radius: var(--r-m);
  flex-shrink: 0;
}
.photo-track .ph.arch { border-radius: var(--r-max) var(--r-max) var(--r-m) var(--r-m); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Text-Marquee */
.marquee {
  background: var(--rose);
  color: var(--cream);
  padding: 1.05rem 0;
  overflow: clip;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.marquee-track .sep { margin: 0 1.6rem; color: var(--sand-soft); font-size: 0.85rem; }

/* ============================================================
   INSTITUT / ABOUT
   ============================================================ */
.about { padding: var(--pad) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.about-copy .eyebrow { margin-bottom: 1.3rem; }
.about-copy h2 { margin-bottom: 1.6rem; }
.about-copy p { color: var(--brown-70); max-width: 54ch; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .btn { margin-top: 2.2rem; }

.about-media { position: relative; }
.about-media .arch-img {
  width: min(460px, 100%);
  aspect-ratio: 4 / 5.1;
  object-fit: cover;
  border-radius: var(--r-max) var(--r-max) var(--r-m) var(--r-m);
  margin-inline: auto;
}
.facts {
  margin-top: clamp(3.5rem, 7vh, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.fact {
  background: var(--sand-soft);
  border-radius: var(--r-m);
  padding: clamp(1.5rem, 2.6vw, 2.2rem) clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fact .big {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1;
}
.fact .small { font-size: 0.92rem; color: var(--brown-70); max-width: 24ch; }

/* ============================================================
   LEISTUNGEN / RUBRIKEN
   ============================================================ */
.services-head {
  padding: var(--pad) 0 clamp(2.2rem, 4vw, 3.5rem);
  text-align: center;
}
.services-head .eyebrow { margin-bottom: 1.2rem; }

.rubrik { padding: clamp(3.2rem, 6.5vw, 6rem) 0; }
.rubrik.tint { background: var(--sand-soft); }

.rubrik-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.5rem, 5.5vw, 6rem);
  align-items: center;
}
.rubrik-grid.flip .rubrik-media { order: 2; }

.rubrik-media { position: relative; }
.rubrik-media .main {
  width: min(470px, 100%);
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  margin-inline: auto;
}
.rubrik-media .main.arch { border-radius: var(--r-max) var(--r-max) var(--r-m) var(--r-m); }
.rubrik-media .main.soft { border-radius: var(--r-m); }
.rubrik-media .mini {
  position: absolute;
  width: clamp(130px, 14vw, 185px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-max);
  border: 6px solid var(--cream);
  right: clamp(0rem, 1.5vw, 1rem);
  bottom: -1.8rem;
}
.rubrik.tint .rubrik-media .mini { border-color: var(--sand-soft); }

.rubrik-body h3 { margin-bottom: 1.2rem; }
.rubrik-body > p { color: var(--brown-70); max-width: 56ch; margin-bottom: 1.9rem; }

.price-list { margin-bottom: 1.6rem; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--brown-15);
}
.price-list li:first-child { border-top: 1px solid var(--brown-15); }
.price-list .name { font-weight: 600; font-size: 0.99rem; }
.price-list .name .sub {
  display: block;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--brown-70);
  margin-top: 0.08rem;
}
.price-list .dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--brown-50);
  transform: translateY(-0.32em);
}
.price-list .price {
  font-family: var(--display);
  font-size: 1.06rem;
  white-space: nowrap;
}
.price-list .price small {
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--brown-70);
  margin-right: 0.3rem;
}

.rubrik-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--sand);
  border-radius: var(--r-s);
  padding: 0.95rem 1.2rem;
  font-size: 0.9rem;
  color: var(--brown);
  max-width: 56ch;
  margin-bottom: 1.9rem;
}
.rubrik.tint .rubrik-note { background: var(--sand); }
.rubrik-note .spark { flex-shrink: 0; transform: translateY(2px); }
.rubrik-note b { font-weight: 700; }

/* ============================================================
   LEITSATZ
   ============================================================ */
.quote {
  padding: var(--pad) 0;
  text-align: center;
}
.quote .spark { font-size: 1.5rem; display: block; margin-bottom: 1.6rem; }
.quote blockquote {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.25;
  max-width: 24ch;
  margin: 0 auto 1.6rem;
  text-wrap: balance;
}
.quote figcaption {
  font-family: var(--accent);
  font-style: italic;
  color: var(--brown-70);
  font-size: 1.05rem;
}

/* ============================================================
   KONTAKT (dunkle Karte)
   ============================================================ */
.contact-shell { padding: 0 var(--gutter) clamp(1.5rem, 3vw, 2.5rem); }
.contact {
  background: var(--wine);
  color: var(--cream);
  border-radius: var(--r-l);
  max-width: 1420px;
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.8rem, 5vw, 5.5rem);
  position: relative;
  overflow: clip;
}
.contact::before {
  content: '';
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 213, 201, 0.18) 0%, transparent 65%);
  top: -220px;
  right: -140px;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  position: relative;
}
.contact .eyebrow { color: var(--cream-70); margin-bottom: 1.4rem; }
.contact .eyebrow .spark { color: var(--sand); }
.contact h2 { margin-bottom: 1.5rem; }
.contact .lead { color: var(--cream-70); margin-bottom: 2rem; }
.contact-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  border-bottom: 1px solid rgba(234, 213, 201, 0.5);
  padding-bottom: 0.35rem;
  margin-bottom: 2.3rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.contact-phone:hover { color: var(--sand); border-color: var(--sand); }

.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-content: start; }
.contact-meta h3 {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--sand);
  margin-bottom: 0.8rem;
}
.contact-meta p, .contact-meta li { font-size: 0.95rem; color: var(--cream-70); line-height: 1.85; }
.contact-meta a:hover { color: var(--sand); }
.contact-meta .hours { grid-column: 1 / -1; }
.contact-meta .hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 251, 240, 0.14);
  padding: 0.32rem 0;
}
.contact-meta .hours span:last-child { color: var(--cream); }
.contact-meta .note { margin-top: 0.9rem; font-size: 0.82rem; opacity: 0.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 2.6rem 0 2.2rem; font-size: 0.85rem; color: var(--brown-70); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.site-footer nav {
  display: flex;
  gap: 1.7rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-footer nav a:hover { color: var(--brown); }

/* ============================================================
   UNTERSEITEN (Impressum / Datenschutz)
   ============================================================ */
.legal-page { padding: clamp(3rem, 6.5vw, 5rem) 0 var(--pad); }
.legal-page .eyebrow { margin-bottom: 1.2rem; }
.legal-page h1 { margin-bottom: 2.4rem; }
.legal-page h2 { font-size: 1.45rem; margin: 2.5rem 0 0.8rem; }
.legal-page p, .legal-page li { color: var(--brown-70); max-width: 72ch; }
.legal-page ul { list-style: disc; padding-left: 1.4rem; }
.legal-hint {
  border: 1px dashed var(--brown-50);
  border-radius: var(--r-s);
  background: var(--sand-soft);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.4rem;
  font-size: 0.94rem;
  color: var(--brown);
  max-width: 72ch;
}
.placeholder {
  background: var(--sand);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-weight: 600;
}

/* ============================================================
   REVEALS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-track, .marquee-track { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .about-grid, .rubrik-grid { grid-template-columns: 1fr; }
  .rubrik-grid.flip .rubrik-media { order: 0; }
  .about-media { order: -1; }
  .about-media .arch-img { width: min(420px, 100%); }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .nav { height: 76px; }
  .facts { grid-template-columns: 1fr; }
  .rubrik-media .mini { right: 0; }
  .price-list li { flex-wrap: wrap; gap: 0.3rem 0.9rem; }
  .price-list .dots { display: none; }
  .price-list .price { margin-left: auto; }
  .contact-meta { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
