/* ==========================================================================
   Bewertungsplattform – Stylesheet (keine externen Ressourcen, DSGVO-freundlich)
   ========================================================================== */
:root {
  --brand: #0f3d4c;
  --brand-2: #13707a;
  --brand-soft: #e6f2f3;
  --star: #f5a524;
  --star-empty: #d9dee5;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #141a24;
  --muted: #5b6472;
  --border: #e1e5eb;
  --danger: #c62f2f;
  --warning: #b86e00;
  --success: #17804a;
  --info: #1d5fa8;
  --r1: #d93f3f; --r2: #ef7b2d; --r3: #d9a514; --r4: #6aa83a; --r5: #1e9e5a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --stars-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3Cpath transform='translate(20)' d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3Cpath transform='translate(40)' d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3Cpath transform='translate(60)' d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3Cpath transform='translate(80)' d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: #0b1f29; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
code { background: #eef1f4; padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-all; }
pre { background: #0f1720; color: #e6edf3; padding: 14px; border-radius: 8px; overflow: auto; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.inline { display: inline; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt2 { margin-top: 32px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack > * + * { margin-top: 16px; }

/* Header ---------------------------------------------------------------- */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--star); color: var(--brand); font-size: 18px; }
.header-search { flex: 1; max-width: 460px; }
.header-search input { width: 100%; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .95rem; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav a, .main-nav .link-btn { color: #dbe8ec; text-decoration: none; font-size: .95rem; }
.main-nav a:hover, .main-nav .link-btn:hover { color: #fff; }
.main-nav .btn, .main-nav .btn:hover { color: #1b1300; }
.main-nav .nav-admin { background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .4); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 18px; }
.verify-banner { background: #fff4d6; border-bottom: 1px solid #f1d58b; padding: 10px 0; font-size: .92rem; }

/* Buttons & Formulare ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: #c5ccd6; color: var(--text); }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-accent { background: var(--star); border-color: var(--star); color: #1b1300; }
.btn-accent:hover { background: #e19412; color: #1b1300; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #a82424; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-2); cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.form label, label.block { display: block; font-weight: 600; font-size: .93rem; margin: 0 0 16px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=url], .form input[type=search], .form input[type=date], .form input[type=number], .form input:not([type]), .form select, .form textarea,
input.input, select.input, textarea.input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
.form textarea, textarea.input { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: 2px solid rgba(19, 112, 122, .35); border-color: var(--brand-2); }
.form .checkbox, .form .radio { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .checkbox input, .form .radio input { margin-top: 4px; flex: none; }
.form .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 600; margin: -10px 0 14px; }
.form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 4px; margin: 0 0 18px; }
.form legend { font-weight: 700; padding: 0 6px; }
.char-count { float: right; font-weight: 400; font-size: .8rem; color: var(--muted); }

/* Sternebewertung (Eingabe) */
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 6px 0 4px; }
.rate-input input { position: absolute; opacity: 0; pointer-events: none; }
.rate-input label { margin: 0 !important; font-size: 40px; line-height: 1; color: var(--star-empty); cursor: pointer; transition: transform .1s; }
.rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { color: var(--star); }
.rate-input label:hover { transform: scale(1.12); }
.rate-input input:focus-visible + label { outline: 2px solid var(--brand-2); border-radius: 4px; }
.rate-text { display: inline-block; margin-left: 10px; font-weight: 600; color: var(--muted); vertical-align: 12px; }

/* Karten & Alerts ----------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; font-size: .95rem; word-break: break-word; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: #eaf7ef; border-color: #b6e2c6; color: #10512f; }
.alert-error { background: #fdecec; border-color: #f2b8b8; color: #7d1d1d; }
.alert-warning { background: #fff6e0; border-color: #f1d58b; color: #6b4600; }
.alert-info { background: #e9f2fc; border-color: #b9d3f2; color: #163f6b; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f4; color: #364152; white-space: nowrap; }
.badge-verified { background: #e3f4ea; color: #12663b; }
.badge-claimed { background: #e2f1f3; color: var(--brand-2); }
.badge-neutral { background: #f0f2f5; color: #556070; }
.badge-warn { background: #fff1d6; color: #7a4d00; }
.badge-danger { background: #fde4e4; color: #8a1f1f; }
.badge-ok { background: #e3f4ea; color: #12663b; }
.badge-info { background: #e6effa; color: #1d4f8a; }
.pill { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: auto; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }

/* Sterne-Anzeige */
.stars { --sz: 18px; display: inline-block; vertical-align: middle; width: calc(var(--sz) * 5); height: var(--sz); background: linear-gradient(90deg, var(--star) var(--p, 0%), var(--star-empty) var(--p, 0%)); -webkit-mask: var(--stars-mask) 0 0 / 100% 100% no-repeat; mask: var(--stars-mask) 0 0 / 100% 100% no-repeat; flex: none; }
.stars-sm { --sz: 14px; } .stars-lg { --sz: 28px; } .stars-xl { --sz: 38px; }
.score-num { font-weight: 800; }
.r1 { color: var(--r1); } .r2 { color: var(--r2); } .r3 { color: var(--r3); } .r4 { color: var(--r4); } .r5 { color: var(--r5); } .r0 { color: var(--muted); }
.score-box { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 12px; border-radius: 14px; color: #fff; font-weight: 800; }
.score-box .big { font-size: 2.2rem; line-height: 1; }
.score-box.bg-r1 { background: var(--r1); } .score-box.bg-r2 { background: var(--r2); } .score-box.bg-r3 { background: var(--r3); } .score-box.bg-r4 { background: var(--r4); } .score-box.bg-r5 { background: var(--r5); } .score-box.bg-r0 { background: #8a94a3; }

/* Logos & Avatare */
.logo { display: inline-grid; place-items: center; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--border); object-fit: contain; overflow: hidden; }
.logo-letter { background: hsl(var(--h, 190), 45%, 92%); color: hsl(var(--h, 190), 55%, 28%); font-weight: 800; }
.logo-xs { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; vertical-align: middle; }
.logo-sm { width: 40px; height: 40px; font-size: 18px; }
.logo-md { width: 56px; height: 56px; font-size: 24px; }
.logo-lg { width: 96px; height: 96px; font-size: 42px; border-radius: 18px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h), 40%, 90%); color: hsl(var(--h), 50%, 30%); font-weight: 700; font-size: .95rem; }

/* Startseite ---------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--brand) 0%, #164f5f 60%, var(--brand-2) 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 760px; letter-spacing: -.02em; }
.hero p { color: #cfe3e8; font-size: 1.12rem; max-width: 640px; }
.hero-search { display: flex; gap: 8px; max-width: 640px; margin-top: 26px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero-search input { flex: 1; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 12px; min-width: 0; border-radius: 10px; }
.hero-search input:focus { outline: none; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; color: #cfe3e8; font-size: .95rem; flex-wrap: wrap; }
.hero-stats strong { color: #fff; font-size: 1.2rem; }
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--brand-2); transform: translateY(-1px); color: var(--text); }
.cat-icon { font-size: 1.5rem; line-height: 1; }
.cat-tile .small { display: block; font-weight: 400; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.company-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.company-card:hover { border-color: #b8c7d1; box-shadow: var(--shadow); color: var(--text); }
.company-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.company-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 70px; }
.company-card-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.company-card .badge-claimed { position: absolute; top: 12px; right: 12px; font-size: .68rem; }
.company-list .company-card { margin-bottom: 10px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.trust-band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature { padding: 4px; }
.feature .icon { font-size: 1.8rem; }

/* Unternehmensprofil ------------------------------------------------- */
.company-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 28px 0; }
.company-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.company-ident { display: flex; gap: 20px; align-items: center; }
.company-ident h1 { margin: 0 0 4px; }
.company-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.company-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 230px; }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.notice-banner { background: #fff4d6; border: 1px solid #f1d58b; border-radius: var(--radius); padding: 14px 18px; margin-top: 18px; }
.dist-row { display: grid; grid-template-columns: 70px 1fr 48px; gap: 10px; align-items: center; font-size: .9rem; margin: 6px 0; text-decoration: none; color: var(--text); }
.dist-row:hover .dist-bar span { filter: brightness(.92); }
.dist-bar { height: 10px; background: #eceff3; border-radius: 6px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--star); border-radius: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .88rem; cursor: pointer; text-decoration: none; color: var(--text); }
.chip input { margin: 0; }
.chip.active, .chip:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review-author { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.review-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.review-title { margin: 0 0 6px; font-size: 1.05rem; }
.review-title a { color: var(--text); text-decoration: none; }
.review-title a:hover { text-decoration: underline; }
.review-body p:last-child { margin-bottom: 6px; }
.review-body { overflow-wrap: anywhere; }
.review-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-company { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 8px; color: var(--text); }
.review-actions { display: flex; gap: 18px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; font-size: .9rem; }
.review-actions .link-btn { color: var(--muted); }
.review-actions .link-btn:hover, .review-actions .voted { color: var(--brand-2); }
.reply { background: #f4f8f9; border-left: 3px solid var(--brand-2); border-radius: 8px; padding: 12px 14px; margin: 12px 0 4px; font-size: .95rem; overflow-wrap: anywhere; }
.reply-head { margin-bottom: 6px; }
.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.side-box h3 { font-size: 1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed #cfd6df; border-radius: var(--radius); }

/* Seitenleisten-Layout (Admin/Business) ------------------------------ */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.sidebar { position: sticky; top: 84px; align-self: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .93rem; }
.sidebar nav a:hover { background: #f1f4f6; }
.sidebar nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.sidebar-title { font-weight: 800; padding: 8px 10px 10px; color: var(--brand); }
.sidebar-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 10px 4px; }
.sidebar-company { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; min-width: 0; }
.sidebar-company strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); display: block; }
a.stat:hover { border-color: var(--brand-2); color: var(--text); }
.stat .num { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: .88rem; }
.stat.alert-stat .num { color: var(--danger); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: #f7f8fa; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfc; }
.table .nowrap { white-space: nowrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar select { width: auto; margin: 0; display: inline-block; padding: 8px 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: .93rem; }
.tabs a.active { color: var(--brand); border-color: var(--brand-2); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); }
.bars .bar span { display: block; width: 100%; background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.quote { background: #f7f8fa; border-left: 3px solid #c5ccd6; padding: 10px 14px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--border); position: relative; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.action-forms details { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
.action-forms summary { cursor: pointer; font-weight: 700; }
.action-forms details[open] summary { margin-bottom: 12px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 4px 0; }
.checklist .ok { color: var(--success); }
.checklist .fail { color: var(--danger); font-weight: 700; }
.code-box { position: relative; }
.code-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; min-height: 110px; background: #0f1720; color: #e6edf3; border-radius: 10px; }
.code-box .copy { position: absolute; top: 8px; right: 8px; }
.preview-area { border: 1px dashed #c5ccd6; border-radius: var(--radius); padding: 20px; background: repeating-conic-gradient(#f6f7f9 0% 25%, #fff 0% 50%) 50% / 20px 20px; min-height: 120px; }
.preview-area.dark { background: #1b2430; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.method-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: #fff; }
.method-card summary { font-weight: 700; cursor: pointer; }
.legal h2 { margin-top: 1.6em; font-size: 1.2rem; }
.legal h3 { margin-top: 1.2em; }
.legal li { margin-bottom: .4em; }
.placeholder { background: #fff4d6; padding: 0 4px; border-radius: 4px; }

/* Pagination ---------------------------------------------------------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; align-items: center; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); font-size: .9rem; }
.pagination .current { background: var(--brand-2); border-color: var(--brand-2); color: #fff; font-weight: 700; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: #0b2a35; color: #bcd0d6; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer a { display: block; color: #bcd0d6; text-decoration: none; font-size: .92rem; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8fa9b1; }
.footer-brand { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 16px; }

/* Responsiv ------------------------------------------------------------ */
@media (max-width: 980px) {
  .company-layout { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-sep { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 6px; }
  .main-nav.open { display: flex; }
  .company-hero-inner { grid-template-columns: 1fr; }
  .company-ident { align-items: flex-start; }
  .company-cta { min-width: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .hero-search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .logo-lg { width: 72px; height: 72px; font-size: 32px; }
  .table th, .table td { padding: 8px; }
}
.kv .badge, td .badge { white-space: normal; text-align: left; }
