/* ==========================================================================
   Cometas Monitor – helles Design (Google/YouTube-Stil)
   ========================================================================== */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8f8f8;
    --chip: #f2f2f2;
    --chip-hover: #e5e5e5;
    --border: #e5e5e5;
    --border-strong: #d3d3d3;
    --text: #0f0f0f;
    --text-muted: #606060;
    --text-faint: #909090;
    --link: #065fd4;
    --focus: #1c62b9;

    --ok: #137333;      --ok-bg: #e6f4ea;
    --warn: #b06000;    --warn-bg: #fef7e0;
    --alarm: #c5221f;   --alarm-bg: #fce8e6;
    --info: #1967d2;    --info-bg: #e8f0fe;

    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 var(--font);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 500; }

.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.text-warning { color: var(--warn); font-weight: 500; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* --- Kopfzeile ----------------------------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}
.topbar-brand:hover { text-decoration: none; }
.topbar-brand img { border-radius: 6px; }

.topbar-nav {
    display: flex;
    align-self: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar-link {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.topbar-link:hover { color: var(--text); text-decoration: none; background: var(--surface-alt); }
.topbar-link.is-active { color: var(--text); border-bottom-color: var(--text); }

.topbar-logout {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 18px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.topbar-logout:hover { background: var(--chip); color: var(--text); text-decoration: none; }

/* --- Seite --------------------------------------------------------------- */

.page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 20px;
}
.page-header h1 { font-size: 24px; line-height: 1.3; }
.page-header .eyebrow { color: var(--text-muted); font-size: 13px; margin-bottom: 2px; }
.page-subtitle { color: var(--text-muted); margin-top: 4px; }

.footer {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
}
.footer a { color: inherit; }

.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: var(--alarm-bg);
    color: var(--alarm);
}

/* --- Hinweisbox (z.B. DNS-Änderungen) ---------------------------------- */

.notice {
    margin-bottom: 20px;
    border: 1px solid #f9d77e;
    border-radius: var(--radius);
    background: var(--warn-bg);
}
.notice-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 16px;
}
.notice-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    padding: 8px 16px;
    border-top: 1px solid #f9d77e;
}
.notice-row form { margin-left: auto; }
.notice .icon-btn:hover { background: rgba(0, 0, 0, .06); color: var(--text); }

/* --- Kennzahlen ---------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat {
    display: block;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    text-align: left;
}
.stat-value { font-size: 28px; font-weight: 500; line-height: 1.2; }
.stat-value--small { font-size: 18px; line-height: 34px; }
.stat-label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }

button.stat, a.stat { cursor: pointer; transition: background .15s, border-color .15s; }
button.stat:hover, a.stat:hover { background: var(--surface-alt); text-decoration: none; }
.stat.is-active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

.stat--ok .stat-value { color: var(--ok); }
.stat--warning .stat-value { color: var(--warn); }
.stat--alarm .stat-value { color: var(--alarm); }

/* --- Filterleiste -------------------------------------------------------- */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}
.toolbar-group { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.chip, .select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background-color: var(--chip);
    color: var(--text);
    font: 500 14px var(--font);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}
.chip:hover, .select:hover { background-color: var(--chip-hover); text-decoration: none; }
.chip.is-active, .select.is-active { background-color: var(--text); color: #fff; }
.chip.is-active:hover, .select.is-active:hover { background-color: #272727; }
.chip-count { font-weight: 400; opacity: .7; }

.select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23606060'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.select.is-active {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.search {
    position: relative;
    flex: 1 1 280px;
    max-width: 480px;
}
.search input {
    width: 100%;
    height: 40px;
    padding: 0 56px 0 44px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    font: 16px var(--font);
    outline: none;
}
.search input:focus { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.search::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.87 20.17l-5.59-5.59A6.96 6.96 0 0016 10.5C16 6.91 13.09 4 9.5 4S3 6.91 3 10.5 5.91 17 9.5 17c1.56 0 3-.55 4.13-1.47l5.59 5.59.65-.65zM9.5 16C6.47 16 4 13.53 4 10.5S6.47 5 9.5 5 15 7.47 15 10.5 12.53 16 9.5 16z' fill='%23606060'/%3E%3C/svg%3E") no-repeat center / contain;
}
.search kbd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding: 1px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-faint);
    font: 11px var(--font);
}

.result-count { color: var(--text-muted); font-size: 13px; }

.reset-filters {
    border: 0;
    background: none;
    color: var(--link);
    font: 500 13px var(--font);
    cursor: pointer;
}

/* --- Karten & Tabellen --------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-body { padding: 16px; }

.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-alt); }

.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover { color: var(--text); }
.table th[data-sort]::after { content: ' ↕'; opacity: .4; }
.table th.sort-asc::after { content: ' ↑'; opacity: 1; }
.table th.sort-desc::after { content: ' ↓'; opacity: 1; }

.cell-title { font-weight: 500; color: var(--text); }
.cell-sub { display: block; color: var(--text-muted); font-size: 12px; }
a.cell-sub { color: var(--link); }

.row-alarm { box-shadow: inset 3px 0 0 var(--alarm); }
.row-warning { box-shadow: inset 3px 0 0 var(--warn); }

.empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
}

/* --- Badges -------------------------------------------------------------- */

.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.page-badges { margin-bottom: 20px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--chip);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warning { background: var(--warn-bg); color: var(--warn); }
.badge--alarm { background: var(--alarm-bg); color: var(--alarm); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--outline { background: none; box-shadow: inset 0 0 0 1px var(--border-strong); }

/* Server-Labels (Reihenfolge wie in config «servers») */
.badge--srv1 { background: #e0f2f1; color: #00695c; }
.badge--srv2 { background: #f3e8fd; color: #7627bb; }
.badge--srv3 { background: #e8f0fe; color: #1a56b8; }
.badge--srv4 { background: #fff0e0; color: #a14d00; }
.badge--srv5 { background: #fce4ec; color: #ad1457; }
.badge--srv6 { background: #ede7f6; color: #4527a0; }
a.badge:hover { text-decoration: none; filter: brightness(.96); }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.badge--alarm .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* --- Listen (Plugins, Plattformen) --------------------------------------- */

.group { margin-bottom: 24px; }
.group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 8px;
}
.group-header h2 { font-size: 16px; }

.list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.list-row {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.list-row:last-child { border-bottom: 0; }
a.list-row:hover, .list-row.is-link:hover { background: var(--surface-alt); text-decoration: none; }
.list-row.is-link { position: relative; }
.list-row.is-link .row-link::after { content: ''; position: absolute; inset: 0; }
.list-row.is-link .badges a, .list-row.is-link form { position: relative; z-index: 1; }
.list-main { flex: 1; min-width: 0; }
.list-main .cell-title { margin-right: 8px; }
.list-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }

/* --- Formulare & Buttons ------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: var(--chip);
    color: var(--text);
    font: 500 14px var(--font);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--chip-hover); text-decoration: none; }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: #272727; }

/* Icons (Font Awesome Free, CC BY 4.0) – übernehmen die Textfarbe */
.icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.icon--notion { --icon: url("../img/icons/notion.svg"); }
.icon--github { --icon: url("../img/icons/github.svg"); }
.icon--gitlab { --icon: url("../img/icons/gitlab.svg"); }
.btn--small { height: 28px; padding: 0 12px; font-size: 13px; }

.icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    font-size: 15px;
}
.icon-btn:hover { background: var(--chip); color: var(--alarm); }

.input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: 14px var(--font);
    outline: none;
}
.input:focus { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }

.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-stack { display: grid; gap: 16px; }
.settings { display: grid; gap: 12px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--text); }
.checkbox .muted { display: block; font-size: 13px; }
.form-stack label { display: grid; gap: 6px; color: var(--text-muted); font-size: 13px; }
.textarea { height: auto; padding: 10px 12px; font-family: var(--mono); font-size: 12px; resize: vertical; }
.textarea--prose { font: 14px/1.45 var(--font); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plugin-description { max-width: 760px; margin: 8px 0 0; color: var(--text); }
details.card > summary { cursor: pointer; color: var(--text-muted); list-style: none; padding-top: 12px; padding-bottom: 12px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: '▸ '; }
details.card[open] > summary::before { content: '▾ '; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.inline-form .input { flex: 1 1 280px; }
.grow { flex: 1; }

/* --- Login --------------------------------------------------------------- */

.login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--surface-alt);
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.login-card img { margin-bottom: 12px; }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.login-card label { font-size: 13px; color: var(--text-muted); }
.login-card .input { width: 100%; height: 44px; margin-top: 4px; font-size: 16px; }
.login-card .btn { height: 44px; margin-top: 8px; }

/* --- Neuinstallation ----------------------------------------------------- */

.setup-step, .setup-step li[id] { scroll-margin-top: 72px; }
.setup-step p, .setup-step ul, .setup-step ol { margin: 0 0 12px; max-width: 820px; }
.setup-step ul ul, .setup-step ol ul { margin: 6px 0 0; }
.setup-step ul, .setup-step ol { padding-left: 20px; }
.setup-step li { margin-bottom: 6px; }
.setup-step > .card-body > :last-child { margin-bottom: 0; }
.setup-step-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.setup-step-header [hidden] { display: none; }
.setup-step-header h2 { font-size: 16px; }
.setup-step.is-done { background: var(--surface-alt); }
.setup-step.is-done .setup-step-header h2 { color: var(--text-muted); text-decoration: line-through; }
/* Webhook: instances.stable.json einfügen, neue Fassung kopieren */
.setup-json { display: grid; gap: 8px; max-width: 900px; margin: 6px 0 8px; }
.setup-json .textarea { width: 100%; }
.setup-json [hidden] { display: none; }
.setup-json-message { margin: 0; font-size: 13px; }
.setup-json-message:empty { display: none; }
.setup-json-message--ok { color: var(--ok); }
.setup-json-message--warning { color: var(--warn); font-weight: 500; }
.setup-details { margin: 4px 0; font-size: 13px; color: var(--text-muted); }
.setup-details summary { cursor: pointer; }
.setup-details .copy-field { margin-top: 6px; }

/* Teilschritte zum Abhaken: nur Ergebnis-Punkte (data-result), Kästchen anstelle des Aufzählungspunkts (fügt setup.js ein) */
.setup-sub { position: relative; list-style: none; }
.setup-sub-check { position: absolute; left: -24px; top: 1px; width: 17px; height: 17px; margin: 0; accent-color: var(--text); cursor: pointer; }
.setup-sub.is-checked { opacity: .55; }
/* Punkt mit eigenem Speichern: statt Kästchen ein Kreis, nach dem Speichern ✓ */
.setup-sub-auto { position: absolute; left: -24px; top: 1px; display: flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px dashed var(--text-faint); border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; }
.setup-sub.is-checked > .setup-sub-auto { border: 0; background: var(--ok); }
.setup-step-done.is-ready .checkbox span::after { content: ' – alle Teilschritte erledigt, jetzt bestätigen'; color: var(--ok); font-weight: 400; }
.setup-step .setup-step-done.is-ready { background: var(--ok-bg); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; padding-bottom: 12px; margin-bottom: -16px; border-radius: 0 0 var(--radius) var(--radius); }

/* DNS-Prüfung und Abhaken am Ende jedes Schritts */
.setup-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; scroll-margin-top: 140px; }
.setup-check-label { font-weight: 500; }
.setup-step-done { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.setup-step-done .checkbox { align-items: center; font-weight: 500; }
.setup-step-done .checkbox input { margin: 0; width: 18px; height: 18px; }
.setup-why { max-width: 820px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: #f4eeea; color: #5c4033; }
.setup-warning { max-width: 820px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); }
.copy-field { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-bottom: 8px; max-width: 900px; }
.copy-field .input { width: 100%; font-family: var(--mono); font-size: 12px; }
.copy-field .btn { margin-top: 6px; }
.copy-label { color: var(--text-muted); font-size: 13px; padding-top: 10px; }
.copy-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.copy-inline .btn { height: 24px; padding: 0 10px; font-size: 12px; }
.setup-shot { display: block; max-width: 560px; margin: 4px 0 12px; }
.setup-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.setup-shots { display: flex; flex-wrap: wrap; gap: 12px; }
.setup-shots .setup-shot { max-width: 300px; }
.setup-delete { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.setup-archive { margin-top: 24px; }
.setup-archive > summary { cursor: pointer; list-style: none; }
.setup-archive > summary::-webkit-details-marker { display: none; }
.setup-archive > summary h2::before { content: '▸ '; color: var(--text-muted); }
.setup-archive[open] > summary h2::before { content: '▾ '; }
.setup-new { display: grid; gap: 12px; }
.setup-label { font-weight: 500; }
.setup-host { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.setup-host[hidden] { display: none; }
.setup-host label { flex: 1 1 100%; color: var(--text-muted); font-size: 13px; }
.setup-host .input { flex: 0 1 240px; min-width: 0; }
.setup-host span { color: var(--text-muted); white-space: nowrap; }

/* Triage: Was braucht es für diese Adresse? (templates/setup/triage.php) */
.setup-triage { max-width: 820px; margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid; border-radius: var(--radius-sm); }
.setup-triage[hidden] { display: none; }
.setup-new .setup-triage { margin: 0; }
.setup-triage p { margin: 4px 0 0; }
.setup-triage--ok { border-color: var(--ok); background: var(--ok-bg); }
.setup-triage--info { border-color: var(--info); background: var(--info-bg); }
.setup-triage--warning { border-color: var(--warn); background: var(--warn-bg); }

/* Nachbildungen von Plesk-Masken mit den echten Werten (keine Screenshots, weil individuell) */
.pk { max-width: 640px; margin: 4px 0 14px; border: 1px solid #c9ced3; border-radius: 6px; background: #fff; color: #222; font: 13px/1.4 'Open Sans', 'Segoe UI', Arial, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
.pk-title { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #dde1e5; font-size: 17px; }
.pk-title::after { content: '×'; color: #888; font-size: 20px; }
.pk-title--page::after { content: none; }
.pk-crumbs { padding: 10px 16px 0; color: #2c78b5; font-size: 12px; }
.pk-body { padding: 14px 16px; }
.pk-section { margin: 4px 0 10px; font-size: 15px; font-weight: 600; }
.pk-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; align-items: start; margin-bottom: 10px; }
.pk-row--stack { grid-template-columns: 1fr; }
.pk-label { padding-top: 5px; color: #333; }
.pk-req::after { content: ' *'; color: #c3332f; }
.pk-input { min-height: 28px; padding: 4px 8px; border: 1px solid #b4b9be; border-radius: 3px; background: #fff; font-family: inherit; word-break: break-all; }
.pk-input--mono { font-family: var(--mono); font-size: 12px; }
.pk-input--area { min-height: 64px; }
.pk-input--secret { color: #555; letter-spacing: 2px; }
.pk-input--pre { white-space: pre; word-break: normal; overflow-x: auto; }
.pk-input--inline { display: inline-block; min-width: 140px; }
.pk-select { display: inline-flex; justify-content: space-between; gap: 16px; min-width: 160px; padding: 4px 8px; border: 1px solid #b4b9be; border-radius: 3px; background: #fff; }
.pk-select::after { content: '⌄'; color: #666; }
.pk-hint { color: #777; font-size: 12px; }
.pk-check, .pk-radio { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.pk-check::before, .pk-radio::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 2px; border: 1px solid #9aa0a6; border-radius: 2px; background: #fff; }
.pk-radio::before { border-radius: 50%; }
.pk-check.is-on::before { content: '✓'; color: #fff; background: #4c9fd8; border-color: #4c9fd8; font-size: 11px; line-height: 14px; text-align: center; }
.pk-radio.is-on::before { border-color: #4c9fd8; background: radial-gradient(circle, #4c9fd8 0 3px, #fff 4px); }
.pk-segment { display: inline-flex; }
.pk-segment span { padding: 4px 12px; border: 1px solid #c3c7cb; background: #f2f2f2; }
.pk-segment span + span { border-left: 0; }
.pk-segment .is-on { background: #d4d7da; font-weight: 600; }
.pk-buttons { display: flex; gap: 8px; margin-top: 14px; }
.pk-btn { display: inline-block; padding: 5px 14px; border-radius: 2px; background: #ececec; border-bottom: 2px solid #c8c8c8; }
.pk-btn--primary { background: #53a7dd; color: #fff; border-bottom-color: #3d8fc4; }
.pk-mark { outline: 3px solid #e94ce0; outline-offset: 2px; border-radius: 3px; }
.pk-toast { max-width: 420px; background: #2f3a45; color: #fff; }
.pk-toast .pk-body { display: grid; gap: 4px; }
.pk-toast .pk-hint { color: #d0d5da; font-family: var(--mono); }
.pk-badge { display: inline-block; padding: 1px 6px; border-radius: 2px; font-size: 12px; color: #fff; background: #e0752b; }
.pk-files { display: grid; grid-template-columns: 150px 1fr; }
.pk-tree { padding: 10px 12px; border-right: 1px solid #dde1e5; color: #333; }
.pk-tree div { padding: 2px 4px; }
.pk-tree div::before, .pk-file::before { content: '📁 '; }
.pk-list .pk-file { display: flex; gap: 8px; padding: 5px 8px; border-bottom: 1px solid #eee; color: #2c78b5; }
.pk-list .pk-file::before { content: none; }
.pk-list .pk-file .pk-check { margin: 0; }
.pk-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.pk-plus { display: inline-block; width: 28px; text-align: center; padding: 4px 0; background: #53a7dd; color: #fff; border-radius: 2px; }
.pk-menu { width: 200px; margin: 0 12px 10px; border: 1px solid #dde1e5; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.pk-menu div { padding: 5px 10px; }
.pk-1pw { max-width: 420px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.pk-1pw .pk-title { justify-content: center; }
.pk-1pw .pk-title::after { content: none; }
.pk-1pw .pk-name { padding: 8px 12px; margin-bottom: 10px; background: #f0f0f0; border-radius: 6px; font-size: 16px; font-weight: 600; }
.pk-1pw .pk-field { padding: 6px 10px; border: 1px solid #dde1e5; border-bottom: 0; }
.pk-1pw .pk-field:last-of-type { border-bottom: 1px solid #dde1e5; }
.pk-1pw .pk-field small { display: block; color: #555; font-size: 11px; }
.pk-1pw .pk-buttons { justify-content: flex-end; align-items: center; }
.pk-1pw .pk-btn--primary { background: #1a73e8; border: 0; border-radius: 6px; }
.pk-notion .pk-row { grid-template-columns: 170px 1fr; }
.pk-notion .pk-label { color: #787774; }
.pk-gitlab .pk-input--area { min-height: 0; white-space: pre; font-family: var(--mono); font-size: 12px; }
.pk-metanet { border-color: #e3e5e8; border-radius: 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.pk-metanet .pk-title { border-bottom: 0; font-weight: 600; }
.pk-metanet .pk-input { display: block; background: #f8f9fa; border-color: #ced4da; border-radius: 4px; }
.pk-metanet .pk-hint { display: block; margin-top: 4px; color: #6c757d; }
.pk-addon { display: flex; }
.pk-addon .pk-input { flex: 1; min-width: 60px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.pk-addon > span:last-child { padding: 4px 10px; border: 1px solid #ced4da; border-left: 0; border-radius: 0 4px 4px 0; background: #e9ecef; white-space: nowrap; }
.pk-metanet .pk-btn--primary { background: #343a40; border: 0; border-radius: 4px; }
.pk-link { padding: 5px 8px; color: #495057; }
/* Plesk «SSL/TLS-Zertifikat für …» (Let's Encrypt) */
.pk-le { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.pk-le-logo { color: #2c3c69; font-size: 18px; font-weight: 700; white-space: nowrap; }
.pk-text { margin: 0 0 12px; color: #333; }
.pk-a { color: #2c78b5; }

/* Plesk «Neue Domain hinzufügen» (Bereitstellung über Git) */
.pk-info { display: flex; gap: 10px; align-items: center; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #dde1e5; }
.pk-git { color: #e2492f; font-size: 22px; line-height: 1; }
.pk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pk-tile { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #dde1e5; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pk-tile.is-on { background: #f0f0f0; }
.pk-tile span { color: #444; }
.pk-www { display: flex; align-items: center; gap: 6px; }
.pk-www .pk-input { flex: 1; }
.pk-indent { padding-left: 18px; }
.pk-section .pk-hint { display: block; font-weight: 400; }
.pk-metanet-save { background: #fcf3cf; border-color: #e8d9a0; }
.pk-metanet-save .pk-btn { border: 1px solid transparent; border-radius: 4px; background: #fff; }
.pk-metanet .pk-btn--save { background: #f2c744; border-color: #f2c744; color: #212529; }
.pk-metanet .pk-btn--outline { border-color: #6c757d; color: #212529; }
.pk-metanet .pk-btn--danger { border-color: #dc3545; color: #dc3545; }

/* --- Halbe Bildschirmbreite (z.B. Anleitung neben Plesk) ------------------ */

@media (max-width: 1100px) {
    .topbar { gap: 12px; }
    .topbar-brand span { display: none; }
    .topbar-link { padding: 0 12px; }
}

/* --- Mobil --------------------------------------------------------------- */

@media (max-width: 760px) {
    .topbar { gap: 8px; padding: 0 12px; }
    .topbar-brand span { display: none; }
    .topbar-link { padding: 0 10px; }
    .topbar-logout { padding: 8px 10px; }
    .page { padding: 16px; }
    .toolbar-end { margin-left: 0; }
    .search { max-width: none; }
    .list-row { flex-wrap: wrap; }
    .list-end { justify-content: flex-start; }
    .copy-field { grid-template-columns: minmax(0, 1fr) auto; }
    .copy-label { grid-column: 1 / -1; padding-top: 0; }
    .pk-row, .pk-files { grid-template-columns: 1fr; }
    .pk-tree { border-right: 0; border-bottom: 1px solid #dde1e5; }
}
