/* Pilates Zentrum Hannover – gemeinsames Design (Farben und Schriften wie auf pilateszentrum-hannover.de) */
@font-face { font-family: Unbounded; src: url(/fonts/unbounded-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Unbounded; src: url(/fonts/unbounded-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Unbounded; src: url(/fonts/unbounded-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Brsegma; src: url(/fonts/brsegma-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Brsegma; src: url(/fonts/brsegma-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Brsegma; src: url(/fonts/brsegma-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Brsegma; src: url(/fonts/brsegma-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Edusahand; src: url(/fonts/edusahand-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #131313;
  --copy: #5f5f5f;
  --muted: #8b8b8b;
  --line: #dededf;
  --line-soft: #ececec;
  --bg: #ffffff;
  --soft: #f4f4f4;
  --dark: #161719;
  --dark-2: #232325;
  --brand: #630000;
  --brand-hover: #9b0c15;
  --rose: #f8efef;
  --rose-hover: #e1cfcf;
  --ok: #2f6b4f;
  --ok-soft: #e9f2ed;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --r-sm: 12px;
  --r: 20px;
  --r-pill: 200px;
  --shadow: 0 1px 2px rgba(19, 19, 19, .04), 0 8px 28px rgba(19, 19, 19, .07);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --display: Unbounded, Arial, sans-serif;
  --body: Brsegma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; }
h3 { font-size: 1.08rem; line-height: 1.35; font-weight: 500; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.hand { font-family: Edusahand, cursive; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile (wie auf der Webseite: dunkle Pille) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding: 14px 16px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar-inner { max-width: 1180px; margin: 0 auto; background: var(--dark); border-radius: var(--r-pill); display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 24px; gap: 12px; }
.topbar .logo img { height: 34px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a { color: #f7f7f7; text-decoration: none; font-size: .92rem; padding: 9px 14px; border-radius: var(--r-pill); transition: background .2s var(--ease); white-space: nowrap; }
.topbar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.topbar nav a.is-cta { background: #f7f7f7; color: var(--ink); font-weight: 600; }
.topbar nav a.is-cta:hover { background: #fff; }
@media (max-width: 560px) {
  .topbar { padding: 10px 10px 0; }
  .topbar-inner { padding: 8px 8px 8px 16px; }
  .topbar .logo img { height: 26px; }
  .topbar nav a:not(.is-cta) { display: none; }
  .topbar nav a.is-cta { padding: 8px 14px; font-size: .86rem; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------- Pillen, Badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--rose); color: var(--brand); border: 1px solid var(--rose-hover); border-radius: var(--r-pill); padding: 6px 14px; font-size: .84rem; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill); background: var(--soft); color: var(--copy); white-space: nowrap; }
.tag.brand { background: var(--rose); color: var(--brand); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.dark { background: var(--dark); color: #f7f7f7; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--r-pill); padding: 14px 24px; font-weight: 600; font-size: .98rem; line-height: 1.2;
  background: var(--brand); color: #fff; transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn:active { transform: scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.secondary { background: var(--rose); color: var(--brand); }
.btn.secondary:hover { background: var(--rose-hover); color: var(--brand); }
.btn.secondary.is-loading::after { border-color: rgba(99,0,0,.3); border-top-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.dark { background: var(--dark); }
.btn.dark:hover { background: var(--dark-2); }
.btn.small { padding: 9px 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkbtn:hover { color: var(--brand-hover); }
.linkbtn.muted { color: var(--copy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Karten ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card.soft { background: var(--soft); border-color: transparent; }
.card.dark { background: var(--dark); color: #f7f7f7; border-color: transparent; }
.card.dark h2, .card.dark h3 { color: #f7f7f7; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: .86rem; font-weight: 500; color: var(--ink); }
.field small { color: var(--copy); font-size: .8rem; }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 13px 14px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19, 19, 19, .06); }
.field textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
@media (max-width: 560px) { .row, .row-3 { grid-template-columns: 1fr; gap: 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--copy); margin: 10px 0; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check a { color: var(--ink); }
.segmented { display: inline-flex; background: var(--soft); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 9px 16px; border-radius: var(--r-pill); cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--copy); white-space: nowrap; }
.segmented button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.notice { border-radius: var(--r-sm); padding: 12px 16px; font-size: .92rem; background: var(--soft); color: var(--ink); margin: 0 0 14px; }
.notice.error { background: var(--rose); color: var(--brand); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Dialog / Bottom-Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(19, 19, 19, .45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s var(--ease); }
.sheet { background: #fff; border-radius: var(--r); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: rise .28s var(--ease); }
.sheet-head { position: sticky; top: 0; background: #fff; z-index: 2; padding: 20px 22px 14px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.sheet-head h3 { font-size: 1.05rem; }
.sheet-head p { margin: 4px 0 0; color: var(--copy); font-size: .9rem; }
.sheet-body { padding: 18px 22px 22px; }
.sheet-foot { position: sticky; bottom: 0; background: #fff; padding: 14px 22px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; flex: none; color: var(--ink); }
.x:hover { background: var(--line); }
@media (max-width: 560px) {
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .sheet { border-radius: var(--r) var(--r) 0 0; max-height: 92vh; animation: up .3s var(--ease); }
  .sheet-foot .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- Hinweis unten ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 13px 20px; border-radius: var(--r-pill); z-index: 120; font-size: .93rem; box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: rise .25s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.error { background: var(--brand); }

/* ---------- Fußzeile ---------- */
.footer { margin-top: 64px; padding: 28px 16px 40px; border-top: 1px solid var(--line-soft); color: var(--copy); font-size: .86rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer a { color: var(--copy); }
.footer a.terminate { color: var(--ink); font-weight: 600; }

.skeleton { background: linear-gradient(90deg, var(--soft) 25%, #ececec 37%, var(--soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { text-align: center; color: var(--copy); padding: 30px 16px; }
.empty img { width: 84px; margin: 0 auto 12px; opacity: .9; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
