/* ==========================================================================
   WERKBANK — phpBB 3.3.x Stil (Kind-Stil von prosilver)
   ==========================================================================
   Diese Datei wird automatisch zusätzlich zu den geerbten prosilver-
   Stylesheets geladen (alphabetisch nach buttons.css, colours.css,
   common.css, content.css, forms.css, links.css, ... geladen "werkbank.css"
   zuletzt und überschreibt damit gezielt die prosilver-Vorgaben).

   Abschnitt 1: Design-Tokens + komplett neu gestaltete Bereiche
                (Kopfzeile, Fußzeile, Forenübersicht) — 1:1 aus dem
                freigegebenen HTML-Entwurf übernommen.
   Abschnitt 2: Leichte Neueinfärbung der geerbten prosilver-Vorlagen
                (Themenansicht, Beitrag schreiben, Mitgliederliste, UCP,
                MCP, Suche ...), damit sich das gesamte Board konsistent
                anfühlt, auch ohne dass jede einzelne Seite neu gebaut wurde.
   ========================================================================== */

:root {
  /* Farben – Inhalt (Light) */
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-alt: #faf9f7;
  --text: #211f1d;
  --text-secondary: #6b6864;
  --text-tertiary: #918d87;
  --border: #e4e2dd;
  --border-strong: #d3d0ca;
  --accent: #e30a17;
  --accent-strong: #af060f;
  --accent-soft: rgba(227, 10, 23, 0.08);
  --accent-soft-strong: rgba(227, 10, 23, 0.14);
  --shadow-soft: 0 4px 16px rgba(33, 31, 29, 0.07);
  --intro-overlay: rgba(58, 3, 7, 0.62);

  /* Farben – Rot-Chrome (Header, Kategorie-Leisten, Footer), an die
     türkische Flagge angelehnt: kräftiges Rot, mit weißen Akzenten für
     Text und Icons auf dunklem Grund. */
  --navy-900: #3a0307;
  --navy-800: #5c060c;
  --navy-700: #7e0a12;
  --navy-border: rgba(255, 255, 255, 0.12);
  --on-navy: #ffffff;
  --on-navy-secondary: #f0b6bb;

  /* Typografie */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-size-base: 15px;

  /* Radius & Abstand */
  --radius-sm: 6px;
  --radius-md: 8px;
  --header-height: 60px;

  color-scheme: light;
}

/* ==========================================================================
   RESET / BASE
   Zurückhaltend gehalten, damit geerbte prosilver-Komponenten (Buttons,
   Formulare, BBCode-Ausgabe im Beitragstext) nicht kaputtgehen.
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body#phpbb {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: var(--font-size-base);
}

#phpbb :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #phpbb * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   UTILITY BAR
   ========================================================================== */
.utility-bar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-border);
}

.utility-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 34px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.utility-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--on-navy-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.utility-links a:hover {
  color: var(--on-navy);
  background: rgba(255, 255, 255, 0.07);
}

.utility-links svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid var(--navy-border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--on-navy);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--on-navy);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-navy-secondary);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--on-navy);
}

.primary-nav a.is-active {
  color: var(--on-navy);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.search-icon {
  position: absolute;
  left: 10px;
  color: var(--on-navy-secondary);
  pointer-events: none;
}

.search-form input[type="search"] {
  width: 200px;
  padding: 7px 10px 7px 32px;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  color: var(--on-navy);
  font-family: inherit;
}

.search-form input[type="search"]:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.search-form input::placeholder {
  color: var(--on-navy-secondary);
}

.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-navy-secondary);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--on-navy);
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-muted {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-navy-secondary);
  white-space: nowrap;
  text-decoration: none;
}

.link-muted:hover {
  color: var(--on-navy);
}

.btn-outline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: 1px solid var(--accent);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: linear-gradient(180deg, var(--accent-strong) 0%, var(--accent) 100%);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb-bar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.breadcrumb-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
  position: relative;
  background-image: linear-gradient(var(--intro-overlay), var(--intro-overlay)),
    url("images/tr-bayrak.gif");
  background-size: cover;
  background-position: center 40%;
}

.intro-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}

.intro h1 {
  margin: 0 0 7px;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.intro p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Zitat-Karte, bewusst in Serifenschrift als einziges Abweichungselement
   von der sonst durchgängigen Sans-Serif-Typografie. */
.quote-of-day {
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.quote-of-day-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.quote-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.55;
  margin-top: 2px;
}

.quote-text {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
}

.quote-author {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   INDEX TOOLS
   ========================================================================== */
.index-tools {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.index-tools-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.index-tools-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.index-tools-inner a:hover {
  color: var(--accent);
}

/* ==========================================================================
   FORUM CATEGORIES
   ========================================================================== */
.forum-overview {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.forum-category {
  margin-bottom: 28px;
}

.forum-category:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px 10px 20px;
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.category-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-collapse {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--on-navy-secondary);
  border-radius: 4px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.category-collapse:hover {
  color: var(--on-navy);
  background: rgba(255, 255, 255, 0.08);
}

.category-collapse svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}

.forum-category.is-collapsed .category-collapse svg {
  transform: rotate(-90deg);
}

.forum-category.is-collapsed .forum-list {
  display: none;
}

.category-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy);
}

.category-columns {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-secondary);
}

.category-columns .col-stats {
  width: 190px;
  text-align: right;
}

.category-columns .col-lastpost {
  width: 150px;
  text-align: right;
}

.forum-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   FORUM ROWS
   ========================================================================== */
.forum-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.forum-list .forum-row:last-child {
  border-bottom: none;
}

.forum-row:hover {
  background: var(--surface-alt);
}

.forum-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.forum-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.forum-row.is-unread .forum-icon {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.forum-row.is-locked .forum-icon {
  background: linear-gradient(180deg, var(--text-tertiary) 0%, var(--text-secondary) 100%);
}

.forum-info {
  min-width: 0;
}

.forum-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.forum-title a {
  color: var(--text);
  text-decoration: none;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.forum-description {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subforum-list {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.subforum-label {
  margin-right: 3px;
}

.subforum-list a {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  text-decoration: none;
}

.subforum-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.forum-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: end;
}

.forum-stats {
  width: 190px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.forum-stats strong {
  font-weight: 600;
  color: var(--text);
}

.stat-sep {
  color: var(--text-tertiary);
  margin: 0 1px;
}

.forum-lastpost {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
}

.forum-lastpost a {
  text-decoration: none;
  color: inherit;
}

.lastpost-user {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.lastpost-time {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.forum-row.is-unread {
  background: var(--accent-soft);
}

.forum-row.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.forum-row.is-unread:hover {
  background: var(--accent-soft-strong);
}

.forum-row.is-unread .forum-title a {
  font-weight: 700;
}

/* ==========================================================================
   FORUM LEGEND & BOARD STATS
   ========================================================================== */
.forum-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.forum-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.forum-legend svg {
  width: 16px;
  height: 16px;
}

.forum-legend .legend-unread {
  color: var(--accent);
}

.board-stats {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.board-stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stats-icon-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-icon-badge svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.stats-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text);
}

.stats-line strong {
  font-weight: 700;
}

.stats-line .stats-sub {
  font-weight: 400;
  color: var(--text-secondary);
}

.stats-sub-line {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.stats-sub-line a {
  color: inherit;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.8125rem;
  color: var(--on-navy-secondary);
}

.footer-brand {
  font-weight: 700;
  color: var(--on-navy);
  margin-right: auto;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--on-navy-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-navy);
}

.footer-copyright {
  color: var(--on-navy-secondary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .utility-bar { display: none; }
  .header-actions .search-form { display: none; }
  .forum-description { display: none; }

  .forum-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .forum-stats, .forum-lastpost { width: auto; }

  .forum-lastpost {
    flex-direction: row;
    gap: 6px;
  }

  .category-columns { display: none; }
}

@media (max-width: 600px) {
  .header-inner { gap: 14px; padding: 0 14px; }
  .nav-toggle { display: flex; }
  .logo-text { display: none; }

  .primary-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 6px 14px;
    display: none;
    z-index: 40;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    color: var(--text);
  }

  .primary-nav a:last-child { border-bottom: none; }

  .primary-nav a.is-active {
    border-bottom-color: var(--border);
    border-left-color: var(--accent);
    padding-left: 8px;
    color: var(--text);
  }

  .user-area .link-muted { display: none; }

  .board-stats-inner { gap: 12px; padding: 16px 14px; }
  .stats-block { min-width: 100%; }

  .breadcrumb-inner, .intro-inner, .quote-of-day-inner,
  .forum-overview, .index-tools-inner, .board-stats-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .index-tools-inner { justify-content: flex-start; gap: 12px 16px; }
  .category-header { padding: 10px 14px; }
  .intro-inner { padding-top: 20px; padding-bottom: 20px; }
  .intro h1 { font-size: 1.1875rem; }

  .forum-row {
    grid-template-columns: 34px 1fr;
    grid-template-areas: "icon info" "meta meta";
    row-gap: 10px;
    column-gap: 12px;
    padding: 14px;
  }

  .forum-icon { grid-area: icon; width: 34px; height: 34px; align-self: start; }
  .forum-info { grid-area: info; }
  .forum-description { display: block; white-space: normal; }

  .forum-meta {
    grid-area: meta;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    justify-self: stretch;
  }

  .forum-stats { text-align: left; }

  .forum-lastpost {
    flex-direction: row;
    gap: 6px;
    text-align: left;
  }

  .footer-inner { justify-content: flex-start; }
  .footer-brand { width: 100%; margin-right: 0; }
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1a18;
  --surface: #211f1d;
  --surface-alt: #262421;
  --text: #edeae5;
  --text-secondary: #a8a49d;
  --text-tertiary: #7c7871;
  --border: #34312c;
  --border-strong: #423e38;
  --accent: #ff4d55;
  --accent-strong: #ff8b90;
  --accent-soft: rgba(255, 77, 85, 0.14);
  --accent-soft-strong: rgba(255, 77, 85, 0.2);
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.3);
  --intro-overlay: rgba(20, 3, 5, 0.72);
}


/* ==========================================================================
   ABSCHNITT 2 — Reskin der geerbten prosilver-Seiten
   Themenansicht, Forenansicht, Beitrag schreiben, Mitgliederliste, Suche,
   UCP/MCP. Diese Seiten nutzen weiterhin die prosilver-HTML-Struktur
   (forumbg, topiclist, post, dropdown-container, ...) — hier wird nur die
   Farbgebung/Typografie an die Werkbank-Palette angeglichen, damit sich das
   Board als Ganzes stimmig anfühlt.
   ========================================================================== */

#phpbb a { color: var(--accent); }
#phpbb a:hover { color: var(--accent-strong); }

/* Kopfzeilen-Balken von Foren-/Themenlisten (forabg) im selben Rot-Chrome
   wie die Kategorie-Leisten der Startseite. */
#phpbb .forabg,
#phpbb .forumbg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

#phpbb .forabg > .inner > ul.topiclist > li.header dl,
#phpbb .forumbg > .inner > ul.topiclist > li.header dl {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  color: var(--on-navy);
}

#phpbb .forabg li.header dt,
#phpbb .forumbg li.header dt,
#phpbb .forabg li.header dd,
#phpbb .forumbg li.header dd {
  color: var(--on-navy-secondary);
}

#phpbb ul.topiclist li.row {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

#phpbb ul.topiclist li.row:hover {
  background: var(--surface-alt);
}

#phpbb ul.topiclist li.row.bg2 {
  background: var(--surface-alt);
}

#phpbb .pagination a,
#phpbb .pagination li span {
  border-radius: var(--radius-sm);
}

#phpbb .pagination .active a,
#phpbb .pagination a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Buttons (Antworten, Neues Thema, Absenden, ...) */
#phpbb input.button1,
#phpbb input.button2,
#phpbb a.button,
#phpbb .button1,
#phpbb .button2 {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

#phpbb input.button1:hover,
#phpbb input.button2:hover,
#phpbb a.button:hover {
  background: linear-gradient(180deg, var(--accent-strong) 0%, var(--accent) 100%);
}

/* Zitate, Code-Blöcke im Beitragstext */
#phpbb blockquote {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
}

#phpbb blockquote cite {
  border-bottom: 1px solid var(--border);
}

#phpbb code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

/* Beitragskopf/-rahmen in der Themenansicht */
#phpbb .post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

#phpbb .post.bg2 {
  background: var(--surface-alt);
}

#phpbb .postbody .author,
#phpbb .postprofile dt.author {
  color: var(--text);
}

/* Formularelemente (UCP, Beitrag schreiben, Suche, ...) */
#phpbb input[type="text"],
#phpbb input[type="password"],
#phpbb input[type="email"],
#phpbb input[type="search"],
#phpbb textarea,
#phpbb select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

#phpbb input[type="text"]:focus,
#phpbb input[type="password"]:focus,
#phpbb textarea:focus,
#phpbb select:focus {
  border-color: var(--accent);
}

/* Erfolgs-/Fehlermeldungen */
#phpbb .successbox {
  border-color: #2f8f4e;
}

#phpbb .errorbox {
  border-color: var(--accent);
}

/* Dropdown-Menüs (Werkzeuge, Mehr-Menü) */
#phpbb .dropdown-container .dropdown,
#phpbb .dropdown-container .pointer-inner {
  background: var(--surface);
  border-color: var(--border);
}

#phpbb .dropdown ul.dropdown-contents a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
