/* dogism Plattform — Screenshot-Stil: teal / peach / hell */
:root {
  --dogism-teal: #8eb3b1;
  --dogism-teal-deep: #6f9694;
  --dogism-teal-soft: #d8e6e5;
  --dogism-peach: #e69d73;
  --dogism-peach-soft: #f5dccb;
  --dogism-ink: #2c3438;
  --bg: #f3f6f6;
  --bg-elevated: #eef3f2;
  --card: #ffffff;
  --text: #2c3438;
  --muted: #5f6b6e;
  --line: rgba(44, 52, 56, 0.12);
  --accent: var(--dogism-peach);
  --accent-soft: var(--dogism-peach-soft);
  --accent-hover: #d4845a;
  --accent-ink: #1a1208;
  --accent-glow: rgba(142, 179, 177, 0.28);
  --brand: var(--dogism-teal);
  --brand-deep: var(--dogism-teal-deep);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--brand-deep); }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 246, 246, 0.92);
  backdrop-filter: blur(16px);
}
.inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
}
.top nav a:hover { color: var(--text); }
h1 {
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.2;
  overflow: visible;
}
h2 { margin: 0 0 8px; font-size: 1.15rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 8px;
}
.lede, .addr, .foot {
  color: var(--muted);
}
main { padding: 40px 0 72px; }
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.grid .card { overflow: hidden; }
.card.pad,
form.card {
  padding: 28px;
  overflow: visible;
}
.login {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 48px;
}
.login-panel {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 32px 32px;
  overflow: visible;
}
.login-panel h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 10px;
}
.login-panel .lede {
  margin: 0 0 24px;
}
.login-form {
  display: grid;
  gap: 18px;
}
.feld {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.feld span {
  line-height: 1.3;
}
.feld input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.feld input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.login-form button {
  margin-top: 4px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.login-panel-breit { width: min(520px, 100%); }
.login-neben {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
}
.login-neben a { color: var(--accent); font-weight: 650; }
.feld.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text);
}
.feld.check input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}
.feld .opt {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85em;
}
.wizard {
  padding: 28px 0 56px;
}
.wizard-panel {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 28px 24px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.wizard-panel h1 { margin: 0 0 8px; }
.wizard-panel h2 { margin: 8px 0 6px; font-size: 1.25rem; }
.wizard-fortschritt { margin: 20px 0 22px; }
.wizard-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.wizard-meta strong { color: var(--text); font-size: 1.05rem; }
.wizard-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.wizard-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.wizard-schritte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.wizard-schritte li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.wizard-schritte li.done {
  color: #14532d;
  background: #e7f3ea;
  border-color: #b7ddc0;
}
.wizard-schritte li.jetzt {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 650;
}
.wizard-form { display: grid; gap: 14px; }
.wizard-wahl-list { display: grid; gap: 8px; }
.wizard-wahl {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.35);
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.wizard-nav button,
.wizard-form button {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.wizard-nav .wizard-sekundaer {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.konto {
  padding: 28px 0 56px;
}
.konto .lede { max-width: 40rem; }

/* App-Launcher (Übersicht nach Login) — mittig im Content unter Top-Bar */
.be-content:has(> .app-uebersicht) {
  display: flex;
  flex-direction: column;
}
.app-uebersicht {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 24px;
  box-sizing: border-box;
  --app-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238eb3b1'%3E%3Cellipse cx='12' cy='15.5' rx='5.2' ry='4.2'/%3E%3Ccircle cx='5.8' cy='8.5' r='2.1'/%3E%3Ccircle cx='9.8' cy='5.8' r='2.15'/%3E%3Ccircle cx='14.2' cy='5.8' r='2.15'/%3E%3Ccircle cx='18.2' cy='8.5' r='2.1'/%3E%3C/svg%3E");
}
.app-uebersicht > h1 + .app-grid {
  margin-top: 14px;
}
.app-greet {
  width: min(40rem, 100%);
  text-align: center;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
}
.app-greet-line {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}
.app-activity {
  width: min(36rem, 100%);
  margin: 4px auto 0;
  padding: 14px 18px 16px;
  box-sizing: border-box;
  border-radius: 16px;
  background: color-mix(in srgb, var(--dogism-teal) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--dogism-teal) 22%, var(--line));
}
.app-activity-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-activity-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-activity-list li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}
.app-activity-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--dogism-peach) 35%, transparent);
}
.app-activity-list a:hover {
  color: var(--dogism-peach);
  border-bottom-color: color-mix(in srgb, var(--dogism-peach) 70%, transparent);
}
.app-activity-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
.app-grid {
  display: grid;
  /* max. 4 Spalten; >4 Apps umbrechen in weitere Reihen */
  grid-template-columns: repeat(4, minmax(9rem, 11rem));
  gap: 28px 36px;
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  justify-items: center;
}
.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.app-tile:hover .app-icon,
.app-tile:focus-visible .app-icon {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--dogism-peach) 45%, transparent);
  background: color-mix(in srgb, var(--dogism-peach) 14%, var(--card));
  color: var(--dogism-peach);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.app-tile:focus-visible {
  outline: none;
}
/* Brand-Icons: teal/peach filled (Screenshot-Stil) — Übersicht ~2× */
.app-icon {
  position: relative;
  overflow: hidden;
  width: 144px;
  height: 144px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--dogism-teal) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--dogism-teal) 26%, var(--line));
  color: var(--dogism-teal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.app-icon::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 104px;
  height: 104px;
  background: var(--app-paw) center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
/* Tint-Klassen bleiben für Markup-Kompatibilität */
.app-icon[class*="app-tint-"] {
  color: var(--dogism-teal);
}
.app-glyph {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
}
.app-nav-img {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
}
.app-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--muted);
  max-width: 11rem;
}
.app-tile:hover .app-label {
  color: var(--text);
}
.app-empty {
  grid-column: 1 / -1;
}
.app-branding {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 40px 0 8px;
  padding-top: 8px;
}
.app-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 18px;
  flex-shrink: 0;
}
.app-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.app-brand-text strong {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.app-brand-text .dogism-o-paw {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  color: var(--dogism-peach);
}
.app-brand-text span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.app-uebersicht .app-meta,
.app-uebersicht .konto-karte.app-meta {
  margin-top: 24px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.app-uebersicht .app-meta .konto-dl {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 28px;
}
@media (max-width: 560px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(9rem, 11rem));
    gap: 22px 24px;
  }
  .app-icon {
    width: 128px;
    height: 128px;
    border-radius: 32px;
  }
  .app-glyph {
    width: 56px;
    height: 56px;
  }
  .app-nav-img {
    width: 78px;
    height: 78px;
  }
  .app-branding {
    justify-content: center;
    flex-wrap: wrap;
  }
  .app-brand-text {
    text-align: center;
  }
}

.betrieb-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.betrieb-mini a {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}
.betrieb-mini a.aktiv,
.betrieb-mini a:hover {
  text-decoration: underline;
}

/* Backend-Shell (Canvas-GUI): Icon-Nav + Top-Bar */
.be-app {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #f3f6f6);
}
.be-shell {
  --be-rail-w: 72px;
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}
.be-shell.is-rail-open {
  --be-rail-w: 228px;
}
.be-rail {
  width: var(--be-rail-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  background: color-mix(in srgb, var(--dogism-teal-soft, #d8e6e5) 55%, var(--card, #ffffff));
  border-right: 1px solid var(--line, rgba(44, 52, 56, 0.12));
  box-sizing: border-box;
  transition: width 0.18s ease;
  overflow: hidden;
}
.be-rail-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.12));
}
.be-shell.is-rail-open .be-rail-head {
  gap: 6px;
  padding: 0 2px 10px;
}
.be-rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 2px 0 4px;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
}
.be-rail-brand:hover {
  color: var(--brand-deep, var(--dogism-teal-deep));
}
.be-shell.is-rail-open .be-rail-brand {
  justify-content: flex-start;
  min-height: 44px;
  font-size: 2.25rem; /* ~36px — Kopfzeile bis Toggle ausnutzen */
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.be-rail-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line, rgba(44, 52, 56, 0.14));
  border-radius: 8px;
  background: rgba(44, 52, 56, 0.06);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.be-shell.is-rail-open .be-rail-toggle {
  width: 36px;
  height: 36px;
}
.be-rail-toggle:hover {
  color: var(--text);
  background: rgba(44, 52, 56, 0.08);
  border-color: color-mix(in srgb, var(--dogism-peach) 40%, transparent);
}
.be-rail-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}
.be-rail.is-open .be-rail-chevron {
  transform: rotate(180deg);
}
.be-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.be-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 4px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  border: none;
  background: transparent;
  min-height: 48px;
  box-sizing: border-box;
}
.be-shell.is-rail-open .be-rail-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.be-rail-item:hover {
  background: rgba(44, 52, 56, 0.06);
  color: var(--text);
}
.be-rail-item.is-aktiv {
  background: color-mix(in srgb, var(--dogism-teal) 14%, transparent);
  color: var(--text);
}
.be-rail-ico {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--dogism-teal) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--dogism-teal) 28%, var(--line));
  color: var(--dogism-teal);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.be-rail-ico .app-glyph {
  width: 24px;
  height: 24px;
}
.be-rail-ico .app-nav-img {
  width: 28px;
  height: 28px;
}
.be-rail-item:hover .be-rail-ico {
  color: var(--dogism-peach);
  border-color: color-mix(in srgb, var(--dogism-peach) 40%, transparent);
  background: color-mix(in srgb, var(--dogism-peach) 16%, var(--card));
}
.be-rail-item.is-aktiv .be-rail-ico {
  background: color-mix(in srgb, var(--dogism-teal) 22%, var(--card));
  border-color: var(--dogism-teal);
  color: var(--dogism-teal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dogism-peach) 35%, transparent);
}
.be-rail-brand .dogism-logo-mark {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow: visible;
}
/* Eingeklappt: nur Pfote/o, Toggle bleibt erreichbar */
.be-rail-brand .dogism-logo-d,
.be-rail-brand .dogism-logo-rest {
  display: none;
}
.be-shell.is-rail-open .be-rail-brand .dogism-logo-d,
.be-shell.is-rail-open .be-rail-brand .dogism-logo-rest {
  display: inline;
}
.be-rail-brand .dogism-o-paw {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  vertical-align: -0.1em;
  color: var(--dogism-teal);
}
.be-shell.is-rail-open .be-rail-brand .dogism-o-paw {
  width: 0.95em;
  height: 0.95em;
}
.be-rail-lbl {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.be-shell.is-rail-open .be-rail-lbl {
  display: block;
}
.be-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg, #f3f6f6);
}
.be-nav-open {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line, rgba(44, 52, 56, 0.14));
  border-radius: 10px;
  background: rgba(44, 52, 56, 0.06);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.be-nav-open svg {
  width: 22px;
  height: 22px;
}
.be-nav-open:hover {
  background: rgba(44, 52, 56, 0.1);
  border-color: color-mix(in srgb, var(--dogism-peach) 40%, transparent);
}
.be-rail-backdrop {
  display: none;
}
html.be-nav-lock,
html.be-nav-lock body {
  overflow: hidden;
}
.be-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.12));
  background: var(--card, #ffffff);
}
.be-top-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.be-top-school {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  background: var(--card, #ffffff);
}
.be-top-school-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.be-top-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9aa3a8;
}
.be-top-led.is-online {
  background: #2f9e5d;
  box-shadow: 0 0 0 2px color-mix(in srgb, #2f9e5d 22%, transparent);
}
.be-top-led.is-offline {
  background: #c44a3a;
  box-shadow: 0 0 0 2px color-mix(in srgb, #c44a3a 22%, transparent);
}
.website-preview-link {
  margin: 16px 0 0;
}
a.be-top-school:hover,
a.be-top-school:focus-visible {
  color: var(--ink, #2c3438);
  border-color: color-mix(in srgb, var(--dogism-teal) 40%, var(--line));
}
.be-top-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.be-top-link.be-top-md {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.be-top-link.be-top-msg {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.be-top-msg-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--dogism-peach) 14%, var(--card));
  border: 1px solid color-mix(in srgb, var(--dogism-peach) 30%, var(--line));
  overflow: hidden;
}
.be-top-msg-ico .app-nav-img {
  width: 20px;
  height: 20px;
}
.be-top-msg-ico .app-glyph {
  width: 16px;
  height: 16px;
}
.be-top-msg-badge,
.be-rail-badge {
  display: inline-flex;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.32rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dogism-peach, #e69d73);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.be-top-msg-badge {
  margin-left: -2px;
}
.be-rail-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1rem;
  height: 1rem;
  font-size: 0.62rem;
  box-shadow: 0 0 0 2px var(--card, #fff);
}
.be-top-md-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--dogism-teal) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--dogism-teal) 26%, var(--line));
  overflow: hidden;
}
.be-top-md-ico .app-nav-img {
  width: 20px;
  height: 20px;
}
.be-top-md-ico .app-glyph {
  width: 16px;
  height: 16px;
}
.be-top-link:hover {
  color: var(--accent);
}
.be-top-link.is-aktiv {
  color: var(--text);
}
.be-tabs-wrap {
  padding: 0 22px;
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.12));
  background: var(--card, #ffffff);
}
.be-tabs-wrap .bh-subnav,
.be-tabs-wrap .be-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.be-tabs-wrap .bh-subnav a,
.be-tabs-wrap .be-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  margin: 0;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
}
.be-tabs-wrap .bh-subnav a:hover,
.be-tabs-wrap .be-tabs a:hover {
  color: var(--text);
  text-decoration: none;
}
.be-tabs-wrap .bh-subnav a.aktiv,
.be-tabs-wrap .be-tabs a.aktiv {
  color: var(--text);
  font-weight: 650;
  border-bottom-color: var(--dogism-peach);
  text-decoration: none;
}
.be-tabs-wrap .be-subtabs {
  border-top: 1px solid var(--line, rgba(44, 52, 56, 0.08));
  padding-top: 0;
}
.be-tabs-wrap .be-subtabs a {
  font-size: 0.8rem;
  padding: 8px 12px;
  font-weight: 500;
}
.be-tabs-wrap .be-subtabs a.aktiv {
  border-bottom-color: var(--accent, #2c3438);
}
.be-content .be-minitabs,
.konto .be-minitabs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.12));
}
.be-content .be-minitabs a,
.konto .be-minitabs a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.be-content .be-minitabs a:hover,
.konto .be-minitabs a:hover {
  color: var(--text);
  text-decoration: none;
}
.be-content .be-minitabs a.aktiv,
.konto .be-minitabs a.aktiv {
  color: var(--text);
  font-weight: 650;
  border-bottom-color: var(--dogism-peach);
}
.be-content {
  flex: 1;
  padding: 8px 22px 40px;
  max-width: 1100px;
  width: 100%;
  margin-inline: auto; /* mittig in .be-main — rechter Rand mitrechnen */
  box-sizing: border-box;
}
.be-content .konto {
  padding-top: 12px;
  padding-bottom: 24px;
}
.be-content .betrieb-mini,
.be-content .bh-subnav,
.be-content .konto .bh-subnav {
  display: none;
}
.be-content #meine-daten {
  scroll-margin-top: 24px;
}
@media (max-width: 720px) {
  .be-shell,
  .be-shell.is-rail-open {
    --be-rail-w: 0;
    display: block;
  }
  .be-nav-open {
    display: grid;
  }
  .be-rail {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: 300px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px 24px;
    border-right: 1px solid var(--line, rgba(44, 52, 56, 0.12));
    border-bottom: 0;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 28px rgba(44, 52, 56, 0.18);
  }
  .be-shell.is-rail-open .be-rail,
  .be-rail.is-open {
    transform: translateX(0);
  }
  .be-rail-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(44, 52, 56, 0.42);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .be-rail-head {
    display: flex;
  }
  .be-rail-brand .dogism-logo-d,
  .be-rail-brand .dogism-logo-rest,
  .be-shell.is-rail-open .be-rail-brand .dogism-logo-d,
  .be-shell.is-rail-open .be-rail-brand .dogism-logo-rest {
    display: inline;
  }
  .be-rail-brand,
  .be-shell.is-rail-open .be-rail-brand {
    justify-content: flex-start;
    font-size: 1.55rem;
    min-height: 44px;
  }
  .be-rail-nav {
    flex-direction: column;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .be-rail-item,
  .be-shell.is-rail-open .be-rail-item {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
  }
  .be-rail-lbl,
  .be-shell.is-rail-open .be-rail-lbl {
    display: block;
  }
  .be-rail-ico {
    width: 40px;
    height: 40px;
  }
  .be-main {
    width: 100%;
    min-height: 100vh;
  }
  .be-top {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .be-top-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
  }
  .be-top-school {
    order: 5;
    margin-left: 0;
    flex: 1 1 100%;
    max-width: none;
  }
  .be-top-link.be-top-md span:last-child {
    display: none;
  }
  .be-top-msg-lbl {
    display: none;
  }
  .be-content {
    padding: 8px 14px 32px;
  }
  .be-tabs-wrap {
    padding: 0 14px;
  }
  .be-content .konto-form input,
  .be-content .konto-form select,
  .be-content .konto-form textarea,
  .be-content .suche input,
  .be-content .suche select {
    max-width: 100%;
  }
  .be-content .suche input {
    min-width: 0;
    width: 100%;
  }
}
/* Backend-Tabellen: dunkler Brand-Kopf (wie Landing), Gold-Links */
.be-shell .tabelle-wrap,
.konto .tabelle-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  margin: 12px 0 24px;
}
.be-shell .konto-karte > .tabelle-wrap,
.konto-karte > .tabelle-wrap {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 8px 0 12px;
}
.be-shell .tabelle,
.konto .tabelle {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: var(--text);
}
.be-shell .tabelle th,
.be-shell .tabelle td,
.konto .tabelle th,
.konto .tabelle td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border: 0;
}
.be-shell .tabelle thead th,
.konto .tabelle thead th {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid color-mix(in srgb, var(--dogism-peach) 35%, transparent);
}
.be-shell .tabelle thead th:first-child,
.konto .tabelle thead th:first-child {
  border-radius: 8px 0 0 8px;
}
.be-shell .tabelle thead th:last-child,
.konto .tabelle thead th:last-child {
  border-radius: 0 8px 8px 0;
}
.be-shell .tabelle tbody td,
.konto .tabelle tbody td {
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid rgba(44, 52, 56, 0.06);
}
.be-shell .tabelle tbody tr:last-child td,
.konto .tabelle tbody tr:last-child td {
  border-bottom: 0;
}
.be-shell .tabelle a,
.konto .tabelle a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.be-shell .tabelle a:hover,
.konto .tabelle a:hover {
  color: var(--accent-hover);
}
/* Rechnungsdruck: dunkler Text auf weißem Papier */
.rechnung-druck .tabelle,
.rechnung-druck .tabelle td {
  color: #111;
}
.rechnung-druck .tabelle thead th {
  background: #f0f4f8;
  color: #1b2430;
}
.konto .karten {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 16px;
}
.konto .bh-kennzahlen {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 16px 0 24px;
}
.konto .bh-kennzahl {
  margin: 0;
}
.konto .bh-label {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 650;
}
.konto .bh-zahl {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.konto .bh-neben {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.konto .bh-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.konto .bh-subnav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.konto .bh-subnav a:hover,
.konto .bh-subnav a.aktiv {
  color: var(--text);
  text-decoration: underline;
}
.konto .bh-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.konto .form-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.konto .mail-vorschau {
  white-space: pre-wrap;
  font-size: 0.9rem;
  background: var(--bg, #f7f5f1);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rechnung-druck {
  max-width: 800px;
  margin: 24px auto;
  padding: 32px 36px;
  background: #fff;
  color: #111;
  border: 1px solid #d8dee6;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  font-size: 0.95rem;
  line-height: 1.45;
}
.rechnung-druck .rechnung-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.rechnung-druck .rechnung-block h1 {
  font-size: 1.55rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.rechnung-druck .rechnung-doc-label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6573;
  font-weight: 650;
}
.rechnung-druck .rechnung-absender-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6573;
}
.rechnung-druck .rechnung-block h2 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.rechnung-druck .rechnung-block-seller {
  text-align: right;
}
.rechnung-druck .rechnung-ids {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #333;
}
.rechnung-druck .rechnung-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.rechnung-druck .rechnung-absender {
  text-align: right;
  max-width: 280px;
}
.rechnung-druck .rechnung-positionen {
  margin: 8px 0;
  width: 100%;
  border-collapse: collapse;
}
.rechnung-druck .rechnung-positionen th {
  border-bottom: 2px solid #1b2430;
  padding: 8px 6px;
  text-align: left;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rechnung-druck .rechnung-positionen td {
  border-bottom: 1px solid #e4e8ee;
  padding: 10px 6px;
  vertical-align: top;
}
.rechnung-druck .rechnung-positionen tr:last-child td {
  border-bottom: none;
  padding-top: 14px;
}
.rechnung-druck .rechnung-ust {
  margin-top: 8px;
  font-size: 0.95rem;
}
.inv-editor-karte {
  overflow: visible;
}
.inv-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}
.inv-editor-canvas {
  min-width: 0;
}
.inv-preview-hint {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.inv-layout-preview {
  display: grid;
  grid-template-columns: repeat(var(--inv-cols, 12), minmax(0, 1fr));
  grid-template-rows: repeat(var(--inv-rows, 16), minmax(52px, auto));
  gap: 6px;
  min-height: calc(var(--inv-rows, 16) * 52px + (var(--inv-rows, 16) - 1) * 6px + 28px);
  padding: 14px;
  background: #e8ecf1;
  border: 1px solid #c5ccd6;
  border-radius: 12px;
  align-content: start;
  position: relative;
  touch-action: none;
  isolation: isolate;
}
.inv-grid-overlay {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(var(--inv-cols, 12), minmax(0, 1fr));
  grid-template-rows: repeat(var(--inv-rows, 16), minmax(52px, auto));
  gap: 6px;
  pointer-events: none;
  z-index: 0;
}
.inv-grid-cell {
  border: 1px dashed rgba(47, 111, 237, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  min-height: 52px;
}
.inv-prev-block {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #1b2430;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  padding: 10px 16px 14px 28px;
  font-size: 0.78rem;
  line-height: 1.35;
  user-select: none;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  cursor: grab;
  min-height: 0;
  align-self: stretch;
}
.inv-prev-block.is-selected {
  border-color: var(--accent, #2f6fed);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.28);
  z-index: 2;
}
.inv-prev-block.is-dragging {
  opacity: 0.78;
  z-index: 4;
  cursor: grabbing;
}
.inv-prev-handle {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 18px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: #7a8494;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 4px;
  z-index: 3;
}
.inv-prev-handle:hover,
.inv-prev-block.is-selected .inv-prev-handle {
  color: #1b2430;
  background: #eef1f5;
}
.inv-prev-resize {
  position: absolute;
  z-index: 3;
  background: var(--accent, #2f6fed);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
  opacity: 0.92;
}
.inv-prev-resize-e {
  top: 50%;
  right: -7px;
  width: 12px;
  height: 28px;
  margin-top: -14px;
  border-radius: 6px;
  cursor: ew-resize;
}
.inv-prev-resize-s {
  left: 50%;
  bottom: -7px;
  width: 28px;
  height: 12px;
  margin-left: -14px;
  border-radius: 6px;
  cursor: ns-resize;
}
.inv-prev-resize-se {
  right: -8px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  cursor: nwse-resize;
}
.inv-prev-block:not(.is-selected) .inv-prev-resize {
  opacity: 0.55;
}
.inv-prev-block:hover .inv-prev-resize,
.inv-prev-block.is-selected .inv-prev-resize {
  opacity: 1;
}
.inv-layout-preview-ro .inv-prev-resize,
.inv-layout-preview-ro .inv-prev-handle {
  display: none;
}
.inv-layout-preview-ro .inv-prev-block {
  cursor: default;
}
.inv-prev-block .inv-prev-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7585;
  margin-bottom: 6px;
  font-weight: 650;
}
.inv-prev-body {
  pointer-events: none;
  overflow: hidden;
  max-height: 100%;
}
.inv-prev-block h1,
.inv-prev-block h2 {
  font-size: 0.92rem;
  margin: 0 0 4px;
  font-weight: 650;
}
.inv-prev-block p {
  margin: 0 0 4px;
}
.inv-prev-block table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.inv-prev-block th,
.inv-prev-block td {
  text-align: left;
  padding: 2px 4px 2px 0;
  vertical-align: top;
}
.inv-editor-side {
  position: sticky;
  top: 12px;
  background: var(--card, #161a22);
  border: 1px solid var(--line, #333);
  border-radius: 12px;
  padding: 14px 14px 16px;
  min-height: 280px;
}
.inv-side-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #333);
}
.inv-side-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.inv-side-title {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.inv-side-panel label {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.inv-side-panel input,
.inv-side-panel textarea,
.inv-side-panel select {
  font: inherit;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}
.inv-side-ro {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 0.88rem;
}
.inv-side-ro-label {
  font-weight: 600;
  color: var(--muted, #8a93a3);
}
.inv-side-ro-value {
  font-weight: 500;
  word-break: break-word;
}
.inv-side-meine-daten {
  margin: 0 0 12px;
}
.inv-side-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line, #333);
}
.inv-side-layout label:last-child {
  grid-column: 1 / -1;
}
.inv-side-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.inv-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line, #333);
}
@media (max-width: 960px) {
  .inv-editor-shell {
    grid-template-columns: 1fr;
  }
  .inv-editor-side {
    position: static;
  }
}
.kunde-bearbeiten {
  margin-top: 12px;
}
@media print {
  .no-print,
  .betrieb-mini,
  .bh-subnav,
  nav,
  .owner-bar {
    display: none !important;
  }
  .rechnung-druck {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: none;
  }
  .rechnung-druck .rechnung-block-seller {
    text-align: right;
  }
}
.konto .kunden-suche {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  margin: 8px 0 20px;
}
.konto .kunden-suche label {
  flex: 1 1 220px;
  display: grid;
  gap: 6px;
  font-weight: 650;
}
.konto .kunden-suche input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: var(--card);
  color: var(--text);
}
.konto .kunden-suche .nebensache {
  align-self: center;
}
.konto .kunden-liste {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.konto .kunden-karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.konto .kunden-karte header h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}
.konto .kunden-karte h3 {
  margin: 14px 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.konto .kunden-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.konto .hunde-unter {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.konto .hunde-unter li,
.konto .hunde-unter li.hund-zeile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  border: 1px solid var(--line);
}
.konto .hunde-unter .hund-kopf {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(100px, 1.2fr) minmax(0, 1.4fr);
  gap: 8px 12px;
}
.konto .hunde-unter li span:empty { display: none; }
.konto .hunde-unter li .tb-schule,
.konto .hunde-unter li .hund-bearbeiten {
  width: 100%;
  margin-top: 2px;
}
.konto .hund-bearbeiten > summary,
.konto .kunde-bearbeiten > summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--accent);
  list-style: none;
}
.konto .hund-bearbeiten > summary::-webkit-details-marker,
.konto .kunde-bearbeiten > summary::-webkit-details-marker {
  display: none;
}
.konto .hund-bearbeiten > summary::before,
.konto .kunde-bearbeiten > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.konto .hund-bearbeiten[open] > summary::before,
.konto .kunde-bearbeiten[open] > summary::before {
  transform: rotate(90deg);
}
.konto .hund-bearbeiten .hund-abschnitt {
  margin: 10px 0 0;
  padding: 8px 0 8px 10px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.konto .hund-abschnitt > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.konto .hund-abschnitt .form,
.konto .hund-abschnitt .tabelle-wrap {
  margin-top: 10px;
}
.konto .portal-stand {
  margin: 12px 0 0;
  font-size: 0.92rem;
}
.konto .portal-anlegen {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.konto .portal-anlegen summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--accent);
}
.konto .portal-anlegen form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
@media (max-width: 640px) {
  .konto .hunde-unter .hund-kopf {
    grid-template-columns: 1fr;
  }
}
.konto .inline-aktion {
  display: inline;
  margin: 0;
}
.konto .inline-aktion button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.konto .tabelle tr.lager-low td {
  background: rgba(196, 112, 72, 0.12);
}
.konto .shop-order-filter {
  margin: 0 0 1rem;
}
.versandlabel-druck {
  max-width: 28rem;
  margin: 1.5rem auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid #222;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.45;
}
.versandlabel-druck h1 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.versandlabel-druck .absender {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ccc;
}
.versandlabel-druck .empfaenger {
  font-size: 1.15rem;
  white-space: pre-line;
}
.versandlabel-druck .meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #555;
}
@media print {
  .versandlabel-no-print { display: none !important; }
  .versandlabel-druck {
    border: 0;
    margin: 0;
    max-width: none;
  }
}
.form fieldset.wochentage,
.form fieldset.wochentage-zeiten {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 14px;
  margin: 0;
}
.form fieldset.wochentage legend,
.form fieldset.wochentage-zeiten legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.form .wochentage-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.form .tag-zeile {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.form .tag-zeile:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.form .tag-zeile .tag-tag {
  padding-top: 8px;
  font-weight: 600;
}
.form .tag-fenster-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.form .tag-fenster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: end;
}
.form .tag-fenster label {
  margin: 0;
  flex: 1 1 6.5rem;
  min-width: 5.5rem;
}
.form .tag-fenster label:has(select.day-pause) {
  flex: 0 1 5.5rem;
  min-width: 5rem;
}
.form .tag-zeile.is-off .tag-fenster-liste,
.form .tag-zeile.is-off .btn-extra-fenster {
  opacity: 0.45;
}
.form .btn-extra-fenster,
.form .btn-fenster-weg {
  margin-top: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.form .btn-fenster-weg {
  flex: 0 0 auto;
  margin-top: 0;
  align-self: end;
}
.form .btn-extra-fenster:disabled {
  cursor: default;
}
@media (max-width: 640px) {
  .form .tag-zeile {
    grid-template-columns: 1fr;
  }
}
.konto .inline-aktion.slot-buchen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.konto .inline-aktion.slot-buchen .inline-hund {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.9rem;
}
.konto .inline-aktion.slot-buchen button {
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 4px 10px;
}
.konto .status.fehlt {
  background: #fff6db;
  color: #7a5a00;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
.konto-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 24px;
}
.konto-karte {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
}
.konto-karte h2 { margin-bottom: 10px; }
.konto-dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}
.konto-dl dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.konto-dl dd {
  margin: 2px 0 0;
  font-weight: 650;
}
.konto-actions { margin: 20px 0 0; }
.konto-actions a,
.konto-karte > p > a {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
}
.seite-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
}
.seite-kopf .lede { margin-bottom: 0; }
.seite-aktionen { margin: 4px 0 0; }
.seite-aktionen .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
}
.seite-aktionen .btn-ghost,
.tab-aktionen .btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  margin-right: 6px;
}
.tab-aktionen {
  white-space: nowrap;
  text-align: right;
}
.tab-aktionen .inline-aktion {
  display: inline;
}
.form-trenner {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
.team-foto-vorschau img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 8px;
}
.shop-thumb {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
  background: var(--surface-2, #f0f0f0);
}
.shop-img-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 4px;
}
.shop-img-keep {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.85rem;
}
.shop-img-keep .shop-thumb {
  width: 64px;
  height: 64px;
}
.shop-form-h {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.shop-variant-picks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 4px 2px 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(44, 52, 56, 0.03);
}
.shop-variant-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(5.5rem, 0.7fr) minmax(4.5rem, 0.55fr);
  gap: 8px 10px;
  align-items: end;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.shop-variant-pick-row:last-child {
  border-bottom: 0;
}
.shop-variant-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0;
  grid-column: 1 / -1;
}
.shop-variant-pick-label {
  font-weight: 600;
}
.shop-variant-pick-meta {
  flex: 1 1 auto;
}
.shop-variant-field {
  margin: 0;
  font-size: 0.85rem;
}
.shop-variant-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .shop-variant-pick {
    grid-column: 1;
  }
}
.opt-wert-liste {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}
.opt-wert-zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.opt-wert-zeile input {
  width: 100%;
}
.form .btn-opt-wert-dazu,
.form .btn-opt-wert-weg {
  margin-top: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.form .btn-opt-wert-dazu:disabled {
  cursor: default;
  opacity: 0.5;
}
.shop-catalog input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Tabellen-Aktion: Pfote + Stift, eigene Spalte rechts */
.tabelle th.th-aktion,
.tabelle td.td-aktion {
  width: 1%;
  min-width: 3rem;
  padding-left: 8px;
  padding-right: 10px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.tabelle td.td-aktion .inline-aktion,
.tabelle td.td-aktion a.edit-paw {
  display: inline-block;
  vertical-align: middle;
}
.tabelle td.td-aktion .inline-aktion {
  margin-left: 6px;
}
.tabelle a.edit-paw {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin: 0;
  vertical-align: middle;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--dogism-teal) 14%, var(--card, #fff));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cellipse cx='8.6' cy='14.6' rx='4.2' ry='3.4' fill='%236a9492'/%3E%3Ccircle cx='4.4' cy='8.8' r='1.65' fill='%236a9492'/%3E%3Ccircle cx='7.3' cy='6.7' r='1.7' fill='%236a9492'/%3E%3Ccircle cx='10.5' cy='6.7' r='1.7' fill='%236a9492'/%3E%3Ccircle cx='13.2' cy='8.8' r='1.65' fill='%236a9492'/%3E%3Cpath d='M13.8 17.2l6.2-6.2 2.4 2.4-6.2 6.2-3.2.8z' fill='%23e8a070'/%3E%3Cpath d='M20 11l2.4 2.4 1.2-1.2a1.3 1.3 0 000-1.8l-.6-.6a1.3 1.3 0 00-1.8 0z' fill='%231c1f26'/%3E%3Cpath d='M13.8 17.2l.8-3.2 2.4 2.4z' fill='%231c1f26'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 1.35rem 1.35rem;
  background-repeat: no-repeat;
  text-decoration: none !important;
  opacity: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dogism-teal) 35%, transparent);
}
.tabelle a.edit-paw:hover,
.tabelle a.edit-paw:focus-visible {
  opacity: 1;
  outline: none;
  background-color: color-mix(in srgb, var(--dogism-teal) 28%, var(--card, #fff));
  box-shadow: inset 0 0 0 1.5px var(--dogism-teal);
}
.popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup:target {
  display: flex;
}
.popup-hintergrund {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.popup-karte {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.popup-karte-breit {
  width: min(100%, 520px);
}
.popup-karte-breit.popup-karte-rechnung {
  width: min(100%, 720px);
}
.popup-karte-breit.popup-karte-shop {
  width: min(100%, 960px);
  max-height: min(92vh, 920px);
  overflow: auto;
}
.shop-opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}
.shop-opt-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.7fr) minmax(0, 1.3fr);
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(44, 52, 56, 0.03);
}
.shop-opt-row .shop-opt-name,
.shop-opt-row .shop-opt-values {
  margin: 0;
}
.shop-opt-row input {
  width: 100%;
  box-sizing: border-box;
}
.shop-product-variants {
  margin: 10px 0 6px;
  max-height: min(36vh, 320px);
  overflow: auto;
}
.shop-var-remove {
  font-size: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .shop-opt-row {
    grid-template-columns: 1fr;
  }
}
.ac-wrap {
  position: relative;
  display: block;
}
.ac-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 220px;
  overflow: auto;
  background: var(--card, #fff);
  border: 1px solid var(--line, #ccc);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 4px;
}
.ac-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.ac-item:hover,
.ac-item:focus {
  background: color-mix(in srgb, var(--dogism-teal, #2a9d8f) 16%, transparent);
  outline: none;
}
.ac-item-new {
  font-weight: 600;
  border-top: 1px solid var(--line, #ddd);
  margin-top: 2px;
  padding-top: 10px;
}
.inv-lines-wrap {
  margin: 12px 0 8px;
}
.inv-lines input {
  width: 100%;
  min-width: 0;
}
.inv-lines td:nth-child(2),
.inv-lines td:nth-child(3) {
  width: 5.5rem;
}
.inv-lines td:nth-child(4) {
  width: 2.2rem;
  text-align: center;
}
.inv-sum {
  margin-left: 12px;
}
.inv-holder-panel {
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px dashed var(--line, #ccc);
  border-radius: 12px;
  background: color-mix(in srgb, var(--card, #fff) 88%, #000 4%);
}
.popup-karte h2 {
  margin: 0 40px 8px 0;
}
.popup-karte .note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.popup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 40px 16px 0;
}
.popup-tabs a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(44, 52, 56, 0.06);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}
.popup-tabs a.is-aktiv,
.popup-tabs a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}
.popup-zu {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(44, 52, 56, 0.07);
}
.popup-zu:hover {
  background: color-mix(in srgb, var(--dogism-peach) 22%, transparent);
  color: var(--accent);
}
.konto-karte + .konto-karte { margin-top: 16px; }
.konto-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  max-width: 28rem;
}
.konto-form button {
  justify-self: start;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.hinweis {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  line-height: 1.4;
}
.hinweis.ok {
  background: rgba(80, 180, 120, 0.14);
  border: 1px solid rgba(80, 180, 120, 0.4);
}
.hinweis.wartend {
  background: color-mix(in srgb, var(--dogism-peach) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--dogism-peach) 55%, transparent);
  color: var(--text);
}
.hinweis.fehler {
  background: color-mix(in srgb, var(--dogism-peach) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--dogism-peach) 50%, transparent);
  color: var(--text);
}
.card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #1a1c22;
}
.card .pad { padding: 18px 20px 20px; }
.form {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: 24px;
  overflow: visible;
}
.form.wide { max-width: 920px; }
.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 12px;
}
.photo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: var(--bg);
}
.photo-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #1a1c22;
  border-radius: 10px;
}
.photo-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.photo-card button,
.upload button {
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.upload {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.form .block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}
.form legend {
  color: var(--accent);
  padding: 0 6px;
}
.form .row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.form .note {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}
.pics {
  color: var(--muted);
}
.pics ul {
  columns: 2;
  padding-left: 18px;
}
.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
.form input, .form textarea, .form select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
  padding: 6px;
  background: #12141a;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.tabs a.aktiv {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.form .fact {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.form .fact p {
  margin: 0;
  color: var(--text);
  align-self: center;
}
.form button.weg {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 500;
}
.form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form .check input {
  width: auto;
}
.farben {
  border: 0;
  padding: 0;
  margin: 8px 0 0;
}
.farben-wahl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.farbe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
}
.farbe input {
  width: auto;
}
.wahl-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}
.wahl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.wahl input {
  width: auto;
}
.vorschau-reihe {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.vorschau-karte {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel, #fff);
  cursor: pointer;
  align-content: start;
}
.vorschau-karte input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vorschau-karte:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
.vorschau-blick {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 132px;
  padding: 8px;
  border-radius: 10px;
  background: #eef1f4;
  overflow: hidden;
  text-align: center;
}
.vorschau-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.bsp {
  display: grid;
  gap: 4px;
  line-height: 1.25;
  color: #1c1712;
}
.bsp strong { font-weight: 750; }
.bsp em { font-style: normal; opacity: 0.75; font-size: 0.85em; }
.bsp-font-klar { font-family: "Avenir Next", "Segoe UI", Helvetica, sans-serif; }
.bsp-font-klar strong { font-family: Georgia, "Iowan Old Style", serif; font-size: 1.15rem; }
.bsp-font-freundlich,
.bsp-font-freundlich strong {
  font-family: "Trebuchet MS", Verdana, "Segoe UI", sans-serif;
}
.bsp-font-freundlich strong { font-size: 1.15rem; }
.bsp-font-serioes,
.bsp-font-serioes strong {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
.bsp-font-serioes strong { font-size: 1.15rem; }
.bsp-h-klein { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; }
.bsp-h-normal { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.bsp-h-gross { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; }
.bsp-txt-klein { font-size: 0.82rem; }
.bsp-txt-normal { font-size: 0.95rem; }
.bsp-txt-gross { font-size: 1.08rem; }
.bsp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8a5a2b;
  color: #fff;
  font-weight: 650;
  border: 2px solid #8a5a2b;
  white-space: nowrap;
}
.bsp-btn-klein { font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; }
.bsp-btn-normal { font-size: 0.92rem; padding: 9px 14px; border-radius: 999px; }
.bsp-btn-gross { font-size: 1.05rem; padding: 12px 18px; border-radius: 999px; }
.bsp-btn-rund { border-radius: 999px; padding: 9px 14px; font-size: 0.92rem; }
.bsp-btn-eckig { border-radius: 8px; padding: 9px 14px; font-size: 0.92rem; }
.bsp-btn-kraft { border-radius: 999px; padding: 9px 14px; font-weight: 750; }
.bsp-btn-dezent {
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: #8a5a2b;
}
.bsp-abstand {
  display: grid;
  width: 100%;
}
.bsp-abstand i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #c9b8a0;
}
.bsp-abstand-kompakt { gap: 4px; }
.bsp-abstand-normal { gap: 10px; }
.bsp-abstand-luftig { gap: 18px; }
.bsp-hero {
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 650;
  color: #1c1712;
}
.bsp-hero-foto {
  display: block;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(120deg, #d4b896, #8a5a2b);
}
.bsp-hero-ohne {
  padding: 12px 8px;
  border: 1px dashed #b7a48c;
  border-radius: 8px;
}
.bsp-preset {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  color: #1c1712;
}
.bsp-preset strong {
  font-size: 0.95rem;
  font-weight: 750;
}
.bsp-preset em {
  font-style: normal;
  font-size: 0.78rem;
  color: #6b5c4c;
  line-height: 1.25;
}
.bsp-preset-bar {
  display: block;
  height: 10px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.bsp-preset-klassisch .bsp-preset-bar {
  background: linear-gradient(90deg, #c4782a 40%, #e8d4b8 40%);
}
.bsp-preset-foto .bsp-preset-bar {
  height: 22px;
  background: linear-gradient(120deg, #d4b896, #8a5a2b);
}
.bsp-preset-text .bsp-preset-bar {
  height: 4px;
  width: 55%;
  background: #5a4a3a;
}
.bsp-preset-fein .bsp-preset-bar {
  background: repeating-linear-gradient(
    90deg,
    #c9b8a0 0 8px,
    transparent 8px 14px
  );
}

/* Mini-Seitenvorschau für Layout-Vorlagen (Verwaltung) */
.seite-mini {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d8dee6;
  box-shadow: 0 1px 2px rgba(27, 36, 48, 0.06);
  text-align: left;
}
.seite-mini-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.seite-mini-nav b {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: #8a5a2b;
}
.seite-mini-nav i {
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: #c9d0d8;
  margin-left: auto;
}
.seite-mini-nav i + i { margin-left: 0; }
.seite-mini-hero {
  display: grid;
  gap: 3px;
  padding: 6px;
  border-radius: 4px;
  background: #f6f1e8;
}
.seite-mini-bild {
  display: block;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(120deg, #d4b896, #8a5a2b 55%, #c4782a);
}
.seite-mini-titel {
  display: block;
  height: 7px;
  width: 72%;
  border-radius: 2px;
  background: #2a2218;
}
.seite-mini-lede {
  display: block;
  height: 4px;
  width: 90%;
  border-radius: 2px;
  background: #b7a48c;
}
.seite-mini-sec { display: grid; gap: 3px; }
.seite-mini-h {
  display: block;
  height: 5px;
  width: 40%;
  border-radius: 2px;
  background: #5a4a3a;
}
.seite-mini-p {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: #d8dee6;
}
.seite-mini-p.kurz { width: 68%; }
.seite-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.seite-mini-cards i {
  display: block;
  height: 16px;
  border-radius: 3px;
  background: #eef1f4;
  border: 1px solid #d8dee6;
}
.seite-mini-cta {
  display: block;
  height: 10px;
  width: 42%;
  border-radius: 999px;
  background: #8a5a2b;
}
.seite-mini-klassisch .seite-mini-bild { height: 24px; }
.seite-mini-foto { gap: 8px; }
.seite-mini-foto .seite-mini-hero { padding: 0; overflow: hidden; gap: 0; }
.seite-mini-foto .seite-mini-bild {
  height: 38px;
  border-radius: 4px 4px 0 0;
}
.seite-mini-foto .seite-mini-titel {
  margin: 5px 6px 0;
  height: 9px;
  width: 78%;
}
.seite-mini-foto .seite-mini-lede { margin: 0 6px 6px; height: 4px; }
.seite-mini-foto .seite-mini-cta { height: 12px; width: 48%; }
.seite-mini-text { gap: 3px; }
.seite-mini-text .seite-mini-bild { display: none; }
.seite-mini-text .seite-mini-hero {
  background: transparent;
  padding: 4px 0 2px;
  border-bottom: 1px dashed #c9b8a0;
  border-radius: 0;
}
.seite-mini-text .seite-mini-titel { height: 6px; width: 55%; background: #1c1712; }
.seite-mini-text .seite-mini-lede { width: 80%; height: 3px; }
.seite-mini-text .seite-mini-cards i { height: 10px; }
.seite-mini-text .seite-mini-cta {
  height: 8px;
  width: 36%;
  border-radius: 3px;
  background: transparent;
  border: 1.5px solid #8a5a2b;
}
.seite-mini-fein .seite-mini-bild {
  background: repeating-linear-gradient(
    90deg,
    #d4b896 0 10px,
    #8a5a2b 10px 14px,
    #c4782a 14px 22px
  );
}
.seite-mini-fein .seite-mini-cta {
  border-radius: 4px;
  background: #fff;
  border: 1.5px solid #8a5a2b;
  box-shadow: inset 20px 0 0 #8a5a2b;
}
.bereich-liste {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.bereich-zeile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(44, 52, 56, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
  user-select: none;
}
.bereich-zeile.zieht {
  opacity: 0.55;
  cursor: grabbing;
}
.bereich-zeile.bereich-ueber {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.bereich-griff {
  letter-spacing: -2px;
  opacity: 0.45;
  font-size: 0.95rem;
  line-height: 1;
}
.bereich-name {
  font-weight: 600;
}
.bereich-tasten {
  display: flex;
  gap: 4px;
}
.bereich-tasten button {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1;
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}
.swatch-sand { background: #c4782a; }
.swatch-moos { background: #2f6b4f; }
.swatch-see { background: #2a7a78; }
.swatch-abend { background: #3d5a80; }
.swatch-beere { background: #6b4c9a; }
.swatch-ziegel { background: #c45c38; }
.form button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.banner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.privat-liste {
  display: grid;
  gap: 16px;
  margin: 16px 0 24px;
}
.privat h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.privat .dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.privat .dl dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.privat .dl dd {
  margin: 4px 0 0;
  font-weight: 650;
  color: var(--text);
}
.card.theme-luna { --accent: #e0a05a; }
.card.theme-nordpfote { --accent: #5dba8a; }
.card.theme-birkenhof { --accent: #8fbe5a; }
.card.theme-pfotenrettung { --accent: #e07a58; }
.card.theme-bewegdich { --accent: #5ec4c0; }
.card.theme-gassinord { --accent: #7aa0d4; }
.card.theme-hsv-beispiel { --accent: #74c45a; }
.card.theme-team-besuch { --accent: #b08ae0; }
.card .kicker { color: var(--accent); }
.breed-wrap {
  display: grid;
  gap: 10px;
}
.mix-field {
  display: none;
}
.breed-wrap:has(select[name="breed"] option[value="mix"]:checked) .mix-field,
.breed-wrap:has(select[name="new_breed"] option[value="mix"]:checked) .mix-field,
.breed-wrap:has(select option[value="mix"]:checked) .mix-field {
  display: grid;
}
.origin-wrap {
  display: grid;
  gap: 10px;
}
.origin-org,
.origin-eltern {
  display: none;
  gap: 10px;
}
.origin-wrap:has(select[name="origin"] option[value="zuechter"]:checked) .origin-org,
.origin-wrap:has(select[name="origin"] option[value="rescue"]:checked) .origin-org {
  display: grid;
}
.origin-wrap:has(select[name="origin"] option[value="zuechter"]:checked) .origin-eltern {
  display: grid;
}
.mein-hund .photo-grid {
  margin-top: 14px;
}
.mein-hund .photo-card {
  background: rgba(44, 52, 56, 0.04);
}
.mein-hund .upload {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
}
.mein-hund .upload button {
  justify-self: start;
}
.mein-hund .mh-kontakt-seite {
  margin-top: 20px;
  max-width: 36rem;
}
.mein-hund .mh-kontakt-seite .form {
  display: grid;
  gap: 12px;
}
.mein-hund .mh-adresse {
  display: grid;
  gap: 12px;
}
.mein-hund .mh-plz-ort {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .mein-hund .mh-plz-ort {
    grid-template-columns: 1fr;
  }
}
.mein-hund .mh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.mein-hund .mh-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.mein-hund .mh-akkordion {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 16px;
}
.mein-hund .mh-akkordion-kopf {
  margin: 0;
  font-size: 1.05rem;
}
.mein-hund .mh-akkordion-kopf a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: rgba(44, 52, 56, 0.06);
}
.mein-hund .mh-akkordion-kopf a:visited,
.mein-hund .mh-akkordion-kopf a:hover,
.mein-hund .mh-akkordion-kopf a:active {
  color: var(--text);
  text-decoration: none;
}
.mein-hund .mh-akkordion-kopf a:hover {
  background: color-mix(in srgb, var(--dogism-peach) 14%, transparent);
}
.mein-hund .mh-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}
.mein-hund .mh-akkordion-body {
  display: none;
  padding: 4px 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.mein-hund .mh-akkordion:target .mh-akkordion-body {
  display: block;
}
.mein-hund .mh-main:not(:has(.mh-akkordion:target)) .mh-akkordion.offen .mh-akkordion-body {
  display: block;
}
.mein-hund .mh-akkordion:target .mh-chevron,
.mein-hund .mh-main:not(:has(.mh-akkordion:target)) .mh-akkordion.offen .mh-chevron {
  transform: rotate(225deg);
}
.mein-hund .mh-akkordion:target .mh-akkordion-kopf a,
.mein-hund .mh-main:not(:has(.mh-akkordion:target)) .mh-akkordion.offen .mh-akkordion-kopf a {
  background: color-mix(in srgb, var(--dogism-peach) 18%, transparent);
  color: var(--text);
}
.mein-hund .mh-akkordion .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 14px;
}
.mein-hund .mh-akkordion .check input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}
.mein-hund .mh-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.mein-hund .mh-side-title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mein-hund .mh-side a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mein-hund .mh-side a:visited {
  color: var(--text);
}
.mein-hund .mh-side a:hover,
.mein-hund .mh-side a.aktiv {
  background: color-mix(in srgb, var(--dogism-peach) 18%, transparent);
  color: var(--accent);
}
@media (max-width: 860px) {
  .mein-hund .mh-layout {
    grid-template-columns: 1fr;
  }
  .mein-hund .mh-side {
    position: static;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    order: -1;
  }
  .mein-hund .mh-side-title {
    grid-column: 1 / -1;
  }
}
.tb-score {
  display: inline-block;
  min-width: 2.6em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.tb-form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tb-portal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tb-portal h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.tb-schule {
  margin-top: 8px;
  width: 100%;
}
.tb-schule summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.tb-uebersicht .tb-score[data-score="10"],
.tb-uebersicht .tb-score[data-score="9"] {
  color: #2a7a4b;
}
.tb-uebersicht .tb-score[data-score="0"],
.tb-uebersicht .tb-score[data-score="1"],
.tb-uebersicht .tb-score[data-score="2"] {
  color: #a33b2c;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .tabs { border-radius: 18px; }
  .login-panel { padding: 28px 20px; }
  .login-panel h1 { font-size: 1.65rem; }
  .top .inner {
    min-height: 64px;
    gap: 10px;
  }
  .top nav {
    gap: 10px;
  }
  .top nav a {
    padding: 10px 4px;
    font-size: 0.9rem;
  }
  .login {
    min-height: 0;
    align-items: flex-start;
    padding: 16px 0 40px;
  }
}

/* Meine DogoApps toggles */
.dogo-apps-form {
  padding: 8px 0 4px;
}
.dogo-apps-group {
  padding: 8px 0 12px;
}
.dogo-apps-group + .dogo-apps-group {
  border-top: 1px solid var(--line, rgba(44, 52, 56, 0.12));
  margin-top: 8px;
  padding-top: 16px;
}
.dogo-apps-group-title {
  margin: 0 18px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.dogo-apps-group-lede {
  margin: 0 18px 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.dogo-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dogo-toggle-cluster {
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.1));
}
.dogo-toggle-cluster:last-child {
  border-bottom: 0;
}
.dogo-toggle-cluster .dogo-toggle {
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.08));
}
.dogo-toggle-cluster .dogo-toggle:last-child {
  border-bottom: 0;
}
.dogo-toggle-nested {
  padding-left: 32px;
  background: rgba(44, 52, 56, 0.02);
}
.dogo-toggle-nested .dogo-toggle-text strong::before {
  content: "↳ ";
  color: var(--muted);
  font-weight: 500;
}
.dogo-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, rgba(44, 52, 56, 0.1));
  cursor: pointer;
}
.dogo-toggle:last-child {
  border-bottom: 0;
}
.dogo-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dogo-toggle-text strong {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
}
.dogo-toggle-hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.dogo-toggle-ctrl {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}
.dogo-toggle-ctrl input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dogo-switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(44, 52, 56, 0.18);
  transition: background 0.15s ease;
  pointer-events: none;
}
.dogo-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.dogo-toggle-ctrl input:checked + .dogo-switch {
  background: var(--dogism-peach, #e69d73);
}
.dogo-toggle-ctrl input:checked + .dogo-switch::after {
  transform: translateX(20px);
}
.dogo-toggle-ctrl input:focus-visible + .dogo-switch {
  outline: 2px solid var(--dogism-teal, #8eb3b1);
  outline-offset: 2px;
}
.dogo-toggle-readonly {
  cursor: default;
}
.dogo-stand {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dogo-apps-status {
  margin: 10px 18px 4px;
  min-height: 1.25em;
  font-size: 0.85rem;
  color: var(--muted);
}
.dogo-apps-status.is-error {
  color: #a33;
}

/* Produktkonfigurator / Werbemittel */
.wm-template-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}
.wm-template-card {
  margin: 0;
}
.wm-template-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 9.5rem;
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border, #d5dedc);
  border-radius: 12px;
  background: var(--card, #fff);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.wm-template-btn:hover {
  border-color: var(--dogism-teal, #8eb3b1);
  box-shadow: 0 0 0 2px rgba(142, 179, 177, 0.25);
}
.wm-template-btn strong {
  font-size: 1.05rem;
}
.wm-template-hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}
.wm-template-preview {
  display: block;
  width: 100%;
  height: 3.2rem;
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(142, 179, 177, 0.35),
    rgba(230, 157, 115, 0.35)
  );
  margin-bottom: 0.25rem;
}
.wm-template-preview[data-kind="shirt"] {
  clip-path: polygon(20% 0, 80% 0, 100% 28%, 82% 28%, 82% 100%, 18% 100%, 18% 28%, 0 28%);
}
.wm-template-preview[data-kind="tasse"] {
  border-radius: 10px 10px 14px 14px;
  width: 55%;
}
.wm-template-preview[data-kind="leine"] {
  height: 1.1rem;
  margin-top: 1.1rem;
  border-radius: 999px;
}
.wm-template-preview[data-kind="frisbee"] {
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
}
.wm-designer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  gap: 1.25rem;
  align-items: start;
  margin: 1.25rem 0 1.5rem;
}
@media (max-width: 820px) {
  .wm-designer-layout {
    grid-template-columns: 1fr;
  }
}
.wm-designer {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}
.wm-tools h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1rem;
}
.wm-tools h2:first-child {
  margin-top: 0;
}
.wm-canvas-area {
  border: 1px solid var(--border, #d5dedc);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--card, #fff);
}
.wm-canvas-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.wm-canvas-stage {
  position: relative;
  overflow: hidden;
  min-height: 10rem;
  width: 100%;
  max-width: 28rem;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(142, 179, 177, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(142, 179, 177, 0.08) 1px, transparent 1px) 0 0 / 24px 24px,
    #f4f7f6;
}
.wm-canvas-area[data-shape="circle"] .wm-canvas-stage {
  max-width: 16rem;
  margin: 0 auto;
  border-radius: 50%;
}
.wm-canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  pointer-events: none;
}
.wm-obj {
  position: absolute;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.15rem 0.35rem;
  border: 1px dashed transparent;
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.15;
  white-space: pre-wrap;
  max-width: 90%;
  cursor: pointer;
  z-index: 1;
}
.wm-obj.is-sel {
  border-color: var(--dogism-teal, #8eb3b1);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(142, 179, 177, 0.35);
}
.wm-obj:disabled {
  cursor: default;
}

/* Interner Team-Chat / Nachrichten (Backend only) */
.msg-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}
.msg-sidebar {
  border: 1px solid var(--border, #d5dedc);
  border-radius: 12px;
  background: var(--card, #fff);
  padding: 0.75rem;
}
.msg-side-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}
.msg-channels {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.msg-channel {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}
.msg-channel:hover {
  background: rgba(142, 179, 177, 0.12);
}
.msg-channel.is-aktiv {
  background: rgba(142, 179, 177, 0.18);
  border-color: rgba(142, 179, 177, 0.45);
}
.msg-channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.msg-channel-title {
  font-weight: 600;
  font-size: 0.92rem;
}
.msg-unread {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dogism-peach, #e69d73);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.msg-channel-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.msg-channel-preview {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-dm-start {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #d5dedc);
  display: grid;
  gap: 0.45rem;
}
.msg-dm-label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.msg-main {
  border: 1px solid var(--border, #d5dedc);
  border-radius: 12px;
  background: var(--card, #fff);
  padding: 0.85rem 1rem 1rem;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
}
.msg-main-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border, #d5dedc);
}
.msg-main-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.msg-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.25rem 0 0.75rem;
}
.msg-empty {
  margin: 1rem 0;
  color: var(--muted);
}
.msg-bubble {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(142, 179, 177, 0.12);
  align-self: flex-start;
}
.msg-bubble.is-mine {
  align-self: flex-end;
  background: rgba(230, 157, 115, 0.16);
}
.msg-bubble-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.msg-bubble-text {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-compose {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #d5dedc);
}
.msg-compose-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}
.msg-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
}
@media (max-width: 800px) {
  .msg-layout {
    grid-template-columns: 1fr;
  }
  .msg-stream {
    max-height: 20rem;
  }
}


/* --- Kasse (POS) --- */
.pos-layout {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 860px) {
  .pos-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .pos-bon {
    position: sticky;
    top: 12px;
  }
}
.pos-list,
.pos-bon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pos-product,
.pos-booking,
.pos-bon-line {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.pos-product:last-child,
.pos-booking:last-child,
.pos-bon-line:last-child {
  border-bottom: 0;
}
.pos-product-meta,
.pos-bon-meta {
  display: grid;
  gap: 2px;
}
.pos-price {
  font-weight: 700;
  white-space: nowrap;
}
.pos-add-form,
.pos-frei-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.pos-add-form select,
.pos-add-form input[type="number"],
.pos-frei-form input {
  width: 100%;
}
.pos-qty {
  grid-column: 1 / -1;
}
.pos-add-form button,
.pos-booking form button {
  min-height: 44px;
  padding: 10px 14px;
}
.pos-bon-line {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.pos-bon-right {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}
.pos-remove button.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.pos-total {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}
.pos-pay-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.pos-pay-form button {
  width: 100%;
  min-height: 48px;
}
.pos-checkout-amount {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0;
}
.pos-qr {
  margin: 12px 0;
}
.pos-qr img {
  display: block;
  max-width: 220px;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
@media (max-width: 560px) {
  .pos-add-form {
    grid-template-columns: 1fr;
  }
  .pos-bon {
    order: -1;
  }
  .pos-layout {
    display: flex;
    flex-direction: column;
  }
}

/* Medien-Manager */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 32px;
}
.mm-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.mm-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e8eeed;
  position: relative;
  overflow: hidden;
}
.mm-thumb img,
.mm-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(44, 52, 56, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
}
.mm-card-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mm-meta {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}
.mm-name {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}
.mm-url code,
.mm-url-lg {
  font-size: 0.75rem;
  word-break: break-all;
  color: #2c3438;
}
/* Drei Aktionen eine Zeile; Form ist Flex-Kind (kein display:contents) */
.mm-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  width: 100%;
  align-items: stretch;
}
.mm-actions > .btn,
.mm-actions > .mm-action-form {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.mm-actions > .mm-action-form {
  display: flex;
}
.mm-actions > .mm-action-form > .btn {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
.mm-actions .btn,
.mm-actions a.btn,
.mm-actions button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0 6px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-actions .mm-btn-edit {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.mm-actions .mm-btn-edit:hover,
.mm-actions .mm-btn-edit:focus-visible {
  background: var(--accent-hover);
}
.mm-actions .mm-btn-copy {
  background: color-mix(in srgb, var(--dogism-teal-soft) 55%, #fff);
  color: var(--text);
  border-color: var(--line);
}
.mm-actions .mm-btn-copy:hover,
.mm-actions .mm-btn-copy:focus-visible {
  background: var(--dogism-teal-soft);
  border-color: rgba(111, 150, 148, 0.45);
}
.mm-actions .mm-btn-delete {
  background: #fff;
  color: #9a4038;
  border-color: rgba(168, 70, 60, 0.42);
}
.mm-actions .mm-btn-delete:hover,
.mm-actions .mm-btn-delete:focus-visible {
  background: rgba(180, 90, 80, 0.1);
  border-color: rgba(168, 70, 60, 0.65);
}
@media (max-width: 380px) {
  .mm-actions {
    flex-wrap: wrap;
  }
  .mm-actions > .btn,
  .mm-actions > .mm-action-form {
    flex: 1 1 calc(50% - 3px);
  }
}
.mm-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.mm-crumb a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 600;
}
.mm-crumb a:hover {
  text-decoration: underline;
}
.mm-crumb-sep {
  color: var(--muted);
  opacity: 0.7;
  margin: 0 4px;
}
.mm-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
.mm-mkdir {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 10px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mm-mkdir-label {
  display: grid;
  gap: 4px;
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.mm-mkdir input[type="text"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.mm-mkdir button {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.mm-upload {
  margin: 0;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mm-upload-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 0 0 8px;
}
.mm-upload-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.mm-upload-hint {
  font-size: 0.75rem;
  color: var(--muted);
}
.mm-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px 10px;
  align-items: end;
}
.mm-upload-field {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.mm-upload-field input[type="file"] {
  width: 100%;
  min-height: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 0.8rem;
}
.mm-upload-go {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.mm-card-folder .mm-folder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--dogism-teal-soft) 70%, #fff);
  text-decoration: none;
}
.mm-folder-ico {
  width: 48px;
  height: 36px;
  border-radius: 4px 4px 6px 6px;
  background: var(--dogism-teal-deep);
  position: relative;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.mm-folder-ico::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 18px;
  height: 10px;
  border-radius: 3px 3px 0 0;
  background: var(--dogism-teal);
}
.mm-folder-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 34px;
  font-size: 0.72rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .mm-upload-row {
    grid-template-columns: 1fr;
  }
  .mm-upload-go {
    width: 100%;
  }
}
.mm-editor .mm-canvas-wrap,
.mm-trim .mm-preview {
  width: 100%;
  max-width: 860px;
  margin: 12px 0;
}
.mm-editor canvas {
  display: block;
  max-width: 100%;
  border: 1px solid rgba(44, 52, 56, 0.15);
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  background: #e8eeed;
}
.mm-hint {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted, #5f6b6e);
}
.mm-crop-status {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #6a7578;
}
.mm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: end;
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: #f3f6f6;
  border-radius: 10px;
  border: 1px solid rgba(44, 52, 56, 0.08);
}
.mm-toolbar--save {
  margin-top: 4px;
  background: #eef3f1;
  border-color: rgba(44, 52, 56, 0.1);
}
.mm-tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mm-tool-group--edit .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mm-tool-group--save .btn {
  min-width: 12rem;
}
.mm-tool-label {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6a7578;
  margin: 0 0 2px;
}
.mm-toolbar label.mm-tool-label {
  margin-bottom: 2px;
}
.mm-toolbar input[type="number"] {
  width: 7rem;
  padding: 8px 10px;
  border: 1px solid rgba(44, 52, 56, 0.18);
  border-radius: 8px;
  font: inherit;
}
.mm-save-row {
  margin: 8px 0 0;
}
.mm-save-row .btn,
.mm-save-row button {
  min-width: 12rem;
}
.mm-preview {
  max-height: 360px;
  background: #111;
  border-radius: 8px;
}
.mm-pick-links {
  margin: 4px 0 12px;
}
