
:root{
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f3f7f4;
  --bg-alt: #edf3ef;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --surface-soft-2: #f2f7f4;
  --sidebar-bg: rgba(248,251,249,.88);
  --line: #d8e5dc;
  --line-strong: #c9d9cf;
  --text: #1e2f26;
  --text-soft: #3a5146;
  --text-muted: #6b8075;
  --text-faint: #84968c;
  --brand: #137652;
  --brand-strong: #0d5a3e;
  --brand-soft: #e5f4ec;
  --brand-soft-2: #d9eee3;
  --brand-focus: rgba(19,118,82,.12);
  --brand-hover: rgba(19,118,82,.06);
  --shadow-soft: 0 12px 34px rgba(16,24,40,.06);
  --shadow-card: 0 18px 46px rgba(16,24,40,.05);
  --radius: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-w: 332px;
  --content-w: 1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:var(--font);
  color:var(--text);
  background:
    linear-gradient(180deg,var(--bg) 0%,var(--bg-alt) 100%);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.sr-only{
  position:absolute;
  width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.app{
  display:grid;
  grid-template-columns: var(--sidebar-w) minmax(0,1fr);
  min-height:100vh;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  padding:18px 14px 24px;
  background:var(--sidebar-bg);
  backdrop-filter:blur(12px);
  border-right:1px solid var(--line);
}

.brand{
  padding:4px 6px 18px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
}
.brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px;
  border-radius:16px;
}
.brand-badge{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:14px;
  background:linear-gradient(180deg,var(--surface),var(--surface-soft-2));
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
}
.brand-copy strong{
  display:block;
  font-size:15px;
  line-height:1.15;
  letter-spacing:-.01em;
}
.brand-copy span{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--text-muted);
}

.search-block{
  position:sticky;
  top:0;
  z-index:5;
  padding:0 6px 14px;
  background:linear-gradient(180deg, rgba(248,251,249,.96) 0%, rgba(248,251,249,.86) 82%, rgba(248,251,249,0) 100%);
}
.search-field{
  position:relative;
}
.search-field input{
  width:100%;
  height:46px;
  padding:0 42px 0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.9);
  outline:none;
  font:inherit;
  font-size:14px;
  color:var(--text);
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.search-field input::placeholder{color:var(--text-muted)}
.search-field input:focus{
  border-color:var(--line-strong);
  box-shadow:0 0 0 4px var(--brand-focus);
  background:#fff;
}
#docSearchClear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:26px;height:26px;
  border:none;
  background:transparent;
  border-radius:999px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:var(--text-muted);
  font-size:20px;
}

.search-results{
  margin-top:10px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-soft);
}
.search-results-empty{
  padding:12px 10px;
  color:var(--text-muted);
  font-size:13px;
}
.search-result-link{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  transition:background-color .16s ease;
}
.search-result-link:hover{background:var(--brand-hover)}
.search-result-title{
  display:block;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}
.search-result-meta{
  display:block;
  margin-top:3px;
  color:var(--brand);
  font-size:12px;
  font-weight:600;
}
.search-result-text{
  display:block;
  margin-top:5px;
  color:var(--text-muted);
  font-size:12px;
  line-height:1.45;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:0 4px;
}
.nav-group{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.5);
  overflow:hidden;
}
.nav-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
}
.nav-main-link{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  transition:background-color .16s ease, color .16s ease;
}
.nav-main-link:hover{
  background:var(--brand-hover);
  color:var(--brand-strong);
}
.nav-icon{
  width:18px;height:18px;flex:0 0 18px;color:var(--brand);
}
.nav-toggle{
  position:relative;
  width:36px;height:36px;flex:0 0 36px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  cursor:pointer;
  transition:border-color .16s ease, background-color .16s ease;
}
.nav-toggle:hover{
  background:var(--surface-soft);
  border-color:var(--line-strong);
}
.nav-toggle-line{
  position:absolute;
  left:50%;top:50%;
  width:12px;height:1.8px;
  background:var(--text-muted);
  transform:translate(-50%,-50%);
  border-radius:999px;
}
.nav-toggle-line-v{
  transform:translate(-50%,-50%) rotate(90deg);
  transition:opacity .16s ease;
}
.nav-toggle-line-v.is-hidden{opacity:0}

.nav-list{
  display:none;
  list-style:none;
  margin:0;
  padding:0 8px 10px;
}
.nav-group.is-open .nav-list{display:block}
.nav-list li + li{margin-top:2px}
.nav-list a{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.45;
  transition:background-color .16s ease, color .16s ease;
}
.nav-list a:hover{
  background:var(--brand-hover);
  color:var(--brand-strong);
}
.nav-list a.active{
  background:var(--brand-soft);
  color:var(--brand-strong);
  font-weight:700;
}
.nav-dot{
  width:9px;height:9px;flex:0 0 9px;
  margin-top:.42rem;
  border:1.5px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
}
.nav-list a.active .nav-dot{
  background:var(--brand);
  border-color:var(--brand);
  box-shadow:0 0 0 4px var(--brand-focus);
}

.main{min-width:0}
.content{padding:30px 28px 72px}
.wrap{max-width:var(--content-w);margin:0 auto}

.hero,.hero-pro,.hero-pro-light,.card{
  border-radius:var(--radius);
  border:1px solid var(--line-strong);
  background:var(--surface);
  box-shadow:var(--shadow-card);
}
.hero-pro{
  margin-bottom:22px;
  color:#fff;
  background:linear-gradient(135deg, #0f6b46 0%, #169160 100%);
  border-color:transparent;
  overflow:hidden;
}
.hero-inner{padding:48px 52px}
.hero{
  padding:30px 32px;
  margin-bottom:18px;
}
.hero-pro-light{
  position:relative;
  padding:30px 32px;
  margin-bottom:22px;
  background:
    linear-gradient(180deg, rgba(19,118,82,.16) 0%, rgba(19,118,82,.08) 100%),
    linear-gradient(180deg, var(--surface-soft) 0%, var(--surface) 100%);
  border-color:rgba(19,118,82,.22);
  box-shadow:0 14px 40px rgba(16,24,40,.06), inset 0 1px 0 rgba(255,255,255,.4);
}
.hero-badge,.badge,.hero-pro-light-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:11px;
  font-weight:800;
}
.hero-badge{
  padding:8px 13px;
  margin-bottom:18px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.12);
}
.badge{
  padding:8px 13px;
  margin-bottom:14px;
  color:var(--brand);
  background:var(--brand-soft);
  border:1px solid var(--brand-soft-2);
}
.hero-pro-light-badge{
  padding:6px 11px;
  color:rgba(19,118,82,.76);
  background:rgba(19,118,82,.10);
  border:1px solid rgba(19,118,82,.15);
}
h1{
  margin:10px 0 10px;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.hero h1{font-size:40px;color:var(--text)}
.hero-pro-light h1{
  margin:10px 0 10px;
  font-size:30px;
  line-height:1.12;
  color:var(--text);
}
.hero p,.hero-pro p,.hero-pro-light p{
  margin:0;
  max-width:880px;
  line-height:1.72;
  font-size:16px;
}
.hero p,.hero-pro-light p{color:var(--text-soft)}
.hero-pro p{color:rgba(255,255,255,.92)}

/* Plan-Badge (z. B. Premium / Standard) */
.doc-plan-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Premium */
.doc-plan-badge.premium {
  background: rgba(16, 185, 129, 0.12); /* soft green */
  color: var(--c-brand, #1f7a5a);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Optional: Standard */
.doc-plan-badge.standard {
  background: rgba(100, 116, 139, 0.1);
  color: var(--c-muted, #475569);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Optional: Basis */
.doc-plan-badge.basic {
  background: rgba(148, 163, 184, 0.1);
  color: var(--c-muted, #64748b);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card{
  padding:28px 30px;
  margin-bottom:18px;
  scroll-margin-top:110px;
}
h2{
  margin:0 0 14px;
  font-size:28px;
  line-height:1.15;
  letter-spacing:-.02em;
}
h3{
  margin:24px 0 10px;
  font-size:21px;
  line-height:1.28;
}
h4{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.35;
}
p{
  margin:0 0 14px;
  color:var(--text-soft);
  line-height:1.76;
}
.lead{
  font-size:17px;
  color:#22342b;
}
.muted{
  color:var(--text-muted);
  font-size:14px;
}
ul,ol{
  margin:0 0 16px;
  padding-left:0;
  color:var(--text-soft);
}
.card>ul,.card>ol,.mini>ul,.mini>ol{list-style:none}
.card>ul li,.mini>ul li{
  position:relative;
  margin:0 0 9px;
  padding-left:22px;
  line-height:1.72;
}
.card>ul li::before,.mini>ul li::before{
  content:"";
  position:absolute;
  left:0;
  top:.82em;
  width:8px;height:8px;
  border-radius:999px;
  transform:translateY(-50%);
  background:var(--brand);
  box-shadow:0 0 0 4px rgba(19,118,82,.08);
}
.card>ol{
  counter-reset:item;
  list-style:none;
}
.card>ol li{
  counter-increment:item;
  position:relative;
  margin:0 0 10px;
  padding-left:34px;
  line-height:1.72;
}
.card>ol li::before{
  content:counter(item);
  position:absolute;
  left:0;top:.1em;
  width:24px;height:24px;
  display:grid;place-items:center;
  border-radius:999px;
  font-size:12px;font-weight:800;
  color:var(--brand);
  background:var(--brand-soft);
  border:1px solid var(--brand-soft-2);
}
strong{color:var(--text)}
code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:#f2f7f3;
  border:1px solid #d7e8dc;
  border-radius:8px;
  padding:2px 7px;
  font-size:.92em;
  color:var(--brand-strong);
}
.grid,.checklist{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}
.mini,.check{
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fbfdfb,#f6faf7);
}
.mini{
  padding:18px 18px 16px;
}
.mini p{
  margin:0 0 12px;
  font-size:14px;
  color:#506459;
  line-height:1.68;
}
.check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  color:#355247;
  font-size:14px;
  line-height:1.55;
}
.check strong{color:var(--brand);flex:0 0 auto}
.codebox{
  margin:10px 0 14px;
  padding:18px;
  border:1px solid #14382a;
  border-radius:16px;
  overflow:auto;
  background:#0f1f18;
  color:#eaf7ef;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:13px;
  line-height:1.65;
  white-space:pre-wrap;
}
table{
  width:100%;
  margin-top:10px;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:var(--surface);
}
thead th{
  padding:13px 14px;
  text-align:left;
  font-size:13px;
  color:#fff;
  background:#113d2c;
}
tbody td{
  padding:12px 14px;
  vertical-align:top;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.6;
  border-top:1px solid var(--line);
}

.overview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.overview-card{
  display:block;
  padding:22px 22px 20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f8fbf9);
  box-shadow:var(--shadow-soft);
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.overview-card:hover{
  transform:translateY(-1px);
  border-color:var(--line-strong);
  box-shadow:0 18px 40px rgba(16,24,40,.08);
}
.overview-card h3{
  margin:0 0 10px;
  font-size:22px;
}
.overview-card p{
  margin:0 0 12px;
}
.overview-meta{
  color:var(--brand);
  font-size:13px;
  font-weight:700;
}
.footer{
  margin:28px 2px 0;
  color:var(--text-faint);
  font-size:13px;
}

@media (max-width: 1180px){
  .app{grid-template-columns:1fr}
  .sidebar{
    position:relative;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .search-block{position:relative;background:none}
  .content{padding-top:18px}
}
@media (max-width: 760px){
  .content{padding:18px 14px 44px}
  .hero,.hero-pro,.hero-pro-light,.card{padding:22px 18px;border-radius:18px}
  .hero-inner{padding:0}
  h1,.hero h1{font-size:30px}
  .hero-pro-light h1{font-size:26px}
  h2{font-size:24px}
  .grid,.checklist,.overview-grid{grid-template-columns:1fr}
}

@media print{
  .app{display:block}
  .sidebar{display:none}
  .content{max-width:none;padding:0}
  body{background:#fff}
  .hero,.hero-pro,.hero-pro-light,.card{box-shadow:none}
}

.docs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.docs-overview-card{display:block;padding:22px 22px 20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fbf9);box-shadow:var(--shadow-soft);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.docs-overview-card:hover{transform:translateY(-1px);border-color:var(--line-strong);box-shadow:0 18px 40px rgba(16,24,40,.08)}
.docs-overview-card h3{margin:0 0 10px;font-size:22px}
.page-kicker{display:inline-flex;align-items:center;padding:6px 11px;margin-bottom:12px;border-radius:999px;color:rgba(19,118,82,.76);background:rgba(19,118,82,.10);border:1px solid rgba(19,118,82,.15);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
@media (max-width:760px){.docs-grid{grid-template-columns:1fr}}


/* === SEARCH FIX === */
#docSearchClear[hidden]{display:none!important;}

#docSearchResults{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  max-height:55vh;
  overflow:auto;
  z-index:999;
}


/* =========================================================
   Suchformular & Suchseite
========================================================= */

.search-field-submit input{
  padding-right:84px;
}

.search-submit{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  border-radius:999px;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:var(--text-muted);
  transition:background-color .16s ease, color .16s ease;
}
.search-submit:hover{
  background:var(--brand-hover);
  color:var(--brand);
}
.search-submit svg{
  width:16px;
  height:16px;
}

#docSearchClear{
  right:40px;
}
#docSearchClear[hidden]{
  display:none!important;
}

.search-results{
  display:none!important;
}

.search-page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.search-count{
  margin:6px 0 0;
  color:var(--text-muted);
  font-size:14px;
}
.search-query{
  color:var(--brand);
}
.search-help{
  margin:0;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.65;
}
.search-list{
  display:grid;
  gap:14px;
}
.search-card{
  display:block;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg,var(--surface),var(--surface-soft));
  box-shadow:var(--shadow-soft);
  transition:border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.search-card:hover{
  border-color:var(--line-strong);
  background:linear-gradient(180deg,#ffffff,var(--surface-soft-2));
  transform:translateY(-1px);
}
.search-card-eyebrow{
  display:block;
  margin-bottom:8px;
  color:var(--brand);
  font-size:13px;
  font-weight:700;
}
.search-card-title{
  display:block;
  color:var(--text);
  font-size:24px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-.02em;
}
.search-card-snippet{
  display:block;
  margin-top:10px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.7;
}
.search-empty{
  padding:24px;
  border:1px dashed var(--line-strong);
  border-radius:20px;
  background:var(--surface-soft);
}
.search-empty strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
}
mark{
  background:rgba(19,118,82,.14);
  color:inherit;
  padding:0 .12em;
  border-radius:4px;
}

@media (max-width: 720px){
  .search-card{
    padding:18px;
    border-radius:18px;
  }
  .search-card-title{
    font-size:21px;
  }
}


/* =========================================================
   Hero-Meta & Changelog
========================================================= */

.doc-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 8px;
}

.doc-meta-pill,
.doc-meta-text{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  line-height:1.2;
}

.doc-meta-pill{
  background:rgba(19,118,82,.10);
  border:1px solid rgba(19,118,82,.14);
  color:var(--brand-strong);
  font-weight:700;
}

.doc-meta-text{
  background:rgba(255,255,255,.58);
  border:1px solid rgba(19,118,82,.10);
  color:var(--text-soft);
  font-weight:600;
}

.doc-changelog .lead{
  margin-bottom:18px;
}

.doc-changelog-list{
  display:grid;
  gap:12px;
}

.doc-changelog-item{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--surface),var(--surface-soft));
}

.doc-changelog-date{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  min-height:34px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}

.doc-changelog-body h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.35;
}

.doc-changelog-body p{
  margin:0;
}

@media (max-width: 720px){
  .doc-changelog-item{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Modul-Hero & Changelog-Modal
========================================================= */

.doc-module-hero h1{
  margin:0 0 12px;
}

.doc-module-hero p{
  margin:0;
  max-width:980px;
}

.doc-module-hero .doc-meta-row{
  margin-top:18px;
}

.doc-meta-link{
  appearance:none;
  border:none;
  background:transparent;
  padding:6px 0;
  color:var(--brand);
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}

.doc-meta-link:hover{
  color:var(--brand-strong);
  text-decoration:underline;
}

.doc-modal[hidden]{
  display:none !important;
}

.doc-modal{
  position:fixed;
  inset:0;
  z-index:1200;
}

.doc-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(17,24,39,.42);
  backdrop-filter:blur(4px);
}

.doc-modal-dialog{
  position:relative;
  width:min(880px, calc(100vw - 32px));
  max-height:min(82vh, 900px);
  margin:48px auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:0 30px 80px rgba(16,24,40,.18);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.doc-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:24px 24px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,var(--surface-soft),var(--surface));
}

.doc-modal-head h2{
  margin:10px 0 6px;
  font-size:34px;
}

.doc-modal-close{
  appearance:none;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:none;
  border-radius:999px;
  background:var(--surface-soft-2);
  color:var(--text-muted);
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.doc-modal-close:hover{
  background:var(--brand-soft);
  color:var(--brand);
}

.doc-modal-body{
  padding:20px 24px 24px;
  overflow:auto;
}

.doc-changelog-list{
  display:grid;
  gap:12px;
}

.doc-changelog-item{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--surface),var(--surface-soft));
}

.doc-changelog-date{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  min-height:34px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand);
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
}

.doc-changelog-body h3{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.35;
}

.doc-changelog-body p{
  margin:0;
}

@media (max-width: 720px){
  .doc-modal-dialog{
    width:min(100vw - 18px, 100%);
    max-height:88vh;
    margin:18px auto;
    border-radius:22px;
  }

  .doc-modal-head,
  .doc-modal-body{
    padding-left:18px;
    padding-right:18px;
  }

  .doc-modal-head h2{
    font-size:28px;
  }

  .doc-changelog-item{
    grid-template-columns:1fr;
  }
}

body.modal-open{overflow:hidden;}


/* =========================================================
   Globaler Changelog
========================================================= */

.doc-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.doc-changelog-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:8px;
}

.doc-changelog-area,
.doc-changelog-version{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
}

.doc-changelog-area{
  background:var(--brand-soft);
  color:var(--brand);
}

.doc-changelog-version{
  background:var(--surface-soft-2);
  color:var(--text-soft);
  border:1px solid var(--line);
}

@media (max-width: 720px){
  .doc-section-head{
    flex-direction:column;
  }
}


/* Hero Meta unter Text */
.doc-meta-hero{
  margin-top:18px;
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,0.9);
}

.doc-meta-link-hero{
  color:#ffffff;
  text-decoration:underline;
  font-weight:700;
}

.doc-meta-link-hero:hover{
  color:#ffffff;
  opacity:0.85;
}


/* =========================================================
   Globaler Dokumentations-Changelog
========================================================= */

.doc-global-entry-list{
  display:grid;
  gap:14px;
}

.doc-global-entry{
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--surface),var(--surface-soft));
}

.doc-global-entry-head{
  margin-bottom:10px;
  color:var(--text);
  font-size:15px;
}

.doc-global-entry-items{
  margin:0;
  padding-left:20px;
}

.doc-global-entry-items li{
  margin:0 0 8px;
  color:var(--text-soft);
  line-height:1.7;
}

.doc-meta-link{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 0;
  color:var(--brand);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.doc-meta-link:hover{
  color:var(--brand-strong);
  text-decoration:underline;
}


/* Compact sidebar meta (FINAL) */
.sidebar-doc-meta-compact{
  margin: 6px 10px 14px;
  font-size:12px;
  color:var(--text-soft);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  line-height:1.4;
}

.sidebar-doc-meta-compact strong{
  font-weight:600;
  color:var(--text);
}

.sidebar-doc-meta-compact a{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}

.sidebar-doc-meta-compact a:hover{
  text-decoration:underline;
}

/* remove old block if still present */
.sidebar-doc-meta{
  display:none !important;
}


/* =========================================================
   Modul-Einstieg als weiße Card statt grünem Hero
========================================================= */

.doc-module-intro{
  padding:40px 46px;
  margin-bottom:24px;
}

.doc-module-intro .badge{
  margin-bottom:18px;
}

.doc-module-intro h1{
  margin:0 0 14px;
  font-size:44px;
  line-height:1.06;
  letter-spacing:-.03em;
  color:var(--text);
}

.doc-module-intro p{
  margin:0;
  max-width:1040px;
  color:var(--text-soft);
  font-size:17px;
  line-height:1.72;
}

/* alte grüne Hero-Ausgabe auf Unterseiten neutralisieren */
.doc-module-hero{
  background:var(--surface);
  box-shadow:var(--shadow-card);
}

@media (max-width: 900px){
  .doc-module-intro{
    padding:30px 28px;
  }

  .doc-module-intro h1{
    font-size:36px;
  }

  .doc-module-intro p{
    font-size:16px;
  }
}

@media (max-width: 640px){
  .doc-module-intro{
    padding:24px 20px;
  }

  .doc-module-intro h1{
    font-size:30px;
  }
}

