/* TerminOrt – öffentliches Verzeichnis. Richtung "Wartenummer": Thermopapier,
   schwarze Tinte, ein Rot. Ziffern in Big Shoulders Display, Wörter in Archivo.
   Kein JavaScript; hell als Standard, dunkel über prefers-color-scheme.
   Hauptseite und "Für Salons" sind immer hell (html.light): ihre
   Bildschirmfotos und der schwarze Block brauchen das helle Papier. */

@font-face {
  font-family: "Archivo";
  src: url("/site-assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Archivo";
  src: url("/site-assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/site-assets/fonts/bigshoulders-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4f4f2;
  --sheet: #ffffff;
  --ink: #111111;
  --soft: #5e5e5a;
  --line: #d9d9d4;
  --red: #d7261e;
  --red-fill: #d7261e;
  --red-fill-hover: #bd1f18;
  --shell: #111111;
  --shell-line: #111111;
  --shell-soft: #a9a9a4;
  --green: #1e7a46;
  --ticket-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgb(0 0 0 / 0.35);
  --r: 4px;
  --page: 20px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --paper: #121211;
    --sheet: #1e1e1c;
    --ink: #f2f2ee;
    --soft: #a3a39c;
    --line: #33332f;
    --red: #ff5a4f;
    --shell: #000000;
    --shell-line: #33332f;
    --green: #4cc38a;
    --ticket-shadow: 0 0 0 1px var(--line);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) transparent;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
address {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
address {
  font-style: normal;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 4px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}
.soft {
  color: var(--soft);
}
.small {
  font-size: 13px;
  line-height: 1.35;
}
/* Ziffern-Regel: diese Schrift steht nur für Ziffern. */
.num {
  font: 900 40px/0.9 "Big Shoulders Display", "Archivo", sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* Ziffern, Uhrzeiten und Preise stehen in JEDER Sprache in lateinischen Ziffern
   und laufen immer von links nach rechts — auch auf einer arabischen oder
   persischen Seite ("09:00–18:00" bleibt so stehen). */
.num,
.times {
  direction: ltr;
  unicode-bidi: isolate;
}
.num.time {
  font-size: 56px;
}
.num.mid {
  font-size: 28px;
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: var(--page);
  top: -80px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ---- Leiste oben und unten: schwarz, flach, roter Marker ---- */
.bar {
  background: var(--shell);
  color: #ffffff;
  border-bottom: 1px solid var(--shell-line);
}
.bar-in {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 1080px;
  min-height: 62px;
  margin: 0 auto;
  padding: 0 var(--page);
}
.brand {
  display: flex;
  align-items: center;
  margin-inline-end: auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bar nav ul {
  display: flex;
  height: 100%;
}
.bar nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  height: 100%;
  padding: 0 14px;
  color: var(--shell-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.bar nav a:hover,
.bar nav a[aria-current] {
  color: #ffffff;
}
.bar nav a[aria-current]::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 22%;
  width: 56%;
  height: 4px;
  background: var(--red-fill);
}
.bar :focus-visible {
  outline-color: #ffffff;
  outline-offset: -4px;
}
.foot {
  margin-top: auto;
  border-bottom: 0;
  border-top: 1px solid var(--shell-line);
}
.foot .bar-in {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--shell-soft);
  font-size: 14px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #ffffff;
}
.foot p {
  margin-inline-end: auto;
}

/* ---- Seite ---- */
main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px var(--page) 72px;
}
.crumbs {
  margin-bottom: 20px;
  color: var(--soft);
  font-size: 13px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}
.crumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
}
.crumbs li {
  display: flex;
  align-items: baseline;
}
/* Links und der letzte (nicht verlinkte) Eintrag stehen auf einer Grundlinie. */
.crumbs a,
.crumbs span {
  display: inline-block;
  padding: 6px 0;
}
.lead {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 17px;
}
.count {
  margin-top: 8px;
}

/* ---- Buttons: genau drei Arten ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 120ms var(--ease),
    background-color 140ms var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--red-fill);
  color: #ffffff;
}
.btn.primary:hover {
  background: var(--red-fill-hover);
}
.btn.outline {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.text {
  padding: 8px 4px;
}
.btn.text:hover,
.btn.outline:hover {
  text-decoration: underline;
}

/* ---- Haarlinien-Zeilen (keine Karten) ---- */
.rows {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row-num {
  flex: none;
  width: 86px;
}
.row-num small,
.row-end small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font: 600 12px/1.2 "Archivo", system-ui, sans-serif;
}
/* Leistungen: die Dauer kann eine Spanne sein ("60–90") — die Spalte ist so
   breit, dass sie hineinpasst, ohne den Namen zu berühren. */
.svc .row-num {
  width: 132px;
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.row-end {
  flex: none;
  text-align: end;
}
/* Die ganze Zeile ist das Ziel. */
.rowlink {
  text-decoration: none;
}
.rowlink::after {
  content: "";
  position: absolute;
  inset: 0;
}
.rowlink:focus-visible {
  outline: none;
}
.rowlink:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.row:has(.rowlink):hover .row-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.row.today .row-title::after {
  content: " · heute";
  color: var(--soft);
  font-weight: 400;
}
.times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 12px;
}
.empty {
  padding: 20px 0;
  color: var(--soft);
}

/* ---- Auswahlzellen (Kategorie-Filter, Seiten) ---- */
.cells {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cell:hover {
  border-color: var(--ink);
}
.cell[aria-current] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.pager {
  justify-content: space-between;
  margin-top: 24px;
}

/* ---- Ticket: die Signaturform ---- */
.ticket {
  border-radius: var(--r);
  background: var(--sheet);
  box-shadow: var(--ticket-shadow);
}
.ticket-up {
  padding: 24px;
}
.ticket-up h1 {
  font-size: 30px;
}
.ticket-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ticket-head > div {
  flex: 1;
  min-width: 0;
}
.logo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--r);
  object-fit: cover;
  background: var(--paper);
}
.ticket-up address {
  margin-top: 8px;
}
.now {
  margin-top: 24px;
}
.now small {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.now .num {
  display: inline-block;
  margin-inline-end: 14px;
}
.now-closed {
  font-size: 20px;
  font-weight: 700;
}
.tear {
  position: relative;
  border-top: 2px dashed var(--line);
}
.tear::before,
.tear::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
}
.tear::before {
  left: -8px;
}
.tear::after {
  right: -8px;
}
.ticket-stub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  padding: 16px 24px;
}
.ticket-stub > .btn {
  margin-inline-start: auto;
}
.stamp {
  display: inline-block;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transform: rotate(-3deg);
}
.cover {
  width: 100%;
  max-height: 320px;
  margin-bottom: 20px;
  border-radius: var(--r);
  object-fit: cover;
}
.rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
}
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
  font-weight: 600;
}
.about {
  max-width: 62ch;
  margin-top: 8px;
  white-space: pre-line;
}
/* Pflicht-Kennzeichnung einer Hervorhebung ("Empfohlen" / "Anzeige"). */
.mark {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal {
  max-width: 68ch;
}
.legal h2 {
  margin-top: 32px;
}
.legal h3 {
  margin-top: 24px;
  margin-bottom: 4px;
  font-size: 17px;
}
.legal p,
.legal ul {
  margin-top: 12px;
  white-space: pre-line;
}
.legal ul {
  padding-inline-start: 20px;
  list-style: disc;
}
/* Im Admin-Panel veröffentlichte Fassung (fertiges HTML): Umbrüche stehen
   schon als <br> im Text. */
.legal-md p,
.legal-md ul,
.legal-md ol {
  margin-top: 12px;
  white-space: normal;
}
.legal-md ol {
  padding-inline-start: 22px;
  list-style: decimal;
}
.legal-md h4 {
  margin-top: 20px;
  margin-bottom: 2px;
  font-size: 15px;
}
.legal-md a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.legal-stand {
  margin-top: 32px;
  font-size: 14px;
  color: var(--soft);
}
.maplink {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 0;
  font-weight: 600;
}
.split > * + * {
  margin-top: 8px;
}
.home-top {
  display: grid;
  gap: 24px;
}
.home-top .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  main {
    padding-top: 48px;
  }
  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0 56px;
    align-items: start;
  }
  .split > * + * {
    margin-top: 0;
  }
  .split h2:first-child {
    margin-top: 0;
  }
  .split > section:first-child h2:first-of-type {
    margin-top: 40px;
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 30px;
  }
  .ticket-up {
    padding: 20px;
  }
  .ticket-up h1 {
    font-size: 26px;
  }
  .ticket-stub {
    padding: 16px 20px;
  }
  .ticket-stub > .btn {
    flex: 1 1 100%;
    margin-inline-start: 0;
  }
  .num.time {
    font-size: 48px;
  }
  .row-num {
    width: 68px;
  }
  .svc .row-num {
    width: 104px;
  }
  .svc .row-num .num {
    font-size: 32px;
  }
  .bar nav a {
    padding: 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
}
@media print {
  .bar,
  .skip {
    display: none;
  }
}

/* ---- Sprachen ----
   Archivo hat nur lateinische Zeichen. Für Arabisch, Persisch und Chinesisch
   übernimmt die Systemschrift des Geräts (keine mitgelieferte Schrift: eine
   chinesische wäre mehrere Megabyte groß). Die Ziffernschrift bleibt. */
:lang(ar),
:lang(fa) {
  font-family: "Archivo", "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  /* Verbundene Schrift: kein Sperren, kein Stauchen — sonst reißen die Buchstaben auseinander. */
  letter-spacing: 0;
}
:lang(zh-Hans) {
  font-family: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}
/* Arabische und persische Zeichen haben hohe Ober- und Unterlängen: mehr
   Zeilenhöhe, damit nichts abgeschnitten wird. */
html:lang(ar) body,
html:lang(fa) body {
  line-height: 1.7;
}
html:lang(ar) :is(h1, h2, h3, .row-title, .btn, .stamp, .mark, .small, small),
html:lang(fa) :is(h1, h2, h3, .row-title, .btn, .stamp, .mark, .small, small) {
  line-height: 1.6;
  letter-spacing: 0;
}
html:lang(zh-Hans) :is(h1, h2, h3, .row-title) {
  line-height: 1.35;
  letter-spacing: 0;
}
/* Die Ziffernschrift behält in jeder Sprache ihre enge Zeile. */
html[lang] .num {
  font-family: "Big Shoulders Display", "Archivo", sans-serif;
  line-height: 0.9;
}
html:lang(ar) :is(.row-num, .row-end) small,
html:lang(fa) :is(.row-num, .row-end) small {
  font-family: inherit;
  line-height: 1.6;
}
html:lang(zh-Hans) :is(.row-num, .row-end) small {
  font-family: inherit;
}
/* Sprachwahl in der Fußzeile: jede Sprache in ihrem eigenen Namen. */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  flex: 1 1 100%;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--shell-line);
}
.langs a {
  min-height: 44px;
  font-size: 14px;
}
.langs a[aria-current] {
  font-weight: 700;
  text-decoration: underline;
}
/* Hinweis auf einer Rechtsseite ("nur auf Deutsch", "Übersetzung noch nicht aktuell"). */
.legal-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
}

/* ==== Kopfzeile, Fußzeile ==== */
:root {
  --gut: clamp(20px, 5.5vw, 80px);
  --shadow-big: 0 1px 0 var(--line), 0 24px 50px -30px rgb(0 0 0 / 0.35);
  --device-shadow: 0 40px 70px -34px rgb(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --shadow-big: 0 0 0 1px var(--line);
    --device-shadow: 0 0 0 1px #33332f;
  }
}
.top {
  position: relative;
  z-index: 3;
  background: var(--shell);
  color: #ffffff;
  border-bottom: 1px solid var(--shell-line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: 76px;
  padding: 0 var(--gut);
}
.top .brand {
  margin: 0;
  font-size: 24px;
  color: #ffffff;
}
.top a,
.top summary {
  color: var(--shell-soft);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.top-nav {
  display: flex;
  margin-inline-start: auto;
  gap: clamp(14px, 2.4vw, 34px);
}
.top-nav a,
.top summary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.top a:hover,
.top summary:hover,
.top a[aria-current] {
  color: #ffffff;
}
.top :focus-visible {
  outline-color: #ffffff;
}
.top .top-login {
  padding: 11px 20px;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1.5px #ffffff;
  color: #ffffff;
  white-space: nowrap;
}
.top .top-cta {
  padding: 12.5px 22px;
  border-radius: var(--r);
  background: var(--red-fill);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 140ms var(--ease);
}
.top .top-cta:hover {
  background: var(--red-fill-hover);
}
/* Aufklapp-Listen ohne JavaScript (Sprache, Menü). */
.drop {
  position: relative;
}
.drop summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.drop summary::-webkit-details-marker {
  display: none;
}
.drop summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 9px;
  margin-top: -4px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.drop[open] summary {
  color: #ffffff;
}
.drop ul {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #33332f;
  border-radius: var(--r);
  background: #111111;
}
.drop li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 3px;
  color: #ffffff;
}
.drop li a:hover,
.drop li a[aria-current] {
  background: #2a2a27;
}
.menu {
  display: none;
}
@media (max-width: 1020px) {
  .top-nav,
  .top .lang,
  .top .top-login {
    display: none;
  }
  .menu {
    display: block;
    position: static;
  }
  .menu ul {
    top: 100%;
    inset-inline: 0;
    border-radius: 0;
    border-inline: 0;
    padding: 8px var(--gut) 14px;
  }
  .top-in {
    min-height: 64px;
    gap: 12px;
  }
  .top .top-cta {
    margin-inline-start: auto;
    padding: 11px 14px;
    font-size: 15px;
  }
  .top .brand {
    font-size: 21px;
  }
}
@media (max-width: 380px) {
  .top .top-cta {
    padding: 10px 11px;
    font-size: 14px;
  }
}

.sfoot {
  margin-top: auto;
  padding: clamp(36px, 4.2vw, 60px) var(--gut);
  background: var(--shell);
  color: var(--shell-soft);
  font-size: 16px;
}
.sfoot-wide {
  margin-top: clamp(72px, 9vw, 130px);
}
.sfoot-wide.flush {
  margin-top: 0;
}
.sfoot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(20px, 2.8vw, 40px);
}
.sfoot b {
  margin-inline-end: auto;
  color: #ffffff;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sfoot a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--shell-soft);
  text-decoration: none;
}
.sfoot a:hover,
.sfoot a[aria-current] {
  color: #ffffff;
}
.sfoot :focus-visible {
  outline-color: #ffffff;
}
.sfoot-line {
  margin-top: 18px;
  max-width: 70ch;
  font-size: 14px;
}
.sfoot .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  width: auto;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #33332f;
  font-size: 14px;
}
.sfoot .langs a {
  color: var(--shell-soft);
}
.sfoot .langs a[aria-current] {
  color: #ffffff;
  text-decoration: underline;
}

/* ==== Verzeichnis-Zeilen: Logo oder Initial, Stempel ==== */
.lg {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
  font-size: 24px;
  font-weight: 700;
  object-fit: cover;
}
.stamp.sm {
  flex: none;
  position: relative;
  z-index: 1;
  padding: 3px 8px;
  font-size: 12px;
}
.stamp.line {
  background: var(--sheet);
  color: var(--ink);
  border-width: 2.5px;
  padding: 8px 14px;
  font-size: clamp(15px, 1.3vw, 19px);
}
.stamp.xl {
  padding: 8px 14px;
  font-size: clamp(16px, 1.7vw, 24px);
}

/* ==== Hauptseite und "Für Salons" ==== */
main.wide {
  max-width: none;
  padding: 0;
}
.wide h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.wide h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.08;
}
.sec {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(64px, 8.3vw, 120px) var(--gut) 0;
}
.btn.big {
  min-height: clamp(54px, 4.5vw, 64px);
  padding: 8px clamp(22px, 2.4vw, 34px);
  font-size: clamp(17px, 1.4vw, 20px);
}
.btn.white {
  background: #ffffff;
  color: #111111;
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: clamp(28px, 2.8vw, 40px);
}

/* Suchleiste für Kunden: ein echtes GET-Formular. */
.band {
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.band form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 18px var(--gut);
}
.band b {
  margin-inline-end: auto;
  font-size: 19px;
}
.band select,
.band .go {
  min-height: 50px;
  border-radius: var(--r);
  font: inherit;
  font-size: 17px;
}
.band select {
  width: 230px;
  max-width: 100%;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
}
.band .go {
  padding: 0 24px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.band .go:active {
  transform: scale(0.97);
}

.hero {
  padding: clamp(44px, 6.2vw, 90px) var(--gut) 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(56px, 10.4vw, 150px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
}
.hero h1 .red {
  color: var(--red);
}
.hero > p {
  max-width: 820px;
  margin: clamp(20px, 2.1vw, 30px) auto 0;
  font-size: clamp(18px, 1.75vw, 25px);
}
.hero .acts {
  justify-content: center;
}

/* Geräte: Rahmen in CSS, darin echte Bildschirmfotos. */
.phone {
  display: block;
  flex: none;
  width: var(--pw);
  aspect-ratio: 300 / 620;
  padding: calc(var(--pw) * 0.033);
  border-radius: calc(var(--pw) * 0.133);
  background: #111111;
  box-shadow: var(--device-shadow);
}
.phone picture,
.tv picture {
  display: block;
  height: 100%;
}
.phone img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--pw) * 0.103);
  object-fit: cover;
  object-position: top center;
}
.tv {
  display: block;
  flex: none;
  width: var(--tw);
  aspect-ratio: 16 / 9;
  border: calc(var(--tw) * 0.023) solid #111111;
  border-radius: calc(var(--tw) * 0.019);
  background: #111111;
  box-shadow: var(--device-shadow);
  overflow: hidden;
}
.tv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.devices {
  --pw: clamp(150px, 20.8vw, 300px);
  --tw: calc(var(--pw) * 1.733);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: calc(var(--pw) * 0.087);
  height: calc(var(--pw) * 1.87);
  margin-top: clamp(40px, 4.9vw, 70px);
  overflow: hidden;
  direction: ltr;
}
.devices > div {
  flex: none;
}
.devices .d1 {
  margin-bottom: calc(var(--pw) * -0.4);
}
.devices .d2 {
  margin-bottom: calc(var(--pw) * -0.2);
}
.devices .dm {
  margin-bottom: calc(var(--pw) * 0.5);
}
.devices.low {
  margin-top: clamp(64px, 8.3vw, 120px);
}

/* Vorteile: rote Ziffer, Text, zwei überlappende Geräte. */
.feat {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6.25vw, 90px);
  margin-top: clamp(56px, 7.6vw, 110px);
}
.feat.rev {
  flex-direction: row-reverse;
}
.feat .t {
  flex: 1;
  min-width: 0;
}
.feat .big {
  font-size: clamp(120px, 13.9vw, 200px);
  line-height: 0.86;
  color: var(--red);
}
.feat h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.6vw, 52px);
}
.feat p {
  max-width: 520px;
  margin-top: 18px;
  font-size: clamp(17px, 1.53vw, 22px);
}
.feat ul {
  max-width: 520px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.feat li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 600;
}
.vis {
  --vw: min(600px, 41.6vw);
  --pw: calc(var(--vw) / 2);
  --tw: var(--vw);
  flex: none;
  position: relative;
  width: var(--vw);
  height: calc(var(--vw) * 1.1);
  /* Das Innere bleibt in jeder Sprache gleich angeordnet (wie die
     Gerätereihe): nur die Spalten von .feat spiegeln sich. */
  direction: ltr;
}
.vis > * {
  position: absolute;
}
.vis > .phone:nth-child(1) {
  inset-inline-start: 6.7%;
  top: 3%;
}
.vis > .phone:nth-child(2) {
  inset-inline-start: 48.3%;
  top: 9.1%;
}
.vis > .stamp {
  inset-inline-start: 38%;
  top: 50%;
}
.vis.mon > .tv {
  inset-inline-start: 0;
  top: 9.1%;
}
.vis.mon > .phone {
  --pw: calc(var(--vw) * 0.41);
  inset-inline-start: 50%;
  top: 22.7%;
}

/* Vier Schritte als ein Ticket mit Abrisslinien. */
.steps {
  display: flex;
  margin-top: clamp(32px, 4.2vw, 60px);
  border-radius: var(--r);
  background: var(--sheet);
  box-shadow: var(--shadow-big);
}
.step {
  flex: 1;
  padding: 34px 30px 36px;
  border-inline-end: 2px dashed var(--line);
}
.step:last-child {
  border: 0;
}
.step .num {
  font-size: clamp(72px, 6.7vw, 96px);
}
.step .num.red {
  color: var(--red);
}
.step b {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.2;
}
.step p {
  margin-top: 6px;
  color: var(--soft);
  font-size: 17px;
}

/* Pakete als Ticket — nur echte Pakete aus dem Admin-Panel. */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 4.9vw, 70px);
  margin-top: clamp(32px, 4.2vw, 60px);
}
.pticket {
  flex: 0 1 640px;
  min-width: min(100%, 300px);
  border-radius: var(--r);
  background: var(--sheet);
  box-shadow: var(--shadow-big);
}
.pticket .up {
  padding: clamp(24px, 2.5vw, 36px) clamp(22px, 2.8vw, 40px) clamp(22px, 2.1vw, 30px);
}
.pprice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 14px;
}
.pprice .num {
  font-size: clamp(104px, 13.9vw, 200px);
  line-height: 0.86;
}
.pprice small {
  padding-bottom: 6px;
  color: var(--soft);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.35;
}
.pname {
  margin-bottom: 14px;
}
.pdesc {
  margin-top: 18px;
  font-size: 18px;
}
.pticket ul {
  margin-top: 22px;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.9;
}
.pnone {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}
.pticket .tear {
  border-top-width: 2.5px;
}
.pticket .tear::before,
.pticket .tear::after {
  top: -12px;
  width: 22px;
  height: 22px;
}
.pticket .tear::before {
  left: -11px;
}
.pticket .tear::after {
  right: -11px;
}
.pticket .down {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 1.8vw, 26px) clamp(22px, 2.8vw, 40px);
}
.price.many .pticket {
  flex: 1 1 340px;
  align-self: stretch;
}
.price.many .pprice .num {
  font-size: clamp(80px, 8.3vw, 120px);
}
.price.many .paside {
  flex-basis: 100%;
}
.paside {
  flex: 1 1 300px;
}
.paside h3 + p {
  max-width: 440px;
  margin-top: 14px;
  font-size: clamp(17px, 1.45vw, 21px);
}
.paside p + h3 {
  margin-top: clamp(28px, 3vw, 44px);
}

/* Dunkler Block (für Kunden / Abschluss). */
.dark {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5.5vw, 80px);
  margin-top: clamp(72px, 9vw, 130px);
  padding: clamp(56px, 7.6vw, 110px) var(--gut);
  background: var(--shell);
  color: #ffffff;
  overflow: hidden;
}
.dark-t {
  flex: 1;
  min-width: 0;
}
.dark h2 {
  font-size: clamp(40px, 5.5vw, 80px);
}
.dark-t > p:first-of-type {
  max-width: 520px;
  margin-top: 20px;
  color: #a9a9a4;
  font-size: clamp(17px, 1.53vw, 22px);
}
.dark-shots {
  --pw: clamp(150px, 20.8vw, 300px);
  display: flex;
  align-items: flex-start;
  flex: none;
  gap: clamp(16px, 5.5vw, 80px);
}
.dark-shots .phone {
  background: #000000;
  box-shadow: 0 0 0 1px #33332f;
}
.dark-shots .phone + .phone {
  margin-top: calc(var(--pw) * 0.27);
}
.dark :focus-visible {
  outline-color: #ffffff;
}

/* Verzeichnis-Anriss. */
.dir {
  margin-top: clamp(28px, 3.5vw, 50px);
}
.dir .rows {
  border-top: 2px solid var(--ink);
}
.dir .row {
  gap: clamp(14px, 1.5vw, 22px);
  padding: 20px 0;
}
.dir .row-title {
  font-size: clamp(18px, 1.5vw, 22px);
}
.dir .small {
  font-size: clamp(14px, 1.1vw, 16px);
}
.dir .row-end .num {
  font-size: clamp(40px, 3.6vw, 52px);
}

/* Fragen. */
.faq {
  margin-top: clamp(28px, 3.5vw, 50px);
  border-top: 2px solid var(--ink);
}
.faq > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px clamp(24px, 4vw, 60px);
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.faq dt {
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.faq dd {
  font-size: clamp(16px, 1.4vw, 20px);
}

@media (max-width: 860px) {
  .feat,
  .feat.rev {
    flex-direction: column;
    align-items: stretch;
  }
  .feat .vis {
    order: -1;
    --vw: min(600px, calc(100vw - 2 * var(--gut)));
    margin: 0 auto;
  }
  .steps {
    flex-direction: column;
  }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 22px 24px;
    border-inline-end: 0;
    border-bottom: 2px dashed var(--line);
  }
  .step .num {
    grid-row: span 2;
  }
  .step b {
    margin-top: 0;
  }
  .dark {
    flex-direction: column;
    align-items: stretch;
  }
  .dark-shots {
    --pw: min(240px, calc((100vw - 2 * var(--gut) - 16px) / 2));
    justify-content: center;
    margin-bottom: calc(var(--pw) * -1.1);
  }
  .faq > div {
    grid-template-columns: 1fr;
  }
  /* Die Suche in EINER Zeile (zwei Auswahlen, ein Knopf), damit die
     Überschrift für Betreiber weit oben beginnt. */
  .band form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding-block: 10px;
  }
  .band b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .band select,
  .band .go {
    min-height: 46px;
    font-size: 15px;
  }
  .band select {
    padding: 0 8px;
  }
  .band .go {
    width: auto;
    padding: 0 12px;
  }
  .band select {
    width: 100%;
  }
  .pticket {
    flex-basis: 100%;
  }
  .hero .acts .btn {
    flex: 1 1 100%;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 30px;
  }
  .hero h1 {
    font-size: clamp(40px, 13.5vw, 76px);
  }
  /* "Für Salons": zwei ganze Sätze — kleiner, damit jeder in einer Zeile bleibt. */
  .hero.fs h1 {
    font-size: clamp(24px, 7.2vw, 46px);
    line-height: 1.04;
  }
  /* Schmal: zwei überlappende Telefone und der Monitor statt der ganzen Reihe. */
  .devices {
    --pw: 46vw;
    --tw: 78vw;
    position: relative;
    display: block;
    height: calc(var(--pw) * 2.05);
  }
  .devices > div {
    position: absolute;
    margin: 0;
  }
  .devices .d1 {
    display: none;
  }
  .devices .dm {
    top: 0;
    left: 11vw;
  }
  .devices .d2 {
    top: calc(var(--tw) * 0.36);
    left: 3vw;
  }
  .devices .d2 ~ .d2 {
    left: auto;
    right: 3vw;
    top: calc(var(--tw) * 0.5);
  }
  .lg {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .dir .stamp.sm {
    display: inline-block;
  }
}
html:is(:lang(ar), :lang(fa)) .hero h1 {
  letter-spacing: 0;
  line-height: 1.25;
}
html:is(:lang(ar), :lang(fa)) :is(.wide h2, .feat h3, .faq dt, .step b) {
  letter-spacing: 0;
  line-height: 1.35;
}
html:lang(zh-Hans) .hero h1 {
  letter-spacing: 0;
  line-height: 1.12;
}
@media print {
  .top,
  .sfoot,
  .band,
  .devices,
  .vis,
  .dark-shots {
    display: none;
  }
}
:root.light {
  color-scheme: light;
}
/* Ziffern laufen immer von links nach rechts; auf einer RTL-Seite stehen die
   großen Ziffern trotzdem an der Leseseite (rechts). */
[dir="rtl"] :is(.feat .big, .step .num) {
  text-align: right;
}

/* Städte: Name und Anzahl mit Abstand. */
.cities .cell {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.top .top-out button {
  padding: 11px 6px;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

/* ---- Stempelformen: der Stand steht in der FORM, nie in der Farbe ----
   gefüllt (.stamp) = freigegeben, aktiv · Umriss = in Prüfung, Gratis-Zeit,
   gekündigt · gestrichelt = eingereicht, offen · blass = nichts nötig ·
   blass und durchgestrichen = abgelehnt, beendet. Dieselbe Zuordnung wie in
   der App (stampFormFor). */
.stamp.out,
.stamp.dash,
.stamp.mute,
.stamp.struck {
  background: transparent;
  color: var(--ink);
}
.stamp.dash {
  border-style: dashed;
}
.stamp.mute,
.stamp.struck {
  border-color: var(--soft);
  color: var(--soft);
}
.stamp.struck {
  text-decoration: line-through;
}
.num.sm {
  font-size: 20px;
  font-weight: 700;
}
/* Symbole: eine Umriss-Familie in einer Stärke. */
.ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==== Betreiber-Bereich (/konto) ====
   Immer hell, wie Hauptseite und "Für Salons" (html.light, siehe
   page.Light): Tickets, Stempel und Formulare sind für das helle Papier
   gebaut und nur dort geprüft. Ohne JavaScript. Abstände stehen in logischen
   Eigenschaften (inline-start/-end), damit Arabisch und Persisch stimmen.
   Rot steht hier nur auf der Hauptaktion und am aktiven Marker — nie an
   Fehlern, Warnungen oder Zerstörendem. */
main.kmain {
  flex: 1 0 auto;
}
.konto {
  max-width: 880px;
  margin-inline: auto;
}
/* Anmelden, Code, Name: eine schmale Spalte im oberen Drittel. */
.konto.narrow {
  max-width: 420px;
  margin-top: clamp(0px, 6vh, 64px);
}
.konto.narrow h1 {
  font-size: 28px;
}
.konto h2 {
  margin-top: 44px;
  margin-bottom: 10px;
  font-size: 20px;
}
.konto h1 + h2 {
  margin-top: 24px;
}
.konto h1 + :is(.kticket, .krows, .kacts) {
  margin-top: 20px;
}
.konto-alt {
  margin-top: 12px;
}
.konto-alt .btn.text,
.kback a {
  padding-inline: 0;
}
.konto-act {
  margin-top: 24px;
}
.kacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.khint {
  margin-top: 12px;
}

/* Wer angemeldet ist, und die zwei Bereiche des Kontos. */
.kacct {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.kacct-who {
  min-width: 0;
  padding-block: 8px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.kacct-who .soft {
  margin-inline-start: 6px;
  font-weight: 400;
}
.knav {
  display: flex;
  gap: 0 24px;
}
.knav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.knav a:hover {
  color: var(--ink);
}
.knav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--ink);
  color: var(--ink);
  font-weight: 700;
}
.kback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

/* Bereiche eines Salons: EINE Zeile. Auf dem Handy lässt sie sich seitlich
   schieben; jeder Verweis springt auf #aktiv, so rückt der Browser den aktiven
   Eintrag von selbst ins Bild.
   Der aktive Eintrag trägt den 4-px-Marker der Menüleiste. */
.ktabs {
  display: flex;
  margin: 20px calc(var(--page) * -1) 24px;
  padding-inline: calc(var(--page) - 12px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ktabs::-webkit-scrollbar {
  display: none;
}
.ktabs a {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 12px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
/* Das Sprungziel #aktiv liegt im aktiven Eintrag, aber weit über der Seite:
   der Browser schiebt die Zeile seitlich zum Eintrag und lässt die Seite
   selbst oben stehen (geprüft in Chromium). */
.ktab-at {
  position: absolute;
  inset-inline: -32px;
  top: -100000px;
  height: 1px;
  pointer-events: none;
}
.ktabs a:hover {
  color: var(--ink);
}
.ktabs a[aria-current] {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 760px) {
  /* Schmal: der aktive Bereich steht immer vorn — auch wenn die Seite ohne
     Sprungziel geladen wurde (nach dem Speichern, bei einer Meldung). */
  .ktabs a[aria-current] {
    order: -1;
  }
}
.ktabs a[aria-current]::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 0;
  height: 4px;
  background: var(--red);
}
@media (min-width: 761px) {
  /* Breit ist Platz: was nicht in eine Zeile passt (lange Sprachen), bricht um. */
  .ktabs {
    flex-wrap: wrap;
    margin-inline: -12px;
    padding-inline: 0;
    overflow: visible;
  }
}

/* ---- Meldungen: Tintentext mit Symbol im 1,5-px-Tinten-Rahmen ---- */
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
}
.note .ic {
  margin-top: 1px;
}
.note > p,
.note > div {
  min-width: 0;
}
.note a {
  display: inline-block;
  padding-block: 5px;
}
/* Eine Bestätigung ("Gespeichert.") ist der Toast aus DESIGN.md: Tintenbalken,
   papierfarbener Text 15/600 mit Haken — hier fest in der Seite, weil ohne
   JavaScript nichts von selbst verschwindet. */
.note[role="status"] {
  background: var(--ink);
  color: var(--paper);
}
.knotes {
  scroll-margin-top: 16px;
}
.knote-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -8px 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.knote-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* Meldung am Feld (oder am Formular). */
.kerr {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: 96px;
}
.kerr .ic {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.kreq {
  margin-top: 4px;
}
/* Was beim Buchen abgebucht wird: lesbar, nicht im Kleingedruckten. */
.knote-buy {
  font-size: 15px;
  font-weight: 600;
}
.form .btn + .knote-buy {
  margin-top: 8px;
}

/* ---- Formulare ---- */
.form {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin-top: 24px;
}
.form.wide {
  max-width: 620px;
}
.form.buy {
  max-width: none;
}
.form.buy > label,
.form.buy > input,
.form.buy > select,
.form.buy > p {
  max-width: 440px;
}
.konto label {
  font-size: 14px;
  font-weight: 600;
}
.form > label,
.kpair label {
  margin-top: 10px;
}
.konto input[type="email"],
.konto input[type="tel"],
.konto input[type="text"],
.konto input[type="time"],
.konto select,
.konto textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  scroll-margin-top: 96px;
}
.konto textarea {
  padding-block: 12px;
  resize: vertical;
}
.konto :is(input, select, textarea):focus {
  border-color: var(--ink);
}
/* Fehler am Feld: 1,5 px Tinte, nie rot. */
.konto :is(input, select, textarea)[aria-invalid="true"] {
  border: 1.5px solid var(--ink);
}
.form input.code {
  min-height: 64px;
  font: 900 34px/1 "Big Shoulders Display", "Archivo", sans-serif;
  letter-spacing: 0.12em;
}
.konto input.kshort {
  max-width: 96px;
}
.konto .kmid {
  max-width: 240px;
}
.form .btn {
  margin-top: 14px;
  justify-self: start;
}
.konto button.btn {
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.konto button.btn.primary {
  background: var(--red-fill);
  color: #ffffff;
}
.konto button.btn.primary:hover {
  background: var(--red-fill-hover);
}
.konto button.btn.outline {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.kpair {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 0 12px;
}
.kpair > div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.kchecks {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.kchecks legend {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.kchecks-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 4px;
}
.kcheck {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.konto .kcheck {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 400;
}
.kcheck input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}
/* Datei wählen: der Knopf des Browsers als sekundärer Button. */
.konto input[type="file"] {
  max-width: 100%;
  min-height: 48px;
  color: var(--soft);
  font: inherit;
  font-size: 14px;
}
.konto input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-inline-end: 12px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  font: 700 15px/1.2 "Archivo", system-ui, sans-serif;
  cursor: pointer;
}
.konto input[type="file"]::file-selector-button:hover {
  text-decoration: underline;
}
.kaddr-list {
  display: grid;
  gap: 4px;
}
/* "Bei Google suchen": ein eigener Block über den Feldern, die er füllt. */
.kbiz {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}
.kbiz[hidden],
.kbiz [hidden] {
  display: none;
}
.kbiz .note {
  margin: 4px 0 0;
}
.kbiz-warn {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
}
/* Telefon und Website: auf schmalen Bildschirmen untereinander. */
@media (max-width: 560px) {
  .kpair.kcontact {
    grid-template-columns: minmax(0, 1fr);
  }
}
.form.buy > .kterms {
  max-width: 440px;
}
.kbiz-warn li + li {
  margin-top: 4px;
}
.kbiz-src {
  font-size: 12px;
}
/* AGB und Marketing: zwei Haken, der Link zur geltenden Fassung dazwischen. */
.kterms {
  display: grid;
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.konto .kterms .kcheck {
  align-items: flex-start;
  min-height: 44px;
  padding-block: 10px 4px;
  line-height: 1.4;
}
.kterms .kcheck input {
  margin-top: 0;
}
.kterms-read {
  justify-self: start;
  margin-inline-start: 32px;
  padding-block: 4px 8px;
  font-size: 14px;
  font-weight: 600;
}
.kterms .kerr {
  margin-inline-start: 32px;
}
.knew-h {
  margin-top: 28px;
}
.knew-h small {
  color: var(--soft);
  font-size: 15px;
  font-weight: 400;
}
.kaddr-list button {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.kaddr-list button:hover,
.kaddr-list button:focus-visible {
  border-color: var(--ink);
}

/* ---- Ticket: Salon und Paket ---- */
.ktickets {
  display: grid;
  gap: 20px;
}
.kticket {
  border-radius: var(--r);
  background: var(--sheet);
  box-shadow: var(--ticket-shadow);
}
.kt-up {
  padding: 24px;
}
.kt-head {
  display: flex;
  align-items: flex-start;
  gap: 12px 16px;
}
.kt-head > :is(h1, h3, .kt-id) {
  flex: 1;
  min-width: 0;
}
/* Namen bekommen die ganze Zeile; getrennt wird nach den Regeln der Sprache
   Eigennamen werden nicht automatisch getrennt ("Bar-bershop"); nur ein Wort,
   das allein nicht in die Zeile passt, bricht. */
.kt-head :is(h1, h3),
.khead-mini h1 {
  overflow-wrap: break-word;
  hyphens: manual;
}
.kt-head h3 {
  font-size: 24px;
}
.kt-head h1 {
  font-size: 30px;
}
.kt-head .stamp {
  flex: none;
  margin-top: 4px;
}
.kt-id p {
  margin-top: 4px;
}
.kt-for {
  margin-top: 4px;
  color: var(--soft);
}
/* Die Ziffer des Tickets: das Datum, darüber sein Label. */
.kt-fig {
  margin-top: 22px;
}
.kt-fig small {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.kt-fig .num {
  font-size: 56px;
}
.kt-say {
  max-width: 58ch;
  margin-top: 14px;
}
.kt-say + .small {
  margin-top: 8px;
}
.kt-down {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  min-height: 80px;
  padding: 16px 24px;
}
.kt-down > .small {
  flex: 1 1 200px;
}
.kt-acts {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}
.kt-acts > details[open] {
  flex: 1 1 100%;
  order: 9;
}
.kt-pick {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.kt-pick label {
  flex: 1 1 100%;
  color: var(--soft);
  font-size: 12px;
}
.kt-pick select {
  flex: 1 1 180px;
  width: auto;
}
/* Kopf eines Salons auf den Unterseiten: nur Name und Stempel. */
.khead-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.khead-mini h1 {
  font-size: 26px;
}
.khead-mini a {
  text-decoration: none;
}
.khead-mini a:hover {
  text-decoration: underline;
}

/* ---- Rückfrage vor Zerstörendem: Tinten-Rahmen, ein Satz, dann erst der
   echte Knopf (ohne JavaScript: <details>) ---- */
.kconfirm {
  text-align: end;
}
.kconfirm > summary {
  list-style: none;
  cursor: pointer;
}
.kconfirm > summary::-webkit-details-marker {
  display: none;
}
.kconfirm[open] > summary {
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--soft);
}
.kconfirm-box {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin-top: 12px;
  margin-inline-start: auto;
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--sheet);
  text-align: start;
}
.kconfirm-t {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.kconfirm-box form {
  margin-top: 8px;
}
.kconfirm-box .btn {
  width: 100%;
}

/* ---- Haarlinien-Zeilen des Bereichs (keine Karten) ---- */
.krows {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.krow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.krow-main {
  flex: 1 1 180px;
  min-width: 0;
}
.krow > details {
  margin-inline-start: auto;
}
.krow > details[open] {
  flex: 1 1 100%;
}
/* In einer Zeile mit mehreren Aktionen bleibt der Knopf an seinem Platz; die
   Rückfrage klappt darunter auf. */
/* Solange eine Rückfrage offen ist, treten die anderen Aktionen der Zeile zurück. */
.krow-acts:has(> details[open]) > :not(details) {
  display: none;
}
.krow-acts .kconfirm-box {
  width: min(440px, calc(100vw - 2 * var(--page)));
}
.krow-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px 12px;
  margin-inline-start: auto;
}
/* Eine offene Rückfrage bekommt die ganze Breite der Zeile. */
.krow:has(.krow-acts > details[open]) .krow-acts {
  flex-basis: 100%;
}
/* Team: Name, Platz, Aktionen in festen Spalten — "Platz" steht bei allen an
   derselben Stelle. */
.kmember {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px 250px;
  align-items: end;
}
.kmember .krow-main {
  align-self: center;
}
.kmember:has(details[open]) .krow-acts {
  grid-column: 1 / -1;
}
.krow-stamps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 18px;
}
.kstamp-l {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.kstamp-l small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
/* Rechnung: Nummer, Stand, Betrag, Verweis in festen Spalten — Betrag und
   Nummer auf einer Grundlinie, die Beträge untereinander. */
.kinvs {
  margin-top: 20px;
}
.kinvs .krow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 110px 170px;
  grid-template-areas: "main stamp amount link";
  align-items: baseline;
}
.kinvs .krow-main {
  grid-area: main;
}
.kinvs .stamp {
  grid-area: stamp;
  justify-self: end;
}
.kinvs .num.mid {
  grid-area: amount;
  text-align: end;
}
.kinvs .btn.text {
  grid-area: link;
  justify-self: end;
}
/* Platz eines Mitarbeiters: Label über Feld und Knopf. */
.kinline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
}
.kinline label,
.kinline .kerr {
  grid-column: 1 / -1;
}
.kimg-pic {
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
  object-fit: cover;
}
.kimg-pic.cover {
  width: 128px;
}
/* Ohne Logo: derselbe Platzhalter mit dem Anfangsbuchstaben wie überall. */
span.kimg-pic.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.kupload {
  display: grid;
  gap: 6px;
  justify-items: start;
}

/* ---- Was im Profil noch fehlt ---- */
.ktodo-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.ktodo {
  border-top: 1px solid var(--line);
}
.ktodo li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 56px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ktodo .ic {
  margin-top: 1px;
}
.ktodo a {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.ktodo a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ktodo li:hover a {
  text-decoration: underline;
}
.ktodo .done {
  color: var(--soft);
}
.ktodo .done a {
  font-weight: 600;
}

/* ---- Paket buchen ---- */
.kplans {
  display: grid;
  gap: 12px;
}
.kplan {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
.kplan input {
  position: absolute;
  inset-inline-start: 16px;
  top: 20px;
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}
.kplan-in {
  display: grid;
  gap: 4px;
  padding: 16px;
  padding-inline-start: 50px;
  border-radius: var(--r);
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px;
  font-weight: 400;
}
.kplan input:checked + .kplan-in {
  box-shadow: inset 0 0 0 2px var(--ink);
}
/* Ein einziges Paket: nichts zu wählen — der Preis steht als Zettel da. */
.kplans.one .kplan {
  max-width: 440px;
  cursor: default;
}
.kplans.one .kplan input {
  opacity: 0;
  pointer-events: none;
}
.kplans.one .kplan-in,
.kplans.one .kplan input:checked + .kplan-in {
  padding: 20px 24px;
  box-shadow: var(--ticket-shadow);
}
.kplan-in b {
  font-size: 20px;
}
.kprice .num {
  font-size: 56px;
}
.kprice small {
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Zeiten: Tag, 1. Zeitraum, 2. Zeitraum ---- */
/* Ein Raster für alle Zeilen (subgrid): die Spalten richten sich nach den
   Feldern — die sind je nach Browser verschieden breit (24 Stunden, oder
   12 Stunden mit AM/PM). */
.kdays {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) auto auto;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.kdays-head,
.kday {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(96px, 1fr) auto auto;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 6px 16px;
  border-bottom: 1px solid var(--line);
}
.kdays-head {
  padding: 8px 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
}
.kday {
  padding: 10px 0;
}
/* Zeiten und Arbeitszeiten brauchen mehr Breite als ein Adress-Formular. */
.form.wide.kform-days {
  max-width: 820px;
}
.kday-name {
  font-weight: 700;
}
/* "geschlossen" / "frei": ein Tag ohne Zeiten steht in Worten da. */
.kday-state {
  display: block;
  color: var(--soft);
  font-size: 13px;
  font-weight: 400;
}
/* Das Skript der Google-Suche füllt Zeiten ein: dann verschwindet das Wort. */
.kday-state[hidden] {
  display: none;
}
.kday .kerr {
  grid-column: 1 / -1;
}
.kwin-l {
  display: none;
}
/* Uhrzeiten laufen in jeder Sprache von links nach rechts ("09:00 – 18:00"). */
.kwin-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
/* Mindestbreite, keine feste: in 12-Stunden-Browsern (ar, fa, en-US) braucht
   das Feld Platz für AM/PM — sonst stünde "01:00" da, wo 13:00 gemeint ist. */
.konto input[type="time"] {
  width: auto;
  min-width: 108px;
  padding: 0 10px;
  font: 700 22px/1 "Big Shoulders Display", "Archivo", sans-serif;
  font-variant-numeric: tabular-nums;
}
/* "Geschäftszeiten des Salons übernehmen": mit Haken werden die Zeiten
   darunter nicht verwendet — das steht da, und das Raster tritt zurück. Ohne
   JavaScript gilt der gespeicherte Stand (.inh); wo der Browser :has() kann,
   folgt beides dem Haken sofort. */
.kign {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
}
.ksched.inh .kign {
  display: flex;
}
.ksched.inh .kdays {
  opacity: 0.55;
}
@supports selector(:has(*)) {
  .ksched:not(:has(input[name="inherit"]:checked)) .kign {
    display: none;
  }
  .ksched:not(:has(input[name="inherit"]:checked)) .kdays {
    opacity: 1;
  }
  .ksched:has(input[name="inherit"]:checked) .kign {
    display: flex;
  }
  .ksched:has(input[name="inherit"]:checked) .kdays {
    opacity: 0.55;
  }
}

/* ---- Leistungen: jedes Feld mit sichtbarem Label und Einheit ---- */
.ksvcs {
  border-top: 1px solid var(--line);
}
.ksvc {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.ksvc-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 116px 128px;
  align-items: start;
  gap: 10px 12px;
}
.ksvc-form.new {
  margin-top: 8px;
}
.ksvc-form > :is(.kerr, .kreq),
.ksvc-acts {
  grid-column: 1 / -1;
}
.kf {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.kf label {
  font-size: 13px;
}
/* Feld mit Einheit ("30 Min.", "24,50 €"). */
.kunit {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sheet);
}
.kunit:focus-within {
  border-color: var(--ink);
}
.konto .kunit input {
  min-width: 0;
  min-height: 46px;
  padding-inline-end: 4px;
  border: 0;
  background: transparent;
}
.kunit > span {
  flex: none;
  padding-inline-end: 12px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
}
.kunit:has([aria-invalid="true"]) {
  border: 1.5px solid var(--ink);
}
.ksvc-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.ksvc-state {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ksvc.off .kf-name input {
  color: var(--soft);
}

@media (max-width: 640px) {
  .kacct {
    flex-direction: column;
    align-items: flex-start;
  }
  .kt-up {
    padding: 20px;
  }
  .kt-down {
    padding: 16px 20px;
  }
  .kt-head h1 {
    font-size: 26px;
  }
  /* Kopf des Salons: der Stempel rückt unter den Namen, der Name bricht nicht mitten im Wort. */
  .khead .kt-head {
    flex-wrap: wrap;
  }
  .khead .kt-id {
    flex: 1 1 calc(100% - 72px);
  }
  .khead .kt-head .stamp {
    margin-top: 0;
  }
  .kt-fig .num {
    font-size: 48px;
  }
  .kt-down > .btn,
  .kt-acts > .btn,
  .kt-acts > form,
  .kt-acts > form .btn,
  .kt-pick .btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .kt-acts > details {
    flex: 1 1 100%;
  }
  .kt-acts > details > summary {
    width: 100%;
  }
  .kconfirm-box {
    max-width: none;
  }
  .ksvc-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .kf-name,
  .kf-cat {
    grid-column: 1 / -1;
  }
  .kmember {
    grid-template-columns: minmax(0, 1fr);
  }
  .kinvs .krow {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main amount" "stamp link";
  }
  .kinvs .stamp {
    justify-self: start;
  }
  .kimg-pic.cover {
    width: 96px;
  }
  .kupload {
    flex-basis: 150px;
  }
  .kupload input[type="file"] {
    width: 100%;
  }
}
@media (max-width: 860px) {
  /* Zeiten: der Tag als Zeile, darunter die zwei Zeiträume mit Label. Passen
     Label und beide Felder nicht nebeneinander (12-Stunden-Felder), rücken die
     Felder unter das Label. */
  .kdays {
    display: block;
  }
  .kdays-head {
    display: none;
  }
  .kday {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0;
  }
  .kday-name {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .kwin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
  }
  .kwin-in {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .kwin-l {
    display: inline;
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
  }
}
