/* =============================================================
   Kosmetikstudio & Fußpflege Tanja — Stylesheet
   Plain HTML/CSS/JS, no framework, no build step.
   ============================================================= */

/* Design tokens ------------------------------------------------ */
:root {
  --color-bg: #ffffff;
  --color-text: #323335;        /* rgb(50,51,53) */
  --color-muted: #6b6c6e;
  --color-surface: #e2e2e2;     /* header / left-hero panel */
  --color-accent: #6c586d;      /* dusty mauve button */
  --color-accent-hover: #56445a;
  --color-border: #ececec;
  --color-peach: #fad7c8;       /* thin top border accent */

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Raleway", "Roboto", system-ui, sans-serif;

  --header-height: 72px;
  --container-max: 1280px;
  --gutter: 24px;
}

/* Reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* Base --------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.3;       /* matches original 46.8/36 */
}

/* Type scale matched to the original (desktop = 36px section titles). */
h1 { font-size: clamp(1.75rem, 4.2vw, 2.25rem); }   /* up to 36px */
h2 { font-size: clamp(1.625rem, 3.8vw, 2.25rem); }  /* up to 36px */
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }    /* up to 24px */

p + p { margin-top: 1em; }

/* Utilities ---------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-block;
  padding: 16px 30px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;          /* 16px, matches original */
  letter-spacing: normal;
  border: 0;
  border-radius: 0;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--color-accent-hover); }

/* Header / nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header__inner {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  margin-right: auto;
}

.primary-nav { display: flex; }
.primary-nav ul {
  display: flex;
  gap: clamp(12px, 3vw, 40px);
}
.primary-nav a {
  display: block;
  padding: 8px 4px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.primary-nav a:hover { border-bottom-color: var(--color-text); }
.primary-nav a.is-active { border-bottom-color: var(--color-text); }

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text);
  transition: opacity 0.15s ease;
}
.social-links a:hover { opacity: 0.7; }
.social-links svg { width: 22px; height: 22px; }

/* Mobile nav -------------------------------------------------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--color-text);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: 12px 24px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .primary-nav a { padding: 12px 0; font-size: 1.1rem; }
  .social-links { margin-left: 8px; }
}

/* Hero / split sections --------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
}

.split__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px);
}

.split__panel--surface { background: var(--color-surface); }
.split__panel--white   { background: #ffffff; }

.split__panel--image {
  padding: 0;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50vw;
}

.split__panel--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split__title {
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);   /* up to 36px */
  line-height: 1.3;
  margin-bottom: 0.6em;
}

.split__lede {
  font-size: 1.125rem;        /* 18px, matches original */
  line-height: 1.6;           /* 28.8px */
  max-width: 38ch;
  margin-bottom: 2em;
}

.split__panel p {
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__panel { padding: 40px 24px; }
  .split__panel--image { min-height: 60vw; order: -1; }
  .split__panel--image-right { order: 0; }
}

/* Section blocks ---------------------------------------------- */
.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section--surface { background: var(--color-surface); }

.section__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section__title {
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);
  line-height: 1.3;
  margin-bottom: 0.4em;
}
.section__intro {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
  color: var(--color-text);
}

/* Team grid ---------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 960px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
}
.team-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f5f5f5;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.team-card__bio { font-size: 0.95rem; line-height: 1.6; max-width: 36ch; margin: 0 auto; }

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

/* Behandlungen — service columns ------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
}
.service-block { }
.service-block + .service-block { }
.service-block__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.service-block ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.98rem;
}
.service-block ul li:last-child { border-bottom: 0; }
.service-block .sub {
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--color-muted);
  border-bottom: 0;
}

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

/* Gallery ----------------------------------------------------- */
/* Legacy simple grid (kept for any future use) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* Gallery rows — alternating section backgrounds, varying col counts */
.gallery-row {
  width: 100%;
  padding: clamp(48px, 6vw, 96px) 0;
}
.gallery-row--dark    { background: #000; }
.gallery-row--surface { background: var(--color-surface); }
.gallery-row--bleed   { padding: 0; }

.gallery-row__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
  display: grid;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: center;
  justify-items: center;
}

.gallery-row--3col  .gallery-row__inner { grid-template-columns: repeat(3, 1fr); }
.gallery-row--4col  .gallery-row__inner { grid-template-columns: repeat(4, 1fr); }
.gallery-row--2col  .gallery-row__inner { grid-template-columns: repeat(2, 1fr); }
.gallery-row--1col  .gallery-row__inner { grid-template-columns: 1fr; max-width: 760px; }
.gallery-row--split .gallery-row__inner {
  grid-template-columns: 1fr 1fr;
  max-width: none;
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.gallery-row a {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
.gallery-row img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.gallery-row a:hover img { transform: scale(1.03); }

/* Square crops for product / row tiles */
.gallery-row--3col img,
.gallery-row--4col img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Tall portraits (2-up rows) */
.gallery-row--2col img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Wide single (1col) */
.gallery-row--1col img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Split row — image on one side, headline on the other (~720x400 each) */
.gallery-row--split { padding: 0; }
.gallery-row--split a,
.gallery-row--split img {
  width: 100%;
  height: 100%;
}
.gallery-row--split img { aspect-ratio: 9 / 5; object-fit: cover; }
.gallery-row__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px);
  background: #fff;
}
.gallery-row__copy h3 {
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  margin: 0;
  max-width: 32ch;
  text-align: left;
}

/* Full-bleed banner row */
.gallery-row--bleed .gallery-row__inner {
  max-width: none;
  padding: 0;
  display: block;
}
.gallery-row--bleed a   { width: 100%; }
.gallery-row--bleed img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; height: auto; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive collapses */
@media (max-width: 1080px) {
  .gallery-row--4col .gallery-row__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gallery-row--3col .gallery-row__inner,
  .gallery-row--4col .gallery-row__inner,
  .gallery-row--2col .gallery-row__inner,
  .gallery-row--split .gallery-row__inner { grid-template-columns: 1fr; }
  .gallery-row__copy { padding: 32px 24px; }
}

/* Lightbox ---------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 6px 10px;
}

/* Kontakt ----------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.contact-card { font-size: 1.05rem; line-height: 1.7; }
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.contact-card a { color: var(--color-accent); text-decoration: underline; }
.contact-card a:hover { color: var(--color-accent-hover); }

.map-wrap {
  aspect-ratio: 4 / 3;
  background: #f1f1f1;
  border: 1px solid var(--color-border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

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

/* Page hero (used on Team / Behandlungen / Galerie / Kontakt) */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--color-surface);
  min-height: 480px;
}
.page-hero__media {
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  min-height: 320px;
}
.page-hero__body {
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.2vw, 2.25rem);   /* up to 36px */
  line-height: 1.3;
  margin-bottom: 0.5em;
}
.page-hero__intro {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 50ch;
}

@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero__media { min-height: 50vw; order: -1; }
}

/* Footer ------------------------------------------------------ */
.site-footer {
  padding: 32px 24px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.site-footer ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer a {
  font-size: 0.9rem;
  color: var(--color-muted);
}
.site-footer a:hover { color: var(--color-text); }
.site-footer__copy {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Article wrapper (Impressum / Datenschutz) ------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px;
  font-size: 1.0625rem;       /* ~17px, comfortable reading */
  line-height: 1.65;
}
.prose h1 { margin-bottom: 0.6em; }
.prose h2 { margin-top: 1.6em; margin-bottom: 0.4em; }
.prose p { margin-bottom: 1em; }
.prose a { color: var(--color-accent); text-decoration: underline; }

/* Cookie banner ----------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 18px 22px;
  display: none;
  z-index: 80;
  font-size: 0.92rem;
}
.cookie-banner.is-open { display: block; }
.cookie-banner__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner button {
  background: var(--color-accent);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-size: 0.9rem;
}
.cookie-banner button.is-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Skip link --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }
