/* Domain Server – Oberfläche
   Schlicht: Systemschrift, neutrale Farben, eine Akzentfarbe, feine Linien. Hell und dunkel. */

:root {
  --bg: #f5f5f2;
  --panel: #ffffff;
  --panel-2: #fafaf8;
  --sidebar: #ecece8;
  --hover: #f0f0ec;
  --active: #e4e4df;
  --border: #e3e3de;
  --border-strong: #cfcfc8;
  --text: #1d1d1b;
  --text-dim: #5c5c56;
  --text-faint: #8d8d85;
  --accent: #2a5bd7;
  --accent-soft: #e8eefc;
  --primary: #1d1d1b;
  --primary-text: #ffffff;
  --primary-hover: #34342f;
  --ok: #1d7a4b;
  --ok-btn: #1f8a53;
  --ok-btn-hover: #1a774a;
  --ok-soft: #e5f3eb;
  --warn: #9a6a00;
  --warn-soft: #fbf1d8;
  --bad: #b5382f;
  --bad-soft: #f9e7e5;
  --gold: #946200;
  --gold-soft: #fbf0d4;
  --gold-border: #e6cf91;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(20, 20, 15, 0.04);
  --shadow-pop: 0 12px 40px rgba(20, 20, 15, 0.16), 0 2px 6px rgba(20, 20, 15, 0.06);
  --font: 'Segoe UI Variable Text', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Cascadia Mono', 'Cascadia Code', ui-monospace, Consolas, Menlo, monospace;
  --sidebar-w: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --panel: #1d1d1b;
    --panel-2: #1a1a18;
    --sidebar: #121211;
    --hover: #252522;
    --active: #2c2c29;
    --border: #2b2b28;
    --border-strong: #3a3a36;
    --text: #ebeae5;
    --text-dim: #a6a59e;
    --text-faint: #75746d;
    --accent: #7ea2ff;
    --accent-soft: #1f2a44;
    --primary: #ebeae5;
    --primary-text: #161615;
    --primary-hover: #ffffff;
    --ok: #57c38b;
    --ok-btn: #2f9a62;
    --ok-btn-hover: #36ad6e;
    --ok-soft: #1b2d23;
    --warn: #e0b048;
    --warn-soft: #2f2816;
    --bad: #ec7a70;
    --bad-soft: #351e1c;
    --gold: #e5b54e;
    --gold-soft: #2e2615;
    --gold-border: #5c4a1e;
    --shadow: none;
    --shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3 {
  margin: 0 0 6px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
textarea {
  resize: vertical;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--accent-soft);
}

/* ------------------------------ Grundgerüst ------------------------------ */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
body.is-home .shell {
  grid-template-columns: minmax(0, 1fr);
}
body.is-home .sidebar {
  display: none;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 12px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.brand:hover {
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand-text strong {
  font-size: 14.5px;
  font-weight: 600;
}
.sidenav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sidenav .sep-label {
  margin: 14px 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
}
.sidenav .sep-label:first-child {
  margin-top: 0;
}
.sidenav a,
.sidenav .soon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
}
.sidenav a:hover {
  background: var(--hover);
  color: var(--text);
  text-decoration: none;
}
.sidenav a.active {
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--border);
}
.sidenav svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.sidenav .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.sidenav .soon-item {
  color: var(--text-faint);
  cursor: default;
}
.soon-tag {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-faint);
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 2px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}
.sidebar-foot a {
  color: var(--text-dim);
}

main {
  min-width: 0;
  padding: 32px 40px 80px;
  outline: none;
}
main > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
body.is-home main {
  padding: 0;
}
body.is-home main > * {
  max-width: none;
}
.fade-in {
  animation: appear 0.18s ease-out both;
}
@keyframes appear {
  from {
    opacity: 0;
  }
}

/* ------------------------------ Startseite ------------------------------ */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin-bottom: 28px;
}
.home-logo {
  width: 52px;
  height: 52px;
}
.home h1 {
  margin: 0;
  font-size: 26px;
}
.home-brand p {
  margin: 2px 0 0;
  color: var(--text-dim);
}
.tiles {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--text);
}
.tile + .tile {
  border-top: 1px solid var(--border);
}
a.tile:hover {
  background: var(--hover);
  text-decoration: none;
}
.tile-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}
.tile-icon svg {
  width: 20px;
  height: 20px;
}
.tile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.tile-title {
  font-weight: 600;
  font-size: 15px;
}
.tile-desc {
  font-size: 13px;
  color: var(--text-dim);
}
.tile-go {
  display: flex;
  color: var(--text-faint);
}
.tile-go svg {
  width: 18px;
  height: 18px;
}
.tile.disabled {
  cursor: default;
}
.tile.disabled .tile-title,
.tile.disabled .tile-icon {
  color: var(--text-faint);
}
.tile.disabled .tile-desc {
  color: var(--text-faint);
  font-style: italic;
}
.home-foot {
  margin-top: 16px;
  width: 100%;
  max-width: 560px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ------------------------------ Seitenkopf, Karten, Hilfsklassen ------------------------------ */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.page-head h1 {
  margin: 0;
  font-size: 24px;
}
.page-head p {
  margin: 4px 0 0;
  color: var(--text-dim);
}
.page-head > div:last-child:not(:first-child) {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 18px 20px;
}
.card h2 {
  font-size: 15px;
}
.muted {
  color: var(--text-dim);
}
.faint {
  color: var(--text-faint);
}
.small {
  font-size: 12.5px;
}
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, border-color 0.1s;
}
.btn:hover {
  background: var(--hover);
  text-decoration: none;
  color: var(--text);
}
.btn:active {
  background: var(--active);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-text);
}
.btn-ok {
  background: var(--ok-btn);
  border-color: var(--ok-btn);
  color: #fff;
}
.btn-ok:hover {
  background: var(--ok-btn-hover);
  border-color: var(--ok-btn-hover);
  color: #fff;
}
.btn-gold {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--hover);
}
.btn-danger {
  color: var(--bad);
}
.btn-danger:hover {
  color: var(--bad);
  background: var(--bad-soft);
}
.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}
.btn-lg {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.icon-btn {
  width: 32px;
  padding: 0;
}
.icon-btn.btn-sm {
  width: 28px;
}

/* ------------------------------ Formulare ------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.help {
  font-size: 12.5px;
  color: var(--text-faint);
}
.input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
}
textarea.input {
  height: auto;
  min-height: 100px;
  padding: 8px 10px;
}
select.input {
  cursor: pointer;
}
.input::placeholder {
  color: var(--text-faint);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-sm {
  height: 28px;
  padding: 0 8px;
  font-size: 13px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch .track {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--border-strong);
  transition: background 0.15s;
}
.switch .track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch input:checked + .track {
  background: var(--ok-btn);
}
.switch input:checked + .track::after {
  transform: translateX(14px);
}
.switch input:focus-visible + .track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------ Badges, Tags, Logos ------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-dim);
  background: var(--hover);
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge svg {
  width: 12px;
  height: 12px;
}
.badge-ok {
  color: var(--ok);
  background: var(--ok-soft);
}
.badge-warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.badge-bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.badge-accent {
  color: var(--accent);
  background: var(--accent-soft);
}
.badge-gold {
  color: var(--gold);
  background: var(--gold-soft);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--hover);
  white-space: nowrap;
}
.tag-live {
  color: var(--ok);
  background: var(--ok-soft);
}
.tag-ref {
  color: var(--text-dim);
  background: var(--hover);
}
.tag-gold {
  color: var(--gold);
  background: var(--gold-soft);
}
.provider-logo {
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.provider-logo.sm {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 9px;
}

/* ------------------------------ Lade-Anzeigen, Hinweise ------------------------------ */
.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--text-dim);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  display: inline-block;
  height: 12px;
  border-radius: 4px;
  background: var(--hover);
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.notice svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--text-faint);
}
.notice-warn {
  background: var(--warn-soft);
  border-color: transparent;
}
.notice-warn svg {
  color: var(--warn);
}
.notice-bad {
  background: var(--bad-soft);
  border-color: transparent;
}
.notice-bad svg {
  color: var(--bad);
}
.notice-gold {
  background: var(--gold-soft);
  border-color: transparent;
}
.notice-gold svg {
  color: var(--gold);
}
.empty {
  text-align: center;
  padding: 44px 24px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  margin: 0 auto 16px;
  color: var(--text-dim);
  max-width: 460px;
}

/* ------------------------------ Suche ------------------------------ */
.search-head h1 {
  margin: 0;
  font-size: 24px;
}
.search-head > p {
  margin: 4px 0 16px;
  color: var(--text-dim);
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 6px 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.searchbar > .ico svg {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
}
.searchbar input::placeholder {
  color: var(--text-faint);
}
.searchbar .btn {
  height: 34px;
  padding: 0 16px;
}
.search-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.search-hint {
  margin-top: 28px;
  color: var(--text-dim);
}
.search-hint p {
  margin: 0 0 6px;
}
.results {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.search-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
}
.group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.group-title .count:empty {
  display: none;
}
.result-list {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.result + .result {
  border-top: 1px solid var(--border);
}
.result-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  min-height: 56px;
}
.result:hover > .result-main {
  background: var(--panel-2);
}
.result.open > .result-main {
  background: var(--panel-2);
}
.domain-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.domain-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.domain-name .tld {
  color: var(--text-dim);
  font-weight: 500;
}
button.domain-name:not(:disabled):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result.taken .domain-name,
.result.taken .domain-name .tld {
  color: var(--text-faint);
  font-weight: 500;
  cursor: default;
}
.domain-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 1px;
}
.domain-sub:empty {
  display: none;
}
.price-cell {
  text-align: right;
  min-width: 140px;
}
.price-big {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-big.gold {
  font-size: 14px;
  color: var(--gold);
}
.price-sub {
  font-size: 12px;
  color: var(--text-faint);
}
.price-sub b {
  font-weight: 500;
  color: var(--text-dim);
}
.actions-cell {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-width: 222px;
}
.actions-cell .btn-ok,
.actions-cell .btn-gold {
  min-width: 82px;
}
.chev {
  transition: transform 0.15s;
}
.open .chev {
  transform: rotate(180deg);
}
.wish-btn {
  color: var(--text-faint);
}
.wish-btn.on {
  color: #d23f5f;
}
.wish-btn.on svg {
  fill: currentColor;
}

/* Preisvergleich */
.compare {
  padding: 2px 16px 14px;
  background: var(--panel-2);
  border-top: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.compare-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  padding: 10px 8px 6px;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table td.num,
.compare-table th.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.compare-table tr.best td {
  background: var(--ok-soft);
}
.compare-table tr.best td.num:nth-child(2) {
  color: var(--ok);
  font-weight: 600;
}
.compare-table .prov {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-table tr.sep td {
  padding: 14px 8px 4px;
  font-size: 12px;
  color: var(--text-faint);
  background: none;
}
.compare-table tr.no-price .prov {
  color: var(--text-dim);
}
.compare-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 10px;
}

/* Details zu vergebenen Domains */
.taken-details {
  padding-top: 12px;
}
.taken-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kv-item .k {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.kv-item .v {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------ Tabellen ------------------------------ */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr.clickable {
  cursor: pointer;
}
.table tbody tr.clickable:hover td {
  background: var(--panel-2);
}
.table tbody tr.clickable td:first-child {
  font-weight: 600;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table td.content-cell {
  max-width: 360px;
  overflow-wrap: anywhere;
}
.table tr.editing td {
  background: var(--accent-soft);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.toolbar .input {
  max-width: 280px;
}

/* ------------------------------ Meine Domains ------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats .stat {
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.stats .stat + .stat {
  border-left: 1px solid var(--border);
}
.stat .label {
  font-size: 12px;
  color: var(--text-faint);
}
.stat .value {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-title h2 {
  margin: 0;
  font-size: 15px;
}
.ns-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 13px;
}
.back-link svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------ Konten ------------------------------ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.account-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.account-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}
.account-card .title {
  font-weight: 600;
}
.account-card .creds {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
}
.account-card .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}
.provider-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.provider-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.provider-option:hover {
  border-color: var(--border-strong);
  background: var(--hover);
}
.provider-option small {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
}

/* ------------------------------ Dialoge, Meldungen ------------------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 8, 0.4);
  animation: appear 0.12s ease-out both;
}
.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px 20px;
}
.modal-head h2 {
  margin: 0;
  font-size: 16px;
}
.modal-body {
  padding: 4px 20px 18px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(400px, calc(100vw - 32px));
}
.toast {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-pop);
  animation: appear 0.15s ease-out both;
}
.toast.err {
  background: var(--bad);
  color: #fff;
}

/* ------------------------------ Einstellungen ------------------------------ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.settings-grid > .card:nth-child(n + 3) {
  grid-column: 1 / -1;
}
.price-edit-table input {
  max-width: 100px;
  text-align: right;
}
.source-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.source-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ------------------------------ Responsiv ------------------------------ */
@media (max-width: 980px) {
  .detail-grid,
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats,
  .taken-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats .stat:nth-child(3) {
    border-left: 0;
  }
  .stats .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 820px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .brand-text,
  .sidebar-foot,
  .sidenav .sep-label,
  .sidenav .soon-item,
  .sidenav .count {
    display: none;
  }
  .brand {
    padding: 0;
  }
  .sidenav {
    flex-direction: row;
  }
  .sidenav a {
    white-space: nowrap;
  }
  main {
    padding: 20px 14px 60px;
  }
  .result-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }
  .actions-cell {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .actions-cell .btn:not(.wish-btn) {
    flex: 1;
  }
  .price-cell {
    min-width: 0;
  }
  .domain-cell .row {
    flex-wrap: wrap;
    gap: 2px 8px !important;
  }
  .domain-name {
    white-space: normal;
    word-break: break-all;
  }
  .compare {
    padding: 2px 6px 12px;
  }
  .compare-table .hide-sm,
  .compare-table .btn-text {
    display: none;
  }
  .compare-table td {
    padding: 6px 5px;
  }
}
@media (max-width: 560px) {
  .stats,
  .taken-grid,
  .kv {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Nachträge */
.account-card > div:not(.head):not(.creds):not(.foot) {
  padding: 0 16px 12px;
}
.account-card .foot .btn-danger {
  margin-left: auto;
}
.brand-mark,
.home-logo {
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--border);
}

/* ------------------------------ Handy: App-Leiste unten ------------------------------ */
@media (max-width: 820px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .sidebar {
    top: 0;
    justify-content: space-between;
    padding: 8px 14px;
    padding-top: max(8px, env(safe-area-inset-top));
    overflow: visible;
    background: color-mix(in srgb, var(--sidebar) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .brand-text {
    display: inline;
    font-size: 15px;
  }
  .sidebar-foot {
    display: flex;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 14px;
    font-size: 13px;
  }
  .sidebar-foot a:first-child {
    display: none;
  }
  .sidenav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 4px 4px max(6px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--sidebar) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
  body.is-home .sidenav {
    display: none;
  }
  .sidenav a {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 6px 2px 4px;
    font-size: 10.5px;
    font-weight: 550;
    text-align: center;
    border-radius: 10px;
    white-space: nowrap;
    overflow: hidden;
  }
  .sidenav a svg {
    width: 21px;
    height: 21px;
  }
  .sidenav a .lbl {
    display: none;
  }
  .sidenav a .lbl-short {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidenav a.active {
    background: transparent;
    color: var(--accent);
  }
  .sidenav .count {
    display: inline-block;
    position: absolute;
    top: 3px;
    left: calc(50% + 6px);
    min-width: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
  }
  main {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  }
  body.is-home main {
    padding-bottom: 40px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  /* Eingabefelder: 16px verhindert das automatische Hineinzoomen auf dem iPhone */
  .input,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .input {
    height: 42px;
  }
  .btn {
    min-height: 40px;
  }
  .toasts {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (min-width: 821px) {
  .sidenav a .lbl-short {
    display: none;
  }
}
