:root{
  --navy:#024380; --navy-dunkel:#012c55; --lime:#9EC80E; --gruen:#4b7d0d; --gruen-dunkel:#355a08; --gruen-text:#3d6a08;
  --rot:#c0392b; --orange:#d98324; --orange-text:#9a5410; --grau:#f4f6f9; --rand:#dde3ea; --text:#1c2733; --leise:#4f5f70;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Lato",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--grau);color:var(--text);font-size:16px;line-height:1.45}
a{color:var(--navy)}

:root { --blue: var(--navy); --line: var(--rand); }
.mast { position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 8px rgba(1,44,85,.18); }
header { background: var(--navy); color: white; padding: 12px 16px; }
.headrow,.navrow,main { max-width: 1100px; margin: 0 auto; }
.headrow,.brand,.navrow,.userhead { display: flex; align-items: center; gap: 12px; }
.brand { text-decoration: none; color: white; font-size: 19px; font-weight: 700; }
.brand img { height: 46px; width: auto; background: white; border-radius: 8px; padding: 5px 8px; }
.account { margin-left: auto; display: grid; font-size: 14px; text-align: right; }
.account small { color: #dce6f2; }
header form { margin: 0; }
header button { background: transparent; border: 1px solid #ffffff99; padding: 5px 10px; border-radius: 7px; font-size: 13px; }
nav { background: var(--navy-dunkel); }
.navrow { flex-wrap: wrap; gap: 0; }
nav a { color: #dce6f2; text-decoration: none; padding: 11px 13px; font-size: 15px; white-space: nowrap; }
nav a:hover,nav a[aria-current] { background: white; color: var(--navy); }
nav a[aria-current] { font-weight: 700; }
main { padding: 16px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 900; margin: 4px 0; }
h2 { font-size: 20px; margin: 16px 0 10px; }
h3 { font-size: 17px; margin: 10px 0 8px; }
.userhead { flex-wrap: wrap; }
.tag { border-radius: 20px; background: #eaf1f9; color: var(--navy); padding: 2px 8px; font-size: 13px; font-weight: 700; }
.rights { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: 12px; }
dt { font-weight: 700; }
dd { margin: 0 0 .8rem; color: var(--leise); }
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:.85rem}.card,.panel,.search{border:1px solid var(--line);border-radius:12px;background:white;padding:1.2rem}.card{display:grid;align-content:start;gap:.55rem;text-decoration:none;color:var(--text)}.card:hover{border-color:var(--blue);box-shadow:0 4px 12px #133b4610}.card small,.meta,.card span{color:var(--leise)}.card strong{font-size:1.15rem}.panel,.search{margin:1rem 0}.auth{max-width:500px}.search{display:flex;align-items:end;gap:.8rem;flex-wrap:wrap}.search label{flex:1;min-width:125px;margin:0}.search label:first-child{flex:2;min-width:min(100%,220px)}label{display:block;font-weight:600;font-size:.9rem;margin:.75rem 0}input,textarea,select{display:block;width:100%;font:inherit;margin-top:.25rem;padding:.65rem;border:1px solid #b9c4d0;border-radius:6px;background:white;color:var(--text)}input[type=file]{font-size:.85rem}textarea{min-height:7rem;resize:vertical}button{border:0;border-radius:6px;background:var(--blue);color:white;font:inherit;font-weight:600;padding:.65rem 1rem;cursor:pointer}button:hover{background:var(--navy-dunkel)}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:1rem;margin:1rem 0}.copy{white-space:pre-wrap}.step{padding:.5rem 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:600;color:var(--blue);padding:.6rem 0}.notice{background:#eef7d9;padding:1rem;border-radius:6px}img,video,iframe{max-width:100%;border:0}video,iframe{width:100%;aspect-ratio:16/9}p,strong,.card{overflow-wrap:anywhere}:focus-visible{outline:3px solid #d98324;outline-offset:2px}[hidden]{display:none!important}fieldset{border:1px solid var(--line);border-radius:6px;margin:1rem 0;padding:.5rem 1rem}.tick{display:inline-flex;align-items:center;gap:.45rem;margin:.35rem .9rem .35rem 0}.tick input{width:auto;margin:0}

.notice { border: 2px solid var(--lime); color: var(--gruen-text); }
header button { background: transparent; border: 1px solid #ffffff99; }
@media(max-width:760px) {
  .mast { position: static; }
  .headrow { flex-wrap: wrap; }
  .navrow { gap: 0; }
  nav a { padding: 8px 10px; font-size: 14px; }
  .search label:first-child { flex-basis: 100%; }
  .rights { gap: 0; }
}
.addvideo { display:inline-block; background:var(--gruen); color:white; border-radius:8px; padding:10px 16px; font-weight:700; text-decoration:none; }
.addvideo:hover { background:var(--gruen-dunkel); }

body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.shell{flex:1 0 auto;width:100%;box-sizing:border-box}
footer{text-align:center;border-top:1px solid #dae6e4;padding:18px 12px;color:#42605e;font-size:.85rem}
.languages,.channels{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}
.languages{margin-left:auto}.languages a{color:inherit;padding:.35rem .55rem;border-radius:.45rem;font-size:.85rem}
.languages a[aria-current]{background:#e3f5ef;color:#15473b;text-decoration:none;font-weight:700}
.share{position:relative;max-width:100%;background:white;border:1px solid #cedfd9;border-radius:.65rem}
.share summary{padding:.55rem .85rem;font-weight:700;cursor:pointer}
.sharebox{padding:0 .9rem .9rem;max-width:27rem}.channels a{border:1px solid #91afa6;border-radius:.45rem;padding:.5rem .8rem}
.sharebox p{font-size:.9rem}.headrow{flex-wrap:wrap}
.mobile-nav { display: none; }
@media (max-width: 760px) {
  nav .navrow { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: white; min-height: 48px; list-style: none; }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav > summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .mobile-nav[open] > summary::after { transform: rotate(225deg); }
  .mobile-links { background: white; border-bottom: 1px solid var(--line); padding: 0 12px 10px; }
  .mobile-links section { padding-top: 10px; }
  .mobile-links h2 { margin: 0; padding: 4px 12px; color: var(--leise); font-size: .85rem; }
  .mobile-links a { display: flex; align-items: center; min-height: 44px; color: var(--navy); padding: 8px 12px; border-radius: 6px; white-space: normal; }
  .mobile-links a:hover, .mobile-links a[aria-current] { background: #edf3f8; }
}

.article-field { margin: 1rem 0; }
.article-tools { display: flex; flex-wrap: wrap; gap: .3rem; padding: .45rem; border: 1px solid #aabac7; background: #f1f5f8; border-radius: .5rem .5rem 0 0; }
.article-tools button { background: white; color: #183954; border: 1px solid #bdccd6; padding: .4rem .65rem; min-height: 36px; width: auto; border-radius: .3rem; }
.article-tools button:nth-child(4) { font-weight: bold; }
.article-tools button:nth-child(5) { font-style: italic; }
.article-content { line-height: 1.65; overflow-wrap: break-word; font-size: 1.02rem; }
.article-content p { margin: .55em 0; }
.article-content h2 { font-size: 1.45rem; font-weight: 700; margin: 1.4em 0 .5em; padding-bottom: .2em; border-bottom: 1px solid #c8d1da; }
.article-content h3 { font-size: 1.15rem; margin: 1.2em 0 .35em; }
.article-content h4 { font-size: 1rem; margin: 1em 0 .3em; }
.article-content > :first-child, .article-content > .toc + h2 { margin-top: 0; }
.article-content ul, .article-content ol { padding-inline-start: 1.8em; margin: .5em 0; }
.article-content li { margin: .2em 0; }
.article-content a { text-decoration: underline; }
.article-content blockquote { margin: 1em 0; padding: .4em 1em; border-left: 4px solid var(--lime); background: #f6f9ee; }
.article-content hr { border: 0; border-top: 1px solid var(--rand); margin: 1.5em 0; }
.article-content table { border-collapse: collapse; margin: 1em 0; background: #f8f9fa; color: var(--text); font-size: .95rem; }
.article-content th, .article-content td { border: 1px solid #a2a9b1; padding: .4em .65em; vertical-align: top; text-align: left; }
.article-content th { background: #e3e9f0; font-weight: 700; }
.article-content caption { font-weight: 700; padding: .4em; text-align: left; }
.article-content td p, .article-content th p { margin: 0; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; }
.table-wrap table { margin: 0; min-width: 60%; }
.article-figure { display: block; max-width: 100%; margin: 1.1em auto; padding: .35rem; border: 1px solid #c8d1da; border-radius: .4rem; background: #f8f9fa; color: var(--leise); text-decoration: none !important; width: fit-content; }
.article-figure img { display: block; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; }
.article-caption { display: block; font-size: .88rem; line-height: 1.4; padding: .4rem .2rem .1rem; }
td .article-figure, th .article-figure { margin: .3em 0; }
td .article-figure img, th .article-figure img { max-height: 220px; max-width: min(100%, 320px); width: auto; }
.article-content h2, .article-content h3 { scroll-margin-top: 8rem; }
.toc { display: inline-block; min-width: min(100%, 16rem); margin: 0 0 1rem; padding: .7rem 1.2rem .7rem .9rem; border: 1px solid #c8d1da; background: #f8f9fa; border-radius: .4rem; font-size: .95rem; }
.toc strong { display: block; margin-bottom: .2rem; }
.toc ol { margin: 0; padding-inline-start: 1.4em; }
.toc a, .toc a:hover { color: var(--navy); background: none; padding: 0; font-size: inherit; white-space: normal; font-weight: 400; }
.article-input { min-height: 11rem; padding: .8rem; background: white; color: #182b38; border: 1px solid #aabac7; border-top: 0; border-radius: 0 0 .5rem .5rem; white-space: pre-wrap; overflow-x: auto; }
.article-input table { white-space: normal; }
.article-input td, .article-input th { min-width: 4rem; }
.article-input img { display: block; max-width: 100%; height: auto; outline: 1px dashed #aabac7; }
.article-hint { font-size: .85rem; color: var(--leise); margin: .35rem 0 0; }
.import-report li { margin: .3rem 0; }
.import-report .warn { color: var(--orange-text); }
.import-report .bad { color: var(--rot); }
@media print { .mast, .toolbar, footer, details, .share { display: none !important; } .panel { border: 0; padding: 0; } }
.article-photo { display: block; max-width: 100%; height: auto; margin: 0 auto 1rem; }
.article-dialog { width: min(28rem, 94vw); max-height: 90vh; border: 1px solid #aabac7; border-radius: .65rem; }
.article-dialog::backdrop { background: #14283888; }
.article-field [hidden], .article-dialog [hidden] { display: none; }
