/* image-vault.de – Ergänzungen zu home.css: Preise, Fragen, Formulare, Kundenkonto, Betrieb, rechtliche Seiten */
.hd .btn + .btn { margin-left: -16px; }
.hd .btn.ghost { border-color: transparent; }
.hd .btn.ghost:hover { background: var(--sand); color: var(--fg); }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.center { text-align: center; }
.ok { color: #1d6b38; background: #eef7f0; padding: 10px 12px; font-size: 14px; }

.pricing { background: var(--sand); padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.price-wrap { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.price-card { background: var(--bg); border: 1px solid var(--line); padding: 36px; width: min(440px, 100%); }
.price-card .price { font-size: 18px; margin: 0 0 6px; }
.price-card .price b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 54px; font-weight: 400; }
.price-card ul { padding-left: 18px; margin: 18px 0 24px; color: #333; }
.price-card li { margin: 6px 0; }
.tiers { border-collapse: collapse; min-width: 260px; background: var(--bg); }
.tiers th, .tiers td { padding: 10px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.tiers th { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.tiers td:last-child { text-align: right; }

.faq { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 18px; }
.faq p { color: #333; margin: 10px 0 0; }

.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; color: var(--fg) !important; }
.check input { width: auto; margin-top: 4px; }
.slug { display: flex; align-items: stretch; }
.slug input { flex: 1; text-transform: lowercase; letter-spacing: 0; }
.slug span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--fg); border-left: 0; background: var(--sand); color: var(--muted); white-space: nowrap; }
.slug-state { font-size: 12px; color: var(--muted); }
.slug-state.bad { color: #b00020; }
.slug-state.good { color: #1d6b38; }
.login .box h2 { font-size: 18px; letter-spacing: .2em; }
.box .done p { text-align: left; }

.konto { background: var(--sand); min-height: calc(100vh - 220px); padding: clamp(32px, 6vw, 72px) 16px; }
.konto-in { max-width: 920px; margin: 0 auto; }
.konto h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 4vw, 44px); margin-bottom: 22px; }
.panel { background: var(--bg); border: 1px solid var(--line); padding: 24px clamp(18px, 3vw, 32px); margin-bottom: 18px; }
.panel h2 { font-size: 22px; }
.panel summary { cursor: pointer; }
.panel-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.addr { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; font-size: 12px; letter-spacing: .08em; padding: 4px 10px; border: 1px solid var(--line); white-space: nowrap; }
.pill.ok { border-color: #1d6b38; color: #1d6b38; }
.pill.warn { border-color: #b26a00; color: #b26a00; }
.usage .bar { height: 8px; background: var(--sand); margin: 16px 0 8px; }
.usage .bar i { display: block; height: 100%; background: var(--accent); }
.usage p { margin: 0; font-size: 14px; color: #333; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.narrow { max-width: 420px; margin: 16px 0; }
.ops table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops th, .ops td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ops .row { margin-top: 10px; }
.ops input, .ops select, .ops textarea { font: inherit; border: 1px solid var(--fg); padding: 8px 10px; }
.ops textarea { width: 100%; min-height: 60px; }
.ops code { font-size: 12px; }

.legal-page { padding: clamp(32px, 6vw, 72px) 16px; }
.legal-in { max-width: 820px; margin: 0 auto; }
.legal-in h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.legal-in h2 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.legal-in p, .legal-in li { color: #333; }
.draft { background: #fff6e5; border: 1px solid #f0c36d; padding: 10px 14px; font-size: 14px; }

body.tenant .hd { justify-content: center; }
.t-logo { max-height: 56px; max-width: 240px; display: block; }
.t-home { text-decoration: none; }
.t-access { min-height: calc(100vh - 240px); display: grid; place-items: center; }
.powered { margin-left: auto !important; }
.powered a { color: var(--muted); }

@media (max-width: 620px) {
  .hd .btn.ghost { display: none; }
  .panel-hd { flex-direction: column; }
  .price-card .price b { font-size: 44px; }
}

/* Plattform-Admin (/admin) */
.admin .konto-in { max-width: 1240px; }
.admin-hd h1 { margin-bottom: 4px; }
.admin-hd .hint { margin: 0 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--bg); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1.1; }
.tile small { font-size: 12px; color: var(--muted); }
.todo { border-left: 3px solid #b26a00; }
.todo ul { margin: 6px 0 0; padding-left: 18px; }
.ops-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ops-bar input { min-width: 280px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.chip { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.table-wrap { overflow-x: auto; }
.ops td.num { text-align: right; white-space: nowrap; }
.ops td a { color: var(--fg); }
.meter { height: 5px; background: var(--sand); margin: 6px 0 2px; width: 120px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.pill.info { border-color: #2b5f9e; color: #2b5f9e; }
.pill.bad { border-color: #b00020; color: #b00020; }
.pill.muted { color: var(--muted); }
.acts summary { cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap; }
.acts[open] { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { border-color: #b00020; color: #b00020; }
.btn.danger:hover { background: #b00020; color: #fff; }
details.panel > summary { cursor: pointer; }
details.panel[open] > summary { margin-bottom: 12px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: repeat(2, 1fr); } .ops-bar input { min-width: 0; width: 100%; } }
/* Anschrift, Zwei-Faktor */
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.stack select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); }
.twofa-list { list-style: none; padding: 0; margin: 8px 0 14px; }
.twofa-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.twofa-qr svg { width: 180px; height: 180px; display: block; margin: 8px 0; }
.codes { font-family: ui-monospace, Menlo, monospace; columns: 2; background: var(--bg); border: 1px solid var(--line); padding: 12px 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
/* Admin: Details eines Betreibers */
dialog.detail { width: min(980px, 94vw); max-height: 90vh; overflow: auto; border: 1px solid var(--line); padding: 24px 28px; background: var(--bg); color: var(--fg); }
dialog.detail::backdrop { background: rgba(0, 0, 0, .35); }
.detail-hd { display: flex; align-items: flex-start; gap: 14px; }
.detail-hd > div { flex: 1; }
.detail-hd h2 { margin: 0 0 2px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.detail h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bad-text { color: #b3261e; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.spark i { flex: 1; background: #b79c82; min-width: 4px; }
.detail-link { color: inherit; text-decoration: none; }
.detail-link:hover b { text-decoration: underline; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: 120px 1fr; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.linkbtn:hover { color: #8f7a66; }
.row-acts { white-space: nowrap; }
.row-acts > .btn { margin-bottom: 6px; display: block; }
/* Betreiber-Liste ohne Tabelle: passt sich der Breite an, kein waagrechtes Scrollen */
.admin .konto-in { max-width: 1400px; }
.op-list { font-size: 14px; }
.op-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1fr) 110px; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.op-row > div { min-width: 0; overflow-wrap: anywhere; }
.op-head { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 4px; }
.op-row .row-acts { position: relative; text-align: right; }
.op-row .row-acts .acts[open] > :not(summary) { display: block; width: 100%; }
.op-row .row-acts .acts[open] { position: absolute; right: 0; z-index: 5; background: var(--bg); border: 1px solid var(--line); padding: 8px; width: 210px; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
@media (max-width: 900px) {
  .op-row { grid-template-columns: 1fr 1fr; }
  .op-head { display: none; }
  .op-row .row-acts { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: center; }
  .op-row .row-acts > .btn { margin: 0; }
}
