/* ============================================================
   Salon Marlene – Demo-Website
   Editorial-Look: Creme, Espresso, Terracotta · Fraunces + Karla
   ============================================================ */

:root {
  --cream: #faf5ee;
  --cream-deep: #f1e8db;
  --espresso: #2b211a;
  --espresso-soft: #57493f;
  --terracotta: #b65c38;
  --terracotta-dark: #94472a;
  --rose: #e7c9b8;
  --line: #d9cbba;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtile Korn-Textur über der ganzen Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; }

a { color: inherit; }

.section { padding: clamp(4rem, 9vw, 7.5rem) var(--pad); }

.section-num {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  vertical-align: super;
  margin-right: 0.5rem;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }

.section-intro {
  max-width: 34rem;
  color: var(--espresso-soft);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid var(--espresso);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-solid {
  background: var(--espresso);
  color: var(--cream);
}
.btn-solid:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(182, 92, 56, 0.3);
}
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
}
.logo-dot { color: var(--terracotta); }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 0.6rem 1.3rem; }
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--pad) clamp(3rem, 7vw, 6rem);
  min-height: 78vh;
}
.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 350;
  color: var(--terracotta);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--espresso-soft);
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-facts {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.hero-facts dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.hero-facts dd { font-size: 0.85rem; color: var(--espresso-soft); }

.hero-media { position: relative; }
.hero-img {
  border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(43, 33, 26, 0.22);
}
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--rose); }
.hero-badge {
  position: absolute;
  bottom: -2rem;
  left: -2.5rem;
  width: 9rem;
  height: 9rem;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(43, 33, 26, 0.15);
  animation: spin 22s linear infinite;
}
.hero-badge svg { width: 100%; height: 100%; }
.hero-badge text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  fill: var(--espresso);
}
.badge-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--terracotta);
  animation: spin 22s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Marquee ===== */
.marquee {
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
  padding: 0.9rem 0;
  transform: rotate(-1.2deg) scale(1.02);
}
.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--terracotta); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Über uns ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--terracotta-dark);
}
.about-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.about-text p { color: var(--espresso-soft); margin-bottom: 1rem; max-width: 32rem; }

/* ===== Leistungen ===== */
.services { background: var(--cream-deep); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.service-card:nth-child(even) { transform: translateY(1.2rem); }
.service-card:hover {
  background: var(--espresso);
  color: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(43, 33, 26, 0.25);
}
.service-card:hover p { color: var(--rose); }
.service-index {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--terracotta);
}
.service-card h3 { font-size: 1.45rem; margin: 0.7rem 0 0.6rem; }
.service-card p { font-size: 0.95rem; color: var(--espresso-soft); transition: color 0.3s ease; }

/* ===== Preise ===== */
.price-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 60rem;
}
.price-group h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terracotta);
  display: inline-block;
}
.price-group h3 + .price-list { margin-bottom: 2.2rem; }
.price-list { list-style: none; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0;
}
.price-list i {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.price-list span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Team ===== */
.team { background: var(--cream-deep); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
  background: var(--rose);
}
.team-card:hover img { filter: saturate(1.1); transform: scale(1.02); }
.team-card h3 { font-size: 1.3rem; margin-top: 1rem; }
.team-card p { font-size: 0.9rem; color: var(--terracotta-dark); }

/* ===== Galerie ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.gallery-grid figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--rose);
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.g1 { grid-column: span 2; grid-row: span 2; }
.g2 { grid-column: span 2; }
.g3 { grid-row: span 1; }
.g4 { }

/* ===== Stimmen ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonials blockquote {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.testimonials p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}
.testimonials footer { font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; }
.testimonials footer span { color: var(--terracotta); letter-spacing: 2px; }

/* ===== Kontakt ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  background: var(--espresso);
  color: var(--cream);
}
.contact .section-num { color: var(--rose); }
.contact address {
  font-style: normal;
  margin: 1.8rem 0;
  line-height: 2;
}
.contact a { color: var(--rose); }
.hours { border-collapse: collapse; }
.hours td { padding: 0.4rem 0; }
.hours td:first-child { padding-right: 2.5rem; font-weight: 700; }
.hours tr + tr td { border-top: 1px solid rgba(250, 245, 238, 0.15); }

.contact-form {
  background: var(--cream);
  color: var(--espresso);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.contact-form h3 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 400;
  color: var(--espresso);
  background: var(--cream-deep);
  border: 1.5px solid transparent;
  border-radius: 0.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}
.contact-form .btn { width: 100%; margin-top: 0.4rem; }
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--terracotta-dark); }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
}
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a { font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.site-footer nav a:hover { color: var(--terracotta); }
.footer-note { font-size: 0.85rem; color: var(--espresso-soft); }

/* ===== Scroll-Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { max-width: 26rem; }
  .hero-badge { left: auto; right: -1rem; width: 7rem; height: 7rem; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g1, .g2 { grid-column: span 2; }
}

@media (max-width: 720px) {
  /* backdrop-filter würde das fixed positionierte Menü im Header einsperren */
  .site-header.scrolled {
    backdrop-filter: none;
    background: rgba(250, 245, 238, 0.97);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
  }
  .nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--espresso);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 55;
  }
  .main-nav.open { transform: translateY(0); }

  .price-columns { grid-template-columns: 1fr; }
  .hero-facts { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .service-card:nth-child(even) { transform: none; }
  .gallery-grid { grid-auto-rows: 150px; }
}
