/*
 * Originalstil des alten MGB-Themes "white_and_black".
 * Die ergänzten Regeln für Einrichtung und Administration folgen demselben Stil.
 */

html { min-height: 100%; }

* { box-sizing: border-box; }

body {
  margin: 8px;
  background-color: #EEEEEE;
  color: #000000;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 12px;
}

a:link,
a:visited,
a:active {
  color: #123456;
  text-decoration: none;
}

a:hover { color: #AAAAAA; }

span,
label,
input,
button,
textarea,
select,
p,
li,
td,
th,
summary {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 12px;
}

.legacy-page {
  width: 800px;
  max-width: calc(100% - 16px);
  margin: 16px auto;
  text-align: center;
}

table { border-collapse: separate; }

table.border_main {
  width: 800px;
  max-width: 100%;
  border: 1px solid #AAAAAA;
  background: #FFFFFF;
}

td.border_main_title { background-color: #E20000; }
td.border_main_entries { background-color: #FFFFFF; text-align: center; }

span.title {
  color: #FFFFFF;
  font-family: "lucida console", verdana, arial, helvetica, sans-serif;
  font-size: 16px;
}

span.menu { font-size: 12px; }
span.copyright { color: #CFCFCF; font-size: 0; }
.legacy-admin-link { font-size: 10px; }
.legacy-menu { padding: 7px; line-height: 1.55; }
.legacy-subtitle { color: #000000; }
.legacy-content { padding-bottom: 7px; }
.legacy-count { padding: 2px 7px 5px; }
.gap { padding: 7px; }

table.errormessage {
  width: 100%;
  border: 0 solid #AAAAAA;
  font-size: 14px;
}

td.errormessage {
  padding: 12px;
  border: 0;
  background-color: #C70000;
}

span.errormessage { color: #FFFFFF; font-size: 14px; }
td.notice-success { background-color: #327A32; }
td.notice-warning { background-color: #936B00; }

.legacy-search {
  margin: 0 auto 7px;
  padding: 4px 7px;
  line-height: 25px;
}

.legacy-search .main_textbox { width: 250px; max-width: 45%; }

table.entry {
  width: 98%;
  margin: 0 auto 5px;
  border: 0 solid #000000;
  background-color: #FFFFFF;
}

td.entry_number {
  width: 5%;
  border: 0 solid #EEEEEE;
  text-align: left;
}

td.entry_name {
  width: 95%;
  border: 0 solid #EEEEEE;
  text-align: left;
}

td.entry_date {
  padding-right: 5px;
  padding-left: 5px;
  border: 0 solid #EEEEEE;
  text-align: right;
  white-space: nowrap;
}

td.entry_message {
  border: 1px solid #AAAAAA;
  background-color: #EEEEEE;
  text-align: left;
}

.entry_message_text {
  width: 100%;
  color: #000000;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

td.entry_info { border: 0 solid #EEEEEE; text-align: left; }

td.entry_comment {
  border: 1px solid #AAAAAA;
  color: #AAAAAA;
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
}

.entry_city { color: #000000; }
.entry-anchor { display: block; height: 0; }
.underline { text-decoration: underline; }

blockquote {
  margin: 6px;
  padding: 4px;
  border: 1px solid #AAAAAA;
  background-color: #AAAAAA;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 7px;
  font-weight: bold;
}

.pagination a,
.pagination span {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pagination .current { color: #000000; text-decoration: underline; }

table.signin {
  width: 800px;
  max-width: 100%;
  border: 0 solid #AAAAAA;
  background-color: #FFFFFF;
}

td.signin_l {
  width: 100px;
  padding: 3px;
  border: 1px solid #AAAAAA;
  text-align: left;
  vertical-align: top;
}

td.signin_m {
  width: 290px;
  padding: 3px;
  border: 1px solid #AAAAAA;
  text-align: center;
}

td.signin_r {
  width: 10px;
  padding: 3px;
  border: 1px solid #AAAAAA;
  text-align: center;
  vertical-align: top;
}

td.signin_overall {
  width: 100%;
  padding: 2px;
  border: 1px solid #AAAAAA;
  text-align: center;
}

input.main_textbox,
input.main_textbox_captcha,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select {
  max-width: 100%;
  padding: 2px;
  border: 1px solid #000000;
  border-radius: 0;
  background-color: #FFFFFF;
  color: #000000;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 12px;
}

input.main_textbox { width: 99%; }
input.main_textbox_captcha { width: 60px; }

textarea {
  width: 99%;
  height: 270px;
  padding: 2px;
  border: 1px solid #000000;
  border-radius: 0;
  background-color: #FFFFFF;
  color: #000000;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 12px;
  resize: vertical;
}

input.main_button,
.button,
button,
input[type="submit"],
input[type="button"] {
  min-height: 0;
  padding: 2px 6px;
  border: 1px solid #000000;
  border-radius: 0;
  background-color: #FFFFFF;
  color: #000000;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
}

input.main_button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #EEEEEE;
  color: #000000;
}

input:focus,
textarea:focus,
select:focus,
button:focus { outline: 1px dotted #000000; outline-offset: 1px; }

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 8px;
  z-index: 100;
  padding: 4px;
  border: 1px solid #000000;
  background: #FFFFFF;
}

.skip-link:focus { top: 8px; }

/* Einrichtung und Verwaltung in derselben zurückhaltenden Altoptik */
.page-shell,
.setup-card,
.form-card,
.login-card,
.admin-card,
.intro-panel,
.empty-state {
  width: 98%;
  max-width: 100%;
  margin: 7px auto;
  padding: 7px;
  border: 1px solid #AAAAAA;
  border-radius: 0;
  box-shadow: none;
  background: #FFFFFF;
  text-align: left;
}

h1,
h2,
h3 { margin: 3px 0 7px; font-family: verdana, arial, helvetica, sans-serif; }
h1 { font-size: 16px; }
h2 { font-size: 14px; }
h3 { font-size: 12px; }
p { margin: 4px 0 8px; }
.eyebrow { margin: 0; color: #555555; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.form-intro, .hint, .result-summary, .admin-preview { color: #666666; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.field { display: grid; gap: 3px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; }
.field textarea { height: 150px; }
.button-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.notice,
.error-list,
.setup-note {
  margin: 7px 0;
  padding: 7px;
  border: 1px solid #AAAAAA;
  border-radius: 0;
  background: #EEEEEE;
  text-align: left;
}

.error-list { color: #990000; border-color: #C70000; }
.notice-error { color: #990000; border-color: #C70000; }
.notice-success { color: #185C18; border-color: #327A32; }

.admin-topline,
.toolbar {
  width: 98%;
  margin: 7px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  text-align: left;
}

.admin-stats,
.stats {
  width: 98%;
  margin: 7px auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.stat { padding: 5px; border: 1px solid #AAAAAA; background: #EEEEEE; text-align: center; }
.stat strong { display: block; font-size: 14px; }
.stat span { color: #555555; font-size: 10px; }

.search-form { display: flex; gap: 3px; align-items: center; }
.search-form input { min-width: 230px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 3px; }
.filter-tabs a { padding: 2px 5px; border: 1px solid #AAAAAA; background: #FFFFFF; }
.filter-tabs a.active { border-color: #000000; background: #EEEEEE; font-weight: bold; }

details.admin-card { text-align: left; }
.admin-card summary { cursor: pointer; list-style: none; }
.admin-card summary::-webkit-details-marker { display: none; }
.admin-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; }
.admin-edit { margin-top: 7px; padding-top: 7px; border-top: 1px solid #AAAAAA; }
.admin-actions button { font-size: 11px; }
.status-dot { width: 9px; height: 9px; border: 1px solid #000000; background: #FFFFFF; }
.status-pending { background: #E6B500; }
.status-approved { background: #4B984B; }
.status-spam { background: #C70000; }

.code-output { width: 100%; height: 220px; font-family: monospace; font-size: 11px; }

@media (max-width: 820px) {
  body { margin: 4px; }
  .legacy-page { width: auto; max-width: calc(100% - 4px); margin: 8px auto; }
  td.entry_date { white-space: normal; }
  .admin-stats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .legacy-search .main_textbox { max-width: 100%; width: 100%; }
  .legacy-search label { display: block; }
  td.entry_name { width: auto; }
  td.entry_number { width: 1%; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .admin-summary { grid-template-columns: auto 1fr; }
  .admin-summary time { grid-column: 2; }
  .search-form { width: 100%; flex-wrap: wrap; }
  .search-form input { min-width: 0; width: 100%; }
}
