:root{--green:#33421f;--olive:#777e1d;--lime:#b1b32d;--yellow:#f6d924;--gold:#dda31d;--orange:#e57d17;--cream:#f4efe5;--line:#ddd0b7;--text:#1d2918}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--text);font-family:Arial,Helvetica,sans-serif}.top{height:96px;padding:0 6vw;background:var(--green);color:white;display:flex;align-items:center;justify-content:space-between}.brand{font:700 31px Georgia,serif}.sub{margin-top:4px;color:#d9dfc9}.top-actions{display:flex;gap:10px}.ghost,.avatar{border:1px solid #ffffff55;background:#ffffff10;color:white;border-radius:10px;padding:12px 17px;cursor:pointer}.avatar{background:var(--yellow);color:var(--green);font-weight:800}main{max-width:1220px;margin:auto;padding:58px 28px}.intro h1{font:700 42px Georgia,serif;color:var(--green);margin:0}.intro p{font-size:19px;color:#625e52}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;margin:34px 0 12px}.filters input,.filters select,.form input,.form select,.form textarea{width:100%;border:1px solid var(--line);background:#fffdf8;border-radius:10px;padding:14px;font:inherit}.result-count{color:#766d5f;margin:16px 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;border:1px solid #e2d8c5;border-radius:15px;overflow:hidden;cursor:pointer;box-shadow:0 5px 20px #33421f0b}.cover{height:155px;background:linear-gradient(135deg,var(--olive),var(--green))}.card:nth-child(3n+2) .cover{background:linear-gradient(135deg,var(--gold),var(--orange))}.card:nth-child(3n+3) .cover{background:linear-gradient(135deg,var(--lime),var(--olive))}.card-body{padding:20px}.meta{color:var(--olive);font-size:12px;font-weight:bold;text-transform:uppercase}.card h2{font-size:21px;color:var(--green)}.card p{line-height:1.5;color:#625e52}dialog{border:0;border-radius:18px;width:min(760px,92vw);padding:35px;box-shadow:0 25px 80px #0005}dialog::backdrop{background:#1b2c16aa}.wide{width:min(1120px,95vw);max-width:none}.x{position:absolute;right:16px;top:10px;border:0;background:none;font-size:30px;cursor:pointer}.admin-title{display:flex;justify-content:space-between;align-items:center}.admin-title small{color:var(--olive);font-weight:bold}.admin-title h2{font:700 32px Georgia,serif;color:var(--green);margin:5px 0}.prototype{background:#eee8db;border-radius:20px;padding:8px 12px}.tabs{display:flex;gap:8px;border-bottom:1px solid #e1d7c6;margin:20px 0}.tab{border:0;background:none;padding:13px 18px;font-weight:bold;cursor:pointer}.tab.active{color:var(--green);border-bottom:3px solid var(--green)}.hidden{display:none}.admin-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:25px}.section-head{display:flex;align-items:center;justify-content:space-between}.primary,.danger{border:0;border-radius:9px;padding:11px 15px;font-weight:bold;cursor:pointer}.primary{background:var(--green);color:white}.danger{background:#f4e3dc;color:#8c351d}.list{display:grid;gap:8px;max-height:520px;overflow:auto}.list-item{background:#faf7ef;border:1px solid #e2d7c3;border-radius:10px;padding:13px;cursor:pointer}.list-item strong{display:block;color:var(--green)}.list-item span{font-size:12px;color:#807564}.blocked{border-left:5px solid #a43d22}.form{display:grid;gap:13px;background:#f8f3e9;padding:20px;border-radius:13px}.form label{font-weight:bold;color:var(--green);display:grid;gap:6px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.check input{width:auto}.actions{display:flex;justify-content:space-between}.notice{font-size:12px;color:#7e7465;background:#fff9df;padding:10px;border-radius:8px}@media(max-width:850px){.filters,.cards,.admin-grid{grid-template-columns:1fr}.top{height:auto;padding:20px}.brand{font-size:25px}main{padding:35px 18px}}
.brand-wrap{display:flex;align-items:center;gap:18px}.aw-logo{display:flex;align-items:center;gap:9px}.aw-lines{font-size:44px;color:var(--gold);line-height:.6;transform:rotate(90deg)}.aw-words strong{display:block;font:700 25px/0.82 Georgia,serif}.brand-separator{height:45px;width:1px;background:#ffffff55}.brand-wrap .brand{font-size:25px}
.cover.has-image{background-size:cover!important;background-position:center!important}
.article-hero{width:100%;max-height:360px;object-fit:cover;border-radius:13px;margin:12px 0 22px}
.image-preview-wrap{position:relative;background:white;border:1px solid var(--line);padding:10px;border-radius:10px}.image-preview-wrap img{width:100%;max-height:220px;object-fit:cover;border-radius:7px}.small-danger{margin-top:8px;border:0;background:#f4e3dc;color:#8c351d;border-radius:7px;padding:8px 10px;cursor:pointer}

.article-content{font-size:17px;line-height:1.72;color:#34392f}.article-content h2{font:700 27px Georgia,serif;color:var(--green);margin:32px 0 12px}.article-content p{margin:0 0 18px}
.article-table-wrap{overflow-x:auto;margin:28px 0;border:1px solid #d9ceb8;border-radius:11px;background:white}
.article-table{border-collapse:collapse;width:100%;min-width:620px}.article-table th,.article-table td{border-right:1px solid #e0d6c5;border-bottom:1px solid #e0d6c5;padding:12px 14px;text-align:left;vertical-align:top}.article-table th{background:#33421f;color:white;font-weight:700}.article-table tr:last-child td{border-bottom:0}.article-table td:last-child,.article-table th:last-child{border-right:0}
.editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.editor-head>label{font-weight:bold;color:var(--green)}.block-buttons{display:flex;gap:6px;flex-wrap:wrap}.toolbtn{border:1px solid #cfc1a5;background:white;color:var(--green);border-radius:8px;padding:8px 10px;font-weight:bold;cursor:pointer}
.blocks{display:grid;gap:10px}.content-block{background:white;border:1px solid #d9cdb8;border-radius:10px;padding:10px}.block-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#80735e;font-size:12px}.block-top button{border:0;background:#f4e3dc;color:#8c351d;border-radius:6px;cursor:pointer;padding:5px 8px}.content-block textarea,.content-block input{width:100%;border:0;outline:0;font:inherit;padding:6px;background:white}.content-block textarea{min-height:100px;resize:vertical}.content-block.heading input{font:700 20px Georgia,serif;color:var(--green)}
.edit-table-wrap{overflow:auto}.edit-table{border-collapse:collapse;min-width:600px;width:100%}.edit-table td{border:1px solid #d9ceb8;padding:0}.edit-table input{min-width:120px;border:0;border-radius:0;padding:9px}.edit-table tr:first-child input{font-weight:bold;background:#f1f3e9}.table-tools{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}.table-tools button{border:1px solid #d5c8b0;background:#faf7ef;border-radius:6px;padding:6px 8px;cursor:pointer}
.table-dialog{width:min(540px,92vw)}.table-dialog h2{color:var(--green)}.table-help{color:#6d6659}.table-actions{margin-top:20px}
@media(max-width:700px){.editor-head{align-items:flex-start;flex-direction:column}}

.import-panel{margin:0 0 24px;padding:20px;border:1px solid #d9ceb8;border-radius:14px;background:#fbf8f1}.import-panel h3{margin:0 0 6px;color:var(--green)}.import-panel p{margin:0 0 14px;color:#706758}
.drop-zone{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px;border:2px dashed #a9aa75!important;border-radius:12px;background:#f4f4e8!important;cursor:pointer;color:var(--green)!important}.drop-zone input{display:none}.drop-zone span{font-weight:normal;color:#746e61}.drop-zone.drag{background:#e9edd9!important;border-color:var(--green)!important}
.import-status{margin-top:12px;padding:12px;border-radius:9px;background:#eef1df;color:var(--green)}.import-status.error{background:#f7e7e1;color:#8c351d}
.import-preview{margin-top:14px;border-top:1px solid #ded4c2;padding-top:14px}.import-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.import-items{display:grid;gap:8px;max-height:310px;overflow:auto}.import-item{display:grid;grid-template-columns:1fr 150px 110px;gap:8px;align-items:center;padding:10px;background:white;border:1px solid #e0d5c1;border-radius:9px}.import-item input,.import-item select{width:100%;border:1px solid #d8ccb5;border-radius:7px;padding:8px}.import-item small{display:block;color:#817766;margin-top:3px}.import-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
@media(max-width:760px){.import-item{grid-template-columns:1fr}.import-preview-head{align-items:flex-start;flex-direction:column}}

/* Echtes Acker-Wissen-Logo */
.real-logo{display:block;width:190px;height:auto;max-height:70px;object-fit:contain}

/* Größeres Lesefenster */
.reader-dialog{
  width:min(1180px,96vw);
  max-width:none;
  height:min(92vh,1000px);
  padding:0;
  overflow:hidden;
}
.reader-dialog .x{
  z-index:20;
  width:44px;height:44px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 12px #0002;
}
.article-scroll{
  height:100%;
  overflow-y:auto;
  padding:52px clamp(28px,6vw,90px) 90px;
  scroll-behavior:smooth;
}
#articleView{max-width:960px;margin:0 auto}
#articleView>h1{font:700 clamp(32px,4vw,48px) Georgia,serif;color:var(--green);line-height:1.08;margin:10px 0 20px}
#articleView>.article-content{max-width:900px}
.reader-dialog .article-hero{max-height:520px}

/* Nach-oben-Schaltfläche bleibt beim Lesen erreichbar */
.back-to-top{
  position:sticky;
  left:100%;
  bottom:18px;
  margin-top:32px;
  border:0;
  border-radius:24px;
  background:var(--green);
  color:white;
  padding:12px 16px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 5px 18px #0003;
}
.back-to-top:hover{transform:translateY(-1px)}
@media(max-width:650px){
  .real-logo{width:150px}.brand-separator,.brand-wrap .brand,.brand-wrap .sub{display:none}
  .reader-dialog{width:98vw;height:95vh}
  .article-scroll{padding:48px 18px 80px}
  .back-to-top span{display:none}
}

/* Kompakte Artikelliste ohne Bilder */
.article-list{display:block!important;margin-top:24px}
.issue-list{max-width:900px;margin:0 0 24px;padding:20px 22px;background:#fff;border:1px solid #ddd8cb;border-radius:4px;box-shadow:0 2px 5px #00000012}
.issue-list h2{display:inline-block;margin:0 0 10px;padding:4px 8px;background:#9dad35;color:#fff;font:700 20px/1.15 Arial,sans-serif}
.issue-links{display:flex;flex-direction:column;align-items:flex-start}
.article-row{display:flex;align-items:center;gap:8px;width:auto;max-width:100%;padding:4px 0;border:0;background:transparent;color:#696969;text-align:left;font:400 16px/1.25 Arial,sans-serif;cursor:pointer}
.article-row b{display:inline-grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border-radius:50%;background:#a7b93c;color:#fff;font-size:15px}
.article-row:hover span{color:#344c21;text-decoration:underline}.empty{padding:28px;background:#fff;border:1px solid #ddd8cb}
@media(max-width:650px){.issue-list{padding:16px}.issue-list h2{font-size:18px}.article-row{font-size:15px}}


/* Verbesserte Darstellung großer importierter Word-Tabellen */
.article-table-wrap{
  overflow:auto;
  max-height:72vh;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  position:relative;
}
.article-table{
  width:max-content;
  min-width:100%;
}
.article-table th,
.article-table td{
  min-width:120px;
  white-space:normal;
}
.article-table th{
  position:sticky;
  top:0;
  z-index:3;
}
.article-table th:first-child,
.article-table td:first-child{
  min-width:150px;
}
@media(max-width:700px){
  .article-table-wrap{max-height:65vh}
  .article-table th,.article-table td{min-width:105px;padding:9px 10px;font-size:14px}
}
