/* dns.legal Domains – Oberfläche (ohne Build-Schritt) */
:root {
  --bg: #f5f6f8; --surface: #fff; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --line-strong: #d1d5db;
  --navy: #0c2340; --navy-2: #163a63; --accent: #0f766e; --accent-2: #0d9488; --accent-soft: #e6f4f2;
  --gold: #b88a1e; --red: #b91c1c; --red-soft: #fdecec; --amber: #b45309; --amber-soft: #fff5e6;
  --green: #15803d; --green-soft: #e8f6ed; --blue: #1d4ed8; --blue-soft: #eaf0ff; --gray-soft: #f1f2f4;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--gray-soft); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; }
.container-xs { max-width: 440px; }

/* Kopfzeile */
.topbar { background: var(--navy); color: #fff; }
.topbar .container { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(13,148,136,.3); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: #cbd5e1; padding: 8px 10px; border-radius: 6px; font-size: .94rem; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav-right a, .nav-right button.linklike { color: #e2e8f0; }
.bell { position: relative; }
.bell .count { position: absolute; top: -6px; right: -10px; background: var(--gold); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 5px; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 2px; overflow-x: auto; }
.subnav a { padding: 12px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: .93rem; }
.subnav a.active { color: var(--navy); border-bottom-color: var(--accent); font-weight: 600; }
.subnav a:hover { text-decoration: none; color: var(--navy); }
.adminbar { background: #3b0d0d; }

main { padding: 28px 0 60px; min-height: 60vh; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

footer.site { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; padding: 24px 0; }
footer.site .container { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Karten & Raster */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; }
.card.flush > .card-head { padding: 16px 20px 0; }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.danger { border-color: #f5c2c2; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layout-side { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } h1 { font-size: 1.45rem; } }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat a.value { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 8px;
  padding: 9px 16px; font: 600 .93rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: #0b5f59; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); } .btn-secondary:hover { background: var(--gray-soft); }
.btn-danger { background: var(--red); color: #fff; } .btn-danger:hover { background: #991b1b; }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn-sm { padding: 6px 10px; font-size: .85rem; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* Formulare */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: #1f2937; }
.field .hint, .hint { color: var(--muted); font-size: .84rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=tel], input[type=file], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 96px; resize: vertical; }
textarea.code { font-family: var(--mono); font-size: .85rem; min-height: 320px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.check input { margin-top: 4px; }
.error, .field .error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.input-group { display: flex; } .input-group input { border-radius: 8px 0 0 8px; } .input-group .suffix { border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 8px 8px 0; padding: 9px 11px; background: var(--gray-soft); color: var(--muted); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Meldungen */
.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-soft); border-color: #bfe5cc; color: #14532d; }
.alert-error { background: var(--red-soft); border-color: #f5c2c2; color: #7f1d1d; }
.alert-warning { background: var(--amber-soft); border-color: #f6d9a8; color: #78350f; }
.alert-info { background: var(--blue-soft); border-color: #c7d6fb; color: #1e3a8a; }
.alert ul { margin: 4px 0 0 18px; padding: 0; }

/* Plaketten */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: var(--gray-soft); color: #4b5563; }
.badge-navy { background: var(--navy); color: #fff; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfd; }
.table .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--muted); padding: 28px; text-align: center; }

/* Schlüssel/Wert-Liste */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .9rem; }
dl.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; } }

.muted { color: var(--muted); } .small { font-size: .86rem; } .strong { font-weight: 700; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.big-money { font-size: 1.9rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--navy); }

/* Fortschritt Treuhand */
.steps { display: flex; gap: 0; margin: 4px 0 18px; counter-reset: step; overflow-x: auto; }
.steps li { list-style: none; flex: 1; min-width: 110px; position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 34px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-strong); line-height: 22px; font-weight: 700; color: var(--muted); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--green); } .steps li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.steps li.done::after, .steps li.current::after { background: var(--green); }
.steps li.current { color: var(--navy); font-weight: 700; } .steps li.current::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps { padding: 0; }

/* Verlauf */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.timeline li:last-child { border-left-color: transparent; }
.timeline .when { color: var(--muted); font-size: .8rem; }

/* Nachrichten */
.messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { background: var(--gray-soft); border-radius: 10px; padding: 10px 12px; max-width: 85%; }
.msg.mine { background: var(--accent-soft); align-self: flex-end; }
.msg.admin { background: #fff7e0; border: 1px solid #f1dfa6; }
.msg.internal { background: #fdf2f8; border: 1px dashed #e9a8cc; }
.msg .meta { font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.msg .body { white-space: pre-wrap; }

/* Marktplatz */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #13406b 60%, #0f5f60 100%); color: #fff; padding: 64px 0 56px; }
.hero h1 { color: #fff; font-size: 2.4rem; max-width: 760px; }
.hero p { color: #d7e3ef; font-size: 1.12rem; max-width: 680px; }
.hero form { display: flex; gap: 8px; max-width: 640px; margin-top: 22px; }
.hero input { padding: 13px 14px; font-size: 1.02rem; border: 0; }
@media (max-width: 640px) { .hero { padding: 40px 0; } .hero h1 { font-size: 1.7rem; } .hero form { flex-direction: column; } }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.domain-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.domain-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(15,118,110,.08); text-decoration: none; }
.domain-card .name { font-weight: 700; font-size: 1.08rem; color: var(--navy); word-break: break-all; }
.domain-card .price { font-weight: 700; color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin-bottom: 0; min-width: 130px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .icon { font-size: 1.5rem; }
.flow { counter-reset: flow; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 0; }
.flow li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 58px; position: relative; }
.flow li::before { counter-increment: flow; content: counter(flow); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Balkendiagramm Besuche */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; background: var(--accent-2); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars span:hover { opacity: 1; }

/* Paginierung */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: .9rem; }
.pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled span { color: #c0c4cc; }

.log { background: #0b1220; color: #d1e4ff; font-family: var(--mono); font-size: .82rem; border-radius: 8px; padding: 14px; white-space: pre-wrap; max-height: 460px; overflow: auto; }
.copy { cursor: pointer; }
.qr { background: #fff; padding: 10px; display: inline-block; border: 1px solid var(--line); border-radius: 8px; }
.codes { columns: 2; font-family: var(--mono); }
.dnsbox { background: var(--gray-soft); border-radius: 8px; padding: 12px 14px; font-family: var(--mono); font-size: .88rem; }
.step-status { display: inline-block; width: 18px; }
details.box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; margin-bottom: 12px; }
details.box summary { cursor: pointer; font-weight: 600; }
.prose { line-height: 1.7; } .prose h2 { margin-top: 1.6em; } .prose ul { padding-left: 1.3em; }

/* Portfolios, Tags, Sammelaktionen */
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border:1px solid var(--line); border-radius:99px; background:#fff; color:var(--ink); font-size:.88rem; }
.chip:hover { text-decoration:none; border-color: var(--line-strong); }
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--navy); font-weight:600; }
.chip.sm { padding:1px 8px; font-size:.8rem; margin: 0 4px 3px 0; }
.swatch { width:10px; height:10px; border-radius:50%; display:inline-block; flex:none; }
.tag { display:inline-block; font-size:.8rem; color:#475569; background: var(--gray-soft); border-radius:6px; padding:0 6px; margin: 0 4px 3px 0; }
.tag:hover { text-decoration:none; background:#e2e8f0; }
.bulkbar { padding: 14px 18px; background: #fbfcfd; }
.bulkbar .field { margin-bottom: 4px; }
.placeholders code { margin: 0 3px 3px 0; display:inline-block; }

/* Statistik */
.kpis { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis .stat .value { font-size: 1.45rem; }
.kpis .stat .hint { color: var(--muted); font-size: .78rem; }
.chart { width:100%; height: 220px; display:block; }
.chart .h { fill: var(--accent); } .chart .b { fill: #cbd5e1; } .chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.legend { display:flex; gap:16px; font-size:.82rem; color:var(--muted); margin-top:6px; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; }
.statgrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 0 20px; }
.meter { position:relative; }
.meter .fill { position:absolute; left:0; top:3px; bottom:3px; background: var(--accent-soft); border-radius:4px; z-index:0; }
.meter span { position:relative; z-index:1; }
.table td.trunc { max-width: 340px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.table.compact td, .table.compact th { padding-top: 6px; padding-bottom: 6px; }
.flag { font-size: 1.05em; margin-right: 4px; }
