@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/BeVietnamPro-400-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:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/BeVietnamPro-400-latin-ext.woff2') format('woff2');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,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/BeVietnamPro-500-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:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/BeVietnamPro-500-latin-ext.woff2') format('woff2');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,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/BeVietnamPro-600-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:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/BeVietnamPro-600-latin-ext.woff2') format('woff2');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,U+2C60-2C7F,U+A720-A7FF;}

@font-face{font-family:'Old Standard TT';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/OldStandardTT-400i-latin.woff2') format('woff2');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}
@font-face{font-family:'Old Standard TT';font-style:italic;font-weight:400;font-display:swap;src:url('assets/fonts/OldStandardTT-400i-latin-ext.woff2') format('woff2');unicode-range:U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF}

/* GetHomeForPets: Werte aus gethomeforpets-web/assets/ghfp.css; Tinte für Aktionen, Bernstein nur als Akzent. */
:root {
  color-scheme: light;
  --ink: #1B2A4A;
  --text-2: #56617C;
  --ground: #F3F6FB;
  --side: #E7EEF7;
  --surface: #FFFFFF;
  --field: #FFFFFF;
  --hover: rgba(27, 42, 74, .05);
  --hair: rgba(27, 42, 74, .14);
  --hair-2: rgba(27, 42, 74, .32);
  --accent: #1B2A4A;
  --accent-fill: #1B2A4A;
  --accent-text: #1B2A4A;
  --pale: #FCEEDC;
  --sage: #2E7A55;
  --sage-light: #DCE4EF;
  --slate: #4A6A96;
  --rose: #A8433A;
  --amber: #8A5A00;
  --muted-dot: #8A93A8;
  --scrim: rgba(15, 23, 41, .3);
  --cta-shadow: none;
  --bar: color-mix(in srgb, var(--ink) 6%, transparent);

  --sans: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;

  --side-w: 236px;
  --top-h: 60px;
  --pad: 32px;
  --r-card: 20px;
  --r-banner: 14px;
  --r-field: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #EEF2F9;
    --text-2: #A9B4C9;
    --ground: #0F1729;
    --side: #131D33;
    --surface: #18233C;
    --field: #1E2A46;
    --hover: rgba(255, 255, 255, .05);
    --hair: rgba(255, 255, 255, .1);
    --hair-2: rgba(255, 255, 255, .22);
    --accent: #F2B33D;
    --accent-fill: #3F5F9E;
    --accent-text: #F2B33D;
    --pale: #2A2A2E;
    --sage: #6FBF97;
    --sage-light: #2E3B57;
    --slate: #9DB6D6;
    --rose: #E79088;
    --amber: #F2B33D;
    --muted-dot: #7C879E;
    --scrim: rgba(0, 0, 0, .55);
    --cta-shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EEF2F9;
  --text-2: #A9B4C9;
  --ground: #0F1729;
  --side: #131D33;
  --surface: #18233C;
  --field: #1E2A46;
  --hover: rgba(255, 255, 255, .05);
  --hair: rgba(255, 255, 255, .1);
  --hair-2: rgba(255, 255, 255, .22);
  --accent: #F2B33D;
  --accent-fill: #3F5F9E;
  --accent-text: #F2B33D;
  --pale: #2A2A2E;
  --sage: #6FBF97;
  --sage-light: #2E3B57;
  --slate: #9DB6D6;
  --rose: #E79088;
  --amber: #F2B33D;
  --muted-dot: #7C879E;
  --scrim: rgba(0, 0, 0, .55);
  --cta-shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink);
  font: 400 14px/1.5 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
a { color: var(--accent-text); text-decoration-thickness: .5px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg.ic { width: 18px; height: 18px; flex: none; stroke-width: 1.5; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent-fill); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.small { font-size: 12.5px; }
.w600 { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }
.mb16 { margin-bottom: 16px; }
ul.small { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.inline-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.m0 { margin: 0; }
.pre { white-space: pre-wrap; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 38px; padding: 0 15px; border-radius: 999px;
  font-weight: 500; font-size: 13.5px; text-decoration: none; cursor: pointer;
  border: .5px solid var(--hair-2); background: var(--surface); color: var(--ink);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; box-shadow: var(--cta-shadow); }
.btn.primary:hover { filter: brightness(1.2); }
.btn.sm { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--rose); }
.btn.block { width: 100%; min-height: 46px; font-size: 15px; }
.btn.busy { pointer-events: none; opacity: .7; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; flex: none;
  border: .5px solid var(--hair-2); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn.plain { border-color: transparent; background: transparent; color: var(--text-2); width: 32px; height: 32px; }
.icon-btn.plain:hover { color: var(--ink); background: var(--hover); }
.icon-btn .ic { width: 17px; height: 17px; }

/* ——— Badge: Punkt + Text ——— */
.badge { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--sage)); flex: none; }
.tone-sage { --dot: var(--sage); }
.tone-accent { --dot: var(--accent); }
.tone-amber { --dot: var(--amber); }
.tone-rose { --dot: var(--rose); }
.tone-slate { --dot: var(--slate); }
.tone-muted { --dot: var(--muted-dot); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 11px/1 var(--sans); color: var(--accent-text); background: var(--pale); letter-spacing: .01em; }
.tag.muted { color: var(--text-2); background: var(--hover); }

/* ——— Chips, Segment, Tabs ——— */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: .75px solid var(--sage-light); background: var(--field); color: var(--ink);
  font: 500 13px/1 var(--sans); cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.chip:hover { background: var(--hover); }
.chip .count { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; font-weight: 600; }
.chip[aria-pressed="true"] .count { color: rgba(255, 255, 255, .85); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--pale); border: .5px solid var(--hair); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; text-decoration: none; }
.seg .ic { width: 15px; height: 15px; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 .5px var(--hair-2); }
.tabs { display: flex; gap: 2px; border-bottom: .5px solid var(--hair); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--ink); background: var(--hover); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -.5px; height: 2px; border-radius: 2px; background: var(--accent-fill); }
.tabs .dotmark { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* ——— Felder ——— */
.field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--accent-text); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 0 12px; border-radius: var(--r-field);
  border: 1px solid var(--sage-light); background: var(--field); color: var(--ink); font-size: 14px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.textarea { padding: 9px 12px; min-height: 92px; resize: vertical; line-height: 1.5; }
.textarea.tall { min-height: 200px; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--text-2); opacity: .8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly] { background: var(--hover); color: var(--text-2); cursor: default; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--rose); }
.field .error { font-size: 12.5px; color: var(--rose); display: none; }
.field.has-error .error { display: block; }
.field .help { font-size: 12px; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; min-height: 30px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent-fill); margin: 0; flex: none; }
.check.top { align-items: flex-start; }
.check.top input { margin-top: 2px; }
.check .help { display: block; font-weight: 400; margin-top: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fieldset-title { grid-column: 1 / -1; font-size: 13px; font-weight: 600; margin-top: 6px; padding-top: 12px; border-top: .5px solid var(--hair); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.form-actions .muted { margin-right: auto; font-size: 12.5px; }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-banner); background: color-mix(in srgb, var(--rose) 13%, var(--surface)); font-size: 13.5px; }
.form-error .ic { color: var(--rose); margin-top: 1px; }
.rows { display: grid; gap: 8px; }
.row-edit { display: grid; gap: 8px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.cols-3 .row-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.cols-4 .row-edit { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.cols-check .row-edit { grid-template-columns: auto minmax(0, 1fr) auto; }
.cols-wide .row-edit { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.cols-money .row-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) auto; }
.row-edit .input, .row-edit .select { min-height: 36px; }
.row-edit .icon-btn { margin-bottom: 1px; }

/* ——— Karten ——— */
.card { background: var(--surface); border: .5px solid var(--hair); border-radius: var(--r-card); padding: 18px 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 30px; flex-wrap: wrap; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.card-title .ic { color: var(--accent-text); width: 17px; height: 17px; }
.card-title .count { font: 600 13px var(--num); color: var(--text-2); font-variant-numeric: tabular-nums; }
.card + .card { margin-top: 16px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; border-radius: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link .ic { width: 14px; height: 14px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid2 > .card + .card, .grid3 > .card + .card, .col > .card + .card { margin-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.col { display: grid; gap: 16px; min-width: 0; }

/* ——— Login ——— */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-form-col { display: flex; flex-direction: column; padding: 32px clamp(24px, 6vw, 96px); }
.login-form-col .logo { margin-bottom: auto; }
.login-form { width: 100%; max-width: 420px; margin: 40px 0 auto; display: grid; gap: 16px; }
.login h1 { font-size: 44px; font-weight: 400; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 10px; }
.login h1 em, .login-art h2 em { font-family: 'Old Standard TT', Georgia, serif; font-style: italic; letter-spacing: -.01em; }
.login .lead { color: var(--text-2); font-size: 15px; max-width: 44ch; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 3px; top: 2px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--hover); }
.login-foot { font-size: 12.5px; color: var(--text-2); margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.login-foot a { color: var(--text-2); }
.login-art { background: #1B2A4A; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(32px, 5vw, 80px); gap: 22px; }
.login-photo { width: min(340px, 100%); aspect-ratio: 5 / 5.4; object-fit: cover; object-position: 50% 45%; clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%); }
.login-art h2 { font-size: 34px; line-height: 1.1; letter-spacing: -.035em; font-weight: 400; max-width: 22ch; }
.login-art ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 42ch; }
.login-art li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.login-art li .ic { color: #F2B33D; margin-top: 1px; }
.login-switch { font-size: 13.5px; color: var(--text-2); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.logo img { display: block; width: 176px; height: auto; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-light { display: none; } :root:not([data-theme="light"]) .logo .logo-dark { display: block; } }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }

/* ——— App-Rahmen ——— */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) var(--side-w), transparent var(--side-w)); }
.side {
  position: sticky; top: 0; height: 100vh; background: var(--side); border-right: .5px solid var(--hair);
  display: flex; flex-direction: column; padding: 16px 12px 12px; gap: 6px; overflow-y: auto;
}
.side .logo { padding: 6px 10px 16px; }
.nav { display: grid; gap: 1px; }
.nav a {
  display: flex; align-items: center; gap: 11px; min-height: 38px; padding: 0 11px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500;
  border: .5px solid transparent; transition: background-color 150ms var(--ease);
}
.nav a .ic { color: var(--text-2); width: 18px; height: 18px; }
.nav a:hover { background: var(--hover); }
.nav a[aria-current="page"] { background: var(--surface); border-color: var(--hair); font-weight: 600; }
.nav a[aria-current="page"] .ic { color: var(--accent-text); }
.nav .nav-count { margin-left: auto; font: 600 12px var(--num); color: var(--text-2); font-variant-numeric: tabular-nums; }
.nav .tag { margin-left: auto; }
.nav-sep { height: .5px; background: var(--hair); margin: 8px 11px; }
.nav-dot { display: none; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-fill); color: #fff; font: 600 12.5px var(--sans); letter-spacing: 0;
}
.me-text { min-width: 0; line-height: 1.25; }
.me-name { font-weight: 600; font-size: 13px; display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.me-role { font-size: 12px; color: var(--text-2); }
.me .icon-btn { margin-left: auto; width: 32px; height: 32px; background: transparent; border-color: transparent; color: var(--text-2); }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px;
  padding: 0 var(--pad); background: color-mix(in srgb, var(--ground) 95%, transparent); border-bottom: .5px solid var(--hair);
  backdrop-filter: saturate(1.2) blur(6px);
}
.menu-btn { display: none; }
.biz { display: flex; align-items: center; gap: 10px; min-width: 0; }
.biz-name { font-weight: 600; font-size: 14.5px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px 0 8px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.sync:hover { background: var(--hover); color: var(--ink); }
.sync .ic { width: 15px; height: 15px; }
.sync .sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.sync.error .sdot { background: var(--rose); }
.sync.demo .sdot { background: var(--amber); }
.sync.busy .ic { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search { position: relative; margin-left: auto; width: min(320px, 32vw); }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 16px; height: 16px; }
.search input { width: 100%; min-height: 36px; padding: 0 48px 0 36px; border-radius: 999px; border: .5px solid var(--hair-2); background: var(--field); font-size: 13.5px; }
.search input::placeholder { color: var(--text-2); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px var(--sans); color: var(--text-2); border: .5px solid var(--hair-2); border-radius: 6px; padding: 2px 6px; }
.search-btn { display: none; }
.theme-btn { flex: none; }
.theme-btn .t-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .t-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .t-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .t-sun { display: block; }
:root[data-theme="dark"] .theme-btn .t-moon { display: none; }

#main { padding: 26px var(--pad) 72px; width: 100%; max-width: 1440px; }
#main:focus, #login-main:focus { outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.page-head .sub { color: var(--text-2); font-size: 13.5px; margin-top: 5px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); text-decoration: none; margin-bottom: 8px; }
.crumb:hover { color: var(--ink); }
.crumb .ic { width: 15px; height: 15px; }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-banner); margin-bottom: 18px;
  background: color-mix(in srgb, var(--rose) 12%, var(--surface)); font-size: 13.5px; flex-wrap: wrap;
}
.banner > .ic { color: var(--rose); }
.banner .btn { margin-left: auto; }
.banner.info { background: var(--pale); }
.banner.info > .ic { color: var(--accent-text); }
.banner.warn { background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
.banner.warn > .ic { color: var(--amber); }
.banner > span { flex: 1; min-width: 200px; }

/* ——— Kennzahlen ——— */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.stat { display: grid; align-content: start; gap: 2px; padding: 16px 18px; text-decoration: none; color: var(--ink); min-width: 0; }
a.stat:hover { background: var(--hover); }
.stat + .stat { border-left: .5px solid var(--hair); }
.stat:first-child { border-radius: var(--r-card) 0 0 var(--r-card); }
.stat:last-child { border-radius: 0 var(--r-card) var(--r-card) 0; }
.stat-value { font: 600 24px/1.2 var(--num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-value.rose { color: var(--rose); }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.stat-label { font-size: 12.5px; color: var(--text-2); }

/* Belegung je Tierart */
.occ { display: grid; gap: 12px; }
.occ-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13.5px; }
.occ-name { font-weight: 600; }
.occ-figure { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; }
.occ-figure b { color: var(--ink); font-size: 13.5px; }
.meter { height: 8px; border-radius: 999px; background: var(--bar); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; background: var(--accent-fill); }
.meter i.foster { background: color-mix(in srgb, var(--accent-fill) 38%, transparent); }
.meter.high i:first-child { background: var(--amber); }
.meter.full i:first-child { background: var(--rose); }
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent-fill); }
.legend i.foster { background: color-mix(in srgb, var(--accent-fill) 38%, transparent); }

/* Balken (Vermittlungen je Monat) */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 104px; }
.bars .b { display: grid; gap: 4px; justify-items: center; align-content: end; height: 100%; }
.bars .bv { font: 500 11px var(--num); color: var(--text-2); font-variant-numeric: tabular-nums; }
.bars .bt { width: 100%; height: 64px; display: flex; align-items: flex-end; border-radius: 4px; background: var(--bar); overflow: hidden; }
.bars .bt i { display: block; width: 100%; background: var(--accent-fill); border-radius: 4px; }
.bars .bl { font-size: 11px; color: var(--text-2); }
.h0 { height: 0; } .h5 { height: 5%; } .h10 { height: 10%; } .h15 { height: 15%; } .h20 { height: 20%; } .h25 { height: 25%; } .h30 { height: 30%; } .h35 { height: 35%; } .h40 { height: 40%; } .h45 { height: 45%; } .h50 { height: 50%; } .h55 { height: 55%; } .h60 { height: 60%; } .h65 { height: 65%; } .h70 { height: 70%; } .h75 { height: 75%; } .h80 { height: 80%; } .h85 { height: 85%; } .h90 { height: 90%; } .h95 { height: 95%; } .h100 { height: 100%; }

/* Listen mit Zeilen */
.list { list-style: none; margin: 0; padding: 0; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; }
.li + .li { border-top: .5px solid var(--hair); }
.li-title { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.li-title a { color: var(--ink); text-decoration: none; }
.li-title a:hover { text-decoration: underline; }
.li-sub { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.li-side { text-align: right; display: grid; gap: 3px; justify-items: end; font-size: 12.5px; }
.li.top { align-items: start; }
.when { font: 600 12.5px var(--num); color: var(--accent-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.when.rose { color: var(--rose); }
.when.amber { color: var(--amber); }

/* ——— Tabellen ——— */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-input { position: relative; width: min(280px, 100%); }
.filter-input .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-2); width: 16px; height: 16px; }
.filter-input input { width: 100%; min-height: 34px; padding: 0 12px 0 34px; border-radius: 999px; border: .5px solid var(--hair-2); background: var(--field); font-size: 13.5px; }
.filter-input input:focus { outline: none; border-color: var(--accent); }
.select.sm { min-height: 34px; font-size: 13px; border-radius: 999px; width: auto; border-width: .5px; border-color: var(--hair-2); }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-2); padding: 11px 14px; border-bottom: .5px solid var(--hair); white-space: nowrap; background: var(--surface); }
.data td { padding: 10px 14px; border-bottom: .5px solid var(--hair); vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data th:first-child, .data td:first-child { padding-left: 20px; }
.data th:last-child, .data td:last-child { padding-right: 20px; }
.data .r { text-align: right; }
.data td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data .nw { white-space: nowrap; }
.data tbody tr.clickable { cursor: pointer; transition: background-color 120ms var(--ease); }
.data tbody tr.clickable:hover { background: var(--hover); }
.data tfoot td { padding: 12px 14px; font-weight: 600; border-top: .5px solid var(--hair-2); }
.data tfoot td:first-child { padding-left: 20px; }
.cell-main { font-weight: 600; overflow-wrap: anywhere; }
.cell-sub { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.cell-animal { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.row-btn { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; border-radius: 4px; text-decoration: none; overflow-wrap: anywhere; }
.row-btn:hover { text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: .2em; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; font-size: 12.5px; color: var(--text-2); border-top: .5px solid var(--hair); }
.thumb { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; background: var(--pale); display: grid; place-items: center; color: var(--accent-text); }
.thumb .ic { width: 18px; height: 18px; }
.thumb.lg { width: 64px; height: 64px; border-radius: 14px; }
.thumb.lg .ic { width: 28px; height: 28px; }
.skel { display: block; height: 11px; border-radius: 6px; background: var(--pale); position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.4s ease-in-out infinite; }
.skel.h { height: 26px; width: 220px; border-radius: 8px; }
.skel-rows { display: grid; gap: 14px; padding: 20px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ——— Leerzustand, Upsell ——— */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 52px 24px 60px; }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; color: var(--accent-text); margin-bottom: 6px; }
.empty-icon .ic { width: 28px; height: 28px; stroke-width: 1.3; }
.empty h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.empty p { color: var(--text-2); max-width: 56ch; font-size: 13.5px; }
.empty .page-actions { margin-top: 10px; justify-content: center; }
.empty.compact { padding: 28px 12px; }
.empty.compact .empty-icon { width: 48px; height: 48px; }
.empty.compact .empty-icon .ic { width: 22px; height: 22px; }
.price { font: 600 22px var(--num); letter-spacing: -.02em; margin-top: 6px; }
.price small { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ——— Tier-Detail ——— */
.detail-head { display: flex; gap: 16px; align-items: center; min-width: 0; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.checklist .ic { width: 17px; height: 17px; }
.checklist .ok .ic { color: var(--sage); }
.checklist .miss .ic { color: var(--text-2); }
.checklist .miss span { color: var(--text-2); }
.checklist a { margin-left: auto; font-size: 12.5px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: .5px solid var(--hair); margin-top: 12px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--sage-light); position: relative; transition: background-color 160ms var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform 180ms var(--ease); }
.switch input:checked + .track { background: var(--accent-fill); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.switch input:disabled + .track { opacity: .5; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo { border: .5px solid var(--hair); border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; }
.photo img, .photo .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pale); display: grid; place-items: center; color: var(--text-2); }
.photo .meta { padding: 8px 10px; display: grid; gap: 6px; font-size: 12.5px; }
.photo .meta .url { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo .acts { display: flex; gap: 4px; justify-content: flex-end; }
.photo.main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.photo .acts .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.photo.uploading .ph { padding: 12px; }
.photo .up-state { display: grid; gap: 6px; width: 100%; text-align: center; }
.photo progress { width: 100%; height: 6px; accent-color: var(--accent-fill); }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.photo-pick label.btn { cursor: pointer; }
.photo-pick label.btn:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; padding: 0 0 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 1px; background: var(--hair-2); }
.timeline li:last-child::before { display: none; }
.timeline li > i { width: 9px; height: 9px; border-radius: 50%; margin: 5px 0 0 3px; background: var(--surface); border: 1.5px solid var(--accent); }
.timeline li.note > i { border-color: var(--muted-dot); }
.timeline .tl-title { font-size: 13.5px; font-weight: 600; }
.timeline .tl-sub { font-size: 12.5px; color: var(--text-2); }
.timeline .tl-text { font-size: 13.5px; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ——— Vermittlung ——— */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(152px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: color-mix(in srgb, var(--side) 60%, transparent); border: .5px solid var(--hair); border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-size: 13px; font-weight: 600; }
.kcol-head .count { font: 600 12px var(--num); color: var(--text-2); }
.kcard { display: grid; gap: 4px; padding: 11px 12px; border-radius: 11px; background: var(--surface); border: .5px solid var(--hair); text-decoration: none; color: var(--ink); transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.kcard:hover { border-color: var(--hair-2); box-shadow: 0 4px 12px -8px rgba(15, 23, 41, .3); }
.kcard-title { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.kcard-sub { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.kcard-meta { display: flex; gap: 6px 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.kcard-meta .ic { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.kempty { font-size: 12.5px; color: var(--text-2); padding: 6px 4px; }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: 1; min-width: 92px; display: grid; gap: 6px; font-size: 12px; color: var(--text-2); position: relative; padding-right: 6px; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--bar); }
.steps li.done::before { background: color-mix(in srgb, var(--accent-fill) 45%, transparent); }
.steps li.cur::before { background: var(--accent-fill); }
.steps li.cur { color: var(--ink); font-weight: 600; }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 7px 14px; font-size: 13.5px; margin: 0; }
.dl dt { color: var(--text-2); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.qa { display: grid; gap: 10px; }
.qa div { display: grid; gap: 1px; }
.qa dt { font-size: 12.5px; color: var(--text-2); }
.qa dd { margin: 0; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.subhead { font-size: 13px; font-weight: 600; margin: 14px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subhead:first-child { margin-top: 0; }
.cl-items { display: grid; gap: 6px; }
.cl-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cl-item .input { min-height: 34px; }

/* ——— Ehrenamt: Wochenplan ——— */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--surface); border: .5px solid var(--hair); border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 160px; min-width: 0; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--text-2); padding: 0 2px; }
.day-head b { color: var(--ink); font-size: 13.5px; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 .5px var(--accent); }
.day.past { opacity: .72; }
.slot { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: var(--pale); border: .5px solid transparent; text-align: left; cursor: pointer; color: var(--ink); width: 100%; font: inherit; }
.slot:hover { border-color: var(--hair-2); }
.slot-time { font: 600 12px var(--num); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.slot-name { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.slot-sub { display: block; font-size: 12px; color: var(--text-2); }
.slot.full { background: var(--hover); }
.slot.full .slot-time { color: var(--text-2); }
.slot.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent-fill) 12%, var(--surface)); }
.day-empty { font-size: 12px; color: var(--text-2); padding: 2px; }
.vslots { display: grid; gap: 18px; }
.vday h3 { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.vslot { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: .5px solid var(--hair); }
.vslot + .vslot { margin-top: 8px; }
.vslot .slot-time { font-size: 13.5px; }
.vslot-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hours-figure { font: 600 30px/1 var(--num); letter-spacing: -.02em; }

/* ——— Drawer ——— */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; transition: opacity 220ms var(--ease); }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(560px, 100vw);
  background: var(--surface); border-left: .5px solid var(--hair); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 280ms var(--ease-drawer); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 16px; border-bottom: .5px solid var(--hair); }
.drawer-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.drawer-head .sub { font-size: 12.5px; color: var(--text-2); margin-top: 3px; display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.drawer-head .icon-btn { margin-left: auto; align-self: flex-start; }
.drawer-body { overflow-y: auto; padding: 18px 22px 28px; display: grid; gap: 20px; align-content: start; flex: 1; }
.drawer-foot { padding: 12px 22px; border-top: .5px solid var(--hair); display: flex; gap: 8px; justify-content: flex-end; align-items: center; background: var(--surface); flex-wrap: wrap; }
.drawer-foot .left { margin-right: auto; }
.d-section h3 { font-size: 14px; font-weight: 600; letter-spacing: -.012em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.d-section h3 .ic { width: 16px; height: 16px; color: var(--accent-text); }
.d-section h3 .link { margin-left: auto; }

/* ——— Dialog ——— */
.dlg { border: .5px solid var(--hair-2); border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45); }
.dlg::backdrop { background: var(--scrim); }
.dlg form { display: grid; gap: 14px; padding: 20px 22px; }
.dlg h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.dlg p { font-size: 13.5px; color: var(--text-2); }
.dlg .form-actions { margin-top: 4px; }
.secret { font: 600 16px ui-monospace, "SF Mono", Menlo, monospace; padding: 10px 12px; border-radius: 10px; background: var(--pale); user-select: all; overflow-wrap: anywhere; }

/* ——— Toast ——— */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-size: 13.5px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  animation: toast-in 200ms var(--ease);
}
.toast.error { background: var(--rose); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center-screen .card { max-width: 540px; width: 100%; }

/* ——— Vertrag (Druck) ——— */
.contract-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.signature img { max-width: 320px; width: 100%; border-bottom: 1px solid var(--ink); background: #fff; }

/* ——— Responsive: Seitenleiste → Leiste → Schublade ——— */
@media (max-width: 1279px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.detail > .col:last-child { order: -1; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  :root { --side-w: 72px; --pad: 24px; }
  .side { padding: 16px 10px; align-items: stretch; }
  .side .logo { justify-content: center; padding: 6px 0 16px; }
  .side .logo img { width: 29px; height: 30px; object-fit: cover; object-position: left center; }
  .side .logo-text, .nav .label, .nav .nav-count, .nav .tag, .me-text, .me .icon-btn { display: none; }
  .nav a { justify-content: center; padding: 0; min-height: 44px; position: relative; }
  .nav a .ic { width: 20px; height: 20px; }
  .nav-dot { display: block; position: absolute; top: 9px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
  .me { justify-content: center; padding: 6px 0; }
  .search kbd { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: .5px solid var(--hair); }
  .stat { border-radius: 0 !important; }
}
@media (max-width: 1023px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .sync .sync-text { display: none; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform 260ms var(--ease-drawer); visibility: hidden; }
  .side.open { transform: none; visibility: visible; }
  .side .logo { justify-content: flex-start; padding: 6px 10px 16px; }
  .side .logo img { width: 176px; height: auto; }
  .side .logo-text, .nav .label, .me-text, .me .icon-btn { display: revert; }
  .nav .nav-count { display: inline; }
  .nav .tag { display: inline-flex; }
  .nav a { justify-content: flex-start; padding: 0 11px; }
  .nav-dot { display: none !important; }
  .me { justify-content: flex-start; padding: 8px; }
  .menu-btn { display: grid; }
  .search { display: none; }
  .search-btn { display: grid; margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .topbar { gap: 8px; }
  .page-head h1 { font-size: 22px; }
  .page-head { margin-bottom: 18px; }
  .page-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat { padding: 14px; }
  .stat-value { font-size: 20px; }
  .card { padding: 16px 14px; }
  .table-card { padding: 0; }
  .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .dl dd { margin-bottom: 8px; }
  .occ-row { grid-template-columns: 84px minmax(0, 1fr) 72px; gap: 8px; }
  .week { grid-template-columns: minmax(0, 1fr); }
  .day { min-height: 0; }
  .vslot { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vslot-acts { justify-content: flex-start; }
  .row-edit { grid-template-columns: minmax(0, 1fr) !important; }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .bars { gap: 3px; }
  .bars .bl { font-size: 10px; }
  .toolbar .filter-input { width: 100%; }
  .data th, .data td { padding-left: 10px; padding-right: 10px; }
  .data th:first-child, .data td:first-child { padding-left: 14px; }
  .data .hide-sm { display: none; }
  .kanban { grid-auto-columns: minmax(240px, 82vw); }
}

/* Halsband-Etiketten (views-tags.js): echte Maße in mm, schwarz auf weiß, auch im dunklen Design. */
.tags-formats { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tags-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tags-pick-head span { display: flex; gap: 6px; }
.tags-pick { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.tags-print { overflow: auto; }
.tag { display: flex; align-items: center; gap: 2.5mm; box-sizing: border-box; background: #fff; color: #000; font-family: var(--sans); overflow: hidden; }
.tags-roll .tag { width: 62mm; height: 29mm; padding: 2mm 2.5mm; border: .3mm dashed #b8c0cf; margin: 0 0 4mm; }
.tags-roll .tag-qr { width: 24mm; height: 24mm; flex: none; }
.tags-a4 { width: 210mm; height: 297mm; display: grid; grid-template-columns: repeat(3, 70mm); grid-template-rows: repeat(8, 37mm); background: #fff; margin: 0 0 6mm; }
.tags-a4 .tag { width: 70mm; height: 37mm; padding: 4mm; border: .3mm dashed #b8c0cf; }
.tags-a4 .tag-qr { width: 28mm; height: 28mm; flex: none; }
.tag-empty { background: repeating-linear-gradient(45deg, #fff, #fff 2mm, #f1f3f7 2mm, #f1f3f7 4mm); }
.tag-text { display: flex; flex-direction: column; gap: .5mm; min-width: 0; line-height: 1.15; }
.tag-name { font-size: 13pt; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-org { font-size: 7pt; }
.tag-call { font-size: 6.5pt; margin-top: 1mm; }
.tag-phone { font-size: 8.5pt; font-weight: 700; }
.tags-kennel { display: grid; gap: 6mm; }
.kennel { width: 148mm; min-height: 210mm; box-sizing: border-box; padding: 10mm; background: #fff; color: #000; font-family: var(--sans); border: .3mm dashed #b8c0cf; display: flex; flex-direction: column; gap: 3mm; }
.kennel-photo { width: 100%; height: 72mm; object-fit: cover; border-radius: 3mm; }
.kennel-name { margin: 0; font-size: 28pt; line-height: 1.05; letter-spacing: -.02em; }
.kennel-line { margin: 0; font-size: 11pt; }
.kennel-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; margin: 0; }
.kennel-compat { grid-template-columns: repeat(3, 1fr); }
.kennel-facts div { border-top: .3mm solid #000; padding-top: 1mm; }
.kennel-facts dt { font-size: 7.5pt; }
.kennel-facts dd { margin: 0; font-size: 11pt; font-weight: 600; }
.kennel-block { font-size: 9.5pt; line-height: 1.35; }
.kennel-foot { margin-top: auto; display: flex; align-items: center; gap: 4mm; font-size: 9pt; line-height: 1.35; }
.kennel-foot .tag-qr { width: 28mm; height: 28mm; flex: none; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.print-only { display: none; }
.register-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.register-sum dt { font-size: 12.5px; color: var(--text-2); }
.register-sum dd { margin: 4px 0 0; font-size: 22px; font-weight: 600; }
@media (max-width: 640px) { .register-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .print-only { display: block; } .register-head { margin: 0 0 4mm; font-size: 10pt; } .data.register { font-size: 9pt; } .data.register a { color: #000; text-decoration: none; } .table-scroll { overflow: visible; } }
@page tagkennel { size: A5; margin: 0; }
@page tagroll { size: 62mm 29mm; margin: 0; }
@page taga4 { size: A4; margin: 0; }

@media print {
  .side, .topbar, .no-print, .toast-region, .drawer, .scrim { display: none !important; }
  .printing-tags .page-head, .printing-tags .banner, .printing-tags h2 { display: none !important; }
  .printing-tags .split, .printing-tags .col, .printing-tags .card, .printing-tags .tags-print { display: block; overflow: visible; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .printing-tags .tags-roll .tag { page: tagroll; break-after: page; border: 0; margin: 0; }
  .printing-tags .tags-a4 { page: taga4; break-after: page; margin: 0; }
  .printing-tags .tags-a4 .tag { border: 0; }
  .printing-tags .tag-empty { background: none; }
  .printing-tags .tags-kennel { display: block; }
  .printing-tags .kennel { page: tagkennel; break-after: page; border: 0; height: 210mm; }
  .shell { display: block; }
  body { background: #fff; color: #000; }
  #main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
}

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