*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172024;background:#f6f7f7}body{margin:0;min-height:100vh}.topbar{min-height:72px;padding:14px clamp(18px,4vw,56px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border-bottom:1px solid #e5e9e8;position:sticky;top:0;z-index:20}.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:#132024;font-weight:800}.brand-mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#007e68;color:#fff;font-size:12px;letter-spacing:.08em}.topnav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.topnav a,.link-button{color:#425154;text-decoration:none;font:inherit;border:0;background:none;padding:0;cursor:pointer}.topnav a:hover,.link-button:hover{color:#007e68}.user-chip,.badge,.status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#eef3f2;font-size:12px;font-weight:700}.page{width:min(1280px,calc(100% - 36px));margin:0 auto;padding:48px 0 70px}.footer{text-align:center;color:#7b898b;font-size:13px;padding:0 20px 30px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:30px}.page-head-split{align-items:center}.page-head h1,.auth-card h1{font-size:clamp(30px,5vw,52px);line-height:1.02;letter-spacing:-.035em;margin:8px 0 12px}.page-head p,.auth-card p{max-width:760px;color:#647174;line-height:1.6;margin:0}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#007e68}.eyebrow a{color:inherit;text-decoration:none}.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px}.project-card,.editor-card,.auth-card,.empty-state,.info-strip{background:#fff;border:1px solid #e3e8e7;border-radius:20px;box-shadow:0 10px 35px rgba(24,45,42,.05)}.project-card{padding:26px;display:flex;flex-direction:column;gap:14px}.project-card h2{font-size:22px;margin:0}.project-card p{color:#687779;line-height:1.55;margin:0;min-height:48px}.project-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.muted{color:#7a888a}.url-box{padding:12px 14px;background:#f5f7f7;border-radius:12px;display:grid;gap:10px}.url-box code,.info-strip code{overflow-wrap:anywhere;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;padding:11px 16px;border:1px solid transparent;text-decoration:none;font:inherit;font-weight:750;cursor:pointer;transition:.15s ease}.button-primary{background:#007e68;color:#fff}.button-primary:hover{background:#006b59}.button-secondary{background:#172024;color:#fff}.button-ghost{background:#fff;color:#263638;border-color:#d9e0df}.button-danger{background:#fff;color:#ad2f2f;border-color:#efcece}.button-small{padding:7px 10px;border-radius:9px;font-size:13px}.inline-form{display:inline-flex;margin:0}.auth-card{width:min(520px,100%);margin:8vh auto;padding:34px}.form-stack,.form-grid{display:grid;gap:18px}.form-stack{margin-top:26px}.form-stack label,.field{display:grid;gap:8px;font-weight:700;font-size:14px}.form-stack input,.field input,.field select,.search-form input{width:100%;border:1px solid #cfd9d7;border-radius:11px;padding:12px 13px;background:#fff;font:inherit;color:#172024;outline:none}.form-stack input:focus,.field input:focus,.field select:focus,.search-form input:focus{border-color:#007e68;box-shadow:0 0 0 3px rgba(0,126,104,.12)}.notice{padding:13px 15px;border-radius:12px;margin-bottom:18px;border:1px solid #d8e1df;background:#fff}.notice-success{border-color:#bfe2d8;background:#effaf6;color:#15624f}.notice-error{border-color:#efcaca;background:#fff3f3;color:#8d2e2e}.info-strip{padding:17px 20px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:16px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 0}.search-form{display:flex;gap:9px;flex:1;max-width:780px}.search-form input{min-width:180px}.table-wrap{overflow:auto;background:#fff;border:1px solid #e2e8e6;border-radius:18px;box-shadow:0 8px 30px rgba(24,45,42,.04)}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#7a898b;text-align:left;padding:14px 16px;background:#f7f9f8;border-bottom:1px solid #e2e8e6}.data-table td{padding:15px 16px;border-bottom:1px solid #edf0ef;vertical-align:middle;font-size:14px}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfcfc}.actions-col{width:280px}.row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.editor-card{padding:28px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field span{color:#344345}.field small{color:#a62828}.field-error input,.field-error select{border-color:#d77575}.checkbox-field{display:flex;align-items:center;gap:10px!important;align-self:end;padding:10px 0}.checkbox-field input{width:auto}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding-top:20px;border-top:1px solid #edf0ef}.permissions{margin-top:30px;padding-top:24px;border-top:1px solid #edf0ef}.permissions h2{margin:0 0 8px}.permission-list{display:grid;gap:10px;margin-top:18px}.permission-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 16px;background:#f7f9f8;border-radius:12px}.permission-row select{min-width:180px;border:1px solid #cfd9d7;border-radius:9px;padding:9px 10px;background:#fff}.status-ok{background:#e7f5ef;color:#17624f}.empty-state{padding:30px}.empty-state p{margin-bottom:0;color:#6e7b7d}@media(max-width:760px){.topbar{position:static;align-items:flex-start}.topnav{justify-content:flex-end}.page{padding-top:30px}.page-head,.page-head-split,.toolbar,.info-strip{align-items:stretch;flex-direction:column}.form-grid{grid-template-columns:1fr}.search-form{flex-wrap:wrap}.search-form input{flex:1 1 100%}.data-table{min-width:0}.data-table thead{display:none}.data-table,.data-table tbody,.data-table tr,.data-table td{display:block;width:100%}.data-table tr{padding:14px 16px;border-bottom:1px solid #e5eae9}.data-table tr:last-child{border-bottom:0}.data-table td{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:7px 0;border:0}.data-table td:before{content:attr(data-label);color:#7a888a;font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.04em}.row-actions{display:flex!important;padding-top:12px!important}.row-actions:before{display:none}.permission-row{align-items:stretch;flex-direction:column}.permission-row select{width:100%}.project-card p{min-height:0}}

/* Update 1.1: Projekt- und Backupverwaltung */
.full-field{grid-column:1/-1}.field textarea{width:100%;border:1px solid #cfd9d7;border-radius:11px;padding:12px 13px;background:#fff;font:inherit;color:#172024;outline:none;resize:vertical}.field textarea:focus{border-color:#007e68;box-shadow:0 0 0 3px rgba(0,126,104,.12)}.field-hint{color:#7a888a!important;font-weight:500!important;line-height:1.45}.settings-section{padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid #e8edec}.settings-section:last-of-type{border-bottom:0;margin-bottom:0}.settings-section h2{margin:0 0 18px;font-size:22px}.section-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.section-head-row h2{margin-bottom:6px}.column-list{display:grid;gap:14px}.column-card{border:1px solid #dfe6e4;border-radius:16px;padding:18px;background:#fbfcfc}.column-card-system{background:#f1f5f4}.column-card-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.column-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.column-flags{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #e8edec;font-size:13px}.column-flags label{display:inline-flex;align-items:center;gap:7px}.column-flags input{width:auto}.move-buttons{margin-left:auto;display:inline-flex;gap:6px}.icon-button{border:1px solid #d8e0de;background:#fff;border-radius:8px;padding:6px 9px;cursor:pointer;font:inherit}.icon-button:hover{border-color:#91aaa5}.danger-text{color:#a83232}.options-field[hidden]{display:none}.info-strip-stack{align-items:flex-start}.small-text{font-size:13px;line-height:1.5;margin:8px 0 0}.checkbox-input-wrap{display:inline-flex;align-items:center;gap:9px;min-height:46px}.checkbox-input-wrap input{width:auto}.project-editor code,.data-table code{font-size:12px;overflow-wrap:anywhere}.project-card .row-actions{margin-top:auto}
@media(max-width:760px){.section-head-row{flex-direction:column}.column-grid{grid-template-columns:1fr}.column-flags{align-items:flex-start;flex-direction:column}.move-buttons{margin-left:0}.full-field{grid-column:auto}}

/* Update 1.6: kompakte Projekt- und Spalten-Akkordeons */
.settings-accordion{border:1px solid #dfe6e4;border-radius:16px;background:#fbfcfc;margin-bottom:30px;overflow:hidden}.settings-accordion__summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;background:#f7f9f8;user-select:none}.settings-accordion__summary::-webkit-details-marker{display:none}.settings-accordion__title-wrap{display:grid;gap:3px}.settings-accordion__title-wrap strong{font-size:19px;color:#213033}.settings-accordion__title-wrap small{font-size:12px;font-weight:600;color:#7a888a}.settings-accordion__chevron{font-size:24px;line-height:1;color:#607173;transition:transform .18s ease}.settings-accordion[open] .settings-accordion__chevron{transform:rotate(180deg)}.settings-accordion__content{padding:4px 20px 22px;background:#fff;border-top:1px solid #e8edec}.settings-subsection{padding:24px 0;border-bottom:1px solid #edf0ef}.settings-subsection-last{border-bottom:0;padding-bottom:4px}.settings-subsection h2{margin:0 0 18px;font-size:20px}.settings-subsection .full-field{margin-top:18px}.settings-note{margin:14px 0 0;color:#7a888a;font-size:13px;font-weight:600}.columns-section{padding-bottom:0;margin-bottom:0;border-bottom:0}.system-column-compact{min-height:44px;border:1px solid #dfe6e4;border-radius:12px;background:#f1f5f4;padding:10px 14px;display:flex;align-items:center;gap:10px}.system-column-compact strong{font-size:14px}.column-card-accordion{padding:0;overflow:hidden;background:#fff}.column-accordion-head{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 10px 8px 14px}.column-toggle{min-width:0;flex:1;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:6px 4px;color:#263638;font:inherit;text-align:left;cursor:pointer}.column-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.column-chevron{font-size:18px;line-height:1;color:#6f7f81;transition:transform .16s ease}.column-card-accordion.is-open .column-chevron{transform:rotate(180deg)}.column-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.column-action-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d8e0de;background:#fff;border-radius:9px;padding:7px 9px;color:#405052;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.column-action-button:hover{border-color:#92aaa5;background:#f7faf9}.column-action-button:disabled{opacity:.38;cursor:not-allowed;background:#f7f8f8}.column-action-danger{color:#a83232;border-color:#edcccc}.column-action-danger:hover{border-color:#d99a9a;background:#fff6f6}.column-card-body{padding:18px;border-top:1px solid #e8edec;background:#fbfcfc}.column-card-body[hidden]{display:none}.column-card-body .column-flags{margin-top:18px}.column-card-accordion:focus-within{border-color:#b8cbc7}.project-editor>.form-actions{margin-top:30px}
@media(max-width:760px){.settings-accordion__summary{padding:16px}.settings-accordion__content{padding:0 16px 18px}.column-accordion-head{align-items:stretch;flex-direction:column;padding:10px 12px}.column-toggle{width:100%;padding:5px 2px}.column-card-actions{justify-content:flex-start}.column-action-button{flex:1 1 auto}.column-card-body{padding:16px}.system-column-compact{min-height:40px}.settings-subsection{padding:20px 0}}

/* Update 1.7: modernisierte Projekt- und Spaltenverwaltung */
.project-editor{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.project-editor .settings-accordion,
.project-editor .columns-section{
  background:#fff;
  border:1px solid #e0e7e5;
  border-radius:22px;
  box-shadow:0 12px 38px rgba(23,32,36,.055);
}

.project-editor .settings-accordion{
  overflow:hidden;
  margin-bottom:24px;
}

.project-editor .settings-accordion__summary{
  position:relative;
  min-height:78px;
  padding:18px 22px;
  background:#fff;
  transition:background .16s ease;
}
.project-editor .settings-accordion__summary::marker{content:""}
.project-editor .settings-accordion__summary::-webkit-details-marker{display:none}
.project-editor .settings-accordion__summary:hover{background:#f8fbfa}
.project-editor .settings-accordion__summary:focus-visible{
  outline:3px solid rgba(0,126,104,.16);
  outline-offset:-3px;
}
.project-editor .settings-accordion__title-wrap{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:13px;
  row-gap:2px;
  align-items:center;
}
.project-editor .settings-accordion__title-wrap::before{
  content:"";
  grid-row:1 / 3;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#edf8f5;
  box-shadow:inset 0 0 0 1px #dcefe9;
}
.project-editor .settings-accordion__title-wrap::after{
  content:"≡";
  grid-row:1 / 3;
  grid-column:1;
  place-self:center;
  color:#007e68;
  font-size:19px;
  font-weight:800;
  line-height:1;
  transform:rotate(90deg);
}
.project-editor .settings-accordion__title-wrap strong{
  grid-column:2;
  font-size:17px;
  line-height:1.25;
  color:#162326;
}
.project-editor .settings-accordion__title-wrap small{
  grid-column:2;
  font-size:12px;
  line-height:1.35;
  color:#7b898b;
}
.project-editor .settings-accordion__chevron{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f1f5f4;
  color:#556668;
  font-size:20px;
  transition:transform .18s ease,background .16s ease,color .16s ease;
}
.project-editor .settings-accordion[open] .settings-accordion__summary{
  background:#fbfdfc;
  border-bottom:1px solid #edf1f0;
}
.project-editor .settings-accordion[open] .settings-accordion__chevron{
  transform:rotate(180deg);
  background:#e7f5f1;
  color:#007e68;
}
.project-editor .settings-accordion__content{
  padding:0 24px 22px;
  border-top:0;
  background:#fff;
}
.project-editor .settings-subsection{
  padding:26px 0;
}
.project-editor .settings-subsection h2{
  font-size:17px;
  letter-spacing:-.01em;
  margin-bottom:18px;
}

.project-editor .columns-section{
  padding:26px;
  margin:0;
  border-bottom:1px solid #e0e7e5;
}
.project-editor .columns-section .section-head-row{
  align-items:center;
  margin-bottom:22px;
}
.project-editor .columns-section .section-head-row h2{
  margin:0 0 5px;
  font-size:23px;
  letter-spacing:-.025em;
}
.project-editor #add-column{
  background:#007e68;
  color:#fff;
  border-color:#007e68;
  box-shadow:0 7px 18px rgba(0,126,104,.14);
}
.project-editor #add-column:hover{
  background:#006f5d;
  border-color:#006f5d;
  transform:translateY(-1px);
}

.project-editor .column-list{gap:12px}
.project-editor .system-column-compact{
  min-height:42px;
  padding:8px 14px;
  border:0;
  border-radius:12px;
  background:#f4f7f6;
  color:#5b6a6c;
  box-shadow:inset 0 0 0 1px #e5ebe9;
}
.project-editor .system-column-compact strong{
  font-size:13px;
  color:#344345;
}
.project-editor .system-column-compact .badge{
  padding:4px 8px;
  font-size:10px;
  color:#6f7d7f;
  background:#fff;
  border:1px solid #e1e7e6;
}

.project-editor .column-card-accordion{
  position:relative;
  padding:0;
  overflow:hidden;
  border:1px solid #e2e8e7;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 9px rgba(23,32,36,.025);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.project-editor .column-card-accordion:hover{
  border-color:#ccd8d5;
  box-shadow:0 6px 20px rgba(23,32,36,.045);
}
.project-editor .column-card-accordion.is-open{
  border-color:#a9cec5;
  box-shadow:0 10px 26px rgba(0,126,104,.075);
}
.project-editor .column-card-accordion.is-open::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:#007e68;
}
.project-editor .column-accordion-head{
  min-height:66px;
  padding:9px 10px 9px 14px;
  gap:12px;
  background:#fff;
}
.project-editor .column-card-accordion.is-open .column-accordion-head{
  background:#fbfdfc;
}
.project-editor .column-toggle{
  min-width:190px;
  padding:5px 6px;
  gap:12px;
}
.project-editor .column-toggle:focus-visible{
  outline:3px solid rgba(0,126,104,.14);
  outline-offset:2px;
  border-radius:11px;
}
.project-editor .column-chevron{
  flex:0 0 32px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f0f4f3;
  color:#637375;
  font-size:17px;
}
.project-editor .column-card-accordion.is-open .column-chevron{
  background:#e5f4ef;
  color:#007e68;
}
.project-editor .column-title-wrap{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.project-editor .column-title-wrap strong{
  min-width:0;
  font-size:15px;
  color:#182528;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.project-editor .column-type-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f5f4;
  color:#6d7b7d;
  font-size:10px;
  font-weight:750;
  line-height:1.2;
  white-space:nowrap;
}
.project-editor .column-card-actions{
  gap:7px;
  flex-wrap:nowrap;
}
.project-editor .column-action-button{
  min-height:36px;
  padding:7px 10px;
  gap:6px;
  border-color:#e0e6e5;
  border-radius:10px;
  background:#fff;
  color:#4f5f61;
  font-size:11px;
  font-weight:750;
  box-shadow:0 1px 2px rgba(23,32,36,.02);
  transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.project-editor .column-action-button:hover:not(:disabled){
  background:#f5f8f7;
  border-color:#bccbc8;
  color:#263638;
  transform:translateY(-1px);
}
.project-editor .column-action-button:disabled{
  opacity:.32;
  box-shadow:none;
}
.project-editor .column-action-danger{
  margin-left:2px;
  color:#a33a3a;
  border-color:#eedcdc;
  background:#fffafa;
}
.project-editor .column-action-danger:hover:not(:disabled){
  color:#8e2525;
  border-color:#ddb5b5;
  background:#fff4f4;
}
.project-editor .column-card-body{
  padding:22px 22px 20px;
  border-top:1px solid #edf1f0;
  background:#fcfdfd;
}
.project-editor .column-card-body .column-grid{
  gap:18px 20px;
}
.project-editor .column-card-body .column-flags{
  margin-top:20px;
  padding-top:18px;
  gap:10px;
}
.project-editor .column-card-body .column-flags label{
  min-height:34px;
  padding:7px 10px;
  border:1px solid #e0e7e5;
  border-radius:10px;
  background:#fff;
  color:#536365;
  font-size:12px;
  font-weight:650;
}
.project-editor .column-card-body .column-flags label:has(input:checked){
  border-color:#b8d8d0;
  background:#f0f8f5;
  color:#17624f;
}
.project-editor .column-card-body .column-flags input{
  accent-color:#007e68;
}
.project-editor .column-card-body code[data-key-preview]{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:11px 13px;
  border:1px solid #dce4e2;
  border-radius:11px;
  background:#f4f7f6;
  color:#536365;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.project-editor>.form-actions{
  margin-top:22px;
  padding:18px 2px 0;
  border-top:0;
}
.project-editor>.form-actions .button{
  min-height:44px;
}

@media(max-width:980px){
  .project-editor .column-accordion-head{align-items:flex-start;flex-direction:column;padding:12px 14px}
  .project-editor .column-toggle{width:100%;min-width:0;padding:2px 0}
  .project-editor .column-card-actions{width:100%;justify-content:flex-start;padding-left:44px}
}
@media(max-width:760px){
  .project-editor .settings-accordion,
  .project-editor .columns-section{border-radius:17px}
  .project-editor .settings-accordion__summary{min-height:70px;padding:15px 16px}
  .project-editor .settings-accordion__title-wrap::before{width:34px;height:34px;border-radius:10px}
  .project-editor .settings-accordion__content{padding:0 16px 16px}
  .project-editor .columns-section{padding:18px 16px}
  .project-editor .columns-section .section-head-row{align-items:stretch}
  .project-editor #add-column{width:100%}
  .project-editor .column-card-actions{padding-left:0;display:grid;grid-template-columns:1fr 1fr}
  .project-editor .column-action-danger{grid-column:1 / -1;margin-left:0}
  .project-editor .column-action-button{width:100%;min-height:38px}
  .project-editor .column-title-wrap{align-items:flex-start;flex-direction:column;gap:5px}
  .project-editor .column-card-body{padding:18px 14px}
  .project-editor>.form-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* v1.8: echte SVG-Chevrons fuer Akkordeons */
.project-editor .settings-accordion__chevron svg,
.project-editor .column-chevron svg{
  display:block;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.project-editor .column-chevron svg{
  width:15px;
  height:15px;
}


/* v1.9: Drag & Drop fuer Spaltenreihenfolge */
.project-editor .column-drag-handle{
  flex:0 0 32px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:10px;
  color:#8b999a;
  background:transparent;
  cursor:grab;
  user-select:none;
  touch-action:none;
  transition:color .14s ease,background .14s ease,border-color .14s ease,transform .14s ease;
}
.project-editor .column-drag-handle:hover{
  color:#007e68;
  background:#eef7f4;
  border-color:#d9ebe6;
}
.project-editor .column-drag-handle:active{cursor:grabbing}
.project-editor .column-drag-handle:focus-visible{
  outline:3px solid rgba(0,126,104,.14);
  outline-offset:2px;
}
.project-editor .column-drag-handle svg{
  display:block;
  width:18px;
  height:18px;
  fill:currentColor;
  pointer-events:none;
}
.project-editor .column-list.is-dragging .column-card-accordion{
  transition:border-color .1s ease,box-shadow .1s ease,transform .1s ease;
}
.project-editor .column-card-accordion.is-dragging{
  opacity:.48;
  border-color:#78b7a8;
  box-shadow:0 14px 34px rgba(0,126,104,.12);
  transform:scale(.995);
}
.project-editor .column-card-accordion.is-dragging .column-drag-handle{cursor:grabbing}
@media(max-width:980px){
  .project-editor .column-accordion-head{
    display:grid;
    grid-template-columns:32px minmax(0,1fr);
  }
  .project-editor .column-card-actions{grid-column:1 / -1;padding-left:44px}
}
@media(max-width:760px){
  .project-editor .column-card-actions{padding-left:0}
}

/* v1.10: finales Feintuning Projekteditor */
/* Dekoratives Symbol/Feld bei Projekteinstellungen entfernen. */
.project-editor .settings-accordion__title-wrap{
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:auto auto;
  column-gap:0;
  row-gap:2px;
  align-items:center;
}
.project-editor .settings-accordion__title-wrap::before,
.project-editor .settings-accordion__title-wrap::after{
  content:none;
  display:none;
}
.project-editor .settings-accordion__title-wrap strong,
.project-editor .settings-accordion__title-wrap small{
  grid-column:1;
}

/* Projekteinstellungen: exakt dieselbe Chevron-Flaeche wie bei Spalten. */
.project-editor .settings-accordion__chevron{
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#f0f4f3;
  color:#637375;
  font-size:17px;
}
.project-editor .settings-accordion[open] .settings-accordion__chevron{
  background:#e5f4ef;
  color:#007e68;
}
.project-editor .settings-accordion__chevron svg{
  width:15px;
  height:15px;
}

/* Loeschen-Aktion klar als Danger-Button kennzeichnen. */
.project-editor .column-action-danger{
  color:#b42318;
  border-color:#f0bbb5;
  background:#fff1ef;
}
.project-editor .column-action-danger:hover:not(:disabled){
  color:#8f1d14;
  border-color:#df8d84;
  background:#ffe3df;
}


/* v1.11: kompakte Projektansicht */
.data-table .actions-col{
  width:244px;
  min-width:244px;
}
.data-table .project-row-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:nowrap;
  white-space:nowrap;
}
.data-table .project-row-actions .inline-form{
  flex:0 0 auto;
}
.project-action-button{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 9px;
  border:1px solid #e0e6e5;
  border-radius:10px;
  background:#fff;
  color:#4f5f61;
  font:inherit;
  font-size:11px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(23,32,36,.02);
  transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease;
}
.project-action-button:hover{
  background:#f5f8f7;
  border-color:#bccbc8;
  color:#263638;
  transform:translateY(-1px);
}
.project-action-button:focus-visible{
  outline:3px solid rgba(0,126,104,.14);
  outline-offset:2px;
}
.project-action-button svg{
  display:block;
  flex:0 0 14px;
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.project-action-danger{
  color:#b42318;
  border-color:#f0bbb5;
  background:#fff1ef;
}
.project-action-danger:hover{
  color:#8f1d14;
  border-color:#df8d84;
  background:#ffe3df;
}
@media(max-width:760px){
  .data-table .project-row-actions{
    display:flex!important;
    flex-wrap:wrap;
    gap:7px;
    white-space:normal;
  }
  .data-table .project-row-actions .project-action-button{
    min-height:36px;
  }
}


/* v1.12: aufgeraeumte Uebersicht, neutraler Header und fixierter Tabellenkopf */
.brand{
  font-size:17px;
  letter-spacing:-.01em;
}
.project-card-top-compact{
  justify-content:flex-end;
}
@media(min-width:761px){
  .table-wrap{
    max-height:calc(100vh - 220px);
    min-height:180px;
    overflow:auto;
  }
  .data-table thead th{
    position:sticky;
    top:0;
    z-index:6;
    background:#f7f9f8;
    box-shadow:0 1px 0 #e2e8e6;
  }
}
@media(max-width:760px){
  .table-wrap{
    max-height:none;
    overflow:visible;
  }
}
\n\n/* v1.13: breite Projektansicht und konsistente Tabellenaktionen */\n.project-table-region{\n  width:min(1560px,calc(100vw - 40px));\n  margin-left:50%;\n  transform:translateX(-50%);\n}\n.project-table-region .toolbar{\n  width:100%;\n}\n.project-table-region .table-wrap{\n  width:100%;\n}\n.project-table-region .data-table{\n  min-width:1120px;\n}\n.data-table .actions-col{\n  width:226px;\n  min-width:226px;\n}\n.data-table .project-row-actions{\n  gap:7px;\n}\n.project-action-button{\n  min-height:36px;\n  padding:7px 10px;\n  gap:6px;\n  border:1px solid #e0e6e5;\n  border-radius:10px;\n  background:#fff;\n  color:#4f5f61;\n  font-size:11px;\n  font-weight:750;\n  box-shadow:0 1px 2px rgba(23,32,36,.02);\n}\n.project-action-button:hover{\n  background:#f5f8f7;\n  border-color:#bccbc8;\n  color:#263638;\n}\n.project-action-button svg{\n  width:14px;\n  height:14px;\n  flex-basis:14px;\n}\n.project-action-danger{\n  color:#b42318;\n  border-color:#efb8b2;\n  background:#fff0ee;\n}\n.project-action-danger svg{\n  color:#b42318;\n}\n.project-action-danger:hover{\n  color:#8f1d14;\n  border-color:#dc8c84;\n  background:#ffe0dc;\n}\n@media(max-width:760px){\n  .project-table-region{\n    width:100%;\n    margin-left:0;\n    transform:none;\n  }\n  .project-table-region .data-table{\n    min-width:0;\n  }\n}\n
/* v1.15: Einzelspalten-Speichern und Bulk-Bearbeitung */
.project-editor .column-save-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #e8edec;
}
.project-editor .column-save-status{
  margin-right:auto;
  color:#7b898b;
  font-size:12px;
  font-weight:650;
}
.project-editor .column-save-status.is-dirty{color:#8b6720}
.project-editor .column-save-status.is-saving{color:#5f7072}
.project-editor .column-save-status.is-saved{color:#17624f}
.project-editor .column-save-status.is-error{color:#a62828}
.project-editor .column-card-accordion.has-unsaved-changes{
  border-color:#e2cf9d;
}
.project-editor .column-card-accordion.has-unsaved-changes.is-open{
  box-shadow:0 10px 26px rgba(167,118,20,.08);
}
.project-editor [data-save-column]:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.toolbar-meta{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.bulk-select-all-top{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#536365;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.bulk-select-all-top input,
.bulk-select-col input,
.bulk-select-cell input{
  width:16px;
  height:16px;
  accent-color:#007e68;
  cursor:pointer;
}
.bulk-select-col{
  width:48px;
  min-width:48px;
  text-align:center!important;
}
.bulk-select-cell{
  width:48px;
  min-width:48px;
  text-align:center;
}
.data-table tbody tr.is-selected{
  background:#f0f8f5;
}
.data-table tbody tr.is-selected:hover{
  background:#ebf6f2;
}
.bulk-editor{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid #badbd2;
  border-radius:14px;
  background:#f2faf7;
  box-shadow:0 6px 22px rgba(0,126,104,.06);
}
.bulk-editor[hidden]{display:none}
.bulk-editor__summary{
  display:grid;
  gap:2px;
  min-width:170px;
  margin-right:auto;
}
.bulk-editor__summary strong{
  color:#17624f;
  font-size:14px;
}
.bulk-editor__summary span{
  color:#687779;
  font-size:11px;
}
.bulk-update-form{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.bulk-delete-form{
  display:flex;
  align-items:flex-end;
}
.bulk-field-select,
.bulk-value-control{
  display:grid;
  gap:5px;
  min-width:170px;
  color:#536365;
  font-size:11px;
  font-weight:750;
}
.bulk-field-select select,
.bulk-value-control input,
.bulk-value-control select,
.bulk-value-control textarea{
  min-height:36px;
  border:1px solid #cfd9d7;
  border-radius:9px;
  padding:7px 9px;
  background:#fff;
  color:#172024;
  font:inherit;
  font-size:12px;
  outline:none;
}
.bulk-value-control textarea{
  min-width:220px;
  resize:vertical;
}
.bulk-field-select select:focus,
.bulk-value-control input:focus,
.bulk-value-control select:focus,
.bulk-value-control textarea:focus{
  border-color:#007e68;
  box-shadow:0 0 0 3px rgba(0,126,104,.1);
}
.bulk-clear{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 4px;
  color:#536365;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.bulk-clear input{accent-color:#007e68}

@media(max-width:980px){
  .bulk-editor{align-items:stretch}
  .bulk-editor__summary{width:100%;margin-right:0}
  .bulk-update-form{flex:1 1 100%}
}
@media(max-width:760px){
  .project-editor .column-save-row{
    align-items:stretch;
    flex-direction:column;
  }
  .project-editor .column-save-status{margin-right:0}
  .project-editor [data-save-column]{width:100%}
  .toolbar-meta{
    justify-content:flex-start;
  }
  .bulk-editor{
    align-items:stretch;
    flex-direction:column;
  }
  .bulk-update-form,
  .bulk-delete-form{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
  .bulk-field-select,
  .bulk-value-control{
    min-width:0;
    width:100%;
  }
  .bulk-delete-form .button,
  .bulk-update-form .button{
    width:100%;
  }
  .data-table .bulk-select-cell{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    min-width:0;
  }
  .data-table .bulk-select-cell:before{
    display:block;
  }
}

/* v1.16: Speichern rechts, Admin-Einstellungen und Update-Center */
.project-editor .column-card-body > .column-save-row{
  width:100%;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-top:20px!important;
  padding-top:16px!important;
}
.project-editor .column-card-body > .column-save-row .column-save-status{
  margin:0!important;
  text-align:right;
}
.project-editor .column-card-body > .column-save-row [data-save-column]{
  flex:0 0 auto;
  min-width:138px;
}

.admin-settings-grid{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:20px;
  align-items:start;
}
.admin-settings-card{
  margin-bottom:20px;
}
.admin-settings-card h2{
  margin:4px 0 0;
  font-size:23px;
  letter-spacing:-.02em;
}
.admin-settings-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.version-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 11px;
  border-radius:999px;
  background:#e8f5f1;
  color:#08715f;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.security-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.security-points span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:7px 10px;
  border:1px solid #dfe8e5;
  border-radius:10px;
  background:#f7faf9;
  color:#496062;
  font-size:12px;
  font-weight:700;
}
.security-points code{
  font-size:11px;
}
.update-safety-note{
  display:grid;
  gap:5px;
  margin:18px 0 2px;
  padding:14px 16px;
  border:1px solid #cce5de;
  border-radius:13px;
  background:#f2faf7;
}
.update-safety-note strong{
  color:#17624f;
  font-size:13px;
}
.update-safety-note span{
  color:#647476;
  font-size:12px;
  line-height:1.55;
}
.update-form{
  margin-top:20px;
}
.update-form input[type="file"]{
  padding:9px 10px;
}
.update-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:2px;
}
.update-actions .muted{
  font-size:12px;
}
.update-history-card{
  margin-top:0;
}
.update-history-list{
  display:grid;
  gap:0;
  border:1px solid #e4e9e8;
  border-radius:14px;
  overflow:hidden;
}
.update-history-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  background:#fff;
  border-bottom:1px solid #edf0ef;
}
.update-history-item:last-child{
  border-bottom:0;
}
.update-history-item > div:first-child{
  display:grid;
  gap:3px;
}
.update-history-item strong{
  font-size:14px;
}
.update-history-item span{
  color:#738184;
  font-size:11px;
}
.update-history-meta{
  display:flex;
  align-items:center;
  gap:14px;
  text-align:right;
}

@media(max-width:980px){
  .admin-settings-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .project-editor .column-card-body > .column-save-row{
    align-items:stretch!important;
    flex-direction:column!important;
  }
  .project-editor .column-card-body > .column-save-row .column-save-status{
    text-align:left;
  }
  .project-editor .column-card-body > .column-save-row [data-save-column]{
    width:100%;
  }
  .update-actions,
  .update-history-item,
  .update-history-meta{
    align-items:stretch;
    flex-direction:column;
    text-align:left;
  }
  .update-actions .button{
    width:100%;
  }
}

/* v1.18: CSV / Backup direkt im Projekt einspielen */
.project-import-card{
  margin:0 auto 24px;
  max-width:1560px;
  padding:22px;
  border:1px solid #d9e4e1;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(23,32,36,.05);
  scroll-margin-top:18px;
}
.project-import-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.project-import-card__head h2{
  margin:4px 0 6px;
  font-size:24px;
  letter-spacing:-.02em;
}
.project-import-card__head p{
  margin:0;
  color:#66777a;
  font-size:13px;
  line-height:1.55;
}
.project-import-close{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  border:1px solid #dfe7e5;
  border-radius:10px;
  background:#f5f8f7;
  color:#536568;
  font:inherit;
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.project-import-close:hover{background:#edf4f2;color:#172024}
.project-import-warning{
  margin-bottom:18px;
  padding:12px 14px;
  border:1px solid #f0d6c8;
  border-radius:12px;
  background:#fff8f4;
  color:#7b4b35;
  font-size:12px;
  line-height:1.5;
}
.project-import-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.project-import-option{
  min-width:0;
  padding:18px;
  border:1px solid #e1e8e6;
  border-radius:15px;
  background:#fbfcfc;
}
.project-import-option h3{
  margin:0 0 5px;
  font-size:16px;
}
.project-import-option > div > p{
  margin:0 0 16px;
  color:#6c7d7f;
  font-size:12px;
  line-height:1.5;
}
.project-import-option .form-stack{margin-top:14px}
.project-import-option input[type="file"]{padding:9px 10px}
.project-import-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:4px;
}
.empty-state.compact{
  min-height:0;
  padding:14px;
  border-radius:11px;
}
@media(max-width:900px){
  .project-import-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .project-import-card{padding:16px;border-radius:16px}
  .project-import-card__head{gap:12px}
  .project-import-card__head h2{font-size:21px}
  .project-import-actions .button{width:100%}
}


/* v1.19: Zeitraum-Feldtypen fuer Datum und Uhrzeit */
.range-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  align-items:end;
  gap:12px;
}
.range-input__part{
  display:grid;
  gap:6px;
  font-weight:700;
  font-size:12px;
  color:#607073;
}
.range-input__part input{
  min-height:46px;
}
.range-input__unknown{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  border:1px solid #cfd9d7;
  border-radius:11px;
  background:#f8faf9;
  color:#344345;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.range-input__unknown input{
  width:auto;
  min-height:0;
  accent-color:#007e68;
}
.bulk-range-inputs{
  display:flex;
  align-items:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.bulk-range-part{
  display:grid;
  gap:3px;
  min-width:118px;
  color:#687779;
  font-size:10px;
  font-weight:750;
}
.bulk-range-part input{width:100%}
.bulk-range-unknown{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#536365;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.bulk-range-unknown input{accent-color:#007e68}
@media(max-width:760px){
  .range-input{grid-template-columns:1fr}
  .range-input__unknown{width:100%;justify-content:flex-start}
  .bulk-range-inputs{display:grid;grid-template-columns:1fr;width:100%}
  .bulk-range-part{min-width:0;width:100%}
}


/* v1.20: Wochentage-Feld */
.weekday-input{
  display:grid;
  gap:10px;
}
.weekday-input__choices,
.bulk-weekday-input{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.weekday-chip{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  cursor:pointer;
}
.weekday-chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.weekday-chip span{
  min-width:54px;
  padding:10px 12px;
  border:1px solid #cfd9d7;
  border-radius:11px;
  background:#f8faf9;
  color:#425356;
  font-size:13px;
  font-weight:800;
  text-align:center;
  transition:border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.weekday-chip input:checked + span{
  border-color:#70b9aa;
  background:#e7f5f1;
  color:#006e5c;
  box-shadow:0 0 0 2px rgba(0,126,104,.06);
}
.weekday-chip input:focus-visible + span{
  outline:2px solid #007e68;
  outline-offset:2px;
}
.weekday-chip input:disabled + span{
  cursor:default;
  opacity:.78;
}
.weekday-input__quick{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  color:#748285;
  font-size:11px;
  font-weight:700;
}
.weekday-input__quick button{
  padding:5px 9px;
  border:1px solid #d8e2df;
  border-radius:8px;
  background:#fff;
  color:#536568;
  font:inherit;
  cursor:pointer;
}
.weekday-input__quick button:hover{
  border-color:#a9c8c1;
  background:#f3f8f6;
  color:#007e68;
}
.bulk-weekday-input .weekday-chip{
  min-width:44px;
}
.bulk-weekday-input .weekday-chip span{
  min-width:44px;
  padding:7px 9px;
  border-radius:9px;
  font-size:11px;
}
.bulk-weekday-quick{
  margin-top:7px;
}
@media(max-width:760px){
  .weekday-input__choices{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .weekday-chip,
  .weekday-chip span{
    width:100%;
    min-width:0;
  }
}

/* v1.21: Sortieren, feldtypabhaengige Filter und manuelle Datensatz-Reihenfolge */
.list-controls-card{
  display:grid;
  gap:12px;
  margin:20px 0 14px;
  padding:15px 16px;
  border:1px solid #dfe7e5;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 24px rgba(23,32,36,.035);
}
.project-list-controls{
  display:grid;
  grid-template-columns:minmax(240px,1.35fr) minmax(170px,.72fr) auto minmax(170px,.72fr) minmax(145px,.6fr) auto;
  gap:10px;
  align-items:end;
}
.list-control{
  display:grid;
  gap:5px;
  min-width:0;
  color:#536365;
  font-size:11px;
  font-weight:750;
}
.list-control > span{
  min-height:14px;
}
.list-control input,
.list-control select{
  width:100%;
  min-height:38px;
  border:1px solid #cfd9d7;
  border-radius:9px;
  padding:7px 9px;
  background:#fff;
  color:#172024;
  font:inherit;
  font-size:12px;
  outline:none;
}
.list-control input:focus,
.list-control select:focus{
  border-color:#007e68;
  box-shadow:0 0 0 3px rgba(0,126,104,.1);
}
.list-control-dynamic{
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-width:0;
}
.list-control-dynamic[hidden]{display:none}
.list-control-dynamic .list-control{
  min-width:130px;
}
.list-control-actions{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:38px;
}
.list-controls-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
  padding-top:2px;
}
.active-view-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#edf7f4;
  color:#17624f;
  font-size:11px;
  font-weight:750;
}
.table-sort-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}
.table-sort-link svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.42;
}
.table-sort-link:hover,
.table-sort-link.is-active{
  color:#007e68;
}
.table-sort-link.is-active svg{opacity:1}
.row-drag-col,
.row-drag-cell{
  width:42px;
  min-width:42px;
  text-align:center!important;
}
.row-drag-handle{
  width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#82908f;
  cursor:grab;
}
.row-drag-handle:hover{
  border-color:#d4e0dd;
  background:#f3f7f6;
  color:#007e68;
}
.row-drag-handle:active{cursor:grabbing}
.row-drag-handle:focus-visible{
  outline:3px solid rgba(0,126,104,.13);
  outline-offset:1px;
}
.row-drag-handle svg,
.manual-order-copy svg{
  display:block;
  width:17px;
  height:17px;
  fill:currentColor;
  stroke:none;
}
.row-drag-placeholder{
  color:#c2ccca;
  font-size:12px;
}
.data-table tbody.is-reordering tr{
  transition:transform .08s ease,background .08s ease;
}
.data-table tbody tr.is-dragging{
  opacity:.42;
  background:#eaf6f2!important;
  outline:1px dashed #6db5a6;
  outline-offset:-2px;
}
.manual-order-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid #d9e6e2;
  border-radius:13px;
  background:#f7faf9;
}
.manual-order-copy{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#607173;
  font-size:12px;
}
.manual-order-copy svg{color:#007e68;flex:0 0 auto}
.manual-order-copy strong{color:#344547;margin-right:4px}
.manual-order-form{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.manual-order-status{
  color:#879394;
  font-size:11px;
  font-weight:700;
}
.manual-order-status.is-dirty{color:#956b18}
.manual-order-bar-muted{
  color:#6f7e80;
  font-size:12px;
}

@media(max-width:1280px){
  .project-list-controls{
    grid-template-columns:minmax(220px,1fr) minmax(170px,.75fr) minmax(250px,1.1fr) minmax(170px,.72fr) minmax(145px,.62fr);
  }
  .list-control-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:900px){
  .project-list-controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .list-control-search{grid-column:1/-1}
  .list-control-dynamic{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .list-control-dynamic .list-control{min-width:0}
  .list-control-actions{grid-column:1/-1}
  .manual-order-bar{align-items:stretch;flex-direction:column}
  .manual-order-form{justify-content:flex-end;flex-wrap:wrap}
}
@media(max-width:760px){
  .list-controls-card{padding:13px}
  .project-list-controls{grid-template-columns:1fr}
  .list-control-search,
  .list-control-actions{grid-column:auto}
  .list-control-dynamic{grid-template-columns:1fr}
  .list-control-actions{display:grid;grid-template-columns:1fr 1fr}
  .list-control-actions .button{width:100%}
  .list-controls-meta{justify-content:flex-start}
  .manual-order-form{display:grid;grid-template-columns:1fr;width:100%}
  .manual-order-form .button{width:100%}
  .manual-order-status{text-align:left}
  .data-table .row-drag-cell{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    width:100%;
    min-width:0;
  }
  .data-table .row-drag-cell:before{display:block}
}

/* v1.22: Filter fuer Nutzer ausblenden und Sortierung/Reihenfolge klar erklaeren */
.project-list-controls.no-user-filter{
  grid-template-columns:minmax(260px,1.5fr) minmax(220px,.9fr) minmax(150px,.58fr) auto;
}
.experimental-label{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  padding:2px 6px;
  border-radius:999px;
  background:#fff4d8;
  color:#8a6415;
  font-size:9px;
  font-weight:800;
  letter-spacing:.01em;
  vertical-align:middle;
}
.manual-order-bar-help{
  border-color:#e6dfca;
  background:#fffaf0;
}
.manual-order-bar-help.is-sorted{
  border-color:#d8e3e0;
  background:#f7faf9;
}
.manual-order-help-copy{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#647274;
  font-size:12px;
  line-height:1.45;
}
.manual-order-help-copy strong{
  display:block;
  margin-bottom:1px;
  color:#354648;
}
.manual-order-help-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 32px;
  border-radius:10px;
  background:#eef3f2;
  color:#6e7f7d;
}
.manual-order-help-icon svg,
.row-drag-disabled svg{
  display:block;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.row-drag-disabled{
  width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  border-radius:9px;
  background:#f3f5f4;
  color:#a5afad;
  cursor:not-allowed;
}
@media(max-width:1280px){
  .project-list-controls.no-user-filter{
    grid-template-columns:minmax(220px,1.2fr) minmax(190px,.9fr) minmax(145px,.62fr) auto;
  }
}
@media(max-width:900px){
  .project-list-controls.no-user-filter{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .project-list-controls.no-user-filter .list-control-search{grid-column:1/-1}
  .manual-order-bar-help{align-items:stretch;flex-direction:column}
  .manual-order-bar-help .button{align-self:flex-end}
}
@media(max-width:760px){
  .project-list-controls.no-user-filter{grid-template-columns:1fr}
  .project-list-controls.no-user-filter .list-control-search{grid-column:auto}
  .manual-order-help-copy{align-items:flex-start}
  .manual-order-bar-help .button{align-self:stretch;width:100%}
}

/* v1.23: moderne Datum-/Uhrzeit-Picker und Ein-Feld-Zeitraeume */
.smart-picker{
  position:relative;
  min-width:0;
}
.smart-picker__trigger{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 13px;
  border:1px solid #cfd9d7;
  border-radius:11px;
  background:#fff;
  color:#172024;
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.smart-picker__trigger:hover:not(:disabled){
  border-color:#9db8b2;
  background:#fcfefd;
}
.smart-picker__trigger:focus-visible,
.smart-picker.is-open .smart-picker__trigger{
  outline:none;
  border-color:#007e68;
  box-shadow:0 0 0 3px rgba(0,126,104,.12);
}
.smart-picker__trigger:disabled{
  cursor:default;
  background:#f5f7f7;
  color:#7d898b;
  opacity:.82;
}
.smart-picker__value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
}
.smart-picker__value.is-placeholder{color:#879395;font-weight:500}
.smart-picker__icon{
  flex:0 0 21px;
  width:21px;
  height:21px;
  fill:none;
  stroke:#5d706f;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.smart-picker.is-open .smart-picker__icon{stroke:#007e68}
.smart-picker__popover{
  position:absolute;
  z-index:80;
  top:calc(100% + 9px);
  left:0;
  min-width:340px;
  max-width:min(760px,calc(100vw - 36px));
  border:1px solid #dce6e3;
  border-radius:18px;
  background:#fff;
  box-shadow:0 22px 70px rgba(22,42,38,.18),0 3px 12px rgba(22,42,38,.08);
  overflow:hidden;
}
.smart-picker__popover[hidden]{display:none}
.range-picker-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.range-picker-shell .range-input__unknown{align-self:stretch}

.picker-panel__head{
  min-height:70px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) 36px;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  border-bottom:1px solid #edf1f0;
  background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);
}
.picker-panel__head--time{grid-template-columns:minmax(0,1fr) 36px}
.picker-panel__heading{
  min-width:0;
  display:grid;
  gap:2px;
  text-align:center;
}
.picker-panel__head--time .picker-panel__heading{text-align:left}
.picker-panel__heading strong{font-size:14px;color:#203033}
.picker-panel__heading span{font-size:11px;line-height:1.35;color:#7a898b;font-weight:600}
.picker-nav-button{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #dde6e4;
  border-radius:10px;
  background:#fff;
  color:#45585a;
  font:inherit;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.picker-nav-button:hover{border-color:#b7ccc7;background:#f4f9f7;color:#007e68}
.calendar-months{
  padding:15px 16px 10px;
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.calendar-months--range{
  grid-template-columns:repeat(2,minmax(260px,1fr));
  min-width:620px;
}
.calendar-month{min-width:0}
.calendar-month__title{
  margin:0 0 10px;
  color:#253638;
  font-size:13px;
  font-weight:800;
  text-align:center;
}
.calendar-weekdays,
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
}
.calendar-weekdays{margin-bottom:4px}
.calendar-weekdays span{
  display:grid;
  place-items:center;
  min-height:28px;
  color:#8a9698;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
}
.calendar-day{
  position:relative;
  min-width:34px;
  height:36px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#334547;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:background .12s ease,color .12s ease,box-shadow .12s ease;
}
.calendar-day:hover{background:#edf7f4;color:#006e5c}
.calendar-day.is-empty{pointer-events:none}
.calendar-day.is-today:not(.is-selected):not(.is-range-start):not(.is-range-end){box-shadow:inset 0 0 0 1px #9dc8be}
.calendar-day.is-in-range{
  border-radius:7px;
  background:#edf7f4;
  color:#006e5c;
}
.calendar-day.is-selected,
.calendar-day.is-range-start,
.calendar-day.is-range-end{
  background:#007e68;
  color:#fff;
  box-shadow:0 4px 10px rgba(0,126,104,.18);
}
.picker-panel__footer{
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px 13px;
  border-top:1px solid #edf1f0;
  background:#fbfdfc;
}
.picker-text-button,
.picker-action-button{
  min-height:34px;
  padding:7px 11px;
  border-radius:9px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.picker-text-button{border:1px solid transparent;background:transparent;color:#657477}
.picker-text-button:hover{background:#f1f5f4;color:#344648}
.picker-action-button{border:1px solid #007e68;background:#007e68;color:#fff}
.picker-action-button:hover{background:#006b59;border-color:#006b59}
.picker-panel__hint{margin-left:auto;color:#708083;font-size:11px;font-weight:700}

.time-panel{min-width:340px}
.time-panel__body{
  display:grid;
  gap:12px;
  padding:18px;
}
.time-panel__body--range{grid-template-columns:repeat(2,minmax(0,1fr))}
.time-panel__field{display:grid;gap:7px;color:#5e7072;font-size:11px;font-weight:800}
.time-panel__field input{
  width:100%;
  min-height:52px;
  padding:10px 12px;
  border:1px solid #cedbd8;
  border-radius:12px;
  background:#f9fbfa;
  color:#172024;
  font:inherit;
  font-size:18px;
  font-weight:800;
  outline:none;
}
.time-panel__field input:focus{border-color:#007e68;box-shadow:0 0 0 3px rgba(0,126,104,.1);background:#fff}
.time-panel__message{
  min-height:18px;
  padding:0 18px;
  color:#a13a3a;
  font-size:11px;
  font-weight:700;
}

/* Auch normale Auswahllisten wirken im geschlossenen Zustand ruhiger und moderner. */
.field select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23576b6d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
  background-size:16px;
}

@media(max-width:760px){
  .range-picker-shell{grid-template-columns:1fr}
  .range-picker-shell .range-input__unknown{width:100%;justify-content:flex-start;min-height:44px}
  .smart-picker__popover{
    position:fixed;
    left:14px;
    right:14px;
    top:auto;
    bottom:14px;
    width:auto;
    max-width:none;
    max-height:min(78vh,720px);
    overflow:auto;
    border-radius:20px;
  }
  .calendar-months--range{grid-template-columns:1fr;min-width:0}
  .calendar-months--range .calendar-month:nth-child(2){border-top:1px solid #edf1f0;padding-top:16px}
  .time-panel{min-width:0}
  .time-panel__body--range{grid-template-columns:1fr}
  .picker-panel__footer{position:sticky;bottom:0}
}

/* v1.24: konfigurierbare Alternativen fuer Datum/Uhrzeit */
.temporal-alternatives-field[hidden]{display:none!important}
.temporal-field-shell{display:grid;gap:10px}
.temporal-mode{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:2px}
.temporal-mode__label{font-size:12px;font-weight:700;color:#718082;margin-right:2px}
.temporal-mode__option{appearance:none;border:1px solid #d8e2df;background:#fff;color:#415052;border-radius:999px;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;line-height:1.1;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.temporal-mode__option:hover{border-color:#9dbab4;background:#f7fbfa}
.temporal-mode__option:focus-visible{outline:none;border-color:#007e68;box-shadow:0 0 0 3px rgba(0,126,104,.12)}
.temporal-mode__option.is-active{border-color:#9bd1c6;background:#e8f6f2;color:#007e68}
.bulk-temporal-inputs{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1fr);gap:10px;align-items:end}
.bulk-temporal-exact,.bulk-temporal-alternative{display:grid;gap:5px}
.bulk-temporal-exact>span,.bulk-temporal-alternative>span{font-size:11px;font-weight:700;color:#6f7f81}
.bulk-range-inputs .bulk-temporal-alternative{min-width:170px}
@media (max-width:760px){
  .temporal-mode{align-items:stretch}
  .temporal-mode__label{width:100%}
  .temporal-mode__option{flex:1 1 auto;text-align:center}
  .bulk-temporal-inputs{grid-template-columns:1fr}
}

/* v1.25: direkte Eingabe + eindeutigere Picker-Interaktion */
.smart-picker__field{
  position:relative;
  min-width:0;
}
.smart-picker__manual{
  width:100%;
  min-height:46px;
  padding:11px 48px 11px 13px;
  border:1px solid #cfd9d7;
  border-radius:11px;
  background:#fff;
  color:#172024;
  font:inherit;
  font-weight:600;
  line-height:1.35;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.smart-picker__manual::placeholder{color:#879395;font-weight:500;opacity:1}
.smart-picker__manual:hover:not(:disabled){border-color:#9db8b2;background:#fcfefd}
.smart-picker__manual:focus,
.smart-picker.is-open .smart-picker__manual{
  border-color:#007e68;
  box-shadow:0 0 0 3px rgba(0,126,104,.12);
  background:#fff;
}
.smart-picker__manual:disabled{
  cursor:default;
  background:#f5f7f7;
  color:#7d898b;
  opacity:.82;
}
.smart-picker__manual:invalid:not(:focus){border-color:#d88484}
.smart-picker__open{
  position:absolute;
  top:50%;
  right:6px;
  width:36px;
  height:36px;
  margin:0;
  padding:0;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border:0;
  border-radius:9px;
  background:transparent;
  color:#5d706f;
  cursor:pointer;
  transition:background .15s ease,color .15s ease;
}
.smart-picker__open:hover:not(:disabled){background:#eef6f3;color:#007e68}
.smart-picker__open:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(0,126,104,.12);color:#007e68}
.smart-picker__open:disabled{cursor:default;opacity:.45}
.smart-picker__open .smart-picker__icon{width:20px;height:20px;stroke:currentColor}
.smart-picker.is-open .smart-picker__open{background:#e8f5f1;color:#007e68}

/* Desktop: JS verankert das Menü direkt am auslösenden Feld und flippt bei Bedarf nach oben. */
@media(min-width:761px){
  .smart-picker__popover{
    top:auto;
    bottom:auto;
    overflow:auto;
  }
}

/* Der Uhrzeitdialog soll kompakt am Feld bleiben und nicht optisch "wegdriften". */
.time-panel{min-width:330px;max-width:430px}
.time-panel__body{padding:16px}
.time-panel__field input{min-height:48px}
.time-panel__message:empty{display:none}

@media(max-width:760px){
  .smart-picker__manual{min-height:48px;padding-right:50px}
  .smart-picker__open{right:7px;width:38px;height:38px}
}

/* v1.28: eigener Stunden-/Minuten-Picker statt nativer Browser-Zeitauswahl */
.time-segment-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:7px;
}
.time-segment{
  position:relative;
  min-width:0;
}
.time-segment-button{
  width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #cedbd8;
  border-radius:12px;
  background:#f9fbfa;
  color:#172024;
  font:inherit;
  font-size:18px;
  font-weight:800;
  line-height:1;
  text-align:center;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.time-segment-button:hover,
.time-segment-button.is-open{
  border-color:#94c8bd;
  background:#fff;
}
.time-segment-button:focus-visible{
  outline:none;
  border-color:#007e68;
  box-shadow:0 0 0 3px rgba(0,126,104,.1);
  background:#fff;
}
.time-segment-button.is-placeholder{
  color:#879597;
  font-size:13px;
  font-weight:700;
}
.time-segment-colon{
  color:#5f7072;
  font-size:20px;
  font-weight:900;
}
.time-segment-menu{
  position:absolute;
  z-index:8;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:220px;
  overflow:auto;
  padding:6px;
  border:1px solid #d8e3e0;
  border-radius:12px;
  background:#fff;
  box-shadow:0 12px 30px rgba(23,32,36,.14);
}
.time-segment-menu[hidden]{display:none}
.time-segment-option{
  display:block;
  width:100%;
  min-height:34px;
  padding:6px 8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#243033;
  font:inherit;
  font-size:13px;
  font-weight:700;
  text-align:center;
  cursor:pointer;
}
.time-segment-option:hover,
.time-segment-option:focus-visible{
  outline:none;
  background:#eef6f3;
  color:#007e68;
}
.time-segment-option.is-selected{
  background:#007e68;
  color:#fff;
}
@media(max-width:760px){
  .time-segment-menu{max-height:190px}
  .time-segment-button{min-height:46px}
}

/* v1.29: Stunden-/Minutenlisten als echte Overlays, ohne den Hauptdialog zu vergroessern */
.time-segment-menu{
  position:fixed;
  z-index:3000;
  top:auto;
  left:auto;
  right:auto;
  width:86px;
  max-height:240px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.time-segment-menu[hidden]{display:none!important}
@media(max-width:760px){
  .time-segment-menu{
    z-index:3200;
    max-height:220px;
  }
}

/* v1.30: API-Verwaltung */
.api-access-card{margin-top:22px}
.api-key-created{margin:18px 0 22px;padding:16px 18px;border:1px solid #a9d9cd;border-radius:14px;background:#effaf6;display:grid;gap:8px}
.api-key-created>span{color:#55706a;font-size:13px}
.api-key-copy-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.api-key-copy-row code{flex:1 1 420px;min-width:0;padding:11px 12px;border-radius:10px;background:#fff;border:1px solid #cfe4de;overflow-wrap:anywhere}
.api-access-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:22px;margin-top:20px}
.api-create-form{display:grid;gap:17px}
.api-project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.api-project-choice{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #dce5e3;border-radius:11px;background:#f8faf9;font-weight:650}
.api-project-choice input{width:auto}
.api-create-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.api-create-actions .muted{font-size:12px}
.api-help-box{align-self:start;display:grid;gap:10px;padding:16px;border:1px solid #e0e7e5;border-radius:14px;background:#f7f9f8}
.api-help-box code{display:block;overflow-wrap:anywhere;padding:9px 10px;background:#fff;border:1px solid #e0e7e5;border-radius:9px;font-size:12px}
.api-help-box span{font-size:13px;line-height:1.45;color:#647174}
.api-key-list{display:grid;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #edf0ef}
.api-key-row{display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,1.3fr) minmax(220px,1fr) auto;gap:14px;align-items:center;padding:14px 15px;border:1px solid #e0e7e5;border-radius:13px;background:#fff}
.api-key-row.is-revoked{opacity:.62;background:#f7f8f8}
.api-key-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.api-key-main code{font-size:11px;color:#617073}
.api-key-main>span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#17624f;background:#e7f5ef;border-radius:999px;padding:4px 7px}
.api-key-row.is-revoked .api-key-main>span{color:#7a5555;background:#f4eaea}
.api-key-projects{display:flex;gap:6px;flex-wrap:wrap}
.api-key-projects span{font-size:12px;padding:5px 8px;border-radius:999px;background:#eef3f2;color:#405154}
.api-key-meta{display:grid;gap:3px;color:#7a888a;font-size:12px}
@media(max-width:980px){.api-access-grid{grid-template-columns:1fr}.api-key-row{grid-template-columns:1fr}.api-project-list{grid-template-columns:1fr}}

/* v1.31: Zugriffsmodi & Datenquellen-Sammlungen */
.access-mode-section{background:#fbfcfc}
.access-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.access-mode-choice{display:flex;align-items:flex-start;gap:11px;padding:15px 16px;border:1px solid #dce5e3;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.access-mode-choice:hover{border-color:#a8c9c2;background:#fcfefd}
.access-mode-choice:has(input:checked){border-color:#7fc4b5;box-shadow:0 0 0 3px rgba(0,126,104,.08);background:#f4fbf8}
.access-mode-choice input{width:auto;margin-top:3px}
.access-mode-choice>span{display:grid;gap:4px}
.access-mode-choice strong{color:#172024}
.access-mode-choice small{color:#687779;line-height:1.45}
.protected-storage-note{margin-top:12px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:10px 12px;border-radius:11px;background:#f0f5f4;color:#506164;font-size:12px}
.protected-storage-note strong{color:#21433d}
.protected-storage-note span{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.access-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.access-badge--public{background:#eaf6f2;color:#17624f}
.access-badge--protected{background:#eef1f6;color:#3b526d}
.data-sources-card{margin-top:22px}
.data-source-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:24px;margin-top:20px}
.source-create-form{display:grid;gap:17px}
.source-project-list .api-project-choice>span{display:grid;gap:2px}
.source-project-list .api-project-choice small{font-size:10px;color:#7a898b;font-weight:650}
.source-form-actions{display:flex;justify-content:flex-end;gap:9px;align-items:center}
.source-list{display:grid;gap:11px;align-content:start}
.source-row{display:grid;gap:10px;padding:15px 16px;border:1px solid #e0e7e5;border-radius:14px;background:#fff}
.source-row__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.source-row>code{display:block;padding:9px 10px;border:1px solid #e5eae9;border-radius:9px;background:#f8faf9;font-size:11px;overflow-wrap:anywhere}
.source-access{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.03em}
.source-access--public{background:#e7f5ef;color:#17624f}
.source-access--api{background:#eef1f6;color:#3b526d}
.source-project-chips{display:flex;gap:5px;flex-wrap:wrap}
.source-project-chips span{font-size:11px;padding:4px 7px;border-radius:999px;background:#eef3f2;color:#4f6062}
.source-row__actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
@media(max-width:980px){.data-source-grid,.access-mode-grid{grid-template-columns:1fr}}


/* ================================================================
   v1.33: Datensatztabelle nutzt die volle verfuegbare Bildschirmbreite.
   Auf grossen Ansichten werden lange Zellwerte und Tabellenkoepfe
   umgebrochen. Die Aktionszelle behaelt ihr normales Tabellenlayout,
   damit Aendern / Kopie / Loeschen sichtbar und bedienbar bleiben.
   Nur Projekt-Datensatztabellen, keine anderen Backend-Tabellen.
   ================================================================ */
.project-table-region {
  width: calc(100vw - 28px);
  max-width: none;
}

@media (min-width: 761px) {
  .project-table-region .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto; /* Nur Reserve bei extrem vielen Spalten. */
  }

  .project-table-region .data-table {
    width: 100%;
    min-width: 0; /* Ueberschreibt das alte 1120px-Minimum. */
    table-layout: fixed;
  }

  .project-table-region .data-table th,
  .project-table-region .data-table td {
    min-width: 0;
    padding: 12px 8px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .project-table-region .data-table th {
    font-size: 10px;
    letter-spacing: .035em;
    line-height: 1.35;
  }

  .project-table-region .data-table .row-drag-col,
  .project-table-region .data-table .row-drag-cell {
    width: 36px;
    min-width: 0;
    padding-left: 3px;
    padding-right: 3px;
  }

  .project-table-region .data-table .bulk-select-col,
  .project-table-region .data-table .bulk-select-cell {
    width: 38px;
    min-width: 0;
    padding-left: 5px;
    padding-right: 5px;
  }

  .project-table-region .data-table .actions-col,
  .project-table-region .data-table td.project-row-actions {
    width: 172px;
    min-width: 0;
  }

  /* Wichtig: Ein <td> darf auf Desktop nicht als display:flex
     gerendert werden. Sonst faellt die Aktionsspalte aus dem Raster. */
  .project-table-region .data-table td.project-row-actions {
    display: table-cell;
    padding: 8px 6px;
    vertical-align: middle;
    white-space: normal;
  }

  /* Die drei Aktionen duerfen innerhalb der Zelle umbrechen. */
  .project-table-region .project-row-actions > a,
  .project-table-region .project-row-actions > form {
    display: inline-flex;
    vertical-align: middle;
    margin: 2px 2px 2px 0;
    max-width: 100%;
  }

  .project-table-region .project-row-actions .project-action-button {
    min-height: 32px;
    padding: 6px 7px;
    gap: 4px;
    font-size: 10px;
  }

  /* Sortierpfeil bleibt sichtbar, auch wenn der Titel umbricht. */
  .project-table-region .table-sort-link {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    align-items: flex-start;
    line-height: 1.35;
  }

  .project-table-region .table-sort-link > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .project-table-region .table-sort-link > svg {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 1px;
  }
}

/* Mobil bleibt die bestehende Kartenansicht erhalten. */
@media (max-width: 760px) {
  .project-table-region {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
}

/* ================================================================
   v1.34: Gesamte Projektansicht seitenbreit und linksbuendig.
   Problem v1.33: Die Tabelle war breiter als .page (max. 1280px),
   begann deshalb erst am linken Rand des zentrierten Containers
   und fuehrte zu horizontalem Scrollen des gesamten Dokuments.
   :has() beschraenkt die Korrektur auf project.php, andere
   Backend-Seiten bleiben wie zuvor. Chrome / Safari / Firefox modern.
   ================================================================ */
.page:has(> .project-table-region) {
  width: calc(100% - 40px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.page:has(> .project-table-region) > .project-table-region {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  transform: none;
}

/* Lange Projektnamen und die oberen Aktionsbuttons koennen umbrechen,
   statt die Webseite rechts ueber das Browserfenster zu vergroessern. */
.page:has(> .project-table-region) > .page-head {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.page:has(> .project-table-region) > .page-head > div:first-child {
  min-width: 0;
}
.page:has(> .project-table-region) > .page-head h1 {
  overflow-wrap: anywhere;
}
.page:has(> .project-table-region) > .page-head .row-actions {
  max-width: 100%;
  flex-wrap: wrap;
}

/* Mittelgrosse Fenster: Such- und Filterfelder in zwei Zeilen
   anordnen, statt den Anwenden-Button rechts abzuschneiden. */
@media (min-width: 761px) and (max-width: 1250px) {
  .page:has(> .project-table-region) .project-list-controls {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .page:has(> .project-table-region) .list-control-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .page:has(> .project-table-region) .data-table td {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .page:has(> .project-table-region) {
    width: calc(100% - 24px);
  }
}
