/* wiki.diegaue.de – Wikipedia-artiger Stil */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.6; color: #202122; background: #f6f6f6;
}
#wrap { display: flex; align-items: flex-start; max-width: 1200px; margin: 0 auto; }

/* Sidebar */
#side {
  width: 190px; flex: 0 0 190px; padding: 16px 12px;
  background: #f6f6f6; border-right: 1px solid #e0e0e0; min-height: 100vh;
}
#logo {
  display: block; font-family: "Georgia", "Times New Roman", serif;
  font-size: 20px; font-weight: 700; color: #202122; text-decoration: none;
  line-height: 1.2; margin-bottom: 14px;
}
#search input {
  width: 100%; padding: 5px 7px; border: 1px solid #a2a9b1; border-radius: 2px;
  font-size: 13px; margin-bottom: 16px;
}
#side nav a {
  display: block; color: #3366cc; text-decoration: none;
  font-size: 13px; padding: 3px 0;
}
#side nav a:hover { text-decoration: underline; }

/* Content */
#content {
  flex: 1 1 auto; background: #fff; border: 1px solid #a7d7f9; border-top: 0;
  padding: 14px 22px 28px; min-height: 100vh;
}
#content h1 {
  font-family: "Georgia", "Times New Roman", serif; font-weight: 400;
  font-size: 27px; margin: 4px 0 2px; padding-bottom: 4px;
  border-bottom: 1px solid #a2a9b1;
}
.tagline { color: #54595d; font-size: 12px; margin: 0 0 14px; }
#content h2 {
  font-family: "Georgia", serif; font-weight: 400; font-size: 21px;
  margin: 22px 0 6px; padding-bottom: 3px; border-bottom: 1px solid #a2a9b1;
}
#content h3 { font-size: 17px; margin: 18px 0 4px; }

/* Reiter */
.tabs { margin: 8px 0 14px; border-bottom: 1px solid #a2a9b1; }
.tabs a {
  display: inline-block; padding: 5px 12px; margin-right: 2px;
  font-size: 13px; color: #3366cc; text-decoration: none;
  background: #f0f0f0; border: 1px solid #a2a9b1; border-bottom: 0;
  border-radius: 3px 3px 0 0; position: relative; top: 1px;
}
.tabs a.active { background: #fff; color: #202122; font-weight: 600; }
.tabs a:hover { text-decoration: underline; }

/* Links */
a.wl { color: #3366cc; text-decoration: none; }
a.wl:hover { text-decoration: underline; }
a.wl.new { color: #ba0000; }
a.ext { color: #3366cc; }
a.ext::after { content: " ↗"; font-size: 11px; color: #888; }

/* Links im Footer */
#foot a { color: #8e8e8e; text-decoration: none;}
#foot a:hover {text-decoration: underline;}
#foot a.new { color: #8e8e8e;}
#foot a::after { content: " ?"; font-size: 11px; color: #888;}

/* Artikel */
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 12px 24px; }
.article li { margin: 2px 0; }
.meta { color: #72777d; font-size: 12px; margin-top: 20px; }
.noart { background: #fef6e7; border: 1px solid #f0d38a; padding: 10px; border-radius: 3px; }

/* Listen (Alle Seiten / Suche / Änderungen) */
ul.list { columns: 2; margin: 8px 0; padding-left: 18px; }
ul.list li { margin: 2px 0; }
ul.changes { list-style: none; padding: 0; margin: 8px 0; }
ul.changes li { padding: 3px 0; border-bottom: 1px solid #eaecf0; font-size: 14px; }
ul.changes .meta { font-size: 12px; }

/* Editor */
.editform label { display: block; font-size: 12px; color: #54595d; margin: 10px 0 3px; }
.editform input[type=text], .editform input[type=password] {
  width: 100%; padding: 6px 8px; border: 1px solid #a2a9b1; border-radius: 2px; font-size: 14px;
}
.editform textarea {
  width: 100%; padding: 8px; border: 1px solid #a2a9b1; border-radius: 2px;
  font-family: "Consolas", "Courier New", monospace; font-size: 13px; line-height: 1.5;
}
.editform .hint { font-size: 12px; color: #72777d; background: #f8f9fa; padding: 6px 8px; border-radius: 3px; }
.editform .row { display: flex; gap: 12px; flex-wrap: wrap; }
.editform .row span { flex: 1 1 180px; }
.editform button {
  margin-top: 12px; padding: 7px 16px; background: #3366cc; color: #fff;
  border: 0; border-radius: 3px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.editform button:hover { background: #2a4b8d; }
.err { color: #b32424; font-weight: 700; }

/* Footer */
#foot {
  max-width: 1200px; margin: 0 auto; padding: 12px 22px; color: #72777d;
  font-size: 12px; border-top: 1px solid #e0e0e0;
}

/* Mobil */
@media (max-width: 720px) {
  #wrap { flex-direction: column; }
  #side { width: 100%; flex: none; min-height: 0; border-right: 0; border-bottom: 1px solid #e0e0e0; }
  #side nav { display: flex; flex-wrap: wrap; gap: 10px; }
  #content { border-top: 1px solid #a7d7f9; min-height: 0; }
  ul.list { columns: 1; }
}
