/* ==========================================================================
   Friseursalon Vergos – Stylesheet
   Farben und Schriften lassen sich zentral in :root anpassen.
   ========================================================================== */

/* ---------- Schriften (lokal eingebunden, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Freestyle Script";
  src: url("../fonts/freestyle-script.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Gestaltungswerte ---------- */
:root {
  --pink: #cb3d6f;         /* Hauptfarbe: Buttons, Akzente, Linien, Fokus */
  --pink-dunkel: #a32b55;  /* Hover-Zustand und kleine farbige Schrift */
  --tinte: #3a1622;        /* Text und Überschriften (dunkles Aubergine) */
  --tinte-tief: #2a0f19;   /* Fußzeile */
  --rose-hell: #f6e7ed;    /* getönte Abschnitte */
  --nebel: #fdf8fa;        /* Seitenhintergrund */
  --rose: #f7dfe7;         /* Karten (Öffnungszeiten, Inklusivleistungen) */
  --text-leise: #6b4a56;   /* Nebentexte */
  --weiss: #ffffff;

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --schreibschrift: "Freestyle Script", "Segoe Script", "Brush Script MT", cursive;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);
  --header-h: 5rem;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nebel);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: 1.6rem; }

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

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--tinte);
  color: var(--weiss);
  border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: var(--pink);
  color: var(--weiss);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--pink-dunkel); border-color: var(--pink-dunkel); }

.btn-small { padding: 0.6em 1.1em; font-size: 0.95rem; }

.btn-quiet { background: transparent; color: var(--pink-dunkel); }
.btn-quiet:hover { background: var(--weiss); }

.text-link { font-weight: 500; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 250, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 22, 34, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.6rem; }
.main-nav ul a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.main-nav ul a:hover,
.main-nav ul a[aria-current="page"] { border-bottom-color: var(--pink); }

.menu-toggle {
  display: none;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid rgba(58, 22, 34, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--tinte);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.2rem; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); background: var(--tinte); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--tinte); }

@media (max-width: 60rem) {
  :root { --header-h: 4.25rem; }
  .brand img { height: 44px; }
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--nebel);
    border-bottom: 1px solid rgba(58, 22, 34, 0.12);
    box-shadow: 0 16px 24px -16px rgba(42, 15, 25, 0.25);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding-block: 0.8rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(58, 22, 34, 0.1);
  }
  .main-nav .btn { justify-content: center; }
}

/* ---------- Begrüßung ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-greeting {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-leise);
}

/* Schreibschrift: nur ein Regular-Schnitt vorhanden, daher font-weight 400 –
   sonst rechnet der Browser ein unsauberes Kunst-Fett dazu. Die Buchstaben
   verbinden sich, deshalb kein negatives letter-spacing. */
.hero-name {
  margin: 0.05em 0 0.12em 0;
  font-family: var(--schreibschrift);
  font-size: clamp(6rem, 19vw, 13rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--pink);
}

.hero-address {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.hero .open-status { margin-top: 1.5rem; }

/* Bogenrahmen – das wiederkehrende Spiegel-Motiv */
.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--rose-hell);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-image { position: relative; padding: 14px; }
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--pink);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch-large { max-height: 30rem; margin-inline: auto; }
/* Die Salonfotos sind Panoramen – der Bogen zeigt ihre Mitte mit der Empfangstheke. */
.arch-large img { object-position: center; }

@media (max-width: 50rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { max-width: 22rem; width: 100%; margin-inline: auto; }
}

/* ---------- Öffnungsstatus ---------- */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1rem;
  font-weight: 500;
}
.open-status::before {
  content: "";
  width: 0.6em; height: 0.6em;
  border-radius: 50%;
  background: var(--text-leise);
  flex: none;
}
.open-status[hidden] { display: none; }
.open-status.is-open::before {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(203, 61, 111, 0.20);
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section-space); }
.section-tint { background: var(--rose-hell); }

.section-intro { max-width: 40rem; }
.section-intro h2,
.split-text h2 { margin-bottom: 1.25rem; }

/* ---------- Was uns ausmacht ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}
.promise {
  padding-top: 1.25rem;
  border-top: 1px solid var(--pink);
}
.promise h3 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.promise p { font-size: 1.05rem; color: var(--text-leise); }

@media (max-width: 62rem) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .promises { grid-template-columns: 1fr; } }

/* ---------- Salon ---------- */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}
.split-text { max-width: 30rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rose-hell);
  cursor: zoom-in;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }


@media (max-width: 50rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem clamp(1rem, 3vw, 2.5rem);
  margin-top: 3.5rem;
}
.team .arch { background: var(--nebel); }
.member-name {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  text-align: center;
}

@media (max-width: 50rem) { .team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Karten (Inklusivleistungen, Öffnungszeiten) ---------- */
.included,
.hours-card {
  position: relative;
  background: var(--rose);
  border-radius: 6px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.included::before,
.hours-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(203, 61, 111, 0.55);
  border-radius: 3px;
  pointer-events: none;
}

/* ---------- Preise ---------- */
.prices-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.prices-aside h2 { margin-bottom: 2rem; }
.prices-aside { position: sticky; top: calc(var(--header-h) + 2rem); }

.included h3 { margin-bottom: 1rem; }
.included-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: 1.05rem;
}
.included-list li + li { margin-top: 0.45em; }
.included-list li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.72em;
  width: 0.55em; height: 1px;
  background: var(--pink);
}
.included-extra {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(203, 61, 111, 0.4);
  font-size: 1.05rem;
}
.included-extra strong { font-weight: 500; }

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 2.25rem;
  padding: 0.3rem;
  border: 1px solid rgba(58, 22, 34, 0.2);
  border-radius: 999px;
}
.tabs[hidden] { display: none; }
.tabs button {
  padding: 0.6em 1.4em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tinte);
  font: 500 1rem/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tabs button[aria-selected="true"] { background: var(--pink); color: var(--weiss); }
.tabs button:not([aria-selected="true"]):hover { background: var(--rose-hell); }

/* Ohne JavaScript werden beide Listen untereinander gezeigt */
.price-panel + .price-panel { margin-top: 3.5rem; }
.has-tabs .price-panel + .price-panel { margin-top: 0; }
.has-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-title { margin-bottom: 1rem; font-size: 2rem; }

.price-group {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--pink-dunkel);
}
.price-panel > .price-group:first-of-type { margin-top: 0; }

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.55rem;
}
.service {
  display: flex;
  align-items: baseline;
  flex: 1;
  min-width: 0;
}
.service::after {
  content: "";
  flex: 1 0 1.5rem;
  margin-left: 0.75rem;
  border-bottom: 1px dotted rgba(203, 61, 111, 0.7);
  transform: translateY(-0.3em);
}
.price {
  flex: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.price small {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-leise);
}

.price-cta {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.35;
}
.price-cta a { font-style: normal; white-space: nowrap; }

@media (max-width: 56rem) {
  .prices-layout { grid-template-columns: 1fr; }
  .prices-aside { position: static; }
}
@media (max-width: 30rem) {
  .tabs button { padding-inline: 0.85em; }
  .service::after { display: none; }
  .price-list li {
    justify-content: space-between;
    padding-block: 0.7rem;
    border-bottom: 1px solid rgba(58, 22, 34, 0.1);
  }
}

/* ---------- Öffnungszeiten & Anfahrt ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.visit h2 { margin-bottom: 1.25rem; }

.hours-card .open-status { margin-bottom: 1.5rem; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid rgba(203, 61, 111, 0.3);
}
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) {
  .hours th, .hours td { padding-inline: 0.5rem; font-size: 1rem; }
  .hours .today-label { display: block; margin-left: 0; font-size: 0.8rem; line-height: 1.2; }
}
.hours tr.is-closed td { color: var(--text-leise); }
.hours tr.is-today th, .hours tr.is-today td {
  background: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.hours tr.is-today th { border-radius: 4px 0 0 4px; }
.hours tr.is-today td { border-radius: 0 4px 4px 0; }
.today-label {
  margin-left: 0.5em;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-leise);
}

.address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.6;
}
.map-link {
  display: block;
  margin-top: 1.75rem;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(58, 22, 34, 0.15);
  background: var(--nebel);
}
.map-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 50rem) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--tinte-tief);
  color: #f2dbe3;
  font-size: 1rem;
}
.site-footer a { color: var(--weiss); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-name {
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--weiss);
}
.footer-bottom {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #cba7b5;
}
.site-footer :focus-visible { outline-color: #f6a8c4; }

@media (max-width: 40rem) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Bildansicht ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(30, 10, 17, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
  max-width: min(92vw, 80rem);
  max-height: 86vh;
  width: auto; height: auto;
  border-radius: 4px;
}
.lightbox-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(30, 10, 17, 0.5);
  color: var(--weiss);
  font: 400 1.9rem/1 var(--sans);
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.15); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: #f6a8c4; }

/* ---------- Unterseiten (Impressum & Datenschutz) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.page-head h1 { font-size: clamp(3rem, 8vw, 5rem); font-weight: 500; }
.page-head p { margin-top: 1rem; color: var(--text-leise); }

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.legal { max-width: 44rem; padding-block: 3rem var(--section-space); }
.legal h2 {
  margin: 3.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--pink);
  font-size: clamp(2.1rem, 4vw, 2.75rem);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin: 2.25rem 0 0.6rem; font-size: 1.55rem; }
.legal h4 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
}
.legal p, .legal li { color: var(--tinte); }
.legal ul { margin-top: 0.75rem; }
.legal ul li { position: relative; padding-left: 1.4em; }
.legal ul li + li { margin-top: 0.4em; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0.15em; top: 0.8em;
  width: 0.55em; height: 1px;
  background: var(--pink);
}
.legal address { font-style: normal; }
.legal-source { margin-top: 1.5rem; font-size: 0.95rem; color: var(--text-leise); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
