/* Haarstilist Linnepe - Stylesheet */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost.woff2") format("woff2-variations"), url("/assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #181818;
  --line: #2a2a2a;
  --text: #ededed;
  --muted: #a3a3a3;
  --accent: #d9c9a3;
  --radius: 4px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 300; line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .18em; }
h3 { font-size: 1.15rem; font-weight: 400; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: .6em 1em; }
.skip-link:focus { top: 16px; }

.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin-bottom: 1em; }
.tag { color: var(--accent); margin-right: .8em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.text-link { font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); text-decoration: none; }
.text-link:hover { color: var(--text); }
.todo { background: #5a1d1d; color: #ffd7d7; padding: 0 .3em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.6em;
  font: inherit; font-size: .82rem; font-weight: 450; text-transform: uppercase; letter-spacing: .18em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid var(--text);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.btn-small { min-height: 40px; padding: .5em 1.1em; font-size: .74rem; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: 0 0 auto; margin-right: auto; }
.brand-logo { width: 170px; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .8rem; text-transform: uppercase; letter-spacing: .2em; text-decoration: none; color: var(--muted); padding: .5em 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 130px; }
  .header-inner { gap: 12px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav a { display: block; padding: 14px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
}

/* Hinweis-Leiste (z. B. Betriebsferien) */
.notice { background: var(--accent); color: #111; font-size: .95rem; }
.notice-inner { display: flex; flex-wrap: wrap; gap: .3em 1.2em; align-items: center; justify-content: center; padding-block: .7em; text-align: center; }
.notice p { margin: 0; }
.notice a { font-weight: 500; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.75) 45%, var(--bg) 85%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
/* Text sitzt rechts im Inhaltsbereich: links bleibt mind. 40 % frei für die Kugel, die Textspalte ist max. 560 px breit */
.hero-content { padding-block: 80px; display: grid; grid-template-columns: minmax(40%, 1fr) minmax(0, 560px); }
.hero-content > * { grid-column: 2; justify-self: start; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.hero h1 .eyebrow { display: block; font-weight: 350; line-height: 1.65; }
@media (min-width: 761px) and (max-width: 1100px) { .hero-bg picture img { object-position: 34% 50%; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1em; }
.hero-status { margin: 1.4em 0 0; font-size: .9rem; color: var(--muted); min-height: 1.5em; }
.hero-status::before, .hours-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .6em; background: var(--muted); vertical-align: middle; }
.is-open::before { background: #6fcf8a !important; }
.hero-status:empty::before, .hours-status:empty::before { display: none; }

@media (max-width: 760px) {
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-bg { position: relative; height: 46vw; min-height: 200px; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 60%); }
  .hero-content { padding: 8px var(--gutter) 56px; grid-template-columns: minmax(0, 1fr); }
  .hero-content > * { grid-column: 1; }
  .hero-actions { justify-self: stretch; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.leistungen { padding-bottom: 0; }
.leistungen .lead { margin-bottom: 0; }
.page-top { padding-top: clamp(40px, 6vw, 80px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Cards */
.card-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 40px; }
.section-head + .card-grid { margin-top: 0; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: #000; }
.card-media picture { height: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; }
.card-body .eyebrow { margin-bottom: .6em; font-size: .72rem; }
.card-body h3 { margin-bottom: .3em; font-size: 1.25rem; }
.card-body p:last-child { margin: 0; color: var(--muted); font-size: .95rem; }

/* Team */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 24px; grid-template-columns: repeat(4, 1fr); text-align: center; }
.team-member img { width: min(100%, 220px); margin: 0 auto 20px; border-radius: 50%; filter: grayscale(1); transition: filter .4s; }
.team-member:hover img { filter: grayscale(0); }
.team-member h3 { margin-bottom: .1em; }
.team-member p { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .16em; margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* Kontakt */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.contact-address { font-style: normal; margin: 2em 0 1em; font-size: 1.1rem; }
.contact-links { list-style: none; padding: 0; margin: 0 0 2em; }
.contact-links li { padding: .35em 0; }
.hours { background: var(--surface); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.hours h3 { text-transform: uppercase; letter-spacing: .2em; font-size: .9rem; margin-bottom: 1.2em; }
.hours dl { margin: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: .75em 0; border-bottom: 1px solid var(--line); }
.hours-row dd { margin: 0; color: var(--muted); text-align: right; }
.hours-row.is-today dt, .hours-row.is-today dd { color: var(--text); font-weight: 450; }
.hours-status { margin: 1.2em 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Beiträge & Textseiten */
.post { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.post-header h1 { margin-bottom: .3em; }
.post-image { margin: 32px 0 40px; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.15rem; margin-top: 2em; letter-spacing: .14em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.prose strong { font-weight: 500; }
.prose small { color: var(--muted); }
.post-footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-crest { width: 56px; opacity: .85; }
.footer-address { font-style: normal; }
.footer-address strong { color: var(--text); font-weight: 400; }
.footer-social, .footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-social a { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; text-decoration: none; }
.footer-social a:hover { color: var(--text); }
.footer-copy { margin: 0; font-size: .8rem; }

/* Einwilligungs-Banner */
.consent { position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.6); font-size: .92rem; color: var(--muted); }
.consent-title { color: var(--text); font-size: 1.05rem; margin-bottom: .4em; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.consent-actions .btn { flex: 1 1 160px; }

/* Produkte (Eigenmarke) */
.products-head { display: block; max-width: 640px; }
.products-head h2 { margin-bottom: .4em; text-transform: none; letter-spacing: .06em; font-size: clamp(2rem, 4.5vw, 3rem); }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.product { text-align: center; }
.product-media {
  aspect-ratio: 3 / 4; display: grid; place-items: center; margin-bottom: 20px;   /* Format der Produktfotos */
  background: radial-gradient(ellipse at 50% 35%, #1f1f1f 0%, var(--surface) 55%, #111 100%);
  border-radius: var(--radius); overflow: hidden; color: #8a8a8a; transition: color .3s;
}
.product:hover .product-media { color: var(--accent); }
.product-media picture, .product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-icon { width: 46%; height: auto; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--accent); margin-bottom: .4em; }
.product h3 { margin-bottom: .3em; }
.product-desc { color: var(--muted); font-size: .95rem; max-width: 30ch; margin-inline: auto; }

/* ×-Symbol zum Schließen des Buchungsfensters (liegt über dem Widget) */
.booking-close {
  position: fixed; z-index: 2147483647; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0;
  background: rgba(20, 20, 20, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  cursor: pointer; transition: background .2s;
}
.booking-close:hover { background: #000; border-color: #fff; }
.booking-close[hidden] { display: none; }

/* Buchungs-Widget (joecash/besdi) im Stil der Website: schwarz-weiß wie das linnepe-Etikett, Schrift Jost.
   Überschreibt nur die Design-Variablen des Anbieters (doppelte ID = höhere Priorität als dessen Stylesheet). */
#seres-wrapper#seres-wrapper, #seres-wrapper#seres-wrapper [data-theme] {
  --font-body: "Jost", system-ui, sans-serif;
  --font-brand: "Jost", system-ui, sans-serif;
  /* Türkis-Palette des Anbieters -> Schwarz/Grau */
  --mint-bright: #3a3a3a; --mint-bold: #141414; --mint-dark: #141414;
  --mint-50: #f4f3f0;
  --mint-100: #d7ecd3;   /* „frei“: Kalendertage, Uhrzeiten und Legende mit freien Terminen - leichtes Grün */
  --mint-200: #cfccc5; --mint-300: #a9a6a0; --mint-400: #85827c;
  --mint-500: #3a3a3a; --mint-600: #262626; --mint-700: #141414; --mint-800: #111; --mint-900: #0d0d0d; --mint-950: #1e1e1e;
  --accent: #141414; --accent-hover: #333; --accent-active: #000; --accent-contrast: #fff;
  --accent-text: #141414; --accent-tint: #f3f1ec; --accent-ring: #141414;
  --shadow-accent: 0 2px 8px rgba(0, 0, 0, .18);
  /* Hinweisbox „Haben Sie bereits ein Konto?“ neutral statt gelb */
  --state-warning-subtle: #f5f3ee; --state-warning-border: #e4dfd3; --state-warning-icon: #8a7650; --state-warning-text: #3b352a;
  --scrim: rgba(0, 0, 0, .7);
}
#seres-wrapper#seres-wrapper.seres-modal { background-color: rgba(0, 0, 0, .72); }
#seres-wrapper#seres-wrapper #seres-container { border-radius: 4px; }
#seres-wrapper#seres-wrapper .seres-button { border-radius: 4px !important; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
#seres-wrapper#seres-wrapper #seres-wizard-toolbar-top .seres-indicator { border-radius: 4px !important; letter-spacing: .03em; }
/* Kalender: bestehende Buchungen champagner statt hellblau */
#seres-wrapper#seres-wrapper .seres-calendar-timepicker-slot[data-booking=true],
#seres-wrapper#seres-wrapper .seres-calendar-picker-legend-item-booking div { background-color: #e9e1cc !important; }
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .product-media { margin-bottom: 14px; }
  .product h3 { font-size: 1rem; }
  .product-desc { font-size: .85rem; line-height: 1.5; }
}

/* AirFlow-Video auf der Startseite */
.airflow-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.4fr 1fr; align-items: center; }
.airflow-media { margin: 0; }
.airflow-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #aaa6a0; }
.airflow-media figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.airflow-text h2 { text-transform: none; letter-spacing: .06em; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4em; }
.airflow-text .btn { margin-top: .6em; }
@media (max-width: 900px) { .airflow-grid { grid-template-columns: 1fr; } }

/* Bildergalerie unter einem Beitrag */
.post-gallery { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.post-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .post-gallery { grid-template-columns: 1fr; } }
