/* ==========================================================================
   Lizenzen (public/lizenzen.php) – Bereich „legal“. Baut auf rechtliches.css (.rt) auf.
   ========================================================================== */

.lic { padding-bottom: clamp(64px, 9vw, 112px); }
.lic-hero { padding: clamp(32px, 5vw, 64px) var(--rf-seitenrand) clamp(24px, 3vw, 36px); }
.lic-hero-inner { max-width: 1120px; margin: 0 auto; }
.lic-hero-badge { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--rf-schrift-text); letter-spacing: .08em; text-transform: uppercase; color: var(--rf-akzent-hell); }
.lic-hero-badge i { font-size: 13px; }
.lic-hero h1 { font: 800 clamp(36px, 4.8vw, 56px)/1.04 var(--rf-schrift-titel); letter-spacing: -.04em; margin: 16px 0 14px; color: var(--rf-text); }
.lic-hero h1 br { display: none; }
.lic-hero h1 span { color: var(--rf-text-3); }
.lic-hero p { margin: 0; max-width: 66ch; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--rf-text-2); }
.lic-meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: var(--rf-text-3); }
.lic-meta-item i { margin-right: 6px; color: var(--rf-akzent-hell); }
.lic-meta-item strong { color: var(--rf-text); }

.lic-page { max-width: 1120px; margin: 0 auto; padding: 0 var(--rf-seitenrand); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.lic-sidebar { position: sticky; top: calc(var(--header-h, 84px) + 24px); display: grid; gap: 14px; }
.lic-sidebar-label, .lic-summary-box h4 { margin: 0 8px 8px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-text-3); }
.lic-sidebar > .lic-sidebar-label { margin: 0; padding: 18px 18px 0; }
.lic-nav { list-style: none; margin: -10px 0 0; padding: 8px 18px 18px; display: grid; gap: 2px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); border-top: 0; border-radius: 0 0 22px 22px; }
.lic-sidebar > .lic-sidebar-label { background: var(--rf-flaeche); border: 1px solid var(--rf-rand); border-bottom: 0; border-radius: 22px 22px 0 0; padding-bottom: 12px; }
.lic-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--rf-text-2); font-size: 14px; font-weight: 550; text-decoration: none; transition: background .15s, color .15s; }
.lic-nav a i { width: 16px; text-align: center; color: var(--rf-text-3); }
.lic-nav a:hover { background: var(--rf-flaeche-2); color: var(--rf-text); }
.lic-nav a.active { background: var(--rf-akzent-weich); color: var(--rf-text); font-weight: 650; }
.lic-summary-box { padding: 18px; border-radius: 22px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 13.5px; color: var(--rf-text-2); }
.summary-count { font-weight: 700; color: var(--rf-text); font-variant-numeric: tabular-nums; }

.lic-main { min-width: 0; display: grid; gap: 24px; }
.lic-notice { padding: 16px 20px; border-radius: 16px; background: var(--rf-akzent-weich); border-left: 4px solid var(--rf-akzent-hell); font-size: 14.5px; line-height: 1.6; color: var(--rf-text-2); }
.lic-notice strong { color: var(--rf-text); }
.lic-notice a { color: var(--rf-akzent) !important; font-weight: 650; }

.lic-search-bar { position: sticky; top: calc(var(--header-h, 84px) + 10px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 18px; background: color-mix(in oklab, var(--rf-flaeche) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--rf-rand); box-shadow: var(--rf-schatten-sm); }
.lic-search-wrap { position: relative; flex: 1 1 220px; }
.lic-search-wrap i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--rf-text-3); font-size: 14px; }
.lic-search-input { width: 100%; min-height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--rf-rand-stark); background: var(--rf-flaeche-2); color: var(--rf-text); font: 500 14.5px/1 var(--rf-schrift-text); outline: none; }
.lic-search-input:focus { border-color: var(--rf-akzent-hell); box-shadow: var(--rf-fokus); }
.lic-filter-btn { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rf-rand); background: transparent; color: var(--rf-text-2); font: 600 13.5px/1 var(--rf-schrift-text); cursor: pointer; }
.lic-filter-btn:hover { color: var(--rf-text); border-color: var(--rf-rand-stark); }
.lic-filter-btn.active { background: var(--rf-akzent); border-color: var(--rf-akzent); color: var(--rf-akzent-auf); }

.lic-section { scroll-margin-top: calc(var(--header-h, 84px) + 90px); padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); }
.lic-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lic-section-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--rf-akzent-weich); color: var(--rf-akzent-hell); font-size: 18px; }
.lic-section-title { font: 750 20px/1.2 var(--rf-schrift-titel); letter-spacing: -.015em; color: var(--rf-text); }
.lic-section-sub { font-size: 13.5px; color: var(--rf-text-3); margin-top: 2px; }

.lic-grid { display: grid; gap: 0; }
.lic-card { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--rf-rand); }
.lic-card:first-child { border-top: 0; padding-top: 0; }
.lic-card-left { min-width: 0; }
.lic-card-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 700; font-size: 15.5px; color: var(--rf-text); }
.lic-version { font: 600 12px/1 ui-monospace, monospace; padding: 3px 7px; border-radius: 6px; background: var(--rf-flaeche-2); color: var(--rf-text-3); }
.lic-card-desc { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--rf-text-2); }
.lic-card-author { margin-top: 6px; font-size: 12.5px; color: var(--rf-text-3); }
.lic-card-author i { margin-right: 5px; }
.lic-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.lic-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--rf-akzent) !important; text-decoration: none; white-space: nowrap; }
.lic-link:hover { text-decoration: underline; }

.lic-badge { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; background: var(--rf-flaeche-2); color: var(--rf-text-2); }
.lic-badge.mit { background: var(--rf-erfolg-weich); color: var(--rf-erfolg); }
.lic-badge.apache { background: var(--rf-info-weich); color: var(--rf-info); }
.lic-badge.bsd, .lic-badge.isc { background: color-mix(in oklab, #8b5cf6 14%, transparent); color: #7c3aed; }
.lic-badge.ofl { background: var(--rf-warnung-weich); color: color-mix(in oklab, var(--rf-warnung), var(--rf-text) 30%); }
.lic-badge.gpl, .lic-badge.odbl, .lic-badge.ccbysa { background: color-mix(in oklab, #0ea5e9 14%, transparent); color: #0369a1; }
.lic-badge.prop { background: var(--rf-flaeche-2); color: var(--rf-text-2); }
[data-theme="dark"] .lic-badge.bsd, [data-theme="dark"] .lic-badge.isc { color: #c4b5fd; }
[data-theme="dark"] .lic-badge.gpl, [data-theme="dark"] .lic-badge.odbl, [data-theme="dark"] .lic-badge.ccbysa { color: #7dd3fc; }

.lic-text-block { margin-top: 14px; border-radius: 16px; border: 1px solid var(--rf-rand); overflow: hidden; }
.lic-text-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--rf-flaeche-2); font-weight: 700; font-size: 14.5px; color: var(--rf-text); }
.lic-text-header i { color: var(--rf-akzent-hell); }
.lic-text-body { padding: 16px; max-height: 260px; overflow: auto; white-space: pre-wrap; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--rf-text-2); }

@media (max-width: 900px) {
  .lic-page { grid-template-columns: minmax(0, 1fr); }
  .lic-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .lic-sidebar > .lic-sidebar-label { display: none; }
  .lic-nav { margin: 0; border: 1px solid var(--rf-rand); border-radius: 22px; padding: 12px; }
}
@media (max-width: 600px) {
  .lic-sidebar { grid-template-columns: 1fr; }
  .lic-summary-box { display: none; }
  .lic-card { flex-direction: column; }
  .lic-card-right { flex-direction: row; align-items: center; }
}

/* Kategorien als eine Karte (Überschrift im Kasten) */
.rt.lic { padding-top: 0; }
.lic-sidebar > .lic-sidebar-label { display: none; }
.lic-nav { margin: 0; padding: 18px; border: 1px solid var(--rf-rand); border-radius: 22px; }
.lic-nav::before { content: "Kategorien"; display: block; margin: 0 8px 8px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-text-3); }
