/* =========================================================
   Naturgold Kosmetik – statischer Nachbau ohne Framework
   Mobile-first, natives CSS (Grid/Flexbox/Scroll-Snap)
   ========================================================= */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-text: #4a3626;
  --color-brand: #5a4330;
  --color-gold: #c3ab46;
  --color-gold-dark: #a8935a;
  --color-gold-darker: #8f7a48;
  --color-cream: #ede6d8;
  --color-cream-light: #faf7f0;
  --color-white: #ffffff;
  --color-border: rgba(90, 67, 48, 0.18);
  --section-max-width: 1180px;
  --header-height: 76px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 30px rgba(74, 54, 38, 0.12);
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset / Basics --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #e9d8b8;
  background-image: linear-gradient(180deg, rgba(247, 231, 200, 0.93), rgba(196, 155, 103, 0.88)), url("../images/hintergrund/weizenfeld-mobil-hintergrund.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Auf Nutzerwunsch (2026-09-17) auch auf Mobil aktiv, damit das Foto
     beim Scrollen ueberall sichtbar bleibt statt nur einmal ganz oben
     gemalt zu werden - falls das auf einem aelteren Geraet ruckelt,
     gezielt wieder auf einen Breakpoint (z.B. min-width:900px) einschraenken. */
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--color-brand); text-decoration: none; transition: color 0.25s ease; }
a:hover, a:focus-visible { color: var(--color-gold); }
:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

h1, h2, h3 { font-weight: 800; color: var(--color-brand); margin: 0; }
h1 { font-size: clamp(1.65rem, 4.5vw, 2.6rem); line-height: 1.25; margin-bottom: 0.6em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); text-align: center; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.title-shape {
  display: block;
  width: 90px;
  height: 10px;
  margin: 10px auto 18px;
}
.title-shape svg { width: 100%; height: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-dark);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--color-gold-darker); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--color-cream); color: var(--color-brand); border-color: var(--color-gold); }

.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* --- Top-Kontaktleiste (nur Desktop) --- */
.topbar {
  display: none;
  background: var(--color-brand);
  color: #eadec7;
  font-size: 0.9rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  padding: 8px 20px;
}
.topbar a { color: #fff; }
.topbar a:hover, .topbar a:focus-visible { color: var(--color-gold); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  box-shadow: 0 2px 12px rgba(74, 54, 38, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: 0.01em;
}
.logo-link:hover, .logo-link:focus-visible { color: var(--color-gold); }

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--color-brand);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-brand);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-cream-light);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: flex-end; }
.mobile-nav-close { width: 44px; height: 44px; border: none; background: transparent; color: var(--color-brand); cursor: pointer; }
.mobile-nav-close svg { width: 26px; height: 26px; }
.mobile-nav ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: block;
  padding: 14px 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-brand);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .topbar { display: block; }
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  /* Ab hier eigener, breiterer Bildausschnitt statt des schmalen
     Hochformat-Crops fuer Mobil - auf breiten Desktop-Viewports wuerde
     der Hochformat-Crop viel zu stark hochgezoomt werden muessen. */
  body { background-image: linear-gradient(180deg, rgba(247, 231, 200, 0.93), rgba(196, 155, 103, 0.88)), url("../images/hintergrund/weizenfeld-seite-hintergrund.jpg"); }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
}
.hero .logo-image { width: 380px; height: auto; margin: 0 auto 24px; }
.hero p { max-width: 680px; margin-inline: auto; }
.hero .lead { font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }

/* --- Sliders (Scroll-Snap) --- */
.slider-wrap { position: relative; }
.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0;
  padding: 6px 4px 22px;
  list-style: none;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider-item { scroll-snap-align: start; flex: 0 0 auto; list-style: none; }

/* Produkte: alle 4 Bilder auf einmal sichtbar, kein Scroll noetig -
   Pfeile daher ausgeblendet. */
@media (min-width: 700px) {
  #products-slider { justify-content: center; }
  #products-slider .photo-card,
  #products-slider .photo-card .img-frame { width: 260px; }
}
.slider-nav[data-slider-target="products-slider"] { display: none !important; }

.slider-nav {
  display: none;
}
@media (min-width: 700px) {
  .slider-nav {
    display: flex;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .slider-nav button {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-brand);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transform: translateX(-14px);
  }
  .slider-nav button:last-child { transform: translateX(14px); }
  .slider-nav svg { width: 18px; height: 18px; }
}

/* Rechteckige Bild-Karten (Studio, Produkte) */
.photo-card { width: 210px; text-align: center; }
.photo-card .img-frame {
  width: 210px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card.square .img-frame { aspect-ratio: 1 / 1; }

/* Studio-Bilder groesser als der Standard */
#studio-slider .photo-card,
#studio-slider .photo-card .img-frame { width: 260px; }

@media (min-width: 1140px) {
  /* Genau 4 Studio-Bilder sichtbar, kein angeschnittenes 5. Bild am Rand -
     gleiches Prinzip wie beim Behandlungen-Slider: fester max-width statt
     Prozentrechnung, damit die sichtbare Flaeche selbst schmaler wird. */
  #studio-slider { max-width: 1100px; margin: 0 auto; }
  .slider-nav[data-slider-target="studio-slider"] { max-width: 1100px; margin: 0 auto; }
}

/* --- Studio-Sektion --- */

/* --- Behandlungen (Treatments) --- */
.treatment-card {
  width: 220px;
  text-align: center;
}
.treatment-card button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 100%;
}
.treatment-card .img-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: filter 0.3s ease;
}
@media (min-width: 700px) {
  /* Genau 3 Behandlungs-Karten sichtbar, Rest per Pfeil/Wischen erreichbar.
     Die Breite muss auf dem Slider-Item (dem eigentlichen Flex-Kind) sitzen,
     nicht auf der Figure darin - sonst hat die Prozentangabe keine gueltige
     Bezugsbreite und der Browser faellt auf die volle Breite zurueck. */
  /* Feste, kleinere Kartenbreite statt Prozent vom vollen Container -
     dadurch wird die sichtbare Flaeche selbst schmaler (3 x 220px + 2 x
     10px Abstand = 680px) statt nur das Bild in einem grossen Slot zu
     verkleinern. margin:auto zentriert diesen schmaleren Scroll-Bereich
     im Abschnitt, Bilder 4/5 bleiben per Wischen/Pfeil erreichbar. */
  #treatments-slider {
    max-width: 680px;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }
  #treatments-slider > .slider-item {
    flex: 0 0 calc((100% - 20px) / 3);
    max-width: 220px;
  }
  #treatments-slider .treatment-card { width: 100%; }
  #treatments-slider .treatment-card .img-frame { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
.slider-nav[data-slider-target="treatments-slider"] { display: none !important; }
.treatment-card button:hover .img-frame,
.treatment-card button:focus-visible .img-frame { filter: brightness(0.85); }
.treatment-card img { width: 100%; height: 100%; object-fit: cover; }
.treatment-card .label { margin-top: 12px; font-weight: 700; color: var(--color-brand); font-size: 0.95rem; }

/* --- Behandlungs-Dialog (native <dialog>) --- */
dialog.treatment-modal {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  max-width: min(960px, 92vw);
  max-height: 88vh;
  width: 100%;
  overflow: hidden;
  background: var(--color-cream-light);
}
dialog.treatment-modal::backdrop { background: rgba(40, 30, 20, 0.55); }
.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 88vh;
  overflow-y: auto;
}
@media (min-width: 800px) {
  .modal-body { grid-template-columns: 1fr 1fr; overflow-y: hidden; }
  .modal-text { overflow-y: auto; max-height: 88vh; }
}
.modal-image { min-height: 220px; background-size: cover; background-position: center; }
.modal-text { padding: 32px 30px; position: relative; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(74, 54, 38, 0.08);
  color: var(--color-brand);
  cursor: pointer;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-text h3 { font-size: 1.3rem; margin-bottom: 0.6em; }

/* --- Produkte --- */
.products-text { max-width: 760px; margin: 0 auto 2rem; text-align: left; }

/* --- About --- */
.about-section { text-align: center; }
.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-section .container { max-width: 760px; }
.quote { font-style: italic; font-weight: 700; color: var(--color-brand); margin: 1.4em 0; }

/* --- Preise / Accordion --- */
.price-accordion {
  max-width: 900px;
  margin: 0 auto;
  border: 1.5px solid rgba(90, 67, 48, 0.4);
  border-radius: 32px;
  padding: 22px;
  background: transparent;
}
.price-accordion details {
  border: none;
  border-radius: 0;
  margin-bottom: 14px;
  overflow: visible;
  background: transparent;
}
.price-accordion details:last-child { margin-bottom: 0; }
.price-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 26px;
  font-weight: 700;
  color: #fff;
  background: #977f4d;
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-accordion summary::-webkit-details-marker { display: none; }
.price-accordion summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  flex: none;
}
.price-accordion details[open] summary::after { transform: rotate(45deg); }
.price-list { padding: 22px 24px 4px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(90, 67, 48, 0.18);
}
.price-row:last-child { border-bottom: none; }
.price-row .name { font-weight: 700; }
.price-row .meta { display: block; font-size: 0.85rem; color: #8a7863; font-weight: 400; }
.price-row .amount { font-weight: 700; white-space: nowrap; }
.price-group-title { font-weight: 800; font-size: 1.05rem; padding: 16px 0 4px; }

/* --- Footer --- */
.site-footer {
  background: var(--color-brand);
  color: #eadec7;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--color-gold); }
.footer-links { margin-bottom: 10px; }
.footer-address { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.footer-contact-item { display: inline-flex; align-items: center; gap: 6px; }

/* --- Back to top --- */
#backToTop {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-gold-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: none;
  z-index: 90;
}
#backToTop.visible { display: flex; align-items: center; justify-content: center; }
#backToTop svg { width: 20px; height: 20px; }

/* --- Legal pages (Impressum / Datenschutz) --- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { text-align: left; margin-bottom: 0.6em; }
.legal-content h3 { font-size: 1.05rem; margin: 1.4em 0 0.4em; }
.back-link { display: inline-block; margin-bottom: 1.6em; font-weight: 600; }

@media (min-width: 700px) {
  .section { padding: 80px 0; }
  h1 { padding: 0; }
}
