/* TONSORIUM – Barbershop Hamburg-Eppendorf
   Farben und Schrift als Tokens; keine Fremdressourcen. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* dunkel: wie der Laden – schwarze Wände, warmes Licht */
  --ink: #14110f;
  --ink-2: #1c1815;
  --ivory: #ece5d9;
  --ivory-leise: #a69d90;
  --linie-dunkel: rgba(236, 229, 217, 0.16);

  /* hell: die Preiskarte */
  --papier: #efe9df;
  --papier-text: #1c1815;
  --papier-leise: #5f564b;
  --linie-hell: rgba(28, 24, 21, 0.18);

  --messing: #b8955f;
  --messing-text: #7a5c30;

  --schrift: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --breite: 1320px;
  --rand: clamp(20px, 4vw, 56px);
  --kopf: 68px;
  /* Abstand vom Inhaltsrand bis zum Fensterrand, für randlose Bilder */
  --aussen: max(0px, (100vw - var(--breite)) / 2);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--kopf);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--schrift);
  font-weight: 370;
  font-size: 1.0625rem;
  line-height: 1.6;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.sprung {
  position: absolute;
  left: var(--rand);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--ink);
}

.sprung:focus {
  top: 10px;
}

.huelle {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Kleinteile ---------- */

.etikett {
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  hyphens: none;
}

.leise {
  color: var(--ivory-leise);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--ivory);
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.knopf:hover {
  background: transparent;
  color: var(--ivory);
}

.knopf--hohl {
  background: transparent;
  color: var(--ivory);
}

.knopf--hohl:hover {
  background: var(--ivory);
  color: var(--ink);
}

.hell .knopf {
  border-color: var(--papier-text);
  background: var(--papier-text);
  color: var(--papier);
}

.hell .knopf:hover {
  background: transparent;
  color: var(--papier-text);
}

.pfeil-link {
  display: inline-block;
  padding-block: 12px;
  font-size: 0.8125rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--linie-dunkel);
  transition: text-decoration-color 0.2s;
}

.pfeil-link:hover {
  text-decoration-color: currentColor;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  border-bottom: 1px solid var(--linie-dunkel);
}

.kopf .huelle {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--kopf);
}

.kopf__logo {
  margin-right: auto;
  color: var(--ivory);
}

.kopf__logo svg {
  width: 136px;
  height: auto;
}

.kopf__nav {
  display: none;
  gap: 32px;
}

.kopf__nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-leise);
  transition: color 0.2s;
}

.kopf__nav a:hover {
  color: var(--ivory);
}

.kopf .knopf {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .kopf .huelle {
    gap: 32px;
  }

  .kopf__logo svg {
    width: 172px;
  }

  .kopf__nav {
    display: flex;
  }
}

/* ---------- Einstieg ---------- */

.einstieg,
.haus,
.besuch {
  overflow-x: clip;
}

.einstieg {
  padding-top: clamp(40px, 7vw, 72px);
}

.einstieg .huelle {
  display: grid;
  gap: 40px;
}

.einstieg__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.einstieg h1 {
  font-size: clamp(2.5rem, 4vw + 0.6rem, 4.25rem);
  font-weight: 290;
  line-height: 1.04;
  letter-spacing: -0.025em;
  hyphens: manual;
  text-wrap: balance;
}

.einstieg__lead {
  max-width: 34ch;
  font-size: 1.125rem;
  color: var(--ivory-leise);
}

.einstieg__aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 8px;
}

.einstieg__fakten {
  display: grid;
  gap: 18px;
  margin-bottom: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--linie-dunkel);
  font-size: 0.9375rem;
}

.einstieg__fakten dt {
  margin-bottom: 4px;
  color: var(--ivory-leise);
}

.einstieg__bild {
  margin-inline: calc(var(--rand) * -1);
}

.einstieg__bild img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: 55% 50%;
}

@media (min-width: 560px) {
  .einstieg__fakten {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .einstieg {
    padding-top: 0;
  }

  .einstieg .huelle {
    grid-template-columns: repeat(12, 1fr);
    gap: 0 24px;
    min-height: min(calc(100svh - var(--kopf)), 940px);
  }

  .einstieg .huelle {
    grid-template-rows: 1fr auto;
  }

  .einstieg__text {
    grid-column: 1 / 7;
    grid-row: 1;
    justify-content: flex-end;
    padding: 48px clamp(24px, 4vw, 72px) 0 0;
  }

  .einstieg__fakten {
    grid-column: 1 / 7;
    grid-template-columns: 1fr 1fr;
    align-self: end;
    grid-row: 2;
    margin-block: 40px 48px;
  }

  .einstieg__bild {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    margin-right: calc((var(--rand) + var(--aussen)) * -1);
  }

  /* Bild füllt die Höhe des Textblocks, bestimmt sie aber nicht */
  .einstieg__bild {
    position: relative;
    min-height: 480px;
  }

  .einstieg__bild picture,
  .einstieg__bild img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* ---------- Abschnitte allgemein ---------- */

.abschnitt {
  padding-block: clamp(72px, 10vw, 140px);
}

.hell {
  background: var(--papier);
  color: var(--papier-text);
}

.hell .leise {
  color: var(--papier-leise);
}

.abschnitt h2 {
  font-size: clamp(2.25rem, 3.4vw + 0.6rem, 3.75rem);
  font-weight: 290;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ---------- Behandlungen ---------- */

.karte__kopf {
  display: grid;
  gap: 16px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.karte__kopf p {
  max-width: 40ch;
}

@media (min-width: 900px) {
  .karte__kopf {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: end;
  }

  .karte__kopf h2 {
    grid-column: 1 / 7;
  }

  .karte__kopf p {
    grid-column: 8 / 13;
  }
}

/* Empfehlung */

.empfehlung {
  display: grid;
  gap: 32px;
  margin-bottom: clamp(72px, 9vw, 120px);
}

.empfehlung__bild img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 60% 50%;
}

.empfehlung__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empfehlung .etikett {
  color: var(--messing-text);
}

.empfehlung h3 {
  font-size: clamp(1.875rem, 2.4vw + 0.5rem, 2.75rem);
  font-weight: 320;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.empfehlung__eckdaten {
  font-variant-numeric: tabular-nums;
  font-weight: 520;
}

.schritte {
  counter-reset: schritt;
  border-top: 1px solid var(--linie-hell);
}

.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding-block: 11px;
  border-bottom: 1px solid var(--linie-hell);
}

.schritte li::before {
  content: counter(schritt);
  color: var(--papier-leise);
  font-variant-numeric: tabular-nums;
}

.empfehlung .knopf {
  align-self: flex-start;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .empfehlung {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: center;
  }

  .empfehlung__bild {
    grid-column: 1 / 7;
  }

  .empfehlung__text {
    grid-column: 8 / 13;
  }
}

/* Gruppen und Posten */

.gruppe {
  display: grid;
  gap: 28px;
  padding-block: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--papier-text);
}

.gruppe__kopf h3 {
  font-size: 1.5rem;
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gruppe__kopf p {
  margin-top: 6px;
}

.gruppe__bild {
  display: none;
}

.posten {
  padding-block: 22px;
  border-bottom: 1px solid var(--linie-hell);
}

.posten:first-child {
  padding-top: 0;
}

.posten__zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 20px;
}

.posten h4 {
  font-size: 1.1875rem;
  font-weight: 480;
  line-height: 1.3;
}

.posten__dauer {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.9375rem;
}

.posten__preis {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.1875rem;
  font-weight: 480;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.posten__text {
  max-width: 52ch;
  margin-top: 10px;
}

.posten__marke {
  margin-left: 10px;
  color: var(--messing-text);
  font-size: 0.6875rem;
  vertical-align: 0.2em;
}

@media (min-width: 640px) {
  .posten__zeile {
    grid-template-columns: 1fr 7.5rem 4.5rem;
  }

  .posten__dauer {
    grid-column: 2;
    grid-row: 1;
  }

  .posten__preis {
    grid-column: 3;
    text-align: right;
  }
}

/* Ablauf aufklappen */

.ablauf {
  margin-top: 12px;
}

.ablauf summary {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding-block: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ablauf summary::-webkit-details-marker {
  display: none;
}

.ablauf summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0;
}

.ablauf[open] summary::after {
  content: "\2212";
}

.ablauf ol {
  max-width: 52ch;
  margin-top: 8px;
  padding-left: 1.2em;
  list-style: decimal;
  color: var(--papier-leise);
}

.ablauf li {
  padding-left: 0.3em;
}

.ablauf li::marker {
  font-variant-numeric: tabular-nums;
}

.karte__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid var(--papier-text);
}

@media (min-width: 900px) {
  .gruppe {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
  }

  .gruppe__kopf {
    grid-column: 1 / 5;
  }

  .gruppe__kopf-innen {
    position: sticky;
    top: calc(var(--kopf) + 32px);
  }

  .gruppe__bild {
    display: block;
    width: min(100%, 300px);
    margin-top: 32px;
  }

  .gruppe__liste {
    grid-column: 6 / 13;
  }
}

/* ---------- Das Haus ---------- */

.haus .huelle {
  display: grid;
  gap: 40px;
}

.haus__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.haus__text p {
  max-width: 40ch;
  color: var(--ivory-leise);
}

.haus__weit img {
  width: 100%;
}

.haus__detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.haus__satz {
  font-size: clamp(1.75rem, 2.6vw + 0.5rem, 3rem);
  font-weight: 290;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .haus .huelle {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    row-gap: clamp(64px, 8vw, 120px);
  }

  .haus__text {
    grid-column: 1 / 5;
    align-self: end;
  }

  .haus__weit {
    grid-column: 6 / 13;
    margin-right: calc((var(--rand) + var(--aussen)) * -1);
  }

  .haus__detail {
    grid-column: 2 / 6;
  }

  .haus__satz {
    grid-column: 7 / 12;
    align-self: center;
  }
}

/* ---------- Besuch ---------- */

.besuch .huelle {
  display: grid;
  gap: 40px;
}

.besuch__bild img {
  width: 100%;
}

.besuch__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.besuch__spalten {
  display: grid;
  gap: 28px;
}

.besuch__spalten h3 {
  margin-bottom: 8px;
  color: var(--papier-leise);
}

.besuch address {
  font-style: normal;
}

.zeiten {
  display: grid;
  max-width: 20rem;
  grid-template-columns: auto 1fr;
  gap: 2px 20px;
  font-variant-numeric: tabular-nums;
}

.zeiten dd {
  text-align: right;
}

.besuch a:not(.knopf) {
  text-decoration-color: var(--linie-hell);
}

.besuch a:not(.knopf):hover {
  text-decoration-color: currentColor;
}

.besuch .knopf {
  align-self: flex-start;
}

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

@media (min-width: 900px) {
  .besuch .huelle {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: center;
  }

  .besuch__bild {
    grid-column: 1 / 7;
    margin-left: calc((var(--rand) + var(--aussen)) * -1);
  }

  .besuch__text {
    grid-column: 8 / 13;
  }

  .besuch__spalten {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .besuch__spalten {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Fußzeile ---------- */

.fuss {
  padding-block: 56px 40px;
  border-top: 1px solid var(--linie-dunkel);
  font-size: 0.875rem;
  color: var(--ivory-leise);
}

.fuss .huelle {
  display: grid;
  gap: 28px;
}

.fuss__zeichen {
  width: 44px;
  color: var(--ivory);
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.fuss a {
  text-decoration-color: var(--linie-dunkel);
}

.fuss a:hover {
  color: var(--ivory);
  text-decoration-color: currentColor;
}

@media (min-width: 900px) {
  .fuss .huelle {
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 40px;
  }
}

/* ---------- Rechtstexte und Fehlerseite ---------- */

.rechtstext {
  max-width: 68ch;
  padding-block: clamp(56px, 8vw, 104px);
}

.rechtstext h1 {
  margin-bottom: 40px;
  font-size: clamp(2.25rem, 3.4vw + 0.6rem, 3.5rem);
  font-weight: 290;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rechtstext h2 {
  margin: 40px 0 10px;
  font-size: 1.1875rem;
  font-weight: 520;
}

.rechtstext p,
.rechtstext ul {
  margin-bottom: 14px;
  color: var(--ivory-leise);
}

.rechtstext ul {
  padding-left: 1.2em;
  list-style: disc;
}

.rechtstext strong {
  color: var(--ivory);
  font-weight: 520;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.gruppe__bild img {
  width: 100%;
}

.rechtstext a:not(.knopf) {
  text-decoration-color: var(--linie-dunkel);
}

.rechtstext .knopf {
  margin-top: 16px;
}

.ohne-umbruch {
  white-space: nowrap;
}
