/* ==========================================================================
   Holistic Beauty Studio – Elfenbein-Farbschema
   ========================================================================== */

/* Schrift lokal (statt Google Fonts): DSGVO-konform, schneller, keine fremden Server.
   Smooch Sans, SIL Open Font License – variable Schrift, alle Stärken 100–900 */
@font-face {
  font-family: "Smooch Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/smooch-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Smooch Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/smooch-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Elfenbein-Palette */
  --ivory-50:  #fdfaf3;   /* Seitenhintergrund */
  --ivory-100: #f8f1e3;   /* Flächen / Abschnitte */
  --ivory-200: #efe4cd;   /* Hellelfenbein, Rahmen */
  --ivory-300: #e2d2b2;   /* Elfenbein, Linien */
  --ivory-400: #cdb88f;
  --ink:       #2b241e;   /* Schrift – passt zum Logo */
  --ink-soft:  #5a4e42;
  --muted:     #7d6f5f;
  --accent:    #9a7848;   /* warmes Gold-Braun */
  --accent-dk: #7b5d34;
  --white:     #fffdf8;
  --error:     #9b2c2c;
  --ok:        #3f6b3a;
  /* Altrosa: "nicht verfügbar" im Kalender – kräftiger Kontrast zum Elfenbein, gleiche warme Familie */
  --rose:      #7f2e24;
  --rose-bg:   #eec3b8;
  --rose-line: #d4907f;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 36, 30, .06), 0 8px 24px rgba(43, 36, 30, .07);
  --font: "Smooch Sans", "Arial Narrow", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .015em;
  color: var(--ink);
  background: var(--ivory-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dk); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: .02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; }
h3 { font-size: 1.65rem; }
p  { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 1.1rem; }
.lead { font-size: 1.5rem; color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: 1rem; font-weight: 600;
  color: var(--accent); margin-bottom: .4em;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-size: 1.25rem; font-weight: 600; letter-spacing: .06em;
  padding: .6em 1.5em; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--ivory-50); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory-50); border-color: var(--ink); }
.btn-small { font-size: 1.1rem; padding: .35em 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--ivory-50) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ivory-200);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-size: 1.7rem; font-weight: 500; letter-spacing: .04em; }
.brand img { width: 44px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1.25rem; letter-spacing: .05em; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { color: var(--ivory-50); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory-50); border-bottom: 1px solid var(--ivory-200);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .7rem 0; border-bottom: 1px solid var(--ivory-200); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 20% 30%, var(--white) 0%, transparent 55%),
    linear-gradient(180deg, var(--ivory-100), var(--ivory-50));
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--ivory-200);
}
.hero-inner { display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-logo { width: 100%; filter: drop-shadow(0 6px 18px rgba(154, 120, 72, .12)); }
.hero blockquote {
  margin: 1.2rem 0 2rem; padding-left: 1.2rem; border-left: 2px solid var(--ivory-400);
  font-size: 1.55rem; color: var(--ink-soft); font-style: italic;
}
.hero cite { display: block; margin-top: .4rem; font-size: 1.1rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { max-width: 260px; margin-inline: auto; }
  .hero blockquote { border-left: 0; padding-left: 0; }
  .hero-actions { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--ivory-100); border-block: 1px solid var(--ivory-200); }
.ornament {
  width: 120px; height: 1px; margin: 2rem auto 0; background: var(--ivory-400); position: relative;
}
.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  background: var(--ivory-50); border: 1px solid var(--accent); transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--ivory-200);
  border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43,36,30,.06), 0 16px 32px rgba(43,36,30,.09); }
.card h3 { padding-bottom: .5rem; border-bottom: 1px solid var(--ivory-200); }
.card p { color: var(--ink-soft); margin: 0; }
.card p + p { margin-top: .6rem; }
.card-soon { background: transparent; border-style: dashed; box-shadow: none; }
.badge {
  position: absolute; top: 1rem; right: 1rem; font-size: .95rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-dk); background: var(--ivory-200); padding: .1em .7em; border-radius: 999px;
}

/* ---------- Preise ---------- */
/* Preisliste: Kategorien in Spalten nebeneinander (Zeitungsspalten, Höhe gleicht sich selbst aus) */
.price-list { margin: 2rem auto 1.5rem; max-width: 780px; }
.price-group { break-inside: avoid; padding-bottom: 1.8rem; }
@media (min-width: 900px) {     /* ab Tablet quer / PC: 2 Spalten (bei 3 würden lange Namen umbrechen) */
  .price-list { max-width: none; columns: 2; column-gap: 4rem; }
}
.price-group h3 { color: var(--accent-dk); font-size: 1.4rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: .8rem; padding: .45rem 0; }
.price-row .name { flex: 0 1 auto; }
.price-row .dots { flex: 1; border-bottom: 1px dotted var(--ivory-400); transform: translateY(-4px); min-width: 1rem; }
.price-row .price { font-weight: 600; white-space: nowrap; }
.price-row .dur { color: var(--muted); font-size: 1.05rem; white-space: nowrap; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-emblem {
  aspect-ratio: 1; border-radius: 50%; background: var(--ivory-50); border: 1px solid var(--ivory-300);
  display: grid; place-items: center; padding: 14%; box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-emblem { max-width: 220px; margin-inline: auto; }
}

/* ---------- Buchung ---------- */
.booking { max-width: 900px; margin: 2.5rem auto 0; display: grid; gap: 1.4rem; }
.step {
  border: 1px solid var(--ivory-200); border-radius: var(--radius); background: var(--white);
  padding: 1.6rem; margin: 0; min-width: 0; box-shadow: var(--shadow); transition: opacity .3s;
}
.step:disabled { opacity: .45; }
.step legend { float: left; width: 100%; font-size: 1.55rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.step legend + * { clear: both; }
.step-no {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--ink); color: var(--ivory-50); font-size: 1rem;
}

select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="search"], input[type="time"], input[type="number"], textarea {
  width: 100%; font: inherit; font-size: 1.2rem; color: var(--ink);
  background: var(--ivory-50); border: 1px solid var(--ivory-300); border-radius: 10px;
  padding: .6em .8em; transition: border-color .2s, box-shadow .2s;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154,120,72,.18); }
textarea { resize: vertical; }
#service-info { margin: .7rem 0 0; }

.date-picker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6rem; }
@media (max-width: 720px) { .date-picker { grid-template-columns: 1fr; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head strong { font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; }
.cal-nav {
  font: inherit; font-size: 1.6rem; line-height: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1px solid var(--ivory-300); background: var(--ivory-50); color: var(--ink); cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: var(--ivory-200); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: 1rem; color: var(--muted); font-weight: 600; padding-bottom: .3rem; }
.cal-day {
  font: inherit; font-size: 1.15rem; aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--ivory-400); cursor: default; padding: 0;
}
.cal-day.available { background: var(--ivory-100); border-color: var(--ivory-300); color: var(--ink); cursor: pointer; font-weight: 600; }
.cal-day.available:hover { border-color: var(--accent); }
.cal-day.unavailable {
  color: var(--rose); border-color: var(--rose-line);
  background: repeating-linear-gradient(-45deg, var(--rose-bg) 0 6px, color-mix(in srgb, var(--rose-bg) 60%, var(--white)) 6px 12px);
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rose) 55%, transparent);
}
.cal-day.past { color: var(--ivory-300); }
.cal-day.selected { background: var(--ink); border-color: var(--ink); color: var(--ivory-50); }
.cal-day.today { text-decoration: underline; text-underline-offset: 4px; }
.cal-day.today.unavailable { text-decoration: underline line-through; }

.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: .9rem 0 0; font-size: 1.05rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: .45rem; }
.cal-legend .dot { width: 1rem; height: 1rem; border-radius: 4px; border: 1px solid; }
.dot-available { background: var(--ivory-100); border-color: var(--ivory-300) !important; }
.dot-unavailable { background: var(--rose-bg); border-color: var(--rose-line) !important; }
.dot-selected { background: var(--ink); border-color: var(--ink) !important; }
.cal-loading { opacity: .5; pointer-events: none; }

.slots-title { font-weight: 600; margin-bottom: .8rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; max-height: 330px; overflow-y: auto; padding: 2px; }
.slot {
  font: inherit; font-size: 1.15rem; padding: .45em 0; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--ivory-300); background: var(--ivory-50); color: var(--ink);
}
.slot:hover { border-color: var(--accent); }
.slot[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory-50); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid label { display: grid; gap: .3rem; font-size: 1.15rem; font-weight: 500; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; color: var(--ink-soft); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--ink); flex: none; }
.check[hidden], .form-grid .check[hidden] { display: none !important; }   /* sonst gewinnt display: flex/grid */
.hp { position: absolute !important; left: -9999px; }

.summary {
  margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-radius: 10px;
  background: var(--ivory-100); border: 1px solid var(--ivory-200);
}
.summary strong { font-weight: 600; }
.form-error { color: var(--error); margin: 1rem 0 0; }

/* Fehlende oder falsche Eingaben: Feld rot umrandet, Hinweis darunter */
.form-grid label.is-invalid { color: var(--error); }
.is-invalid input, .is-invalid textarea { border-color: var(--error); background: #fbefec; }
.is-invalid input:focus, .is-invalid textarea:focus { border-color: var(--error); box-shadow: 0 0 0 3px rgba(155,44,44,.18); }
.field-error { font-size: 1.08rem; font-weight: 400; line-height: 1.3; color: var(--error); }
.field-error::before {
  content: "!"; display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; margin-right: .35em;
  border-radius: 50%; background: var(--error); color: var(--white); font-size: .8em; font-weight: 700; vertical-align: .05em;
}
.form-grid .check { display: grid !important; grid-template-columns: auto 1fr; row-gap: .35rem; }
.check .field-error { grid-column: 2; }
.check.is-invalid input { outline: 2px solid var(--error); outline-offset: 2px; }
.step .btn[type="submit"] { margin-top: 1.4rem; }

.booking-success {
  max-width: 640px; margin: 2.5rem auto 0; text-align: center; background: var(--white);
  border: 1px solid var(--ivory-300); border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow);
}
.booking-success h3 { font-size: 2.2rem; font-weight: 500; }
.booking-paused { margin-top: 1.5rem; }
.booking-paused p { margin: .6rem 0 0; }

/* Hinweis-Banner (Admin-Bereich → Studio), z. B. „Urlaub vom 1.–14. August“ */
.site-banner {
  background: var(--ink); color: var(--ivory-50); text-align: center;
  padding: .55rem 0; font-size: 1.2rem; letter-spacing: .02em; line-height: 1.35;
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
address { font-style: normal; margin-bottom: 1rem; font-size: 1.35rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; margin-bottom: 1rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--ivory-300); font-weight: 400; }
.hours th { font-weight: 600; width: 40%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory-200); padding: 1.6rem 0; font-size: 1.1rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-inner nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--ivory-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Rechtliches ---------- */
.legal { padding: 3rem 0 5rem; }
.legal h2 { margin-top: 2.5rem; }
.legal .note { background: var(--ivory-100); border: 1px dashed var(--ivory-400); border-radius: 10px; padding: 1rem 1.2rem; }

/* ==========================================================================
   Admin-Bereich
   ========================================================================== */
.admin-body { background: var(--ivory-100); min-height: 100vh; }
.admin-header { background: var(--ink); color: var(--ivory-100); }
.admin-header .header-inner { height: 64px; }
.admin-header .brand { color: var(--ivory-100); }
.admin-header .brand img { filter: invert(1) sepia(.3); }
.admin-main { padding: 2rem 0 4rem; }

.login-card {
  max-width: 380px; margin: 4rem auto; background: var(--white); border: 1px solid var(--ivory-200);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.login-card img { width: 120px; margin: 0 auto 1rem; }
.login-card form { display: grid; gap: 1rem; }

.panel {
  background: var(--white); border: 1px solid var(--ivory-200); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.6rem;
}
.panel h2 { font-size: 1.9rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.toolbar label { display: grid; gap: .2rem; font-size: 1rem; font-weight: 600; color: var(--muted); }
.toolbar select, .toolbar input { width: auto; min-width: 150px; font-size: 1.1rem; padding: .4em .7em; }
.stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.stat { background: var(--ivory-100); border: 1px solid var(--ivory-200); border-radius: 999px; padding: .15em .9em; font-size: 1.05rem; }

.day-group + .day-group { margin-top: 1.4rem; }
.day-group h3 { font-size: 1.35rem; color: var(--accent-dk); border-bottom: 1px solid var(--ivory-200); padding-bottom: .3rem; }
.booking-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: .4rem 1.2rem; align-items: start;
  padding: .9rem 0; border-bottom: 1px dashed var(--ivory-200);
}
.booking-item:last-child { border-bottom: 0; }
.booking-item .time { font-weight: 600; font-size: 1.25rem; }
.booking-item .who { font-weight: 600; }
.booking-item .meta { color: var(--muted); font-size: 1.05rem; }
.booking-item .notes { background: var(--ivory-50); border-left: 3px solid var(--ivory-400); padding: .3rem .7rem; margin-top: .4rem; font-size: 1.1rem; white-space: pre-wrap; }
.booking-item .actions { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; min-width: 150px; }
.booking-item .actions select { font-size: 1.05rem; padding: .3em .5em; }
.booking-item textarea { font-size: 1.05rem; margin-top: .4rem; }
.booking-item.st-storniert { opacity: .55; }
.booking-item.st-storniert .who { text-decoration: line-through; }
.pill { display: inline-block; font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 0 .6em; border-radius: 999px; margin-left: .4rem; vertical-align: middle; }
.pill-neu { background: #f3e2b8; color: #6b4e16; }
.pill-bestätigt { background: #dce8d5; color: var(--ok); }
.pill-erledigt { background: var(--ivory-200); color: var(--ink-soft); }
.pill-storniert { background: #f0d6d6; color: var(--error); }
.btn-danger { background: transparent; color: var(--error); border-color: #d9b3b3; font-size: 1.05rem; padding: .3em .8em; }
.btn-danger:hover { background: var(--error); color: var(--white); border-color: var(--error); }
@media (max-width: 680px) {
  .booking-item { grid-template-columns: 1fr; }
  .booking-item .actions { flex-direction: row; flex-wrap: wrap; }
}
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.count-badge {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .45em; border-radius: 999px;
  background: #f3e2b8; color: #6b4e16; font-size: .8em; font-weight: 600; vertical-align: .15em;
}

/* Wochenkalender: Spalten = Tage, senkrecht = Uhrzeit, Termine als Blasen in ihrer Länge */
.wk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-bottom: .8rem; }
.wk-nav { display: flex; gap: .35rem; }
.wk-arrow { font-size: 1.4rem; line-height: 1; padding: .2em .75em; }
.wk-range { font-size: 1.25rem; font-weight: 600; min-width: 13rem; }
.wk-jump { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.05rem; color: var(--muted); }
.wk-jump input { width: auto; font-size: 1.05rem; padding: .3em .5em; }
.wk-toolbar .check-inline { margin: 0; }
.wk {
  --wk-days: 7; --wk-hour: 66px; --wk-axis: 3.2rem;
  border: 1px solid var(--ivory-200); border-radius: 12px; background: var(--white); overflow: hidden;
  touch-action: pan-y; outline: none;
}
.wk:focus-visible { box-shadow: 0 0 0 3px rgba(154,120,72,.25); }
.wk-head, .wk-body { display: grid; grid-template-columns: var(--wk-axis) repeat(var(--wk-days), minmax(0, 1fr)); }
.wk-head { border-bottom: 1px solid var(--ivory-200); background: var(--ivory-50); }
.wk-day { padding: .45rem .3rem; text-align: center; border-left: 1px solid var(--ivory-200); line-height: 1.2; min-width: 0; }
.wk-day strong { display: block; font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.wk-day small { display: block; font-size: .85rem; color: var(--rose); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-day.is-today { background: #f3e2b8; }
.wk-axis { position: relative; }
.wk-axis span { position: absolute; right: .4rem; transform: translateY(-50%); font-size: .9rem; color: var(--muted); }
.wk-axis span:first-child { transform: none; }
.wk-col {
  position: relative; border-left: 1px solid var(--ivory-200); cursor: copy; min-width: 0;
  background-image: linear-gradient(to bottom, var(--ivory-200) 1px, transparent 1px);
  background-size: 100% var(--wk-hour);
}
.wk-col.is-today { background-color: #fdf7e6; }
.wk-closed {
  position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--ivory-100) 0 6px, var(--ivory-200) 6px 7px);
  opacity: .85; pointer-events: none;
}
.wk-closed-day { display: flex; justify-content: center; padding-top: 1rem; color: var(--muted); font-size: 1rem; }
.wk-block {
  position: absolute; left: 0; right: 0; overflow: hidden; padding: .2rem .35rem; font-size: .9rem; color: var(--rose);
  background: repeating-linear-gradient(135deg, rgba(238,195,184,.55) 0 6px, rgba(212,144,127,.45) 6px 8px);
  border-top: 2px solid var(--rose-line); pointer-events: none;
}
.wk-ev {
  position: absolute; z-index: 1; overflow: hidden; text-align: left; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 0; padding: .15rem .4rem; border-radius: 8px; line-height: 1.15;
  border: 1px solid; border-left-width: 4px; box-shadow: 0 1px 3px rgba(43,36,30,.12);
}
.wk-ev:hover, .wk-ev:focus-visible { z-index: 2; box-shadow: 0 3px 10px rgba(43,36,30,.25); outline: none; }
.wk-ev-time { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.wk-ev-name { font-size: 1.05rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev-svc { font-size: .9rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev-short { flex-direction: row; align-items: baseline; gap: .3rem; padding-top: 0; padding-bottom: 0; }
.wk-ev-short .wk-ev-svc { display: none; }
.wk-ev.st-neu { background: #fbefd2; border-color: #e3c47c; border-left-color: #b8862b; color: #5b4112; }
.wk-ev.st-bestätigt { background: #e3eedc; border-color: #b9d0ad; border-left-color: var(--ok); color: #2c4a28; }
.wk-ev.st-erledigt { background: var(--ivory-100); border-color: var(--ivory-300); border-left-color: var(--ivory-400); color: var(--ink-soft); }
.wk-ev.st-storniert { background: #f7e9e9; border-color: #e3c3c3; border-left-color: #c99; color: var(--error); opacity: .7; }
.wk-ev.st-storniert .wk-ev-name { text-decoration: line-through; }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--error); z-index: 3; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--error); }
.wk-slide-next .wk-body, .wk-slide-next .wk-head { animation: wk-in-next .22s ease-out; }
.wk-slide-prev .wk-body, .wk-slide-prev .wk-head { animation: wk-in-prev .22s ease-out; }
@keyframes wk-in-next { from { transform: translateX(24px); opacity: .3; } }
@keyframes wk-in-prev { from { transform: translateX(-24px); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .wk-slide-next .wk-body, .wk-slide-prev .wk-body, .wk-slide-next .wk-head, .wk-slide-prev .wk-head { animation: none; } }
.wk-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; padding: 0; margin: .7rem 0 0; font-size: 1rem; color: var(--muted); }
.wk-legend li { display: flex; align-items: center; gap: .35rem; }
.wk-dot { width: .9rem; height: .9rem; border-radius: 4px; border: 1px solid; }
.wk-dot.st-neu { background: #fbefd2; border-color: #b8862b; }
.wk-dot.st-bestätigt { background: #e3eedc; border-color: var(--ok); }
.wk-dot.st-erledigt { background: var(--ivory-100); border-color: var(--ivory-400); }
.wk-dot-block { background: var(--rose-bg); border-color: var(--rose-line); }
.wk-dot-closed { background: var(--ivory-200); border-color: var(--ivory-300); }
@media (max-width: 560px) {
  .wk { --wk-axis: 2.5rem; }
  .wk-axis span { font-size: .8rem; right: .25rem; }
  .wk-ev { padding: .1rem .25rem; border-left-width: 3px; }
  .wk-ev-name { font-size: .95rem; }
  .wk-range { min-width: 0; font-size: 1.15rem; }
}

/* Suche */
.search-field { flex: 1 1 18rem; }
.toolbar .search-field input { width: 100%; }
.search-list { display: grid; gap: .4rem; margin-top: .4rem; }
.search-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: .1rem 1rem; align-items: baseline; text-align: left; font: inherit;
  background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 10px; padding: .5rem .8rem; cursor: pointer; color: var(--ink);
}
.search-row:hover, .search-row:focus-visible { border-color: var(--accent); background: var(--ivory-100); outline: none; }
.search-when { font-weight: 600; }
.search-who { font-weight: 600; }
.search-what { grid-column: 2; font-size: 1.02rem; }
.search-row.st-storniert { opacity: .6; }
@media (max-width: 560px) { .search-row { grid-template-columns: 1fr; } .search-what { grid-column: 1; } }

/* Tabs */
.btn-on-dark { color: inherit; border-color: currentColor; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--ivory-300); overflow-x: auto; }
.tab {
  font: inherit; font-size: 1.3rem; font-weight: 500; letter-spacing: .04em; color: var(--muted);
  background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem 1rem; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.panel-head p { margin: 0; }
.check-inline { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--muted); margin-bottom: .6rem; }
.check-inline input { accent-color: var(--ink); }

/* Leistungen */
.service-item {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: .4rem 1.4rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px dashed var(--ivory-200);
}
.service-item:last-child { border-bottom: 0; }
.service-item .who { font-weight: 600; }
.svc-facts { display: grid; justify-items: end; line-height: 1.25; }
.svc-facts .price { font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.service-item .actions { display: flex; gap: .4rem; }
.service-item.is-archived { opacity: .6; }
details.archived { margin-top: 1.6rem; border-top: 1px solid var(--ivory-200); padding-top: .8rem; }
details.archived summary { cursor: pointer; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 720px) {
  .service-item { grid-template-columns: 1fr auto; }
  .service-item .actions { grid-column: 1 / -1; }
}

/* Schalter "buchbar" */
.switch { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: 1rem; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 2.4rem; height: 1.35rem; border-radius: 999px; background: var(--ivory-300); position: relative; transition: background .2s; flex: none; }
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.35rem - 4px); height: calc(1.35rem - 4px);
  border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { transform: translateX(1.05rem); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }

/* Hinweise im Admin-Bereich */
.notice { border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.2rem; font-size: 1.1rem; text-align: left; }
.notice p { margin: .3rem 0 0; }
.notice-warn { background: #fbecc8; color: #6b4300; border: 1px solid #ecd08e; }

/* Sonntage & Feiertage */
.open-settings {
  background: var(--ivory-100); border: 1px solid var(--ivory-200); border-radius: var(--radius);
  padding: .9rem 1.1rem; margin-bottom: 1.4rem; display: grid; gap: .7rem;
}
.open-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.open-row .switch { min-width: 15rem; color: var(--ink); }
.open-hours { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.open-hours input { width: auto; padding: .25rem .5rem; }
.week-form { display: grid; gap: .6rem; }
.week-row .switch { min-width: 11rem; }
.week-row { min-height: 2.4rem; }
.week-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .4rem; }
.mail-info { margin: 0 0 1rem; }
.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font-size: 1.05rem; margin-top: .25rem; }
.mail-line .btn { font-size: 1rem; padding: .15em .9em; }
.mail-pending { color: var(--accent-dk); }
.mail-sent { color: var(--ok); }
.mail-failed { color: var(--error); }
.link-btn { font: inherit; color: var(--accent-dk); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--ink); }

/* E-Mails: Postfach */
.notice-info { background: var(--ivory-100); color: var(--ink-soft); border: 1px solid var(--ivory-200); }
.mail-setup { display: grid; gap: 1rem; max-width: 760px; }
.mail-setup .notice, .mail-setup p { margin: 0; }
.pw-field { display: flex; gap: .4rem; }
.pw-field input { flex: 1; min-width: 0; }
.pw-field .btn { flex: none; font-size: 1rem; }
.mail-hint { background: #eef3ea; border: 1px solid #cfdcc8; color: #34522f; border-radius: 10px; padding: .5rem .8rem; font-size: 1.05rem; }
.mail-hint-warn { background: #fbecc8; border-color: #ecd08e; color: #6b4300; }
.mail-advanced summary { cursor: pointer; color: var(--muted); font-size: 1.05rem; }
.mail-advanced[open] { background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 10px; padding: .6rem .9rem .9rem; }
.mail-advanced .form-grid { margin: .8rem 0 .6rem; }
.mail-status { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.mail-status strong { font-size: 1.25rem; word-break: break-all; }
.mail-status-icon {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: #dce8d5; color: var(--ok); font-weight: 700; font-size: 1.3rem;
}

/* E-Mails: Texte */
.mail-text { border: 1px solid var(--ivory-200); border-radius: 12px; background: var(--ivory-50); }
.mail-text + .mail-text { margin-top: .7rem; }
.mail-text > summary { cursor: pointer; padding: .75rem 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; }
.mail-text-title { font-weight: 600; font-size: 1.2rem; }
.mail-text-pills { margin-left: auto; }
.mail-text.is-dirty > summary .mail-text-title::after { content: " •"; color: var(--accent); }
.pill-off { background: #f0d6d6; color: var(--error); }
.pill-custom { background: var(--ivory-200); color: var(--ink-soft); }
.mail-text-form { display: grid; gap: .9rem; padding: .2rem 1rem 1rem; border-top: 1px solid var(--ivory-200); padding-top: .9rem; }
.mail-text-form .form-error { margin: 0; }
.mail-enabled { color: var(--ink); }
.mail-field { display: grid; gap: .3rem; font-size: 1.15rem; font-weight: 500; }
.mail-field small { font-weight: 400; font-size: .95rem; }
.mail-field textarea { font-family: inherit; font-size: 1.1rem; line-height: 1.45; }
.placeholder-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.chip {
  font: inherit; font-size: .98rem; background: var(--white); color: var(--accent-dk); border: 1px solid var(--ivory-300);
  border-radius: 999px; padding: .05em .7em; cursor: pointer;
}
.chip:hover { border-color: var(--accent); background: var(--ivory-100); }
.mail-preview { background: var(--white); border: 1px dashed var(--ivory-400); border-radius: 10px; padding: .8rem 1rem; }
.mail-preview-head { font-weight: 600; margin-bottom: .5rem; border-bottom: 1px solid var(--ivory-200); padding-bottom: .4rem; }
.mail-preview pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 1.1rem; line-height: 1.45; margin: 0; }
.mail-preview p { margin: .6rem 0 0; }

.holiday-list summary { cursor: pointer; color: var(--muted); font-size: 1.05rem; }
.holiday-list ul { list-style: none; margin: .5rem 0 0; padding: 0; columns: 2 16rem; column-gap: 2rem; }
.holiday-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; break-inside: avoid; font-size: 1.05rem; }

/* Studio: Kontaktdaten, Hinweis, Online-Buchung */
.studio-form { display: grid; gap: 1rem; max-width: 760px; }
.studio-form .form-error, .studio-form p { margin: 0; }
.studio-form select { font: inherit; }
.studio-form small { font-weight: 400; font-size: .95rem; color: var(--muted); }
.studio-switch { padding: .2rem 0; }
.studio-switch .switch-label { color: var(--ink); }
.studio-status { font-size: 1.05rem; color: var(--muted); }
.studio-status-on { color: var(--ok); font-weight: 500; }
.studio-status-off { color: var(--error); font-weight: 500; }
.banner-preview { border-radius: 10px; overflow: hidden; border: 1px dashed var(--ivory-400); }
.banner-preview .site-banner { padding: .55rem 1rem; }
.banner-preview-empty { padding: .55rem 1rem; color: var(--muted); font-size: 1.05rem; text-align: center; }

/* Sperrzeiten */
.block-item {
  display: grid; grid-template-columns: 6px 1fr auto; gap: .4rem 1.1rem; align-items: center;
  padding: .9rem 0; border-bottom: 1px dashed var(--ivory-200);
}
.block-item:last-child { border-bottom: 0; }
.block-bar { align-self: stretch; border-radius: 3px; background: var(--rose-line); }
.block-active .block-bar { background: var(--rose); }
.block-past { opacity: .55; }
.block-item .who { font-weight: 600; }
.block-item .actions { display: flex; gap: .4rem; }
.pill-block-planned { background: var(--rose-bg); color: var(--rose); }
.pill-block-active { background: var(--rose); color: var(--white); }
.pill-block-past { background: var(--ivory-200); color: var(--ink-soft); }
.conflict { margin-top: .35rem; color: #7a4d00; background: #fbecc8; border-radius: 6px; padding: .2rem .6rem; font-size: 1.05rem; display: inline-block; }
@media (max-width: 680px) {
  .block-item { grid-template-columns: 6px 1fr; }
  .block-item .actions { grid-column: 2; }
}

/* Dialoge */
.dialog {
  border: 1px solid var(--ivory-300); border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 2rem));
  background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgba(43,36,30,.25);
}
.dialog::backdrop { background: rgba(43, 36, 30, .45); backdrop-filter: blur(2px); }
.dialog form, .dialog-body { padding: 1.6rem; }
.dialog-wide { width: min(720px, calc(100% - 2rem)); }
.edit-end { padding: .55em 0; font-weight: 600; }
.edit-conflicts { margin: 1rem 0 0; }
.edit-conflicts ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.dialog h3 { font-size: 1.8rem; font-weight: 500; margin: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet-close {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--ivory-300); background: var(--ivory-50);
  color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
}
.sheet-close:hover { background: var(--ivory-200); color: var(--ink); }
.dialog small { font-weight: 400; font-size: .95rem; }
.dialog .check { margin-bottom: 1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.block-grid { grid-template-columns: 1fr 1fr; }
#block-preview { margin: 1rem 0 0; }

/* Rückmeldungen */
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: var(--ivory-50); padding: .6rem 1.3rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: 1.15rem; max-width: calc(100% - 2rem); text-align: center;
}
.toast-warn { background: #7a4d00; border-radius: 12px; }

/* ==========================================================================
   Verwaltung: Anfragen-Karten, Termin-Details, Umschalter
   ========================================================================== */
.tab-icon, .tab-short, .fab-short { display: none; }
.tab { position: relative; }
.tab-badge {
  display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em; margin-left: .35rem;
  border-radius: 999px; background: #b8862b; color: var(--white); font-size: .78em; font-weight: 700; vertical-align: .1em;
}
.tab-badge[hidden] { display: none; }

/* Umschalter aus mehreren Knöpfen (Status, Kalender-Ansicht) */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ivory-300); border-radius: 999px; background: var(--ivory-50); padding: 2px; gap: 2px; }
.seg-btn {
  font: inherit; font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); background: none; border: 0; border-radius: 999px;
  padding: .3em .95em; cursor: pointer; white-space: nowrap;
}
.seg-btn:hover { background: var(--ivory-200); }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--ivory-50); }
.seg-status .seg-neu[aria-pressed="true"] { background: #b8862b; }
.seg-status .seg-bestätigt[aria-pressed="true"] { background: var(--ok); }
.seg-status .seg-erledigt[aria-pressed="true"] { background: var(--ink-soft); }
.seg-status .seg-storniert[aria-pressed="true"] { background: var(--error); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-ok:hover { background: #335a2f; border-color: #335a2f; }
.link-danger { color: var(--error); }
.link-danger:hover { color: #6e1f1f; }

/* Neue Anfragen */
.req {
  display: grid; grid-template-columns: 110px 1fr auto; gap: .3rem 1.2rem; align-items: start;
  padding: .9rem 0; border-bottom: 1px dashed var(--ivory-200); cursor: pointer;
}
.req:last-child { border-bottom: 0; }
.req-when { font-weight: 600; font-size: 1.25rem; }
.req-name { font-weight: 600; font-size: 1.2rem; }
.req .meta { color: var(--muted); font-size: 1.05rem; }
.req .notes, .bd .notes { background: var(--ivory-50); border-left: 3px solid var(--ivory-400); padding: .3rem .7rem; margin-top: .4rem; font-size: 1.1rem; white-space: pre-wrap; }
.req-actions { display: flex; flex-direction: column; gap: .4rem; min-width: 140px; }
.req-actions .btn { font-size: 1.05rem; }

/* Termin-Details */
.bd { display: grid; gap: .25rem; }
.bd-when { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.bd-name { font-size: 1.45rem; font-weight: 600; margin-top: .2rem; }
.bd-service { color: var(--ink-soft); font-size: 1.15rem; }
.bd-contact { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .2rem; }
.bd-contact-btn {
  display: inline-flex; flex-direction: column; min-width: 0; max-width: 100%; padding: .45rem .9rem; border-radius: 12px;
  border: 1px solid var(--ivory-300); background: var(--ivory-50); color: var(--ink); text-decoration: none; line-height: 1.25;
}
.bd-contact-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-contact-btn:hover { border-color: var(--accent); background: var(--ivory-100); }
.bd-contact-kind { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dk); }
.bd-section { margin-top: .9rem; }
.bd-label { font-size: .95rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: .3rem; }
.bd .mail-line { margin-top: .6rem; }
.bd textarea { font-size: 1.05rem; }
.bd-meta { margin-top: .9rem; color: var(--muted); font-size: 1rem; }
.bd-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: .4rem; font-size: 1.05rem; }
.bd.st-storniert .bd-name { text-decoration: line-through; color: var(--muted); }

@media (max-width: 680px) {
  .req { grid-template-columns: 1fr; }
  .req-actions { flex-direction: row; min-width: 0; }
  .req-actions .btn { flex: 1 1 0; padding-inline: .5em; }
}

/* Reiter „Texte“ */
.card-item {
  display: grid; grid-template-columns: 1fr auto; gap: .4rem 1.2rem; align-items: center;
  padding: .8rem 0; border-bottom: 1px dashed var(--ivory-200);
}
.card-item:last-child { border-bottom: 0; }
.card-item .who { font-weight: 600; font-size: 1.2rem; }
.card-item-text { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-item .actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.card-item .actions .btn { padding: .3em .85em; font-size: 1.02rem; }
@media (max-width: 680px) {
  .card-item { grid-template-columns: 1fr; }
  .card-item .actions { justify-content: flex-start; }
}
.content-form { max-width: 860px; }
.text-group { border: 1px solid var(--ivory-200); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0; display: grid; gap: .8rem; min-width: 0; }
.text-group legend { font-weight: 600; font-size: 1.15rem; color: var(--accent-dk); padding: 0 .4rem; }
.text-group label { display: grid; gap: .3rem; font-size: 1.1rem; font-weight: 500; }
.text-group textarea { font-family: inherit; line-height: 1.45; }
.text-reset { justify-self: start; font-size: 1rem; }

/* ==========================================================================
   Verwaltung am Handy (bis 640 px): Navigation unten, Dialoge als Vollbild
   ========================================================================== */
@media (max-width: 640px) {
  .admin-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .admin-header .header-inner { height: 54px; }
  .admin-header .brand { font-size: 1.45rem; }
  .admin-header .brand img { width: 34px; }
  .brand-sub { display: none; }
  .admin-main.container { width: calc(100% - 1.25rem); }
  .admin-main { padding: .9rem 0 2rem; }
  .panel { padding: 1rem .9rem; border-radius: 12px; margin-bottom: 1rem; }
  .panel h2 { font-size: 1.6rem; }
  .panel-head { gap: .6rem; }

  /* Reiter als Leiste am unteren Rand */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; gap: 0; overflow: visible;
    background: var(--white); border-top: 1px solid var(--ivory-300); border-bottom: 0;
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-shadow: 0 -4px 18px rgba(43,36,30,.08);
  }
  .tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: .45rem 0 .35rem; font-size: .8rem; letter-spacing: 0; border-bottom: 0; border-top: 3px solid transparent;
  }
  .tab[aria-selected="true"] { border-top-color: var(--accent); color: var(--ink); }
  .tab-icon { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .tab-badge { position: absolute; top: .2rem; left: calc(50% + 6px); margin: 0; font-size: .7rem; }

  /* „+ Termin“ schwebt unten rechts über der Leiste */
  .fab {
    position: fixed; right: 1rem; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 55;
    font-size: 1.2rem; padding: .7em 1.3em; box-shadow: 0 6px 18px rgba(43,36,30,.3);
  }
  .fab-long { display: none; }
  .fab-short { display: inline; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Kalender */
  .wk-toolbar { gap: .5rem .6rem; }
  .wk-range { order: -1; flex: 1 0 100%; font-size: 1.2rem; min-width: 0; }
  .wk-jump-label { display: none; }
  .wk-jump { order: 6; margin-left: auto; }
  .wk-jump input { padding: .3em .4em; }
  .wk-toolbar .check-inline { order: 5; }
  .wk-view .seg-btn { padding: .3em .7em; }

  /* Suche */
  .toolbar { gap: .6rem; }
  .toolbar label:not(.search-field) { flex: 1 1 40%; }
  .toolbar select, .toolbar input { min-width: 0; width: 100%; }

  /* Dialoge: Vollbild, Kopf mit ✕ oben, Knöpfe unten fest */
  .dialog, .dialog-wide {
    width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0;
    overscroll-behavior: contain;
  }
  .dialog form, .dialog-body { min-height: 100%; display: flex; flex-direction: column; padding: 0 1rem; }
  .sheet-head {
    position: sticky; top: 0; z-index: 3; margin: 0 -1rem .9rem; padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem;
    background: var(--white); border-bottom: 1px solid var(--ivory-200);
  }
  .dialog h3 { font-size: 1.45rem; }
  .dialog-actions {
    position: sticky; bottom: 0; z-index: 3; margin: auto -1rem 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--ivory-200);
  }
  .dialog-actions .btn { flex: 1 1 0; font-size: 1.1rem; padding: .65em .6em; white-space: nowrap; }
  .dialog .form-error, .edit-conflicts { margin-bottom: .8rem; }
  .bd { padding-bottom: 1rem; }
  .bd-when { font-size: 1.45rem; }
  .bd-contact-btn { flex: 1 1 100%; }
  #edit-form .form-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  #edit-form .form-grid > label:not(.half) { grid-column: 1 / -1; }
  .seg-status { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; width: 100%; }
  .seg-status .seg-btn { border-radius: 11px; padding: .55em .5em; font-size: 1.1rem; }
}
