/* ============================================================
   Glanzzeit Kosmetikatelier — bespoke one-pager
   Aesthetic: soft, calm "Zeit zu glänzen" — warm cream/ivory,
   gentle sage + soft-gold shimmer, refined serif + airy sans.
   ============================================================ */

:root {
  --cream:   #faf6ef;   /* page bg */
  --ivory:   #fffdf9;   /* surface */
  --sand:    #f1e9dc;   /* soft panels */
  --ink:     #36322c;   /* primary text */
  --muted:   #7c756a;   /* secondary text */
  --line:    #e7ddcd;   /* hairlines */
  --sage:    #8a9a7b;   /* primary accent */
  --sage-dk: #6f8163;   /* darker sage */
  --gold:    #c4a35a;   /* shimmer accent */
  --gold-sf: #e8d8ad;   /* soft gold */

  --maxw: 1120px;
  --pad: clamp(1.1rem, 4vw, 2.2rem);
  --r: 16px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-sm: 0 4px 18px rgba(80, 70, 50, 0.08);
  --shadow-md: 0 18px 50px rgba(80, 70, 50, 0.14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-dk);
  margin: 0 0 0.9rem;
}
.eyebrow-line { display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow-line::before {
  content: ""; width: 32px; height: 1px; background: var(--gold);
}

.section { padding-block: clamp(3.6rem, 9vw, 6.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--sage); color: #fffdf9;
  box-shadow: 0 8px 22px rgba(122, 138, 105, 0.32);
}
.btn-primary:hover { background: var(--sage-dk); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-dk); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(80,70,50,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink);
}
.brand-mark .spark { color: var(--gold); }
.brand-sub {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0.03em;
  color: var(--ink); transition: color .2s ease; position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--gold); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--sage-dk); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--sage); color: #fffdf9 !important;
  padding: 0.6rem 1.25rem; border-radius: 999px; font-size: 0.88rem;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--sage-dk); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 18%, rgba(232,216,173,0.42), transparent 70%),
    radial-gradient(55% 60% at 92% 80%, rgba(138,154,123,0.28), transparent 72%),
    var(--cream);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.2rem, 8vw, 6rem);
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  margin: 0.2rem 0 1.2rem;
}
.hero-copy h1 .em { font-style: italic; color: var(--sage-dk); }
.hero-lede {
  font-size: 1.12rem; color: var(--muted); max-width: 38ch;
  margin: 0 0 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.6rem; }
.hero-meta {
  font-size: 0.86rem; letter-spacing: 0.06em; color: var(--sage-dk);
  display: flex; align-items: center; gap: 0.6rem; margin: 0;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero-figure { position: relative; margin: 0; }
.frame {
  border-radius: var(--r); overflow: hidden; background: var(--ivory);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 10px;
}
.frame img { border-radius: 10px; width: 100%; }
.hero-figure .frame { transform: rotate(-1.2deg); }
.hero-figure::after {
  content: ""; position: absolute; inset: auto -14px -16px auto;
  width: 64%; height: 60%; z-index: -1; border-radius: var(--r);
  background: linear-gradient(135deg, var(--gold-sf), transparent 60%);
  opacity: 0.6;
}
.hero-figcap {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,253,249,0.92); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45rem 0.95rem;
  font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem; box-shadow: var(--shadow-sm);
}
.hero-figcap .spark { color: var(--gold); }

/* ---------- about ---------- */
.about { background: var(--ivory); border-block: 1px solid var(--line); }
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-figure { margin: 0; max-width: 380px; }
.about-figure .frame { transform: rotate(1deg); }
.about-body h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: 1.2rem; }
.about-body p { color: var(--muted); margin: 0 0 1.05rem; max-width: 56ch; }
.about-body p strong { color: var(--ink); font-weight: 400; }
.about-sign {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  color: var(--sage-dk); margin-top: 0.4rem;
}

/* ---------- gallery ---------- */
.gallery-head { text-align: center; margin-bottom: 2.6rem; }
.gallery-head .eyebrow-line { justify-content: center; }
.gallery-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.gallery-head .sub { color: var(--muted); max-width: 52ch; margin: 0.8rem auto 0; }

.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: center;
}
.card {
  position: relative; margin: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden; background: var(--ivory);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.card .card-media { overflow: hidden; }
/* never enlarge the tiny native images: cap height, contain via object-fit on a soft bg */
.card img {
  width: 100%; height: 240px; object-fit: cover;
  background: var(--sand);
  transition: transform .5s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card:hover img { transform: scale(1.04); }
.card .card-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1rem 0.85rem; font-size: 0.82rem; letter-spacing: 0.05em;
  color: #fffdf9;
  background: linear-gradient(to top, rgba(54,50,44,0.62), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover .card-cap, .card:focus-visible .card-cap { opacity: 1; }
.gallery-foot { text-align: center; margin-top: 2.2rem; color: var(--muted); font-size: 0.95rem; }
.gallery-foot a { color: var(--sage-dk); border-bottom: 1px solid var(--gold-sf); }
.gallery-foot a:hover { border-color: var(--gold); }

/* ---------- leistungen ---------- */
.leistungen { background: var(--sand); }
.leist-head { text-align: center; margin-bottom: 2.8rem; }
.leist-head .eyebrow-line { justify-content: center; }
.leist-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.leist-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.leist {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.leist:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.leist .num {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem;
  color: var(--gold); display: block; margin-bottom: 0.7rem;
}
.leist h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.leist p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.leist-note {
  text-align: center; margin-top: 2.4rem; color: var(--muted);
  font-size: 0.95rem; font-style: italic;
}

/* ---------- kontakt ---------- */
.kontakt { background: var(--ivory); border-top: 1px solid var(--line); }
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.kontakt-info h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.kontakt-info .lede { color: var(--muted); max-width: 46ch; margin: 0 0 1.8rem; }
.kontakt-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.2rem; }
.kontakt-list li { display: grid; gap: 0.2rem; }
.kontakt-list .label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-dk);
}
.kontakt-list .value { font-size: 1.08rem; color: var(--ink); }
.kontakt-list .value a { border-bottom: 1px solid var(--gold-sf); }
.kontakt-list .value a:hover { border-color: var(--gold); }
.kontakt-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.kontakt-card {
  background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.kontakt-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(232,216,173,0.45), transparent 70%);
}
.kontakt-card > * { position: relative; z-index: 1; }
.kontakt-card .glyph {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--sage-dk);
}
.kontakt-card h3 { font-size: 1.6rem; margin: 0.4rem 0 0.7rem; }
.kontakt-card p { color: var(--muted); margin: 0 0 1.6rem; }
.kontakt-card .btn { width: 100%; justify-content: center; margin-bottom: 0.7rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-block: 3rem 1.6rem;
}
.footer-brand .brand-mark { font-size: 1.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0; max-width: 32ch; }
.footer-col .label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-dk);
  display: block; margin-bottom: 0.6rem;
}
.footer-col p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--sage-dk); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-block: 1.4rem; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em;
}

/* ---------- sticky mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0;
  background: rgba(255,253,249,0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(80,70,50,0.1);
}
.callbar a {
  flex: 1; text-align: center; padding: 0.95rem 0.5rem;
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0.03em;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.callbar .cb-call { background: var(--sage); color: #fffdf9; }
.callbar .cb-ig { color: var(--sage-dk); }

/* ---------- reveal (only hidden when JS is active; no-JS sees everything) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40, 36, 30, 0.86); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  padding: 1.5rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-inner {
  margin: 0; max-width: 560px; width: 100%; text-align: center;
}
.lb-inner img {
  max-width: 100%; max-height: 72vh; margin-inline: auto;
  border-radius: 12px; background: var(--ivory); padding: 8px;
  box-shadow: var(--shadow-md);
}
.lb-cap { margin-top: 1rem; color: #faf6ef; }
.lb-cap .lb-title { display: block; font-family: var(--serif); font-size: 1.4rem; }
.lb-cap .lb-note { display: block; font-size: 0.92rem; color: #d8d0c2; margin-top: 0.3rem; }
.lb-close, .lb-nav {
  position: fixed; background: rgba(255,253,249,0.14); border: 1px solid rgba(255,253,249,0.28);
  color: #fffdf9; cursor: pointer; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,253,249,0.28); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s ease;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 0.9rem; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; margin-inline: auto; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .callbar { display: flex; }
  body { padding-bottom: 56px; } /* room for callbar */
}

@media (max-width: 430px) {
  .card img { height: 200px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .lb-nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card img, .btn { transition: none !important; }
}
