*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;background:#f5f7fb;color:#102235;line-height:1.5}.admin-top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 28px;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid #dfe7f0}.admin-top strong{display:block;font-size:20px;color:#003767}.admin-top span{color:#67788b;font-size:13px}.admin-top nav{display:flex;gap:12px}.admin-top a{color:#003767;font-weight:800;text-decoration:none}.admin-main{width:min(1280px,calc(100% - 30px));margin:28px auto 80px}.notice{padding:13px 16px;border-radius:15px;margin-bottom:14px;font-weight:800}.success{background:#e5fff0;color:#126237}.error{background:#fff0f0;color:#9b1c1c}.panel{background:#fff;border:1px solid #dfe7f0;border-radius:24px;padding:24px;margin:24px 0;box-shadow:0 16px 46px rgba(19,52,84,.07)}.pastel-blue{background:linear-gradient(180deg,#f2f8ff,#fff)}.pastel-green{background:linear-gradient(180deg,#f0fff7,#fff)}.pastel-yellow{background:linear-gradient(180deg,#fff9e9,#fff)}.pastel-pink{background:linear-gradient(180deg,#fff3f9,#fff)}h1,h2,h3{color:#061d38;margin-top:0}.hint{color:#617386}.dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card{border:1px solid #dce8f4;border-radius:22px;padding:22px;box-shadow:0 10px 30px rgba(19,52,84,.06)}.stat-card strong{display:block;font-size:34px;color:#003767}.stat-card span{color:#617386;font-weight:800}.tabs{position:sticky;top:71px;z-index:15;display:flex;gap:8px;overflow:auto;padding:12px;background:rgba(245,247,251,.94);backdrop-filter:blur(12px);border-radius:18px;margin:18px 0}.tabs a{white-space:nowrap;text-decoration:none;background:#fff;border:1px solid #dfe7f0;border-radius:999px;padding:10px 14px;color:#173752;font-weight:800}.tabs a:hover{background:#003767;color:#fff}.admin-form label{display:block;margin-bottom:14px;font-weight:400;color:#173752}.admin-form label span{display:block;margin-bottom:6px;font-weight:500}.admin-form input,.admin-form textarea,.admin-form select{width:100%;border:1px solid #cbd8e4;border-radius:13px;padding:11px 12px;font:inherit;background:#fff}.admin-form textarea{resize:vertical}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px}.grid-3{display:grid;grid-template-columns:160px 1fr 1fr;gap:14px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.narrow{max-width:520px}.check{display:flex!important;gap:10px;align-items:center;background:rgba(255,255,255,.65);border:1px solid #dfe7f0;border-radius:13px;padding:10px 12px}.check input{width:auto}.danger{color:#a81f1f}.form-actions{margin-top:18px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:999px;padding:11px 18px;background:linear-gradient(135deg,#003767,#0c86d8);color:#fff;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:0 12px 28px rgba(12,134,216,.2)}.mini-card{border:1px solid #dfe7f0;border-radius:20px;padding:18px;margin:16px 0;background:rgba(255,255,255,.82)}.mini-card legend{font-weight:600;color:#003767;padding:0 8px}.add-card{border-style:dashed}.carousel-admin-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.carousel-item img{width:100%;height:170px;object-fit:cover;border-radius:14px;margin-bottom:12px;border:1px solid #dfe7f0}.table-wrap{overflow:auto;background:#fff;border:1px solid #dfe7f0;border-radius:16px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{border-bottom:1px solid #edf2f7;text-align:left;padding:10px;vertical-align:top}th{background:#f4f8fc;color:#173752}.export-actions,.maintenance-grid{display:flex;gap:12px;flex-wrap:wrap}.maintenance-grid{display:grid;grid-template-columns:repeat(3,1fr)}code{background:#eef4fb;border-radius:6px;padding:2px 5px;color:#003767}.compact-settings{align-items:end}@media(max-width:900px){.dashboard-grid,.grid-2,.grid-3,.grid-4,.carousel-admin-list,.maintenance-grid{grid-template-columns:1fr}.admin-top{align-items:flex-start;flex-direction:column}.tabs{top:111px}}


.admin-version-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#fff;color:#003767;font-size:13px;font-weight:900;border:1px solid #dfe7f0;box-shadow:0 8px 20px rgba(0,55,103,.08);white-space:nowrap}
@media(max-width:900px){.admin-version-badge{align-self:flex-start}}


/* v1.2.1 Datagrid */
.datagrid-form{margin-top:22px}
.datagrid-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 10px}
.datagrid-head h3{margin:0}
.datagrid-scroll{max-height:430px;overflow:auto;background:#fff;border:1px solid #dfe7f0;border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.data-grid{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:980px}
.data-grid th,.data-grid td{border-bottom:1px solid #edf2f7;text-align:left;padding:9px 10px;vertical-align:top;background:#fff}
.data-grid thead th{position:sticky;top:0;z-index:2;background:#edf6ff;color:#173752;font-weight:900;white-space:nowrap;box-shadow:0 1px 0 #dfe7f0}
.data-grid th[data-sort]{cursor:pointer;user-select:none}
.data-grid th[data-sort]::after{content:" ⇅";font-size:11px;color:#6a7d90}
.data-grid th.sort-asc::after{content:" ▲";color:#003767}
.data-grid th.sort-desc::after{content:" ▼";color:#003767}
.data-grid tbody tr:hover td{background:#f8fbff}
.data-grid tbody tr:has(input[type="checkbox"]:checked) td{background:#eaf6ff}
.select-col{width:44px;text-align:center!important}
.danger-button{background:linear-gradient(135deg,#9b1c1c,#d34a4a)!important;box-shadow:0 12px 28px rgba(155,28,28,.18)}
@media(max-width:900px){.datagrid-head{align-items:flex-start;flex-direction:column}.datagrid-scroll{max-height:360px}}


/* v1.2.2 Dashboard */
.dashboard-grid-wide{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.dashboard-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 0}
.dashboard-panel{background:#fff;border:1px solid #dfe7f0;border-radius:24px;padding:22px;box-shadow:0 14px 36px rgba(0,55,103,.07)}
.dashboard-panel h2{margin:0 0 16px;color:#003767;font-size:20px}
.bar-chart{display:grid;gap:8px}
.bar-row{display:grid;grid-template-columns:54px 1fr 42px;gap:10px;align-items:center;font-size:13px}
.bar-label{color:#64758a;font-weight:800}
.bar-track{height:12px;background:#edf4fb;border-radius:999px;overflow:hidden}
.bar-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0c86d8,#31c6ff)}
.bar-row strong{text-align:right;color:#003767}
.mini-table{width:100%;border-collapse:collapse;font-size:14px}
.mini-table th,.mini-table td{border-bottom:1px solid #edf2f7;padding:8px 4px;text-align:left}
.mini-table th:last-child,.mini-table td:last-child{text-align:right}
.status-list{display:grid;gap:10px}
.status-list div{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:#f6fbff;border:1px solid #edf2f7}
.status-list span{color:#5f7185}
.status-list strong{color:#003767}
@media(max-width:1050px){.dashboard-overview{grid-template-columns:1fr}}


/* v1.4.6 Zugriff / Registrierung */
.access-control-box{
  grid-column:1/-1;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(0,55,103,.14);
  background:rgba(255,255,255,.72);
  box-shadow:0 10px 26px rgba(0,55,103,.08);
}
.access-control-box .check{
  margin-bottom:8px;
  font-weight:900;
}
.access-control-box .hint{
  margin:6px 0 0;
}


/* v1.4.8 Counter & Besucherstatistik */
.counter-grid{
  margin:18px 0 24px;
}
.counter-chart-box{
  background:rgba(255,255,255,.82);
  border:1px solid #dfe7f0;
  border-radius:22px;
  padding:20px;
  box-shadow:0 12px 32px rgba(0,55,103,.07);
}
.counter-chart-box h3{
  margin:0 0 12px;
  color:#003767;
}
.language-legend{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:0 0 16px;
  color:#52687d;
  font-weight:800;
}
.language-legend span{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.language-legend i{
  width:18px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}
.legend-de,.segment-de{background:#0c86d8}
.legend-en,.segment-en{background:#21a67a}
.legend-other,.segment-other{background:#f1b938}
.stacked-row{
  grid-template-columns:58px 1fr 48px;
}
.stacked-track{
  height:16px;
}
.stacked-total{
  display:flex;
  height:100%;
  min-width:0;
  border-radius:999px;
  overflow:hidden;
  background:transparent;
}
.stacked-total span{
  display:block;
  height:100%;
}


/* v1.5.1 News-Verwaltung */
.news-admin-card{
  border-left:6px solid #0c86d8;
}
.news-admin-card legend{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* v1.5.2 News-Lokalisierung */
.translation-box{
  margin:12px 0;
  border:1px dashed #b9cbe0;
  border-radius:16px;
  padding:12px 14px;
  background:rgba(246,251,255,.75);
}
.translation-box summary{
  cursor:pointer;
  font-weight:900;
  color:#003767;
  margin-bottom:10px;
}


/* v1.5.3 KI-Lokalisierung */
.localize-button{
  background:linear-gradient(135deg,#215c2f,#21a67a);
  margin-left:10px;
}
.translation-box{
  margin:12px 0;
  border:1px dashed #b9cbe0;
  border-radius:16px;
  padding:12px 14px;
  background:rgba(246,251,255,.75);
}
.translation-box summary{
  cursor:pointer;
  font-weight:900;
  color:#003767;
  margin-bottom:10px;
}
@media(max-width:700px){
  .localize-button{margin-left:0;margin-top:10px}
}


/* v1.5.5 History WYSIWYG */
.history-admin-main{
  width:min(1800px,calc(100% - 30px));
}
.history-editor-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}
.history-editor-panel{
  margin:0;
}
.editor-toolbar{
  position:sticky;
  top:80px;
  z-index:10;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px;
  border:1px solid #dfe7f0;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  margin-bottom:12px;
}
.editor-toolbar button{
  border:1px solid #cbd8e4;
  border-radius:999px;
  background:#fff;
  color:#003767;
  font-weight:900;
  padding:8px 12px;
  cursor:pointer;
}
.editor-toolbar button:hover{
  background:#003767;
  color:#fff;
}
.wysiwyg-editor{
  min-height:680px;
  max-height:calc(100vh - 240px);
  overflow:auto;
  padding:24px;
  border:1px solid #cbd8e4;
  border-radius:20px;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(0,55,103,.05);
  line-height:1.6;
}
.wysiwyg-editor:focus{
  outline:3px solid rgba(12,134,216,.22);
  border-color:#0c86d8;
}
.wysiwyg-editor img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(0,55,103,.12);
}
.ghost-button{
  background:linear-gradient(135deg,#697789,#9aa8b7);
}
@media(max-width:1100px){
  .history-editor-grid{grid-template-columns:1fr}
  .wysiwyg-editor{max-height:none}
}


/* v1.5.6 Skalierbare und verschiebbare History-Bilder */
.history-image-wrap{
  display:block;
  position:relative;
  box-sizing:border-box;
  width:min(100%,760px);
  max-width:100%;
  min-width:120px;
  min-height:80px;
  margin:18px 0;
  padding:8px;
  border:2px dashed rgba(12,134,216,.35);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  resize:both;
  overflow:hidden;
  cursor:move;
}
.history-image-wrap:after{
  content:"↘";
  position:absolute;
  right:7px;
  bottom:3px;
  width:24px;
  height:24px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,55,103,.78);
  color:#fff;
  font-size:14px;
  pointer-events:none;
}
.history-image-wrap.is-selected{
  border-color:#0c86d8;
  box-shadow:0 0 0 4px rgba(12,134,216,.16);
}
.history-image-wrap.is-dragging{
  opacity:.48;
}
.history-image-wrap img{
  display:block;
  width:100%;
  height:auto;
  pointer-events:none;
  user-select:none;
}
.history-drop-marker{
  margin:12px 0;
  padding:8px 12px;
  border:2px solid #21a67a;
  border-radius:14px;
  background:#eafff5;
  color:#126237;
  font-weight:900;
  text-align:center;
}
.wysiwyg-editor .history-image-wrap + p{
  margin-top:8px;
}


/* v1.5.7 Ruhiges Bildskalieren und zuverlässiges Verschieben */
.history-image-wrap{
  resize:none !important;
  overflow:visible !important;
  cursor:grab !important;
  user-select:none;
  touch-action:none;
}
.history-image-wrap:after{
  display:none !important;
}
.history-image-wrap.is-resizing{
  cursor:se-resize !important;
}
.history-image-wrap.is-moving{
  cursor:grabbing !important;
  opacity:.62;
}
.history-resize-handle{
  position:absolute;
  right:-9px;
  bottom:-9px;
  width:24px;
  height:24px;
  border:2px solid #fff;
  border-radius:999px;
  background:#003767;
  box-shadow:0 3px 12px rgba(0,55,103,.28);
  cursor:se-resize;
  z-index:5;
}
.history-resize-handle:before{
  content:"↘";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:13px;
  line-height:1;
  pointer-events:none;
}
.history-image-wrap img{
  pointer-events:none;
}
.history-image-moving,
.history-image-moving *{
  cursor:grabbing !important;
}
.history-drop-marker{
  margin:14px 0;
  padding:9px 12px;
  border:2px solid #21a67a;
  border-radius:14px;
  background:#eafff5;
  color:#126237;
  font-weight:900;
  text-align:center;
  box-shadow:0 6px 18px rgba(33,166,122,.18);
}


/* v1.5.8 History-Editor mit Frontend-identischer Arbeitsbreite */
:root{
  --history-document-width: 1120px;
  --history-document-padding: clamp(24px,4vw,52px);
}
.history-admin-main{
  width:min(100%,calc(var(--history-document-width) + 120px));
  max-width:calc(var(--history-document-width) + 120px);
}
.history-editor-grid{
  grid-template-columns:1fr !important;
  justify-items:center;
}
.history-editor-panel{
  box-sizing:border-box;
  width:min(100%,var(--history-document-width));
  max-width:var(--history-document-width);
}
.history-editor-panel .editor-toolbar{
  width:100%;
  box-sizing:border-box;
}
.history-wysiwyg{
  box-sizing:border-box;
  width:100%;
  max-width:var(--history-document-width);
  padding:var(--history-document-padding);
  min-height:760px;
  max-height:none;
}
.history-wysiwyg,
.history-document{
  font-size:16px;
  line-height:1.65;
}
.history-wysiwyg h1,.history-document h1{
  font-size:clamp(2.2rem,4vw,3.6rem);
  line-height:1.08;
}
.history-wysiwyg h2,.history-document h2{
  font-size:clamp(1.75rem,3vw,2.6rem);
  line-height:1.15;
}
.history-wysiwyg h3,.history-document h3{
  font-size:clamp(1.35rem,2.2vw,1.9rem);
  line-height:1.22;
}
.history-wysiwyg p,
.history-wysiwyg li,
.history-document p,
.history-document li{
  font-size:1rem;
  line-height:1.65;
}
.history-wysiwyg img,
.history-document img{
  max-width:100%;
  height:auto;
}


/* v1.5.9 History: Bild löschen und Schriftarten */
.history-font-select{
  border:1px solid #cbd8e4;
  border-radius:999px;
  background:#fff;
  color:#003767;
  font-weight:900;
  padding:8px 12px;
  max-width:260px;
}
.editor-toolbar .danger-inline{
  background:#b42318;
  color:#fff;
  border-color:#b42318;
}
.editor-toolbar .danger-inline:hover{
  background:#7a140d;
  border-color:#7a140d;
}
.history-delete-image{
  position:absolute;
  top:-11px;
  right:-11px;
  width:28px;
  height:28px;
  border:2px solid #fff;
  border-radius:999px;
  background:#b42318;
  color:#fff;
  font-size:22px;
  line-height:18px;
  font-weight:900;
  cursor:pointer;
  z-index:8;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(180,35,24,.35);
}
.history-delete-image:hover{
  background:#7a140d;
}
.wysiwyg-editor pre{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  white-space:pre-wrap;
  background:#f3f6f9;
  border:1px solid #d9e2ec;
  border-radius:14px;
  padding:14px 16px;
}


/* v1.5.10 History-Toolbar korrigiert */
.history-font-select{
  min-width:250px;
  background:#fff !important;
  color:#003767 !important;
}
.history-font-select:focus{
  outline:3px solid rgba(12,134,216,.20);
}
.editor-toolbar{
  align-items:center;
}
.editor-toolbar button,
.history-font-select{
  min-height:38px;
}
.history-delete-image{
  z-index:20;
}


/* v1.5.11 Markdown-Paste im History-Editor */
.wysiwyg-editor table{width:100%;border-collapse:collapse;margin:18px 0}
.wysiwyg-editor th,.wysiwyg-editor td{border:1px solid #d9e2ec;padding:10px 12px;vertical-align:top}
.wysiwyg-editor th{background:#f3f6f9;color:#003767}
.wysiwyg-editor code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;background:#eef3f8;border-radius:6px;padding:1px 5px}
.wysiwyg-editor hr{border:0;border-top:2px solid #d9e2ec;margin:26px 0}


/* v1.5.12 Aktive Toolbar-Buttons und Titelgrössen */
.editor-toolbar button.is-active,
.editor-toolbar select.is-active{
  background:#003767 !important;
  color:#fff !important;
  border-color:#003767 !important;
  box-shadow:0 0 0 3px rgba(12,134,216,.18);
}
.editor-toolbar button.is-active strong,
.editor-toolbar button.is-active em{
  color:#fff;
}
.history-heading-size-select{
  border:1px solid #cbd8e4;
  border-radius:999px;
  background:#fff;
  color:#003767;
  font-weight:900;
  padding:8px 12px;
  min-height:38px;
  max-width:180px;
}
.history-heading-size-select:focus{
  outline:3px solid rgba(12,134,216,.20);
}


/* v1.5.13 Markdown übernimmt Punktgrössen / globale Titelgrössen */
.history-apply-all-size{
  background:#eef7ff;
  color:#003767;
  border-color:#b7d6ee;
}
.history-apply-all-size:hover{
  background:#003767;
  color:#fff;
}
.history-heading-size-select{
  min-width:150px;
}


/* v1.5.15 AJAX-History-Lokalisierung */
.history-localize-progress{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid #b7d6ee;
  border-radius:16px;
  background:#f3f9ff;
}
.history-progress-bar{
  height:16px;
  overflow:hidden;
  border-radius:999px;
  background:#dbeaf6;
  margin:10px 0 8px;
}
.history-progress-bar span{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#0c86d8,#21a67a);
  transition:width .25s ease;
}
.history-localize-progress p{
  margin:0;
  color:#36566d;
  font-weight:800;
}
.localize-button:disabled{
  opacity:.65;
  cursor:wait;
}


/* v1.5.16 Neue Dialog-Kachel */
.mini-card.add-card{
  border:2px dashed #21a67a;
  background:#f4fff9;
}
.mini-card.add-card legend{
  color:#126237;
}


/* v1.5.17 Super-Top-News Backend */
#top-news-admin .mini-card textarea{min-height:120px;}
#top-news-admin code{background:#eef3f8;border-radius:6px;padding:2px 6px;}


/* v1.5.19 Backend-Menü links */
@media(min-width:1100px){
  .admin-has-sidebar .admin-top{
    padding-left:28px;
    padding-right:28px;
  }
  .admin-has-sidebar .admin-main{
    width:auto;
    max-width:none;
    margin:28px 28px 80px 292px;
  }
  .admin-has-sidebar .tabs{
    position:fixed;
    top:92px;
    left:24px;
    bottom:24px;
    z-index:30;
    width:238px;
    margin:0;
    padding:14px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    overflow-y:auto;
    overflow-x:hidden;
    border:1px solid #dfe7f0;
    border-radius:24px;
    background:rgba(255,255,255,.94);
    box-shadow:0 18px 48px rgba(0,55,103,.12);
    backdrop-filter:blur(14px);
  }
  .admin-has-sidebar .tabs::before{
    content:"Backend-Menü";
    display:block;
    margin:2px 4px 8px;
    color:#003767;
    font-weight:950;
    font-size:15px;
    letter-spacing:.01em;
  }
  .admin-has-sidebar .tabs a{
    display:flex;
    align-items:center;
    width:100%;
    min-height:38px;
    white-space:normal;
    border-radius:14px;
    padding:9px 12px;
    line-height:1.18;
    box-shadow:none;
  }
  .admin-has-sidebar .tabs a:hover,
  .admin-has-sidebar .tabs a:focus{
    background:#003767;
    color:#fff;
  }
  .admin-has-sidebar .tabs a:focus-visible{
    outline:3px solid rgba(12,134,216,.25);
    outline-offset:2px;
  }
  .admin-has-sidebar .panel,
  .admin-has-sidebar .dashboard-overview,
  .admin-has-sidebar .dashboard-grid-wide{
    scroll-margin-top:92px;
  }
}
@media(max-width:1099px){
  .admin-has-sidebar .tabs{
    position:sticky;
    top:111px;
    flex-direction:row;
  }
}
@media(max-height:760px) and (min-width:1100px){
  .admin-has-sidebar .tabs{
    top:78px;
    bottom:14px;
  }
}


/* v1.5.20 Backend pro Menüpunkt als eigene Seite */
@media(min-width:1100px){
  .admin-has-sidebar .tabs a.active{
    background:#003767;
    color:#fff;
    border-color:#003767;
    box-shadow:0 10px 24px rgba(0,55,103,.18);
  }
}
.tabs a.active{
  background:#003767;
  color:#fff;
  border-color:#003767;
}
.admin-has-sidebar .panel{
  scroll-margin-top:92px;
}


/* v1.5.21 Sortierbare Backend-Listen */
.sortable-list{
  display:grid;
  gap:10px;
  margin:18px 0 22px;
}
.sortable-item{
  margin:0;
  padding:0;
  overflow:hidden;
}
.sortable-item legend{
  display:none;
}
.sortable-summary{
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:rgba(255,255,255,.88);
}
.drag-handle{
  width:38px;
  height:38px;
  border:1px solid #cbd8e4;
  border-radius:12px;
  background:#eef7ff;
  color:#003767;
  cursor:grab;
  font-weight:950;
  font-size:18px;
}
.drag-handle:active{
  cursor:grabbing;
}
.sortable-title{
  color:#003767;
  font-size:16px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sortable-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:96px;
  padding:6px 10px;
  border-radius:999px;
  background:#e8fff3;
  color:#126237;
  font-weight:900;
  font-size:12px;
}
.is-hidden-item .sortable-status{
  background:#fff0f0;
  color:#9b1c1c;
}
.sortable-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.small-button{
  min-height:34px;
  border:1px solid #cbd8e4;
  border-radius:999px;
  padding:7px 12px;
  background:#fff;
  color:#003767;
  font-weight:900;
  cursor:pointer;
}
.small-button:hover{
  background:#003767;
  color:#fff;
}
.sortable-detail{
  border-top:1px solid #dfe7f0;
  padding:16px;
  background:rgba(246,251,255,.72);
}
.sortable-preview{
  display:block;
  max-width:260px;
  max-height:160px;
  object-fit:contain;
  border:1px solid #dfe7f0;
  border-radius:14px;
  background:#fff;
  margin:0 0 14px;
}
.sortable-item.is-dragging{
  opacity:.45;
  outline:3px dashed #0c86d8;
  outline-offset:2px;
}
.is-hidden-item{
  opacity:.72;
}
.is-hidden-item .sortable-title{
  text-decoration:line-through;
}
@media(max-width:900px){
  .sortable-summary{
    grid-template-columns:auto 1fr;
  }
  .sortable-status,
  .sortable-actions{
    grid-column:2;
    justify-content:flex-start;
  }
}


/* v1.5.22 Robustes Drag&Drop für Backend-Listen */
.drag-handle{
  touch-action:none;
  user-select:none;
}
.admin-sortable-active,
.admin-sortable-active *{
  cursor:grabbing !important;
  user-select:none !important;
}
.sortable-item.is-dragging{
  position:relative;
  z-index:50;
  transform:scale(.985);
  opacity:.72;
  box-shadow:0 18px 48px rgba(0,55,103,.20);
}
.sortable-list{
  touch-action:none;
}


/* v1.5.23 Sortiergriffe stabilisiert */
.sort-control-group{
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.sort-step-button{
  width:30px;
  height:30px;
  border:1px solid #cbd8e4;
  border-radius:10px;
  background:#fff;
  color:#003767;
  cursor:pointer;
  font-weight:950;
  line-height:1;
}
.sort-step-button:hover{
  background:#003767;
  color:#fff;
}
.admin-sortable-active .sortable-actions,
.admin-sortable-active .sort-step-button,
.admin-sortable-active .small-button{
  pointer-events:none;
}
.sortable-item.is-dragging{
  outline:3px dashed #0c86d8;
  outline-offset:2px;
}
@media(max-width:900px){
  .sort-control-group{
    align-self:start;
  }
}


/* v1.5.31 Getrennter History-Editor DE/EN */
.history-language-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
.history-language-card{
  margin:0;
}
.history-editor-single{
  justify-items:center;
}
.history-editor-single .history-editor-panel{
  width:min(100%,var(--history-document-width));
  max-width:var(--history-document-width);
}
@media(max-width:900px){
  .history-language-cards{
    grid-template-columns:1fr;
  }
}


/* v1.5.32 HTTPS-Link-Werkzeug für Backend-Textfelder */
.textarea-link-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:8px 0 7px;
}
.textarea-link-button{
  padding:6px 11px;
  min-height:30px;
}
.textarea-link-hint{
  color:#667b8f;
  font-size:12px;
  font-weight:700;
}


/* v1.5.38 News DE/EN nebeneinander editierbar */
.news-detail-editor{
  padding-top:18px;
}
.news-language-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
  margin-top:14px;
}
.news-language-card{
  margin:0;
  background:rgba(255,255,255,.78);
}
.news-language-card legend{
  display:block;
  padding:0 8px;
  color:#003767;
  font-weight:950;
}
.news-language-card textarea{
  min-height:190px;
}
.news-meta-row{
  margin-bottom:12px;
}
.news-shared-link-row{
  margin-top:14px;
  align-items:end;
}
.news-add-card .news-language-grid{
  margin:14px 0;
}
@media(max-width:1000px){
  .news-language-grid{
    grid-template-columns:1fr;
  }
}

/* v1.5.42 Besucher-Länder */
.visitor-country-panel{
  margin-top:18px;
}
.table-wrap{
  width:100%;
  overflow:auto;
}
.data-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:rgba(255,255,255,.9);
  border:1px solid #d8e4ef;
  border-radius:18px;
  overflow:hidden;
}
.data-table th,
.data-table td{
  padding:10px 12px;
  border-bottom:1px solid #e5edf5;
  text-align:left;
  vertical-align:top;
}
.data-table th{
  background:#eef7ff;
  color:#003767;
  font-weight:950;
}
.data-table tr:last-child td{
  border-bottom:0;
}
