
:root{--navy:#102f46;--blue:#176d96;--orange:#e97816;--muted:#657b89;--line:#d8e4ea;--soft:#f3f7f9;--danger:#a33a32}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#17384d;background:#eef4f7}.editor-top{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:60}.editor-brand{font-weight:900;font-size:1.2rem;color:var(--navy)}.editor-brand span{color:var(--orange)}.editor-brand small{display:block;font-size:.68rem;color:var(--muted);margin-top:3px}.editor-actions{display:flex;gap:10px}.editor-actions a{text-decoration:none;padding:9px 11px;border-radius:9px;background:#eef5f8;color:var(--blue);font-weight:800;font-size:.8rem}.editor-layout{display:grid;grid-template-columns:minmax(380px,470px) 1fr;height:calc(100vh - 70px)}.editor-panel{background:#fff;border-right:1px solid var(--line);overflow:auto;padding-bottom:95px}.preview-panel{display:flex;flex-direction:column;min-width:0}.preview-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#f7fafc;border-bottom:1px solid var(--line)}.preview-head button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer}.preview-panel iframe{width:100%;height:100%;border:0;background:#fff}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:12px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:5}.tabs button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 8px;font-weight:800;color:#375c70;cursor:pointer}.tabs button.active{background:var(--blue);color:#fff;border-color:var(--blue)}.edit-section{display:none;padding:18px}.edit-section.active{display:block}.edit-section h2{margin:0 0 18px;color:var(--navy)}.edit-section h3{margin:22px 0 10px;color:var(--navy);font-size:1rem}label{display:block;font-size:.82rem;font-weight:800;color:#36576a;margin:11px 0}input,textarea{width:100%;margin-top:6px;border:1px solid #cbdbe3;border-radius:9px;padding:11px 12px;font:inherit;font-size:16px;background:#fff}textarea{min-height:105px;resize:vertical}.hint{font-size:.82rem;color:var(--muted);line-height:1.45}.banner-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.banner-option{margin:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#f7fafc}.banner-option input{display:none}.banner-option img{width:100%;aspect-ratio:16/8;object-fit:cover;display:block}.banner-option span{display:block;padding:8px;font-size:.75rem}.banner-option:has(input:checked){border-color:var(--blue)}.editor-card{border:1px solid var(--line);border-radius:12px;padding:13px;margin:12px 0;background:#fbfdfe}.add-card{border-style:dashed}.thumb{width:90px;height:70px;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block;margin-top:8px}.thumb.wide{width:160px}.check{display:flex;align-items:center;gap:8px}.check input{width:18px;height:18px;margin:0}.danger{color:var(--danger)}.gallery-edit-row{display:grid;grid-template-columns:90px 1fr;gap:12px;border:1px solid var(--line);border-radius:12px;padding:10px;margin:10px 0}.gallery-edit-row img{width:90px;height:80px;object-fit:cover;border-radius:8px}.savebar{position:fixed;left:0;bottom:0;width:470px;max-width:100%;background:#fff;border-top:1px solid var(--line);padding:10px 12px;z-index:20}.savebar button{width:100%;min-height:48px;border:0;border-radius:10px;background:var(--orange);color:#fff;font-weight:900;font-size:1rem;cursor:pointer}.savebar span{display:block;text-align:center;font-size:.72rem;color:var(--muted);margin-top:5px}.flash{padding:10px 16px;text-align:center;font-weight:800}.flash.ok{background:#e8f6ed;color:#216b3b}.error{background:#fff0ef;color:#8a342d;border:1px solid #e5b7b3;padding:10px}.login-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#edf5f8,#fff)}.login-card{width:min(460px,calc(100% - 26px));background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px}.logo{font-size:1.5rem;font-weight:900;color:var(--navy)}.logo span{color:var(--orange)}.login-card h1{color:var(--navy)}.login-card p{color:var(--muted)}.login-card button{width:100%;min-height:48px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:900;font-size:1rem}.login-card>a{display:block;margin-top:15px;color:var(--blue)}@media(max-width:900px){.editor-layout{display:block;height:auto}.preview-panel{display:none}.editor-panel{border-right:0;min-height:calc(100vh - 70px)}.savebar{width:100%}}

.flash.error{
  background:#fff0ef;
  color:#8a342d;
  border-bottom:1px solid #e5b7b3;
}
.editor-card{
  background:#fff;
}


/* V4 – Mehrfach-Upload für Referenzgalerie */
.multi-upload-note{
  margin-top:8px;
  padding:9px 11px;
  border-radius:9px;
  background:#eef6f9;
  color:#456b7c;
  font-size:.78rem;
  font-weight:800;
}
.gallery-edit-row{
  align-items:center;
}
.gallery-edit-row img{
  border:1px solid var(--line);
  background:#eef3f5;
}


/* V6 – ruhigere, leichtere Eingabemaske */
body{
  font-family:Arial,Helvetica,sans-serif;
  font-weight:400;
  color:#24495d;
}

.editor-brand{
  font-size:1.12rem;
  font-weight:750;
}
.editor-brand small{
  font-weight:500;
}

.tabs button{
  font-size:.88rem;
  font-weight:650;
  padding:10px 8px;
}

.edit-section h2{
  font-size:1.75rem;
  font-weight:650;
  letter-spacing:-.02em;
  margin-bottom:16px;
}
.edit-section h3{
  font-size:1rem;
  font-weight:650;
}

label{
  font-size:.82rem;
  font-weight:600;
  color:#3f6273;
}

input,
textarea{
  font-weight:400;
  color:#15384b;
}

.hint,
.multi-upload-note{
  font-weight:400;
  color:#67808d;
}

.savebar button{
  font-size:.98rem;
  font-weight:700;
}

.editor-actions a{
  font-weight:600;
}

.single-banner{
  display:grid;
  grid-template-columns:145px 1fr;
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fbfc;
}
.single-banner img{
  width:145px;
  height:86px;
  object-fit:cover;
  border-radius:9px;
  border:1px solid var(--line);
}
.single-banner strong,
.single-banner span{
  display:block;
}
.single-banner strong{
  font-size:.88rem;
  font-weight:650;
  color:var(--navy);
}
.single-banner span{
  margin-top:4px;
  font-size:.76rem;
  line-height:1.4;
  color:var(--muted);
}

.gallery-edit-row label{
  font-weight:550;
}

@media(max-width:600px){
  .edit-section h2{
    font-size:1.55rem;
  }
  .tabs button{
    font-size:.82rem;
  }
  .single-banner{
    grid-template-columns:110px 1fr;
  }
  .single-banner img{
    width:110px;
    height:70px;
  }
}


.service-editor-card h3{margin:0 0 10px;font-size:1rem;font-weight:650;color:var(--navy);}
.thumb-placeholder{display:flex;align-items:center;justify-content:center;min-height:110px;background:#f3f7f9;border:1px dashed #c8d5dc;color:#68818e;font-size:.82rem;border-radius:10px;}
.note-card{font-size:.86rem;color:#456b7c;background:#f7fbfd;}


/* V9 – Galerie-Batchupload */
.batch-upload-btn{
  width:100%;
  margin-top:10px;
  min-height:44px;
  border:0;
  border-radius:9px;
  background:var(--blue);
  color:#fff;
  font-weight:650;
  cursor:pointer;
}
.batch-upload-btn:disabled{opacity:.6;cursor:wait}
.batch-progress{margin-top:9px;font-size:.8rem;color:#456b7c;min-height:20px}
.gallery-edit-row img{
  object-fit:contain !important;
  background:#fff !important;
  padding:3px;
}


/* V11 – Startseitenbilder */
.home-image-editor-grid{display:grid;grid-template-columns:1fr;gap:10px}.home-image-editor{margin:0}.home-edit-preview{display:block;width:100%;max-width:230px;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid var(--line);margin:10px 0}.home-edit-placeholder{width:100%;max-width:230px;aspect-ratio:4/3;display:grid;place-items:center;border:1px dashed #c7d6dd;border-radius:10px;background:#f5f8f9;color:#7a909b;margin:10px 0}@media(min-width:430px){.home-image-editor-grid{grid-template-columns:repeat(3,1fr)}.home-image-editor-grid label{font-size:.75rem}}


/* V17 – reparierte Bannerbibliothek */
.banner-options-v17{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.banner-options-v17 .banner-option img{
  aspect-ratio:16/5;
  object-fit:cover;
}
.banner-options-v17 .banner-option span{
  font-weight:500;
}
@media(max-width:520px){
  .banner-options-v17{
    grid-template-columns:1fr;
  }
}


/* V18 – eigener Banner */
.custom-banner-upload{
  margin-top:18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdfe;
}
.custom-banner-upload h3{
  margin:0 0 10px;
}
.custom-banner-info{
  display:grid;
  gap:4px;
  padding:11px 12px;
  border-radius:10px;
  background:#eef6f9;
  margin-bottom:12px;
}
.custom-banner-info strong{
  font-size:.86rem;
  color:var(--navy);
}
.custom-banner-info span{
  font-size:.76rem;
  color:var(--muted);
}
.custom-banner-current{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:12px;
  align-items:center;
  margin:12px 0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}
.custom-banner-current img{
  width:150px;
  height:60px;
  object-fit:cover;
  border-radius:8px;
}
.custom-banner-current strong{
  font-size:.82rem;
}
.custom-banner-warning{
  margin-top:12px;
  padding:11px 12px;
  border-left:4px solid var(--orange);
  border-radius:8px;
  background:#fff8ed;
  color:#73562f;
  font-size:.76rem;
  line-height:1.45;
}
@media(max-width:520px){
  .custom-banner-current{
    grid-template-columns:1fr;
  }
  .custom-banner-current img{
    width:100%;
    height:auto;
    aspect-ratio:16/5;
  }
}
