/* ==========================================================
   57Lokal – Designsystem
   Waldgrün (Siegerland) + Bernstein-Akzent, Mobile First
   ========================================================== */
:root {
  --l57-primary: #0d6b4f;
  --l57-primary-600: #0a5a42;
  --l57-primary-700: #084734;
  --l57-primary-50: #e8f3ef;
  --l57-accent: #f5a524;
  --l57-accent-600: #dc8f10;
  --l57-ink: #13231d;
  --l57-muted: #5d6e67;
  --l57-line: #e2e9e5;
  --l57-bg: #f6f8f7;
  --l57-card: #ffffff;
  --l57-primary-rgb: 13, 107, 79;
  --l57-primary-200: #b9d6cb;
  --l57-primary-300: #7fb8a3;
  --l57-on-primary: #ffffff;
  --l57-accent-rgb: 245, 165, 36;
  --l57-accent-50: #fffaf0;
  --l57-accent-200: #f3dcae;
  --l57-accent-300: #f7c35c;
  --l57-on-accent: #1b1300;
  --l57-dark: #0b2b21;
  --l57-on-dark: #d6e4de;
  --l57-on-dark-muted: #8fb3a5;
  --l57-btn-radius: 10px;
  --l57-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --l57-heading-font: var(--l57-font);
  --l57-heading-weight: 700;
  --l57-header-bg: rgba(255, 255, 255, .92);
  --l57-header-link: #2e3f38;
  --l57-header-active-bg: var(--l57-primary-50);
  --l57-header-active: var(--l57-primary);
  --l57-hero-pattern: .12;
  --l57-logo-height: 40px;
  --l57-hero-bg: radial-gradient(1200px 400px at 90% -10%, rgba(245, 165, 36, .25), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, .10), transparent 60%), linear-gradient(135deg, #0a5a42 0%, #0d6b4f 45%, #127a5b 100%);
  --l57-radius: 14px;
  --l57-shadow: 0 1px 2px rgba(16, 40, 30, .06), 0 6px 20px rgba(16, 40, 30, .06);
  --l57-shadow-lg: 0 10px 40px rgba(16, 40, 30, .14);

  --bs-primary: var(--l57-primary);
  --bs-primary-rgb: 13, 107, 79;
  --bs-link-color: var(--l57-primary);
  --bs-link-color-rgb: 13, 107, 79;
  --bs-link-hover-color: var(--l57-primary-700);
  --bs-link-hover-color-rgb: 8, 71, 52;
  --bs-body-color: var(--l57-ink);
  --bs-body-bg: var(--l57-bg);
  --bs-border-color: var(--l57-line);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
  --bs-font-sans-serif: var(--l57-font);
}

body { background: var(--l57-bg); color: var(--l57-ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--l57-font); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .brand, .display-6 { letter-spacing: -.02em; font-weight: var(--l57-heading-weight); font-family: var(--l57-heading-font); }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.min-w-0 { min-width: 0; }
.text-accent { color: var(--l57-accent) !important; }
.text-white-75 { color: rgba(255, 255, 255, .8); }
.line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(var(--l57-accent-rgb), .7); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--l57-btn-radius); --bs-btn-border-radius: var(--l57-btn-radius); font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--l57-primary); --bs-btn-border-color: var(--l57-primary); --bs-btn-hover-bg: var(--l57-primary-600); --bs-btn-hover-border-color: var(--l57-primary-600); --bs-btn-active-bg: var(--l57-primary-700); --bs-btn-active-border-color: var(--l57-primary-700); --bs-btn-disabled-bg: var(--l57-primary); --bs-btn-disabled-border-color: var(--l57-primary); --bs-btn-color: var(--l57-on-primary); --bs-btn-hover-color: var(--l57-on-primary); --bs-btn-active-color: var(--l57-on-primary); }
.btn-outline-primary { --bs-btn-color: var(--l57-primary); --bs-btn-border-color: var(--l57-primary-200); --bs-btn-hover-color: var(--l57-on-primary); --bs-btn-active-color: var(--l57-on-primary); --bs-btn-hover-bg: var(--l57-primary); --bs-btn-hover-border-color: var(--l57-primary); --bs-btn-active-bg: var(--l57-primary-700); --bs-btn-active-border-color: var(--l57-primary-700); }
.btn-accent { background: var(--l57-accent); border-color: var(--l57-accent); color: var(--l57-on-accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--l57-accent-600); border-color: var(--l57-accent-600); color: var(--l57-on-accent); }
.btn-link { font-weight: 600; }
.text-bg-primary { background-color: var(--l57-primary) !important; }
.badge-premium { background: linear-gradient(135deg, var(--l57-accent), var(--l57-accent-300)); color: var(--l57-on-accent); }
.form-control, .form-select { border-radius: max(4px, calc(var(--l57-btn-radius) * .8)); }
.form-control:focus, .form-select:focus { border-color: var(--l57-primary-300); box-shadow: 0 0 0 .2rem rgba(var(--l57-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--l57-primary); border-color: var(--l57-primary); }
.page-link { color: var(--l57-primary); }
.active > .page-link, .page-link.active { background-color: var(--l57-primary); border-color: var(--l57-primary); color: var(--l57-on-primary); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .15rem; font-weight: 800; font-size: 1.45rem; color: var(--l57-ink); letter-spacing: -.03em; text-decoration: none !important; }
.brand-mark { display: inline-grid; place-items: center; background: var(--l57-primary); color: var(--l57-on-primary); border-radius: min(9px, var(--l57-btn-radius)); padding: .05rem .45rem; line-height: 1.35; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--l57-accent); border: 2px solid #fff; }
.brand-word { margin-left: .3rem; }
.brand-light, .brand-light .brand-word { color: #fff; }
.brand-logo img { height: var(--l57-logo-height); width: auto; max-width: 260px; display: block; }
.site-footer .brand-logo img, .app-sidebar .brand-logo img { background: #fff; padding: 4px 8px; border-radius: 8px; }
.brand-light .brand-mark::after { border-color: var(--l57-primary-700); }

/* ---------- Header ---------- */
.site-header { background: var(--l57-header-bg); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--l57-line); }
.site-header .navbar { padding-block: .6rem; }
.site-header .nav-link { white-space: nowrap; font-weight: 600; color: var(--l57-header-link); border-radius: 8px; padding-inline: .75rem !important; }
.site-header .nav-link:hover { background: var(--l57-header-active-bg); text-decoration: none; color: var(--l57-header-active); }
.site-header .nav-link.active { color: var(--l57-header-active); background: var(--l57-header-active-bg); }
@media (max-width: 991.98px) {
  .offcanvas-body .nav-link { padding: .7rem .75rem !important; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 3.5rem 0 4.5rem;
  background: var(--l57-hero-bg);
}
.hero::before { /* Höhenlinien-Muster */
  content: ""; position: absolute; inset: 0; opacity: var(--l57-hero-pattern); pointer-events: none;
  background-image: repeating-radial-gradient(circle at 75% 30%, transparent 0 22px, rgba(255, 255, 255, .7) 23px 24px);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-kicker { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 1rem; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 auto 1.75rem; }
.hero-tags { font-size: .9rem; color: rgba(255, 255, 255, .75); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.hero-tags a { color: #fff; background: rgba(255, 255, 255, .12); padding: .2rem .7rem; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .75); }

/* ---------- Suchbox ---------- */
.search-box { display: flex; flex-direction: column; gap: .5rem; background: #fff; border-radius: 16px; padding: .5rem; box-shadow: var(--l57-shadow-lg); color: var(--l57-ink); text-align: left; position: relative; }
.search-field { flex: 1; padding: .45rem .8rem; border-radius: 10px; background: var(--l57-bg); }
.search-field:focus-within { background: var(--l57-primary-50); }
.search-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--l57-muted); }
.search-field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 1rem; padding: .1rem 0; color: var(--l57-ink); }
.search-btn { padding: .8rem 1.6rem; font-size: 1.05rem; }
@media (min-width: 768px) {
  .search-box { flex-direction: row; align-items: stretch; }
  .search-field + .search-field { border-left: 1px solid var(--l57-line); }
  .search-field { background: transparent; }
}
.search-box-lg .search-field input { font-size: 1.1rem; }
.suggest-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: #fff; border-radius: 12px; box-shadow: var(--l57-shadow-lg); overflow: hidden; }
.suggest-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; color: var(--l57-ink); }
.suggest-list a:hover, .suggest-list a.active { background: var(--l57-primary-50); text-decoration: none; }
.suggest-list small { color: var(--l57-muted); }

/* ---------- Sections ---------- */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-alt { background: #fff; border-block: 1px solid var(--l57-line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.section-head p { margin: .25rem 0 0; color: var(--l57-muted); }
.page-head { background: #fff; border-bottom: 1px solid var(--l57-line); padding: 1.75rem 0; }
.page-head .search-box { box-shadow: var(--l57-shadow); border: 1px solid var(--l57-line); }

/* ---------- Kategorien ---------- */
.cat-tile { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.1rem; border-radius: var(--l57-radius); background: #fff; border: 1px solid var(--l57-line); color: var(--l57-ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--l57-shadow); border-color: var(--l57-primary-200); text-decoration: none; }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--l57-primary-50); color: var(--l57-primary); font-size: 1.3rem; flex-shrink: 0; }
.cat-name { font-weight: 700; line-height: 1.2; }
.cat-count { font-size: .8rem; color: var(--l57-muted); }
.cat-card { border-radius: var(--l57-radius); border-color: var(--l57-line); }
.sub-list li { padding: .2rem 0; }
.sub-list a { color: var(--l57-ink); }

/* ---------- Karten ---------- */
.card { border-color: var(--l57-line); border-radius: var(--l57-radius); }
.company-card { position: relative; transition: box-shadow .15s, transform .15s; overflow: hidden; }
.company-card:hover { box-shadow: var(--l57-shadow); transform: translateY(-1px); }
.company-card.is-highlight { border: 2px solid var(--l57-accent); background: linear-gradient(180deg, var(--l57-accent-50), #fff 40%); }
.ribbon { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--l57-accent); color: var(--l57-on-accent); font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.company-logo { width: 64px; height: 64px; border-radius: 12px; background: var(--l57-primary-50); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--l57-line); }
.company-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.company-logo span { font-size: 1.6rem; font-weight: 800; color: var(--l57-primary); }
.company-logo-lg { width: 96px; height: 96px; border-radius: 18px; box-shadow: var(--l57-shadow); border: 3px solid #fff; background: #fff; }
.company-logo-lg span { font-size: 2.4rem; }
.stars { color: var(--l57-accent); white-space: nowrap; }
.news-card { overflow: hidden; transition: box-shadow .15s; }
.news-card:hover { box-shadow: var(--l57-shadow); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--l57-primary-50), #fff); color: var(--l57-primary-300); font-size: 2.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--l57-primary-200); border-radius: var(--l57-radius); color: var(--l57-muted); }
.empty-state > i { font-size: 2.5rem; color: var(--l57-primary-300); display: block; margin-bottom: .5rem; }

.loc-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--l57-line); color: var(--l57-ink); font-weight: 600; font-size: .92rem; }
.loc-chip:hover, .loc-chip.active { border-color: var(--l57-primary); color: var(--l57-primary); text-decoration: none; }
.loc-chip.active { background: var(--l57-primary-50); }
.loc-chip span { background: var(--l57-primary-50); color: var(--l57-primary); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }
.loc-chip i { color: var(--l57-primary); }
.loc-chip-sm { padding: .3rem .75rem; font-size: .85rem; }
.loc-card { display: flex; flex-direction: column; padding: 1rem; background: #fff; border: 1px solid var(--l57-line); border-radius: var(--l57-radius); color: var(--l57-ink); height: 100%; }
.loc-card:hover { border-color: var(--l57-primary); box-shadow: var(--l57-shadow); text-decoration: none; }

.side-card, .content-card { background: #fff; border: 1px solid var(--l57-line); border-radius: var(--l57-radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.side-title { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.side-list li a { display: block; padding: .35rem .5rem; border-radius: 8px; color: var(--l57-ink); font-size: .95rem; }
.side-list li a:hover { background: var(--l57-primary-50); text-decoration: none; }
.side-list li a.active { background: var(--l57-primary-50); color: var(--l57-primary); font-weight: 700; }
.mini-news { display: flex; flex-direction: column; padding: .6rem 0; border-bottom: 1px solid var(--l57-line); color: var(--l57-ink); }
.mini-news:last-child { border-bottom: 0; }
.mini-news:hover strong { color: var(--l57-primary); }
.mini-news:hover { text-decoration: none; }

/* ---------- Firmenprofil ---------- */
.company-hero { background: #fff; border-bottom: 1px solid var(--l57-line); padding: 1.5rem 0 1.25rem; position: relative; }
.company-hero.has-cover { padding-top: 0; }
.company-cover { width: 100%; height: clamp(160px, 28vw, 320px); object-fit: cover; display: block; }
.company-hero.has-cover .company-head { margin-top: -48px; align-items: flex-start; }
.company-hero.has-cover .company-head > .flex-grow-1 { padding-top: 56px; }
@media (max-width: 575.98px) { .company-hero.has-cover .company-head > .flex-grow-1 { padding-top: 0; } }
.company-head { display: flex; gap: 1.25rem; align-items: flex-end; flex-wrap: wrap; position: relative; }
.company-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.contact-list li { display: flex; gap: .75rem; padding: .45rem 0; align-items: flex-start; }
.contact-list i { color: var(--l57-primary); font-size: 1.1rem; }
.hours-table th { font-weight: 500; color: var(--l57-muted); }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 700; color: var(--l57-primary); }
.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.service-list li { display: flex; gap: .5rem; }
.service-list i { color: var(--l57-primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; transition: opacity .15s; }
.gallery a:hover img { opacity: .85; }
.social-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--l57-primary-50); color: var(--l57-primary); font-size: 1.1rem; }
.social-btn:hover { background: var(--l57-primary); color: var(--l57-on-primary); text-decoration: none; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--l57-line); }
.review-form { background: var(--l57-bg); padding: 1rem; border-radius: 12px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.6rem; color: #cfd8d3; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--l57-accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--l57-accent); border-radius: 4px; }
.map-consent { background: var(--l57-bg); border-radius: 10px; padding: 1rem; text-align: center; min-height: 120px; display: grid; place-content: center; }
.map-consent iframe { width: 100%; height: 260px; border: 0; border-radius: 10px; }
.map-consent.loaded { padding: 0; display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(8, 20, 15, .9); z-index: 3000; display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; }

.rich-text { line-height: 1.7; }
.rich-text img { max-width: 100%; height: auto; border-radius: 10px; }
.rich-text h2 { font-size: 1.4rem; margin-top: 1.5rem; }
.rich-text h3 { font-size: 1.2rem; margin-top: 1.25rem; }
.rich-text blockquote { border-left: 4px solid var(--l57-accent); padding-left: 1rem; color: var(--l57-muted); }
.article-body { font-size: 1.08rem; }
.lead-text { font-size: 1.08rem; color: var(--l57-ink); opacity: .9; }

/* ---------- Werbung ---------- */
.ad-slot, .ad-hero { position: relative; }
.ad-label { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .92); color: #555; padding: .1rem .45rem; border-radius: 4px; }
.ad-hero img { border-radius: var(--l57-radius); box-shadow: var(--l57-shadow); }
.ad-text { background: linear-gradient(135deg, var(--l57-accent-50), #fff); border: 1px solid var(--l57-accent-200); color: var(--l57-ink); border-radius: var(--l57-radius); }

/* ---------- Preise / Schritte ---------- */
.price-card { position: relative; }
.price-card.is-featured { border: 2px solid var(--l57-primary); box-shadow: var(--l57-shadow); }
.price { font-size: 1.6rem; font-weight: 800; color: var(--l57-primary); }
.price small { font-size: .85rem; font-weight: 500; color: var(--l57-muted); }
.feature-list li { display: flex; gap: .5rem; padding: .15rem 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: .75rem 0 .75rem 3.25rem; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .7rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--l57-primary); color: var(--l57-on-primary); font-weight: 800; display: grid; place-items: center; }
.steps span { color: var(--l57-muted); font-size: .92rem; }

.cta-band { background: linear-gradient(135deg, var(--l57-primary-700), var(--l57-primary)); border-radius: calc(var(--l57-radius) + 6px); padding: 2rem; color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(var(--l57-accent-rgb), .25); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band-light { background: #fff; color: var(--l57-ink); border: 1px solid var(--l57-line); }
.cta-band-light::after { background: var(--l57-primary-50); }
@media (min-width: 992px) { .cta-band { padding: 3rem; } }

/* ---------- Auth ---------- */
.auth-card { max-width: 460px; background: #fff; border: 1px solid var(--l57-line); border-radius: calc(var(--l57-radius) + 6px); padding: 2rem; box-shadow: var(--l57-shadow); }
.auth-card-wide { max-width: 720px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--l57-dark); color: var(--l57-on-dark); }
.site-footer .text-white-50 { color: var(--l57-on-dark-muted) !important; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--l57-on-dark-muted); margin-bottom: .75rem; font-weight: 700; }
.footer-links li { padding: .2rem 0; }
.footer-links a { color: var(--l57-on-dark); }
.footer-links a:hover { color: var(--l57-accent); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; background: #fff; border-top: 3px solid var(--l57-primary); }
@media (min-width: 992px) { .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; border-radius: 16px; border: 1px solid var(--l57-line); border-top: 3px solid var(--l57-primary); } }

/* ---------- Dashboard / Admin ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 260px; flex-shrink: 0; background: var(--l57-dark) !important; color: var(--l57-on-dark); }
@media (min-width: 992px) { .app-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.app-sidebar .brand, .app-sidebar .brand-word { color: #fff; }
.app-sidebar .nav-link { color: var(--l57-on-dark); border-radius: 8px; padding: .55rem .8rem; display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.app-sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.app-sidebar .nav-link.active { background: var(--l57-primary); color: var(--l57-on-primary); }
.app-sidebar .nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--l57-on-dark-muted); padding: 1rem .8rem .35rem; }
.app-sidebar .badge { margin-left: auto; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { background: #fff; border-bottom: 1px solid var(--l57-line); padding: .75rem 1.25rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 100; }
.app-content { padding: 1.5rem 1.25rem 3rem; }
@media (min-width: 992px) { .app-content { padding: 2rem 2rem 3rem; } }
@media (max-width: 991.98px) { .app-sidebar.offcanvas-lg { width: 280px; } }
.stat-card { background: #fff; border: 1px solid var(--l57-line); border-radius: var(--l57-radius); padding: 1.1rem 1.2rem; height: 100%; display: flex; flex-direction: column; gap: .2rem; }
.stat-card .stat-label { font-size: .82rem; color: var(--l57-muted); font-weight: 600; }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--l57-primary-50); color: var(--l57-primary); margin-bottom: .4rem; }
.stat-card.warn .stat-icon { background: #fff4de; color: #b86e00; }
a.stat-card:hover { border-color: var(--l57-primary); text-decoration: none; color: inherit; }
a.stat-card { color: inherit; }
.panel { background: #fff; border: 1px solid var(--l57-line); border-radius: var(--l57-radius); margin-bottom: 1.5rem; }
.panel-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--l57-line); display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; margin: 0; }
.panel-body { padding: 1.25rem; }
.panel .table { margin: 0; }
.panel .table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--l57-muted); font-weight: 700; background: #fafcfb; white-space: nowrap; }
.panel .table td, .panel .table th { padding: .7rem 1rem; vertical-align: middle; }
.chart-box { position: relative; height: 260px; }
.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.media-item { background: #fff; border: 1px solid var(--l57-line); border-radius: 12px; overflow: hidden; }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hours-grid .row { align-items: center; }
.editor-wrap .ql-toolbar { border-radius: 10px 10px 0 0; border-color: var(--bs-border-color); }
.editor-wrap .ql-container { border-radius: 0 0 10px 10px; border-color: var(--bs-border-color); min-height: 260px; font-size: 1rem; font-family: inherit; }
.progress-steps { display: flex; gap: .5rem; flex-wrap: wrap; }
.locked-hint { font-size: .8rem; color: #b86e00; }
.upload-drop { border: 2px dashed #c7d6cf; border-radius: 12px; padding: 1rem; text-align: center; background: var(--l57-bg); }
.editor-wrap .ql-editor { min-height: 240px; }
.editor-wrap .ql-editor:focus-visible { outline: none; }
.editor-wrap:focus-within .ql-container { border-color: var(--l57-primary-300); box-shadow: 0 0 0 .2rem rgba(var(--l57-primary-rgb), .15); }

/* ---------- Design-Editor (Admin) ---------- */
@media (min-width: 1200px) { .design-sticky { position: sticky; top: 76px; } }
.theme-preview { background: var(--l57-bg); color: var(--l57-ink); font-family: var(--l57-font); overflow: hidden; border-radius: 0 0 var(--l57-radius) var(--l57-radius); }
.theme-preview .tp-header { position: static; }
.theme-preview .hero { padding: 1.5rem 1rem 1.75rem; }
.theme-preview .hero-title { font-size: 1.55rem; font-weight: var(--l57-heading-weight); font-family: var(--l57-heading-font); line-height: 1.15; margin: .5rem 0; position: relative; }
.theme-preview .hero-kicker { font-size: .7rem; margin-bottom: 0; }
.theme-preview .search-box { flex-direction: row; box-shadow: var(--l57-shadow-lg); }
.theme-preview .search-btn { padding: .35rem .9rem; font-size: .9rem; }
.theme-preview .tp-body h3 { font-family: var(--l57-heading-font); font-weight: var(--l57-heading-weight); }
.theme-preview .company-card { box-shadow: var(--l57-shadow); }
.theme-preview .brand { font-size: 1.15rem; }
.theme-preview .brand-logo img { height: calc(var(--l57-logo-height) * .75); }
.form-control-color { max-width: 3.2rem; }
.brand-mark.no-dot::after { display: none; }
