/* Portfolio-Generator – Oberfläche (Assistent, Übersicht) */
/* Ausgeblendete Elemente bleiben immer ausgeblendet – auch wenn eine Klasse display setzt (z. B. .choices, .toggle) */
[hidden] { display: none !important; }
:root { --bg:#f5f6f8; --card:#fff; --text:#1d2330; --muted:#667085; --accent:#1f5eff; --accent-soft:#e8efff; --border:#e3e6ec; --error:#c62828; --ok:#1b7f46; --warn:#b26a00; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--text); min-height:100vh; display:flex; flex-direction:column; line-height:1.45; }
a { color:var(--accent); }
header.top { background:var(--card); border-bottom:1px solid var(--border); padding:10px 20px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
header.top .brand { font-weight:700; text-decoration:none; color:var(--text); }
main { flex:1; width:100%; max-width:1280px; margin:0 auto; padding:20px; }
main.narrow { max-width:960px; }
footer.bottom { color:var(--muted); font-size:13px; text-align:center; padding:16px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:20px; margin-bottom:16px; }
h1 { font-size:24px; margin:0 0 12px; } h2 { font-size:19px; margin:0 0 10px; } h3 { font-size:16px; margin:0 0 8px; }
label { display:block; font-weight:600; margin:14px 0 6px; }
input[type=text], input[type=email], input[type=password], select, textarea { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; font-size:16px; font-family:inherit; background:#fff; }
textarea { min-height:110px; resize:vertical; }
input:focus, textarea:focus, select:focus { outline:2px solid var(--accent-soft); border-color:var(--accent); }
button, .btn { display:inline-block; background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 16px; font-size:15px; cursor:pointer; text-decoration:none; font-family:inherit; line-height:1.2; }
.btn.secondary, button.secondary { background:#fff; color:var(--accent); border:1px solid var(--accent); }
.btn.ghost, button.ghost { background:none; color:var(--muted); border:1px solid var(--border); }
.btn.danger, button.danger { background:#fff; color:var(--error); border:1px solid var(--error); }
.btn.small, button.small { padding:6px 10px; font-size:13px; }
button.link { background:none; color:var(--accent); padding:0; }
.muted { color:var(--muted); } .small { font-size:13px; }
.error { color:var(--error); font-size:14px; margin-top:6px; }
.flash { background:#e7f6ec; color:var(--ok); border:1px solid #b9e3c7; padding:10px 14px; border-radius:8px; margin-bottom:16px; }
.errors { background:#fdecec; color:var(--error); border:1px solid #f3c2c2; padding:10px 14px; border-radius:8px; margin-bottom:16px; }
table { width:100%; border-collapse:collapse; } th, td { text-align:left; padding:8px; border-bottom:1px solid var(--border); font-size:14px; vertical-align:top; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
@media (max-width:700px) { .grid2 { grid-template-columns:1fr; } }

/* Assistent */
.wizard { display:grid; grid-template-columns:minmax(0,1fr) 440px; gap:20px; align-items:start; }
.wizard.wide { grid-template-columns:1fr; }
@media (max-width:1100px) { .wizard { grid-template-columns:1fr; } .preview-pane { display:none; } }
.progress { display:flex; gap:4px; margin-bottom:14px; flex-wrap:wrap; }
.progress a { flex:1; min-width:90px; text-decoration:none; font-size:12px; color:var(--muted); border-top:4px solid var(--border); padding-top:6px; }
.progress a.done { border-color:#9db7ff; color:var(--text); }
.progress a.current { border-color:var(--accent); color:var(--accent); font-weight:700; }
.step-intro { background:var(--accent-soft); border-radius:8px; padding:10px 14px; margin-bottom:16px; font-size:15px; }
.field { margin-bottom:6px; }
.field-head { display:flex; align-items:center; gap:8px; margin:14px 0 6px; }
.field-head label { margin:0; }
.tip { position:relative; display:inline-flex; width:20px; height:20px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:700; align-items:center; justify-content:center; cursor:help; }
.tip:hover::after, .tip:focus::after { content:attr(data-tip); position:absolute; left:26px; top:-4px; width:260px; background:#1d2330; color:#fff; font-weight:400; font-size:13px; padding:8px 10px; border-radius:6px; z-index:20; line-height:1.4; }
.field-tools { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; margin-top:4px; flex-wrap:wrap; }
.counter { color:var(--muted); } .counter.warn { color:var(--warn); } .counter.ok { color:var(--ok); }
.example { display:none; background:#fafbfc; border:1px dashed var(--border); border-radius:6px; padding:8px 10px; font-size:13px; color:var(--muted); white-space:pre-line; margin-top:6px; }
.example.open { display:block; }
.phrases { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.phrases button { background:#fff; color:var(--text); border:1px solid var(--border); font-size:12px; padding:4px 8px; border-radius:20px; }
.wizard-nav { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:18px; flex-wrap:wrap; }
.save-state { font-size:13px; color:var(--muted); }
.preview-pane { position:sticky; top:12px; }
.preview-pane iframe { width:100%; height:78vh; border:1px solid var(--border); border-radius:10px; background:#fff; }
.toggle { display:flex; align-items:center; gap:10px; font-weight:600; margin:0; }
.toggle input { width:20px; height:20px; }
.block-card { border:1px solid var(--border); border-radius:10px; padding:12px 16px; margin-bottom:12px; background:#fff; }
.block-card.off .block-fields { display:none; }
.thumbs { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.thumb { width:120px; border:1px solid var(--border); border-radius:8px; overflow:hidden; background:#fff; font-size:12px; }
.thumb img { width:120px; height:90px; object-fit:cover; display:block; }
.thumb .actions { display:flex; justify-content:space-between; padding:4px; }
.thumb form { margin:0; }
.upload-box { border:2px dashed var(--border); border-radius:10px; padding:14px; margin-top:10px; background:#fafbfc; }
.choices { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.choice { border:2px solid var(--border); border-radius:10px; padding:12px; cursor:pointer; display:block; font-weight:400; margin:0; background:#fff; }
.choice input { margin-right:6px; }
.choice:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.swatch { display:inline-block; width:22px; height:22px; border-radius:50%; vertical-align:middle; margin-right:6px; border:2px solid #fff; box-shadow:0 0 0 1px var(--border); }

/* Handy-Dialog */
.modal { position:fixed; inset:0; background:rgba(15,20,30,.55); display:none; align-items:center; justify-content:center; z-index:100; padding:16px; }
.modal.open { display:flex; }
.modal .box { background:#fff; border-radius:12px; padding:20px; max-width:420px; width:100%; text-align:center; }
.modal img { width:240px; height:240px; image-rendering:pixelated; }
.modal .url { font-size:12px; word-break:break-all; color:var(--muted); }

/* Navigation */
.topnav { display:flex; gap:14px; align-items:center; flex-wrap:wrap; font-size:14px; }
.topnav a { text-decoration:none; color:var(--muted); }
.topnav a.active, .topnav a:hover { color:var(--accent); }
footer.bottom a { color:var(--muted); }

/* Status-Badges, Fertig-Check, Abgleich */
.badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:20px; background:#eef1f5; color:var(--text); }
.badge.status-offen { background:#eef1f5; } .badge.status-gespraech { background:#fff4e0; color:var(--warn); }
.badge.status-zusage { background:#e7f6ec; color:var(--ok); } .badge.status-absage { background:#fdecec; color:var(--error); }
.hints ul { list-style:none; padding:0; margin:0; }
.hints li { padding:6px 0; border-bottom:1px solid var(--border); font-size:14px; }
.hints li:last-child { border-bottom:0; }
.hint-label { display:inline-block; min-width:62px; font-size:12px; font-weight:700; }
.hint-wichtig .hint-label { color:var(--error); } .hint-tipp .hint-label { color:var(--warn); } .hint-info .hint-label { color:var(--accent); }
.meter { height:10px; background:#eef1f5; border-radius:6px; overflow:hidden; margin:6px 0 10px; }
.meter span { display:block; height:100%; background:var(--accent); }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.chip { font-size:13px; padding:3px 10px; border-radius:20px; border:1px solid var(--border); }
.chip.missing { background:#fff4e0; border-color:#f3d9a6; } .chip.found { background:#e7f6ec; border-color:#b9e3c7; }
input[type=date] { padding:9px 12px; border:1px solid var(--border); border-radius:8px; font-size:16px; font-family:inherit; width:100%; }

/* Admin */
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:16px; }
.stat { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px; }
.stat-value { font-size:26px; font-weight:700; }

/* Rechtstexte */
.legal h2 { margin-top:18px; } .legal li { margin-bottom:6px; }

/* E-Mail-Bestätigung */
.verify-banner { background:#fff4e0; color:#7a4a00; border:1px solid #f3d9a6; padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.verify-banner button.link { font-size:14px; }

/* Anschreiben-Entwurf und offene Stellen */
.draft-start { background:var(--accent-soft); border-radius:8px; padding:14px; margin-bottom:10px; }
.draft-start p { margin:8px 0 0; }
.placeholder-box { background:#fff8db; border:1px solid #f1dc8a; border-radius:8px; padding:10px 12px; margin-top:8px; font-size:14px; }
.chip.placeholder { background:#ffe98a; border:1px solid #e6c84a; color:#5a4500; cursor:pointer; font-family:inherit; text-align:left; }

/* Erste Schritte */
.howto { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-top:8px; }
.howto div { background:#fafbfc; border:1px solid var(--border); border-radius:8px; padding:12px; font-size:14px; }
.howto strong { display:block; font-size:15px; margin-bottom:4px; }

/* Admin-Navigation, Plus, Zähler (1.3.0) */
.admin-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.admin-tabs a { text-decoration:none; font-size:14px; padding:6px 12px; border-radius:20px; color:var(--text); background:#fff; border:1px solid var(--border); }
.admin-tabs a.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.setting-row { padding:10px 0; border-bottom:1px solid var(--border); }
.setting-row:last-child { border-bottom:0; }
.badge.plus-badge { background:#fff1c2; color:#7a5a00; text-decoration:none; font-weight:700; }
.choice.locked { opacity:.6; cursor:not-allowed; }
.plus-table { max-width:620px; }
.plus-table td:nth-child(2), .plus-table td:nth-child(3), .plus-table th:nth-child(2), .plus-table th:nth-child(3) { text-align:center; width:110px; }
.counter-badge { background:var(--accent-soft); border-radius:8px; padding:8px 12px; font-size:14px; margin:0 0 14px; text-align:center; }
.usage-table th, .usage-table td { white-space:nowrap; text-align:right; font-size:13px; }
.usage-table th:first-child, .usage-table tbody th { text-align:left; }
pre.dry-run { background:#1d2330; color:#e8eaf0; padding:12px; border-radius:8px; font-size:12px; white-space:pre-wrap; margin-top:10px; }
.legal h2 { margin-top:18px; } .legal li { margin-bottom:6px; } .legal code { background:#eef1f5; padding:1px 4px; border-radius:4px; }

/* Breite Tabellen auf dem Handy seitlich verschiebbar (1.3.1) */
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-scroll table { min-width:100%; }
