/* Fransen Friseurstudio – Konzeptprojekt von Atilla Okcan
   Ein Lookbook wie ein Modemagazin: Studioporträts vor Schwarz auf hellem Papier.
   Bricolage Grotesque für Masthead und Bedienung, Newsreader für Text. */

@font-face {
  font-family: "Fx Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Fx Newsreader";
  src: url("/fonts/newsreader-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --papier: #f4f4f2;
  --tinte: #0f0f0f;
  --grau: #6b6b68;
  --linie: #d7d6d2;
  --rot: #a8122b;
  --puder: #e9dad6;
  --pad: clamp(16px, 3.4vw, 48px);
  --sans: "Fx Bricolage", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fx Newsreader", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }
.fx-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tinte); color: var(--papier); padding: 10px 14px; font-family: var(--sans); }
.fx-skip:focus { top: 12px; }

.fx-h2 { font: 700 clamp(2.2rem, 5vw, 4.2rem)/.95 var(--sans); font-stretch: 78%; letter-spacing: -.02em; margin: 0; }
.fx-h3 { font: 600 1.05rem/1.2 var(--sans); margin: 0 0 10px; }
.fx-muted { color: var(--grau); }

.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 99px; border: 1px solid var(--tinte); text-decoration: none; cursor: pointer;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; transition: background-color .2s, color .2s, border-color .2s;
}
.fx-btn--ink { background: var(--tinte); color: var(--papier); }
.fx-btn--ink:hover { background: transparent; color: var(--tinte); }
.fx-btn--paper { background: var(--papier); color: var(--tinte); border-color: var(--papier); }
.fx-btn--paper:hover { background: transparent; color: var(--papier); }
.fx-btn--line { background: transparent; color: var(--tinte); }
.fx-btn--line:hover { background: var(--tinte); color: var(--papier); }
.fx-btn:disabled { opacity: .4; cursor: not-allowed; }
.fx-link { font: 600 .95rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; cursor: pointer; }
.fx-link--light { color: var(--papier); }

/* ------------------------------------------------------------ Kopf */
.fx-head {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 12px var(--pad); background: color-mix(in srgb, var(--papier) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie);
}
.fx-logo { font: 800 1.7rem/1 var(--sans); font-stretch: 75%; letter-spacing: -.03em; text-decoration: none; }
.fx-nav { display: flex; gap: 22px; font: 500 .95rem/1 var(--sans); margin-right: auto; }
.fx-nav a { text-decoration: none; }
.fx-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fx-status { display: inline-flex; align-items: center; gap: 8px; font: 500 .88rem/1.2 var(--sans); color: var(--grau); text-decoration: none; }
.fx-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grau); }
.fx-status[data-open="true"] .fx-status__dot, .fx-today[data-open="true"] .fx-status__dot { background: #2f8a4a; }
.fx-head__cta { min-height: 40px; padding: 0 18px; }

/* ------------------------------------------------------------ Cover */
.cover {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px;
  padding: 0 var(--pad) clamp(40px, 6vw, 80px); isolation: isolate; background: var(--papier);
}
.cover__mast {
  grid-column: 1 / -1; grid-row: 1; z-index: 2; margin: 0; pointer-events: none;
  font: 800 30vw/.74 var(--sans); font-stretch: 100%; letter-spacing: -.055em; font-optical-sizing: auto;
  color: #fff; mix-blend-mode: difference; padding-top: 1.2vw; margin-left: -.045em; white-space: nowrap;
}
.cover__photo { grid-column: 7 / -1; grid-row: 1 / 3; margin: 11vw 0 0; z-index: 1; background: #0b0b0b; }
.cover__img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.cover__lines { grid-column: 1 / 6; grid-row: 2; align-self: start; display: grid; gap: 26px; padding: 3vw 20px 0 0; }
.cover__issue { margin: 0; font: 500 .95rem/1.3 var(--sans); color: var(--grau); }
.cover__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cover__list a { display: block; text-decoration: none; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.32; max-width: 26ch; }
.cover__list strong { font: 700 1em/1 var(--sans); font-stretch: 85%; }
.cover__list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cover__lines .fx-btn { justify-self: start; }
.cover__visit { grid-column: 1 / 6; grid-row: 2; align-self: end; display: grid; gap: 2px; padding-top: 24px; border-top: 1px solid var(--tinte); max-width: 30ch; font: 500 .95rem/1.45 var(--sans); text-decoration: none; }
.cover__visit:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.cover__concept { grid-column: 1 / -1; margin: 22px 0 0; font: 400 .82rem/1.4 var(--sans); color: var(--grau); }

/* ------------------------------------------------------------ Lookbook */
.lookbook { padding: clamp(56px, 8vw, 110px) var(--pad); border-top: 1px solid var(--linie); }
.lookbook__head { display: flex; flex-wrap: wrap; align-items: end; gap: 18px 36px; margin-bottom: 36px; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; }
.filter button {
  min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--linie); background: transparent;
  font: 600 .95rem/1 var(--sans); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.filter button:hover { border-color: var(--tinte); }
.filter button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.lookbook__note { margin: 0 0 0 auto; font: 500 .9rem/1 var(--sans); color: var(--grau); }

.looks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 20px; grid-auto-flow: row dense; }
.look { grid-column: span 2; margin: 0; }
.look.g-wide { grid-column: span 3; }
.look.g-land { grid-column: span 4; }
.look[hidden] { display: none; }
.lookbook__more { display: flex; justify-content: center; margin-top: clamp(34px, 5vw, 56px); }
.lookbook__more[hidden] { display: none; }
.lookbook__more span { margin-left: 6px; font-weight: 400; color: var(--grau); }
.look__open { display: block; width: 100%; padding: 0; border: 0; background: #0b0b0b; cursor: zoom-in; overflow: hidden; }
.look__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.g-land .look__img { aspect-ratio: 3 / 2; }
.g-wide .look__img { aspect-ratio: 5 / 6; }
.look__open:hover .look__img { transform: scale(1.025); }
.look__cap { margin: 10px 0 0; font: 500 .92rem/1.35 var(--sans); }
.look__cat { color: var(--grau); margin-right: 6px; }
.look[data-cat="farbe"] .look__cat { color: var(--rot); }

/* ------------------------------------------------------------ Leistungen */
.services { padding: clamp(56px, 8vw, 110px) var(--pad); background: #ebeae6; }
.services__intro { max-width: 52ch; margin: 18px 0 44px; }
.services__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.svc-group__title { font: 700 1.5rem/1 var(--sans); font-stretch: 80%; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--tinte); }
.svc-group__title:not(:first-child) { margin-top: 36px; }
.svc { margin: 0; }
.svc div { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.svc dt { font: 600 1.02rem/1.3 var(--sans); }
.svc__desc { grid-column: 1; margin: 0; font-size: .97rem; color: var(--grau); line-height: 1.45; }
.svc__time { grid-column: 2; grid-row: 1; margin: 0; font: 500 .92rem/1.3 var(--sans); white-space: nowrap; }

/* ------------------------------------------------------------ Studio */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: clamp(56px, 8vw, 110px) var(--pad); align-items: start; }
.studio figure { margin: 0; }
.studio__main { grid-column: 1 / 6; grid-row: 1 / 3; }
.studio__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.studio__text { grid-column: 7 / -1; }
.studio__text > p { max-width: 46ch; font-size: 1.15rem; }
.studio__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.hours { margin: 0; font: 400 .97rem/1.3 var(--sans); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.hours dd { margin: 0; }
.hours div[aria-current] { font-weight: 700; }
.hours div[aria-current] dt::after { content: " (heute)"; font-weight: 400; color: var(--grau); }
.studio__block p { margin: 0 0 10px; }
.studio__d1 { grid-column: 7 / 10; grid-row: 2; margin-top: 30px !important; }
.studio__d2 { grid-column: 10 / -1; grid-row: 2; margin-top: 90px !important; }
.studio__detail { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ------------------------------------------------------------ Terminwunsch */
.termin { background: var(--tinte); color: var(--papier); padding: clamp(56px, 8vw, 110px) var(--pad); }
.termin__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: end; margin-bottom: 44px; }
.termin__demo { margin: 0; max-width: 48ch; color: #c9c8c4; font-size: 1rem; }
.termin__badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 99px; background: var(--rot); color: #fff; font: 700 .8rem/1.3 var(--sans); }
.wish { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.wish__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wish__step legend, .wish__sumtitle { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 16px; font: 700 1.15rem/1.2 var(--sans); }
.wish__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; font: 600 .85rem/1 var(--sans); }
.wish__opt { font-weight: 400; color: #9c9b97; font-size: .9rem; }
.wish__options { display: grid; gap: 6px; }
.opt { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 50px; padding: 10px 16px; border: 1px solid #3a3a38; border-radius: 12px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.opt:hover { border-color: #8a8985; }
.opt input, .chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt__name { font: 600 1rem/1.25 var(--sans); }
.opt__meta { font: 400 .88rem/1.2 var(--sans); color: #a9a8a4; white-space: nowrap; }
.opt:has(input:checked) { background: var(--papier); color: var(--tinte); border-color: var(--papier); }
.opt:has(input:checked) .opt__meta { color: var(--grau); }
.opt:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--papier); outline-offset: 3px; }
.wish__label { margin: 4px 0 8px; font: 500 .9rem/1 var(--sans); color: #a9a8a4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; min-width: 52px; justify-content: center; padding: 0 16px; border: 1px solid #3a3a38; border-radius: 99px; cursor: pointer; font: 600 .95rem/1 var(--sans); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: #8a8985; }
.chip:has(input:checked) { background: var(--papier); color: var(--tinte); border-color: var(--papier); }
.wish__hint { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid #e9a3ae; background: rgb(233 163 174 / .08); font: 400 .92rem/1.45 var(--sans); color: #f1c3ca; }
.wish__hint[hidden] { display: none; }
.wish__hint p { margin: 0; }
.wish__hint p + p { margin-top: 6px; color: #d6d5d1; }
.wish__hint strong { color: #fff; font-weight: 600; }
/* Auswahl, die nicht zu den Öffnungszeiten passt: rot umrandet und mit Hinweis darunter */
.chip[data-conflict] { border-color: #e9a3ae; box-shadow: 0 0 0 1px #e9a3ae; }
.chip[data-conflict]:has(input:checked) { background: #f3d4d9; color: var(--tinte); border-color: #f3d4d9; }
.chip[data-conflict] span::after { content: " !"; font-weight: 800; color: var(--rot); }
/* Mit der aktuellen Auswahl nicht möglich: bleibt wählbar, ist aber erkennbar */
.chip[data-unavailable] { border-style: dashed; color: #8b8a85; }
.chip[data-unavailable] span { text-decoration: line-through; text-decoration-thickness: 1px; }
/* Gewählter Look aus dem Lookbook */
.wish__look { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 4px 16px; margin: 0 0 14px; padding: 10px; border-radius: 12px; background: #1d1d1c; border: 1px solid #3a3a38; }
.wish__look[hidden] { display: none; }
.wish__look-thumb { grid-row: span 2; display: block; width: 72px; height: 90px; overflow: hidden; border-radius: 6px; background: #000; }
.wish__look-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.wish__look-text { min-width: 0; }
.wish__look-label { margin: 0 0 2px; font: 500 .82rem/1.2 var(--sans); color: #a9a8a4; }
.wish__look-title { margin: 0; font: 600 1rem/1.3 var(--sans); }
.wish__look-remove { justify-self: start; min-height: 32px; padding: 0; background: none; border: 0; color: #d6d5d1; font: 500 .88rem/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wish__look-remove:hover { color: #fff; }
.wish__look-remove:focus-visible { outline: 2px solid var(--papier); outline-offset: 3px; }
.wish__text[data-invalid] { font-size: 1.05rem; color: #f1c3ca; }
.wish__text-look { display: block; margin-top: 10px; font: 500 .98rem/1.4 var(--sans); color: #c9c8c4; }
.wish__summary { border-left: 1px solid #3a3a38; padding-left: 28px; }
.wish__text { font-size: 1.3rem; line-height: 1.45; margin: 0 0 22px; min-height: 4.4em; }
.wish__text strong { font-family: var(--sans); font-weight: 700; }
.wish__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.wish__status { min-height: 1.4em; margin: 12px 0 0; font: 500 .92rem/1.4 var(--sans); color: #c9c8c4; }
.wish__next { margin: 18px 0 0; font-size: .95rem; color: #9c9b97; max-width: 40ch; }

/* ------------------------------------------------------------ Fuß */
.fx-foot { padding: 36px var(--pad) 48px; font: 400 .92rem/1.5 var(--sans); }
.fx-foot__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.fx-foot__row p { margin: 0; }
.fx-foot__logo { font: 800 2.2rem/1 var(--sans); font-stretch: 75%; letter-spacing: -.03em; }
.fx-foot__row .fx-link { margin-left: auto; }
.fx-credits { margin-top: 24px; color: var(--grau); }
.fx-credits summary { cursor: pointer; font-weight: 600; color: var(--tinte); min-height: 32px; }
.fx-credits ul { columns: 2; padding-left: 18px; margin: 10px 0 0; }

/* ------------------------------------------------------------ Großansicht */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0b; color: var(--papier); }
.viewer::backdrop { background: rgb(0 0 0 / .7); }
.viewer__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; height: 100%; }
.viewer__fig { margin: 0; display: grid; place-items: center; padding: 64px 40px 40px; min-height: 0; touch-action: pan-y; }
.viewer__img { max-height: calc(100dvh - 104px); width: auto; max-width: 100%; object-fit: contain; }
.viewer__side { display: flex; flex-direction: column; gap: 14px; padding: 80px 36px 40px 0; }
.viewer__cat { margin: 0; font: 500 .9rem/1 var(--sans); color: #a9a8a4; }
.viewer__title { margin: 0; font: 700 2rem/1.05 var(--sans); font-stretch: 80%; }
.viewer__pos { margin: 0 0 12px; font: 400 .9rem/1 var(--sans); color: #8d8c88; }
.viewer__side .fx-btn { align-self: flex-start; }
.viewer__nav { display: flex; gap: 8px; margin-top: auto; }
.viewer__arrow, .viewer__close { min-width: 48px; min-height: 48px; border-radius: 99px; border: 1px solid #4a4a47; background: transparent; color: var(--papier); cursor: pointer; font: 600 1.1rem/1 var(--sans); }
.viewer__arrow:hover, .viewer__close:hover { border-color: var(--papier); }
.viewer__close { position: absolute; top: 16px; right: 16px; padding: 0 18px; font-size: .95rem; }
.viewer :focus-visible { outline-color: var(--papier); }

/* Bildwechsel und Filter: weiche Übergänge, sofern der Browser View Transitions kann */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

/* ------------------------------------------------------------ Mobil */
@media (max-width: 900px) {
  .fx-nav, .fx-status { display: none; }
  .fx-head { gap: 12px; justify-content: space-between; }
  .cover { grid-template-columns: 1fr; padding-top: 4px; }
  .cover__mast { font-size: 26.5vw; grid-row: 1; padding-top: 2vw; }
  .cover__photo { grid-column: 1; grid-row: 1 / 3; margin: 14vw 0 0; }
  .cover__img { aspect-ratio: 4 / 5; }
  .cover__lines { grid-column: 1; grid-row: 3; padding: 28px 0 0; }
  .cover__visit { grid-column: 1; grid-row: 4; margin-top: 30px; }
  .cover__list a { font-size: 1.15rem; }
  .fx-today { display: flex; }
  .looks { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .look, .look.g-wide { grid-column: span 1; }
  .look.g-land { grid-column: span 2; }
  .g-wide .look__img { aspect-ratio: 4 / 5; }
  .filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .filter button { flex: none; }
  .lookbook__note { margin-left: 0; }
  .services__groups { grid-template-columns: 1fr; gap: 0; }
  .svc-group__title, .svc-group__title:not(:first-child) { margin-top: 30px; }
  .studio { grid-template-columns: 1fr 1fr; }
  .studio__main { grid-column: 1 / -1; grid-row: auto; }
  .studio__text { grid-column: 1 / -1; }
  .studio__facts { grid-template-columns: 1fr; }
  .studio__d1 { grid-column: 1; grid-row: auto; margin-top: 0 !important; }
  .studio__d2 { grid-column: 2; grid-row: auto; margin-top: 40px !important; }
  .termin__head { grid-template-columns: 1fr; }
  .wish { grid-template-columns: 1fr; gap: 36px; }
  .wish__summary { border-left: 0; padding-left: 0; border-top: 1px solid #3a3a38; padding-top: 28px; }
  .fx-credits ul { columns: 1; }
  .fx-foot__row .fx-link { margin-left: 0; }
  .viewer__inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer__fig { padding: 64px 12px 8px; }
  .viewer__img { max-height: calc(100dvh - 260px); }
  .viewer__side { padding: 12px 16px 20px; gap: 8px; }
  .viewer__title { font-size: 1.5rem; }
  .viewer__nav { position: absolute; top: 12px; left: 12px; margin: 0; }
  .viewer__pos { margin: 0 0 6px; }
}

/* Heute-Zeile unter dem Kopf (nur mobil) */
@media (min-width: 901px) { .fx-today { display: none; } }
.fx-today { align-items: center; gap: 8px; padding: 8px var(--pad); font: 500 .85rem/1.2 var(--sans); color: var(--grau); border-bottom: 1px solid var(--linie); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; }
}
