/* =========================================================
   VOTE4TUNING — BASE + NEWS (komplett bereinigt)
   Stand: 2025-10-04
   ========================================================= */


/* =========================================================
   1) GLOBAL / RESET
   ========================================================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f5f6;
  color: #333;
}

/* =========================================================
   2) GRUNDLAYOUT
   ========================================================= */
.layout {
  width: calc(100% - 400px);
  margin: 0 auto;
}

.layout-body {
  display: flex;
  gap: 20px;
}

.layout-content {
  flex: 1;
}

.layout-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* =========================================================
   3) HEADER
   ========================================================= */
.header {
  background-image: url("../images/header/header_background.png");
  background-repeat: no-repeat;
  background-position: center -125px; /* exakt gleiche Position überall */
  background-size: cover;
  color: #fff;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  /* Cross-Browser Kompatibilität */
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;

  /* Stabilität & Rendering-Konsistenz */
  background-attachment: scroll;      /* Safari-Fix */
  width: 100%;
  position: relative;

  /* iOS/Safari GPU-Fix (verhindert Verschiebung oder Ruckeln) */
  -webkit-transform: translate3d(0, 0, 0);
  will-change: background-position, transform;

  /* verhindert subpixel rounding differences */
  image-rendering: -webkit-optimize-contrast;
}

/* Header-Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-text {
  font-size: 16px;
  font-variant: all-small-caps;
  letter-spacing: 1px;
  color: #fff;
}

/* User-Links */
.header-user {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-variant: all-small-caps;
}

.header-user a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-variant: all-small-caps;
  font-weight: normal;
}

.header-user a:hover { text-decoration: underline; }
.header-user a + a { margin-left: 15px; }

.header-user .admin,
.header-user .mod {
  color: #900;
  font-weight: 500;
}

/* Postfach-Link hervorheben */
.header-user a.has-new {
  font-weight: bold !important;
  color: #fff !important;
}


/* =========================================================
   4) NAVIGATION
   ========================================================= */
.nav { background: #f5f5f6; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav li { margin: 0; }

.nav a {
  display: block;
  padding: 12px 18px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s, color 0.3s;
}

.nav a:hover {
  background: #e5e5e6;
  color: #333;
}

/* Suche im Menü */
.nav .nav-search { margin-left: auto; }

.nav .nav-search form {
  display: flex;
  align-items: center;
}

.nav .nav-search input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px 0 0 3px;
  outline: none;
  font-size: 13px;
}

.nav .nav-search button {
  background: #999;
  border: none;
  color: #fff;
  padding: 7px 12px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.nav .nav-search button:hover { background: #666; }


/* =========================================================
   5) SIDEBAR
   ========================================================= */
.sidebar-box { margin-bottom: 15px; }

.sidebar-title {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  margin: 0 0 8px;
  display: inline-block;
  border-bottom: 2px solid #ddd;
  padding-bottom: 2px;
}

/* Sidebar Buttonleiste */
.sidebar-btn {
  background: #2e3539;
  color: #fff;
  height: 30px;
  padding: 0 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  font-size: 13px;
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar-btn:hover { background: #999; }
.sidebar-btn i { margin-right: 8px; }

/* Sidebar Link-Stile */
.sidebar-box a {
  color: #999;
  text-decoration: none;
  font-size: 13px;
}
.sidebar-box a:hover {
  color: #333;
  text-decoration: underline;
}

/* Sidebar Content-Kacheln */
.extrabox-body {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
}

/* Stats / Balken */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stats-table td {
  padding: 3px 4px;
  vertical-align: top;
}
.stats-table td.value {
  text-align: right;
  font-weight: bold;
  color: #333;
}

.status-bar {
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  height: 10px;
  margin: 5px 0 10px;
}
.status-fill { background: #43a6df; height: 10px; }

.random-user { text-align: left; }
.random-user .avatar {
  display: block;
  width: 25s0px;
  height: 250px;
  border-radius: 50%;
  margin: 0 auto 5px;
}

/* =========================================================
   6) FULLBOX / JOINUS / EXTRA (Header + Body)
   ========================================================= */
.fullbox, .joinus-box, .extrabox { margin-bottom: 20px; }

.fullbox-header,
.joinus-header,
.extrabox-header {
  background: #2e3539;
  color: #fff;
  padding: 0 10px;
  text-transform: lowercase;
  font-size: 13px;
  height: 30px;
  display: flex;
  align-items: center;
}

.fullbox-body,
.joinus-body,
.extrabox-body {
  background: #fff;
  color: #333;
  padding: 10px;
  font-size: 13px;
}

.fullbox-body a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}
.fullbox-body a:hover { color: #2e3539; }


/* =========================================================
   7) FOOTER
   ========================================================= */
.footer {
  display: flex;
  margin-top: 20px;
}

.footer-main {
  background: #2e3539;
  color: #fff;
  flex: 1;
  padding: 20px;
  font-size: 13px;
  text-transform: lowercase;
}

.footer-main a {
  color: #fff;
  text-decoration: none;
  margin-right: 10px;
}
.footer-main a:hover { text-decoration: underline; }

.footer-social {
  width: 260px;
  background: #999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.footer-social-header {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}
.footer-social a:hover {
  background: #fff;
  color: #999;
}


/* =========================================================
   8) SYSTEM-MELDUNGEN (GLOBAL)
   ========================================================= */
.global-message {
  margin: 20px 0;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.global-message i { font-size: 16px; }

.global-message.error { background: #fbeaea; border: 1px solid #a00; color: #a00; }
.global-message.success { background: #e6f6ea; border: 1px solid #0a0; color: #0a0; }
.global-message.info { background: #eaf3fb; border: 1px solid #0077cc; color: #005a99; }
.global-message.empty { background: #f2f2f2; border: 1px solid #ccc; color: #666; font-style: italic; }


/* =========================================================
   9) BREADCRUMB / SUBNAVI
   ========================================================= */
/* Dunkle Variante (z.B. Foren/Module) */
.subnav.breadcrumb {
  background: #444;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 3px;
  margin-bottom: 15px;
}
.subnav.breadcrumb a,
.subnav.breadcrumb span {
  color: #fff;
  text-decoration: none;
  margin-right: 5px;
  font-size: 14px;
}
.subnav.breadcrumb a:hover { text-decoration: underline; }
.subnav.breadcrumb i.fa-angles-right {
  margin: 0 6px;
  color: #bbb;
  font-size: 12px;
}

/* Helle Variante (neutrale Seiten) */
.breadcrumb.light {
  background: #f5f5f6;
  color: #333;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 3px;
}
.breadcrumb.light a {
  color: #666;
  text-decoration: none;
  margin-right: 5px;
  transition: color 0.3s;
}
.breadcrumb.light a:hover { color: #2e3539; }
.breadcrumb.light i.fa-angles-right { color: #aaa; margin: 0 6px; }


/* =========================================================
   10) GENERISCHE CONTAINER (White Box + Section Title)
   ========================================================= */
.white-box {
  background: #fff;
  padding: 0px 20px;
  margin-bottom: 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin:20px 0px 0px 0px;
  display: inline-block;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
}


/* =========================================================
   11) NEWS — ÜBERSICHT (INDEX)
   ========================================================= */
.metro-wrapper {
  margin: 0 auto;
  padding: 0;
  display: flex;
}
.metro-content { flex: 1; }

/* Headerleiste */
.news-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* Kategorien / Blöcke */
.category-box {
  margin: 28px 0 25px 0;
  clear: both;
}
.maincat-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 5px;
}
.maincat-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

/* Tabelle */
.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 15px;
  table-layout: fixed;
}
.news-table th,
.news-table td {
  padding: 14px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.news-table th {
  background: #f9f9f9;
  font-weight: bold;
  font-size: 13px;
  text-align: left;
}
.news-table tbody tr:hover { background: #f7f7f7; }

/* Spaltenbreiten */
.col-title { width: 35%; }
.col-desc  { width: 45%; word-wrap: break-word; }
.col-meta  { width: 20%; text-align: center; }

/* Links & Meta */
.news-link { font-weight: bold; color: #333; text-decoration: none; }
.news-link:hover { text-decoration: underline; }

.news-desc { color: #555; text-decoration: none; }
.news-desc:hover { text-decoration: underline; }

.news-user { color: #555; text-decoration: none; }
.news-user:hover { color: #999; text-decoration: underline; }

.comments {
  font-size: 12px;
  color: #777;
  display: block;
  margin-top: 3px;
}
.comments a { color: #777; text-decoration: none; }
.comments a:hover { text-decoration: underline; }

.date { font-size: 11px; color: #999; }

.no-news {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 12px 0;
}

.news-archive {
  text-align: center;
  font-size: 13px;
  color: #444;
  padding-top:10px;
  padding-bottom:10px;
}
.news-archive a {
  font-weight: bold;
  color: #555;
  text-decoration: none;
}
.news-archive a:hover { color: #000; text-decoration: underline; }

.news-stats {
  font-size: 13px;
  color: #555;
  text-align: left;
  padding-bottom:20px;
}


/* =========================================================
   12) NEWS — DETAIL + KOMMENTARE
   ========================================================= */
/* Header + Title */
.news-detail-header { margin-bottom: 12px; }
.news-detail-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.news-detail-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin:20px 0px 0px 0px;
  display: inline-block;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
}
.news-detail-actions { display: flex; gap: 8px; align-items: center; }
.news-detail-actions a { color: #777; text-decoration: none; font-size: 14px; padding: 6px; }
.news-detail-actions a:hover { color: #000; }

/* Meta / Inhalt */
.news-detail-meta-line { margin-top: 8px; }
.news-detail-meta { font-size: 13px; color: #666; line-height: 1.5; }
.news-detail-user { display:inline; font-weight: bold; color: #555; text-decoration: none; }
.news-detail-user:hover { color: #999; }
.news-detail-updated { display: block; margin-top: 2px; color: #888; font-size: 12px; }

.news-detail-content { padding: 12px 0 6px 0; font-size: 15px; color: #333; }
.news-detail-text { line-height: 1.6; }
.news-detail-separator { border: 0; border-top: 1px solid #ddd; margin: 20px 0; }

/* Kommentar-Liste */
.news-detail-comments { margin-top: 20px; }
.news-detail-comments-title {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid #ddd;
  display: inline-block;
}

/* Einzel-Kommentar */
.news-detail-comment {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 12px 0;
  gap: 12px;
}
.news-detail-comment-user {
  width: 22%;
  text-align: center;
  font-size: 13px;
  color: #555;
}
.news-detail-comment-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.news-detail-comment-username a {
  color: #555;
  text-decoration: none;
  font-weight: bold;
}
.news-detail-comment-username a:hover { color: #999; }

.news-detail-comment-content {
  width: 78%;
  padding-left: 6px;
  font-size: 14px;
  color: #333;
}
.news-detail-comment-meta { font-size: 12px; color: #777; margin-bottom: 8px; }
.news-detail-comment-text { margin-bottom: 10px; line-height: 1.6; white-space: pre-line; }
.news-detail-comment-signature {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed #ddd;
  font-size: 12px;
  color: #666;
}

.news-detail-comment-actions {
  margin-top: 8px;
  font-size: 13px;
  text-align: right;
}
.news-detail-comment-actions a { color: #777; margin-left: 10px; text-decoration: none; }
.news-detail-comment-actions a:hover { text-decoration: underline; }

/* Antwortformular */
.news-detail-reply textarea {
  width: 98%;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  resize: vertical;
}
.news-detail-reply button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 3px;
  background: #444;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
}
.news-detail-reply button:hover { background: #666; }

/* Pagination */
.news-detail-pagination { margin: 14px 0; text-align: center; }
.news-detail-pagination a {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 9px;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #555;
  text-decoration: none;
}
.news-detail-pagination a.active { background: #444; color: #fff; border-color: #444; }
.news-detail-pagination a:hover { background: #f2f2f2; }

/* Footerzeilen */
.news-detail-footer { margin-top: 14px; font-size: 12px; color: #666; }
.news-detail-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.no-comments { font-style: italic; color: #999; padding: 12px 0; }
.login-hint a { font-weight: bold; color: #555; text-decoration: none; }
.login-hint a:hover { color: #000; }


/* =========================================================
   13) KOMMENTAR BEARBEITEN (EDIT)
   ========================================================= */
.news-detail-edit { padding: 20px; }

.comment-edit-box {
  padding: 20px 10px;
}
.comment-edit-box .section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
  margin: 0 0 20px 15px;
}

.comment-edit-form textarea {
  min-width: 94%;
  margin: 0 20px;
  min-height: 120px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  resize: vertical;
  display: block;
}

.comment-edit-actions {
  margin-top: 15px;
  margin-left: 20px;
  display: flex;
  gap: 10px;
}

.btn-save,
.reply-submit-link {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 3px;
  background: #444;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn-save:hover,
.reply-submit-link:hover { background: #666; }

.btn-cancel,
.reply-submit-link.cancel {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 3px;
  background: #888;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn-cancel:hover,
.reply-submit-link.cancel:hover { background: #aaa; }

.comment-edit-box p a {
  color: #444;
  text-decoration: none;
  font-size: 14px;
}
.comment-edit-box p a:hover { text-decoration: underline; }


/* =========================================================
   14) NEWS EDIT-FORMULAR (TITEL + TEXT)
   ========================================================= */
.news-edit-form input.edit-title-input {
  width: 98%;
  display: block;
  margin: 20px auto 15px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.news-edit-form textarea {
  width: 98%;
  display: block;
  margin: 0 auto 15px;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  resize: vertical;
}

.form-actions-left {
  margin-top: 10px;
  text-align: left;
}
.form-actions-left .reply-submit-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 3px;
  background: #444;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  margin-right: 8px;
}
.form-actions-left .reply-submit-link:hover { background: #666; }
.form-actions-left .reply-submit-link.cancel { background: #888; }
.form-actions-left .reply-submit-link.cancel:hover { background: #aaa; }


/* =========================================================
   15) COMMENT REPORT (MELDEN)
   ========================================================= */
.comments-box { padding: 20px; }
.comments-box .section-title {
  font-size: 18px;
  font-weight: bold;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
  margin: 0 0 20px 10px;
}

.comment-entry {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  margin: 0 10px 15px 10px;
}
.comment-entry .comment-user {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}
.comment-entry .comment-body {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Formular (melden) */
.comment-form textarea {
  width: calc(100% - 20px);
  max-width: 700px;
  display: block;
  margin: 0 auto 15px;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 3px;
  resize: vertical;
}
.comment-form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-left: 10px;
}
.comment-report-link,
.comment-cancel-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.comment-report-link { background: #c33; color: #fff; }
.comment-report-link:hover { background: #a00; }
.comment-cancel-link { background: #888; color: #fff; }
.comment-cancel-link:hover { background: #aaa; }

.comment-back-link {
  display: inline-block;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}
.comment-back-link:hover { color: #000; text-decoration: underline; }


/* =========================================================
   16) LOGIN / REGISTER
   ========================================================= */
.login-box {
  background: #fff;
  padding: 0 20px 20px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.login-box .section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin-bottom: 15px;
  display: inline-block;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
}

/* Formular-Grundraster */
.login-form .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.login-form .form-row label {
  width: 180px;
  font-size: 14px;
  color: #333;
}

/* Inputs (einheitlich) */
.login-form .form-row input[type="text"],
.login-form .form-row input[type="password"],
.login-form .form-row input[type="email"],
.login-form .form-row input[type="number"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

/* Checkbox-Zeile */
.login-form .checkbox-row label {
  width: auto;
  font-weight: normal;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Primärbutton */
.login-form .btn-primary {
  padding: 9px 16px;
  background: #2e3539;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.login-form .btn-primary:hover { background: #666; }

/* Trenner + Links */
.section-line { border-top: 1px solid #ddd; margin: 20px 0 15px; }

.login-links { font-size: 13px; text-align: left; }
.login-links p { margin: 6px 0; }
.login-links a { color: #555; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }


/* =========================================================
   17) KONTAKT-FORMULAR (News-Stil)
   ========================================================= */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.kontakt-form label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.kontakt-form small {
  font-weight: normal;
  font-size: 13px;
  color: #666;
  margin-left: 5px;
}
.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Zahlenfeld ohne Spinner */
.kontakt-form input[type="number"] { -moz-appearance: textfield; }
.kontakt-form input::-webkit-inner-spin-button,
.kontakt-form input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.kontakt-form textarea { resize: vertical; }

.kontakt-actions { text-align: right; margin-top: 10px; }

.kontakt-submit {
  display: inline-block;
  font-size: 14px;
  background: #2e3539;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.kontakt-submit i { margin-right: 6px; }
.kontakt-submit:hover { background: #666; }


/* =========================================================
   18) INHALTSSEITEN: DATENSCHUTZ / IMPRESSUM / FAQ / AGB
   (einheitliche 2-Spalten-Layouts + Typografie)
   ========================================================= */

/* Gemeinsame Grids */
.datenschutz-grid,
.impressum-grid,
.agb-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 900px) {
  .datenschutz-grid,
  .impressum-grid,
  .agb-grid,
  .faq-grid { grid-template-columns: 1fr; }
}

/* Überschriften links/rechts */
.datenschutz-left h2, .datenschutz-right h2,
.impressum-left h2, .impressum-right h2,
.agb-left h2, .agb-right h2,
.faq-left h2, .faq-right h2 {
  font-size: 16px;
  margin: 8px 0;
  color: #222;
}

/* Fließtext */
.datenschutz-left p, .datenschutz-right p,
.impressum-left p, .impressum-right p,
.agb-left p, .agb-right p,
.faq-left p, .faq-right p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* Listen (AGB / Impressum) */
.agb-left ul, .agb-right ul {
  margin: 0 0 10px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.impressum-right ul {
  margin: 0 0 10px 18px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Links */
.datenschutz-left a, .datenschutz-right a,
.impressum-left a, .impressum-right a,
.agb-left a, .agb-right a,
.faq-left a, .faq-right a {
  color: #555;
  text-decoration: none;
}
.datenschutz-left a:hover, .datenschutz-right a:hover,
.impressum-left a:hover, .impressum-right a:hover,
.agb-left a:hover, .agb-right a:hover,
.faq-left a:hover, .faq-right a:hover {
  color: #999;
  text-decoration: underline;
}

/* Footer-Hinweise */
.datenschutz-footer.small,
.impressum-footer.small,
.agb-footer.small,
.faq-footer.small {
  font-size: 12px;
  color: #777;
  margin-top: 15px;
}

/* === Grundlayout === */
.metro-wrapper {
  margin: 0 auto;
  padding: 0 0px;
}


/* Gelöschte Beiträge nur Hinweis */
.post-text-deleted {
  font-style: italic;
  color: #999;
  padding: 10px 0;
}
.post-entry .post-user:empty {
  display: none; /* wenn keine Userinfo, Spalte bleibt leer */
}
.post-entry .post-content {
  min-height: unset; /* keine fixe Mindesthöhe für gelöschte */
}

.metro-content {
  width: 100%;
  margin: 0 auto;
}

.white-box {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
}

/* === Überschrift + Aktionen === */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}
.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin: 0;
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid #ddd; /* nur so breit wie Text */
}
.forum-actions {
  font-size: 12px;
  text-align: right;
}
.forum-actions a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 4px;
}
.forum-actions a:hover {
  color: #999;
  text-decoration: underline;
}

/* === Hauptkategorie Box === */
.category-box {
  margin-bottom: 25px;
  clear: both;
}
.maincat-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 5px;
}
.maincat-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

/* === Tabelle === */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.forum-table th,
.forum-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.forum-table th {
  background: #f9f9f9;
  font-weight: bold;
  color: #444;
  font-size: 13px;
  text-align: left;
}
.forum-table tbody tr:hover {
  background: #f7f7f7;
}

/* === Spaltenbreiten für Categories & Topics === */
.forum-table .col-icon {
  width: 10%;             /* feste Breite für Status-Icon */
  text-align: center;
  color: #666;
}
.forum-table .col-icon i {
  font-size: 18px;
}

.forum-table .col-title {
  width: 30%;              /* fixe Breite */
  min-width: 300px;
}
.forum-table .col-title a {
  color: #444;
  font-weight: bold;
  text-decoration: none;
}
.forum-table .col-title a:hover {
  color: #999;
  text-decoration: underline;
}

.forum-table .col-desc {
  width: 30%;
  font-size: 13px;
  color: #666;
}

.forum-table .col-user {
  width: 15%;
  font-size: 12px;
  color: #555;
}
.forum-table .col-user a {
  font-weight: bold;
  color: #444;
  text-decoration: none;
}
.forum-table .col-user a:hover {
  color: #999;
}
.forum-table .col-user small {
  color: #888;
}

.forum-table .col-topics,
.forum-table .col-posts,
.forum-table .col-replies,
.forum-table .col-views {
  width: 8%;
  text-align: center;
  font-size: 13px;
  color: #444;
}

.forum-table .col-lastpost {
  width: 20%;
  font-size: 12px;
  color: #666;
}
.forum-table .col-lastpost a {
  font-weight: normal;
  color: #555;
}
.forum-table .col-lastpost a:hover {
  color: #999;
}

/* === Footer === */
.forum-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
}
.forum-stats {
  text-align: left;
}
.forum-time {
  text-align: right;
}

/* === Icons-Legende === */
.forum-legend-inline {
  margin: 20px 0;
  font-size: 12px;
  color: #555;
}
.forum-legend-inline span {
  margin-right: 20px;
}
.forum-legend-inline i {
  margin-right: 4px;
  font-size: 14px;
  color: #666;
}

 
/* === Mitgliederliste — Finaler Original-Stil === */

.members-box {
  padding-bottom: 20px;
}

/* Sortier-Links */
.members-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: -5px;
}

.members-actions a {
  color: #666;
  text-decoration: none;
  font-size: 12px;       /* kleiner */
  font-weight: 400;      /* leicht */
  line-height: 1.3;
}
.members-actions a:hover {
  color: #000;
  text-decoration: underline;
}

/* Beschreibung */
.members-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
 margin-top:30px;
 margin-bottom:-18px;
}

/* Tabelle */
.members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.members-table th,
.members-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left; /* Standard links */
}
.members-table th {
  background: #f9f9f9;
  font-weight: bold;
  color: #333;
}

.members-table .col-online {
  text-align: center; /* Online mittig */
}

/* Username */
.member-username {
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.member-username:hover {
  color: #000;
  text-decoration: underline;
}

/* Online/Offline Icons */
.icon-online  { color: #28a745; vertical-align: middle; }
.icon-offline { color: #dc3545; vertical-align: middle; }

/* Pagination */
.members-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 14px;
  padding-bottom: 20px;
}

.members-footer a {
  color: #555;
  text-decoration: none;
  margin: 0 2px;
}
.members-footer a:hover {
  color: #000;
  text-decoration: underline;
}
.members-footer a.active {
  font-weight: bold;
  text-decoration: underline;
}

 


.deleted-avatar,
.deleted-username,
.deleted-count {
  visibility: hidden; /* nimmt Platz ein, aber unsichtbar */
  height: 0;
}

.post-deleted {
  padding: 25px;
  text-align: left;
  color: #777;
  font-style: italic;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 5px;
  margin: 10px 0;
}

 
.forum-footer { 
  margin-top: 25px;
  font-size: 12px;
  color: #666;
  border-top: none;          /* sicherheitshalber */
  display: block !important; /* überschreibt evtl. alte 'display:flex' regeln */
}

/* Jede Zeile ist ein eigener Flex-Row-Container (2 Zeilen insgesamt) */
.forum-footer .forum-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

/* Zeile 1: links/rechts */
.forum-footer .forum-stats { text-align: left; }
.forum-footer .forum-time  { text-align: right; }

/* Zeile 2: links/rechts */
.forum-footer .forum-legend-inline { text-align: left; }
.forum-footer .forum-legend-inline span { margin-right: 15px; }
.forum-footer .forum-legend-inline i { margin-right: 4px; font-size: 14px; color: #666; }

.forum-footer .forum-newtopic-link { text-align: right; }
.forum-footer .forum-newtopic-link a {
  color: #555;
  text-decoration: none;
}
.forum-footer .forum-newtopic-link a:hover {
  color: #999;
  text-decoration: underline;
}

/* === Post Layout === */
.post-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.post-user {
  text-align: center;
  font-size: 13px;
  color: #555;
}
.post-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.post-username a {
  font-weight: bold;
  color: #444;
  text-decoration: none;
}
.post-username a:hover { color: #999; }
.post-count { font-size: 12px; color: #777; margin-top: 4px; }

.post-content { font-size: 14px; color: #333; }
.post-meta { font-size: 12px; color: #888; margin-bottom: 6px; }
.post-text { margin-bottom: 10px; line-height: 1.5; }
.post-signature {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 6px;
}
.post-actions { margin-top: 8px; font-size: 12px; }
.post-actions a {
  margin-right: 12px;
  color: #555;
  text-decoration: none;
}
.post-actions a:hover { color: #999; }
.post-actions a.delete { color: #a00; }
.post-actions a.delete:hover { color: #d00; }

/* === Antwort-Box === */
.post-reply {
  margin-top: 20px;
}
.post-reply textarea {
  width: calc(100% - 20px);
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  resize: vertical;
  margin-bottom: 10px;
}
.reply-submit-link {
  display: inline-block;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 14px;
  color: #555;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.reply-submit-link:hover {
  background: #e9e9e9;
  border-color: #999;
  color: #333;
}

/* === Post Layout === */
.post-entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.post-user {
  text-align: center;
  font-size: 13px;
  color: #555;
}
.post-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.post-username a {
  font-weight: bold;
  color: #444;
  text-decoration: none;
}
.post-username a:hover { color: #999; }
.post-count { font-size: 12px; color: #777; margin-top: 4px; }

.post-content {
  font-size: 14px;
  color: #333;
  min-height: 150px; /* sorgt für einheitliche Höhe */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.post-meta i {
  margin-left: 4px;
  color: #aaa;
}
.post-text {
  margin-bottom: 10px;
  line-height: 1.5;
  flex-grow: 1;
}
.post-signature {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

/* Aktionen unter jedem Post */
.post-actions {
  margin-top: 8px;
  font-size: 13px;
  text-align: right;
}
.post-actions a {
  margin-left: 10px;
  color: #555;
  text-decoration: none;
}
.post-actions a:hover { color: #999; }
.post-actions a.delete { color: #a00; }
.post-actions a.delete:hover { color: #d00; }

/* Antwort-Box */
.post-reply {
  margin-top: 20px;
}
.post-reply textarea {
  width: calc(100% - 20px);
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  resize: vertical;
  margin-bottom: 10px;
}
.reply-submit-link {
  display: inline-block;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 14px;
  color: #555;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.reply-submit-link:hover {
  background: #e9e9e9;
  border-color: #999;
  color: #333;
}

/* Neues Thema Formular */
.newtopic-form {
  margin-top: 15px;
}
.newtopic-form .form-group {
  margin-bottom: 15px;
}
.newtopic-form label {
  font-size: 13px;
  font-weight: bold;
  color: #444;
  display: block;
  margin-bottom: 5px;
}
.newtopic-form input[type="text"],
.newtopic-form textarea {
  width: calc(100% - 20px);
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  resize: vertical;
}
.newtopic-form input[type="text"]:focus,
.newtopic-form textarea:focus {
  border-color: #999;
  outline: none;
}
.newtopic-form .form-actions {
  margin-top: 10px;
}

/* Formular Beitrag bearbeiten */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  font-size: 13px;
  font-weight: bold;
  color: #444;
  display: block;
  margin-bottom: 5px;
}
.form-group textarea {
  width: calc(100% - 20px);
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  resize: vertical;
}
.form-actions {
  margin-top: 10px;
}

/* === Zitate === */
.quote {
  border-left: 3px solid #ccc;
  background: #f9f9f9;
  padding: 8px 10px;
  margin: 8px 0;
  font-size: 13px;
  color: #444;
}
.quote-author {
  font-weight: bold;
  margin-bottom: 4px;
  color: #666;
}
.quote-text {
  white-space: pre-wrap;
}


/* === Grundlayout === */
.metro-wrapper { margin: 0 auto; }
.metro-content { width: 100%; margin: 0 auto; }
.white-box { background: #fff; padding: 15px; margin-bottom: 20px; }

.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  border-bottom: 2px solid #ddd;
  padding-bottom: 3px;
  margin: 0 0 15px;
}

/* === Profil-Layout === */
.profile-top-two {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.profile-pic { max-width: 100%; border-radius: 4px; }

/* === Mid: Optionen / Wohnung / Garage / Statistik === */
.profile-mid-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-mid-grid .left-col { display: flex; flex-direction: column; gap: 8px; }
.profile-mid-grid .right-col { display: block; }

/* === Kategorien === */
.category-box { margin-bottom: 20px; }
.maincat-title { font-size: 16px; font-weight: bold; color: #333; margin: 0 0 5px; }
.maincat-desc { font-size: 13px; color: #666; margin: 0 0 10px; }
.maincat-text { font-size: 11px; line-height: 1.4; color: #444; }
.fullwidth { grid-column: 1 / -1; }

/* === Optionen === */
.profile-options a {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  text-decoration: none;
  color: #444;
}
.profile-options a:hover { color: #000; text-decoration: underline; }

/* === Tabelle === */
.profile-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.profile-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.profile-table td:first-child { font-weight: bold; width: 200px; }
.profile-subline { font-size: 12px; color: #666; margin-left: 5px; }

/* === Garage Mini-Tabelle === */
.garage-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
}
.garage-mini-table th {
  text-align: left;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}
.garage-mini-table td {
  border-bottom: 1px solid #eee;
  padding: 5px 0;
  color: #444;
}
.garage-mini-table a { color: #222; font-weight: 600; text-decoration: none; }
.garage-mini-table a:hover { text-decoration: underline; }

.garage-links-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
}

/* === Freunde === */
.profile-friends-inline { font-size: 14px; color: #333; }
.friend-item { display: inline-block; margin-right: 4px; }
.friend-username { font-weight: bold; color: #333; text-decoration: none; }
.friend-username:hover { text-decoration: underline; }

.icon-online { color: #28a745; }
.icon-offline { color: #dc3545; }
.icon-online.small, .icon-offline.small {
  font-size: 10px;
  margin-left: 3px;
}

/* === Gästebuch === */
.gb-entry {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.gb-entry .post-user { width: 100px; text-align: center; }
.gb-entry .post-avatar img {
  width: 70px; height: 70px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.gb-entry .post-content { flex: 1; display: flex; flex-direction: column; }
.gb-entry .post-meta { font-size: 12px; color: #555; margin-bottom: 5px; }
.gb-entry .post-text { flex-grow: 1; font-size: 14px; margin-bottom: 6px; }
.gb-entry .post-signature { border-top: 1px solid #eee; font-size: 12px; color: #777; }

.gb-points.positive { color: #090; font-weight: bold; }
.gb-points.negative { color: #c00; font-weight: bold; }
.gb-points.none { color: #888; font-style: italic; }

.gb-pagination { font-size: 13px; text-align: right; margin: 8px 0; }
.gb-pagination a { color: #555; text-decoration: none; margin: 0 3px; }
.gb-pagination a.active { font-weight: bold; }

.guestbook-input-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  margin-top: 10px;
}
.input-textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px;
  resize: vertical;
}

.smiley-list i { font-size: 20px; margin-right: 8px; color: #666; cursor: pointer; }
.smiley-list i:hover { color: #000; }

.gb-actions { text-align: right; margin-top: 10px; }
.btn {
  padding: 6px 12px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #555;
}
.btn:hover { background: #e9e9e9; border-color: #999; color: #000; }

.white-box {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
}
.postfach-body a {
  color: #555;
}
.postfach-body a:hover {
  color: #999;
}
.postfach-body strong {
  font-weight: bold;
}
.postfach-body img {
  max-width: 100%;
  border-radius: 3px;
}

/* === Header === */
.postfach-header {
  margin-bottom: 10px;
}
.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #444;
  margin: 0;
  display: inline-block;      /* Strich nur so breit wie Text */
  padding-bottom: 3px;
  border-bottom: 2px solid #ddd;
}

/* === Navigation horizontal === */
.postfach-nav-inline {
  display: flex;
  gap: 20px;
  margin: 12px 0 15px;
}
.postfach-nav-inline a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.postfach-nav-inline a:hover { color: #999; text-decoration: underline; }
.postfach-nav-inline a.active { font-weight: bold; color: #333; }

/* === Stats-Box === */
.postfach-statsbox {
  margin-bottom: 18px;
}
.postfach-stats-text {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}
.postfach-progress {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 12px;
  overflow: hidden;
}
.postfach-progress-bar {
  background: #999;
  height: 100%;
}

/* === Untertitel === */
.postfach-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

/* === Nachrichtenliste === */
.postfach-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.postfach-table th,
.postfach-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

/* Kopfzeile */
.postfach-table th {
  background: #f9f9f9;
  font-weight: bold;
  color: #444;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;   /* Einheitlich links */
}

/* Hover Effekt */
.postfach-table tbody tr:hover { background: #f7f7f7; }

/* Spalten */
.postfach-table .col-icon { width: 6%; text-align: center; color: #666; }
.postfach-table .col-icon i { font-size: 16px; }
.postfach-table .col-title { width: 40%; text-align: left; }
.postfach-table .col-user  { width: 20%; text-align: left; font-size: 13px; }
.postfach-table .col-date  { width: 16%; text-align: left; font-size: 12px; color: #666; }
.postfach-table .col-actions { width: 18%; text-align: right; font-size: 12px; }

/* Links */
.postfach-table a {
  color: #444;
  text-decoration: none;
}
.postfach-table a:hover { color: #999; text-decoration: underline; }

/* Aktionen: nur Icons */
.col-actions a {
  margin-left: 8px;
  color: #555;
  text-decoration: none;
}
.col-actions a:hover { color: #999; }

/* Ungelesen fett, gelesen normal */
tr.unread .col-title a { font-weight: bold; }
tr.read .col-title a { font-weight: normal; }

/* === Footer === */
.postfach-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}
.postfach-pagination a {
  color: #555;
  text-decoration: none;
  margin: 0 3px;
}
.postfach-pagination a:hover { color: #999; text-decoration: underline; }
.postfach-pagination a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* === Tabelle bleibt gleich wie Inbox === */
.postfach-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.postfach-table th,
.postfach-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.postfach-table th {
  background: #f9f9f9;
  font-weight: bold;
  color: #444;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
}
.postfach-table tbody tr:hover { background: #f7f7f7; }

/* Spalten für Outbox identisch */
.postfach-table .col-icon { width: 6%; text-align: center; color: #666; }
.postfach-table .col-icon i { font-size: 16px; }
.postfach-table .col-title { width: 40%; text-align: left; }
.postfach-table .col-user  { width: 20%; text-align: left; font-size: 13px; }
.postfach-table .col-date  { width: 16%; text-align: left; font-size: 12px; color: #666; }
.postfach-table .col-actions { width: 18%; text-align: right; font-size: 12px; }

/* Links */
.postfach-table a {
  color: #444;
  text-decoration: none;
}
.postfach-table a:hover { color: #999; text-decoration: underline; }

/* Aktionen nur Icons */
.col-actions a {
  margin-left: 8px;
  color: #555;
  text-decoration: none;
}
.col-actions a:hover { color: #999; }

/* Gleiches Grundlayout für alle Postfach-Ansichten */

/* Tabellen-Spalten */
.postfach-table .col-icon   { width: 6%;  text-align: center; color: #666; }
.postfach-table .col-title  { width: 40%; text-align: left; }
.postfach-table .col-user   { width: 20%; text-align: left; font-size: 13px; }
.postfach-table .col-date   { width: 16%; text-align: left; font-size: 12px; color: #666; }
.postfach-table .col-actions{ width: 18%; text-align: right; font-size: 12px; }

/* Icons */
.col-actions a {
  margin-left: 8px;
  color: #555;
  text-decoration: none;
}
.col-actions a:hover { color: #999; }

/* === Nachricht Detailansicht === */
.postfach-message {
  border: 1px solid #eee;
  padding: 12px;
  margin-top: 15px;
  background: #fafafa;
  border-radius: 3px;
}

/* Meta-Infos als Tabelle */
.postfach-meta {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}
.postfach-meta th {
  width: 90px;         /* fester Abstand für Labels */
  text-align: left;
  font-weight: normal;
  color: #444;
  padding: 3px 6px;
  vertical-align: top;
}
.postfach-meta td {
  padding: 3px 6px;
  color: #333;
}
.postfach-meta a {
  color: #444;
  text-decoration: none;
}
.postfach-meta a:hover {
  color: #999;
  text-decoration: underline;
}

.postfach-body {
  font-size: 14px;
  color: #333;
  background: #fff;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 3px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.postfach-actions {
  text-align: right;
}
.postfach-actions a {
  margin-left: 10px;
  color: #555;
  font-size: 15px;
  text-decoration: none;
}
.postfach-actions a:hover { color: #999; }

/* === Formular === */
.postfach-form {
  margin-top: 15px;
}

.input-text, 
.input-textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
.input-textarea {
  resize: vertical;
  min-height: 120px;
}

.input-text:focus,
.input-textarea:focus {
  border-color: #999;
  outline: none;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
  background: #666;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #444; }

.btn.cancel {
  background: #bbb;
}
.btn.cancel:hover {
  background: #999;
}

/* === Formulare (angepasst an Metro-Stil) === */
.postfach-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  margin-top: 10px;
}

.input-text,
.input-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background: #fdfdfd;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-text:focus,
.input-textarea:focus {
  border-color: #999;
  background: #fff;
  outline: none;
}

.postfach-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.postfach-actions .btn {
  background: #555;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.postfach-actions .btn:hover {
  background: #333;
}

.postfach-actions .btn.cancel {
  background: #bbb;
}
.postfach-actions .btn.cancel:hover {
  background: #999;
}
