/* RGN styles bundled in their original cascade order. Sources remain unchanged.
   Rebuild with web_polish_20261101/build_web_finish.py; prosilver stays independent. */
@import url("../../prosilver/theme/stylesheet.css");
@import url("rgn-bundle.css?v=20261101.2");
@import url("rgn-light.css?v=20261102.3");
@import url("rgn-polish2.css?v=20261102.3");
/* Preserve the original logo asset and hide its legacy server addresses. */
.site_logo { clip-path: inset(0 0 40% 0); }

/* Profile layout and accessible controls — 2026-11-02 */
.rgn-prof .rgn-prof-head { display:grid; grid-template-columns:150px minmax(0,1fr); gap:24px; align-items:start; padding:24px; }
.rgn-prof .rgn-prof-main { min-width:0; }
.rgn-prof .rgn-prof-name { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 12px; overflow-wrap:anywhere; line-height:1.3; }
.rgn-prof .rgn-prof-meta { line-height:1.6; margin:12px 0; }
.rgn-prof .rgn-prof-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.rgn-prof .rgn-prof-actions .rgn-btn { margin:0; max-width:100%; box-sizing:border-box; white-space:normal; }
.rgn-prof .rgn-prof-stats { grid-column:1 / -1; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); width:auto; margin:0; gap:10px; }
.rgn-prof .rgn-prof-stats > div { min-width:0; width:auto; padding:14px 8px; box-sizing:border-box; text-align:center; border-radius:8px; background:rgba(80,110,155,.08); }
.rgn-prof .rgn-prof-stats b { display:block; font-size:24px; line-height:1.3; }
.rgn-prof .rgn-prof-stats span { display:block; margin-top:4px; overflow-wrap:anywhere; }
.rgn-prof .rgn-btn { line-height:1.4; padding:10px 14px; border-radius:6px; text-decoration:none; }
.rgn-prof .rgn-btn:focus-visible,.rgn-prof .rgn-tabs a:focus-visible { outline:3px solid #de9c32; outline-offset:3px; }
.rgn-prof .rgn-tabs { flex-wrap:wrap; gap:4px; }
.rgn-prof .rgn-tabs a { padding:12px 16px; }
.rgn-prof .rgn-wallform textarea { box-sizing:border-box; width:100%; max-width:100%; min-height:110px; resize:vertical; line-height:1.5; }
html.rgn-dark .rgn-prof .rgn-btn:not(.ghost) { background:#9fb6d9; color:#101b2d; border-color:#9fb6d9; }
html.rgn-dark .rgn-prof .rgn-btn:not(.ghost):hover { background:#bbcee9; color:#101b2d; }
html.rgn-dark .rgn-prof .rgn-btn.ghost { background:#253247; color:#e5edf8; border:1px solid #52647d; }
html.rgn-dark .rgn-prof .rgn-prof-stats > div { background:rgba(159,182,217,.09); }
@media(max-width:700px) {
 .rgn-prof .rgn-prof-head { grid-template-columns:80px minmax(0,1fr); padding:16px; gap:16px; }
 .rgn-prof .rgn-prof-ava,.rgn-prof .rgn-prof-ava img,.rgn-prof .rgn-prof-noava { width:80px; height:80px; max-width:80px; }
 .rgn-prof .rgn-prof-noava { line-height:80px; font-size:36px; }
 .rgn-prof .rgn-prof-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .rgn-prof .rgn-prof-name { font-size:24px; }
}
@media(max-width:440px) {
 .rgn-prof .rgn-prof-head { grid-template-columns:minmax(0,1fr); }
 .rgn-prof .rgn-prof-actions .rgn-btn { flex:1 1 160px; text-align:center; }
 .rgn-prof .rgn-tabs a { padding:10px; }
}

/* ===== RGN Modern v4 – einheitliche Design-Schicht hell/dunkel/mobil – 2026-11-02 (Rueckbau: Block bis zum Ende-Marker loeschen) ===== */
html {
  --m-bg:#eef1f5; --m-panel:#ffffff; --m-panel2:#e9eef5; --m-soft:#f5f7fa;
  --m-line:#c9d1dc; --m-line2:#aab6c6; --m-ink:#1b2530; --m-muted:#52606f;
  --m-brand:#3a4d66; --m-brand2:#2f66b0; --m-accent:#0060a8; --m-accent-soft:#e2edf8;
  --m-danger:#b3261e; --m-success:#1b7a3a; --m-warn:#8a5a00;
  --m-grad:linear-gradient(135deg,#3a4d66 0%,#2f66b0 100%);
  --m-shadow:0 1px 2px rgba(20,35,60,.06),0 6px 18px rgba(20,35,60,.08);
  --m-shadow-h:0 2px 4px rgba(20,35,60,.10),0 10px 26px rgba(20,35,60,.14);
}
html.rgn-dark {
  --m-bg:#12151a; --m-panel:#1a1f26; --m-panel2:#232a34; --m-soft:#1e242c;
  --m-line:#323c4a; --m-line2:#465366; --m-ink:#e8edf3; --m-muted:#9eabba;
  --m-brand:#3a4d66; --m-brand2:#2b5a94; --m-accent:#3aaeff; --m-accent-soft:#1c2b3d;
  --m-danger:#ff6b61; --m-success:#4cc26a; --m-warn:#ffb600;
  --m-grad:linear-gradient(135deg,#34465e 0%,#2b5a94 100%);
  --m-shadow:0 1px 2px rgba(0,0,0,.35),0 6px 18px rgba(0,0,0,.28);
  --m-shadow-h:0 2px 4px rgba(0,0,0,.4),0 10px 26px rgba(0,0,0,.4);
}
html body .forabg, html body .forumbg, html body .panel,
html body .rgn-prof-head, html body .rgn-rightbar, html body .stat-block,
html body .rgn-wallform, html body .rgn-card {
  background: var(--m-panel) !important; color: var(--m-ink);
  border: 1px solid var(--m-line) !important; border-radius: 12px !important;
  box-shadow: var(--m-shadow); overflow: hidden;
}
html body .forabg, html body .forumbg { margin-bottom: 22px; padding: 0 !important; }
html body ul.topiclist li.header, html body .forabg > ul.topiclist:first-child,
html body .forumbg > ul.topiclist:first-child {
  background: var(--m-grad) !important; color: #fff !important; border: 0 !important;
}
html body ul.topiclist li.header dt, html body ul.topiclist li.header dd,
html body ul.topiclist li.header a, html body ul.topiclist li.header .list-inner { color:#fff !important; }
html body ul.topiclist li.row {
  background: var(--m-panel) !important; color: var(--m-ink);
  border: 0 !important; border-top: 1px solid var(--m-line) !important;
  transition: background-color .12s ease, box-shadow .12s ease;
}
html body ul.topiclist li.row:nth-child(even) { background: var(--m-soft) !important; }
html body ul.topiclist li.row:hover { background: var(--m-accent-soft) !important; box-shadow: inset 3px 0 0 var(--m-brand2); }
html body ul.topiclist li.row dd { color: var(--m-muted); border-color: var(--m-line) !important; }
html body .topictitle, html body a.forumtitle { color: var(--m-ink) !important; font-weight: 600; }
html body .topictitle:hover, html body a.forumtitle:hover { color: var(--m-accent) !important; }
html body ul.topiclist li.row a:not(.topictitle):not(.forumtitle):not(.button) { color: var(--m-accent); }
html body .lastsubject, html body .lastpost { color: var(--m-muted); }
html body .pagination { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; float: none; }
html body .action-bar .pagination { float: right; }
html body .pagination ul { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
html body .pagination li { margin: 0; padding: 0; list-style: none; }
html body .pagination li a, html body .pagination li a.button, html body .pagination li > span,
html body .pagination li.ellipsis span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px; margin: 0; box-sizing: border-box;
  border-radius: 10px !important; border: 1px solid var(--m-line2) !important;
  background: var(--m-panel) !important; color: var(--m-ink) !important;
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; box-shadow: var(--m-shadow);
  transition: transform .1s ease, background-color .12s ease, border-color .12s ease;
}
html body .pagination li a:hover { background: var(--m-accent-soft) !important; border-color: var(--m-brand2) !important; transform: translateY(-1px); }
html body .pagination li.active span { background: var(--m-grad) !important; color:#fff !important; border-color: transparent !important; }
html body .pagination li.ellipsis span { border: 0 !important; box-shadow: none; background: transparent !important; min-width: 20px; padding: 0; }
html body .pagination .icon, html body .pagination li a i { margin: 0; line-height: 1; font-size: 14px; }
html body .pagination li.active span, html body .pagination li > span { padding: 0 12px !important; line-height: 34px !important; display: inline-flex !important; }
html body .button, html body a.button, html body input.button1, html body input.button2, html body button.button,
html body .button-secondary, html body input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 16px; box-sizing: border-box; border-radius: 10px !important;
  background: var(--m-panel) !important; color: var(--m-ink) !important;
  border: 1px solid var(--m-line2) !important; font-weight: 600; font-size: 14px; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: var(--m-shadow);
  transition: transform .1s ease, box-shadow .12s ease, background-color .12s ease;
}
html body .button:hover, html body a.button:hover, html body input.button1:hover, html body input.button2:hover,
html body input[type=submit]:hover { background: var(--m-accent-soft) !important; border-color: var(--m-brand2) !important; transform: translateY(-1px); box-shadow: var(--m-shadow-h); }
html body .button.button-primary, html body input.button1, html body .button1, html body input[name=post],
html body input[type=submit].default-submit-action {
  background: var(--m-grad) !important; color: #fff !important; border-color: transparent !important;
}
html body input.button1:hover, html body .button-primary:hover { filter: brightness(1.1); background: var(--m-grad) !important; }
html body .button-icon-only { min-width: 36px; padding: 0 10px; }
html body .rgn-prof .rgn-btn, html body .rgn-prof a.rgn-btn {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px !important;
  border-radius: 10px !important; font-weight: 600; text-decoration: none; box-shadow: var(--m-shadow);
  background: var(--m-grad) !important; color: #fff !important; border: 1px solid transparent !important;
  transition: transform .1s ease, box-shadow .12s ease, filter .12s ease;
}
html body .rgn-prof .rgn-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--m-shadow-h); color:#fff !important; }
html body .rgn-prof .rgn-btn.ghost, html body .rgn-prof a.rgn-btn.ghost {
  background: var(--m-panel) !important; color: var(--m-ink) !important; border: 1px solid var(--m-line2) !important;
}
html body .rgn-prof .rgn-btn.ghost:hover { background: var(--m-accent-soft) !important; filter: none; color: var(--m-ink) !important; }
html body input[type=text], html body input[type=password], html body input[type=email], html body input[type=number],
html body input[type=search], html body select, html body textarea, html body .inputbox {
  background: var(--m-panel) !important; color: var(--m-ink) !important;
  border: 1px solid var(--m-line2) !important; border-radius: 10px !important; box-sizing: border-box;
  transition: border-color .12s ease, box-shadow .12s ease;
}
html body input:focus, html body textarea:focus, html body select:focus {
  border-color: var(--m-brand2) !important; box-shadow: 0 0 0 3px rgba(47,102,176,.25) !important; outline: none;
}
html body ::placeholder { color: var(--m-muted); opacity: .85; }
html body .post {
  background: var(--m-panel) !important; border: 1px solid var(--m-line) !important;
  border-left: 4px solid var(--m-brand2) !important; border-radius: 12px !important;
  box-shadow: var(--m-shadow); margin-bottom: 16px; overflow: hidden;
}
html body .post.bg2 { background: var(--m-panel) !important; }
html body .postprofile { background: var(--m-soft) !important; border: 0 !important; border-right: 1px solid var(--m-line) !important; color: var(--m-muted) !important; }
html body .postbody { color: var(--m-ink); }
html body .postbody h3, html body .postbody h3 a { color: var(--m-ink); }
html body .postbody h3 { border-bottom: 1px solid var(--m-line); padding-bottom: 6px; }
html body .postbody a { color: var(--m-accent); }
html body .author, html body .post .author { color: var(--m-muted); }
html body blockquote { background: var(--m-panel2) !important; border: 1px solid var(--m-line) !important; border-left: 4px solid var(--m-brand2) !important; border-radius: 8px; color: var(--m-ink); }
html body .codebox { background: var(--m-panel2) !important; border: 1px solid var(--m-line2) !important; border-radius: 8px; }
html body .codebox code { color: var(--m-ink); font-family: "IBM Plex Mono", ui-monospace, monospace; }
html body .time, html body p.time, html body .responsive-center.time { color: var(--m-muted); }
html body .rgn-rightbar a, html body .stat-block a { color: var(--m-accent); }
html body .rgn-hero .rgn-chip {
  background: rgba(255,255,255,.14) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.55) !important; border-radius: 999px !important;
  padding: 8px 16px !important; font-weight: 600; text-decoration: none;
  transition: background-color .12s ease, transform .1s ease;
}
html body .rgn-hero .rgn-chip:hover { background: rgba(255,255,255,.28) !important; transform: translateY(-1px); }
html body .rgn-prof .rgn-prof-stats > div, html body .rgn-prof-stats > * {
  background: var(--m-panel) !important; border: 1px solid var(--m-line) !important;
  border-radius: 12px !important; box-shadow: var(--m-shadow);
}
html body .rgn-prof-stats b { color: var(--m-accent); }
html body .rgn-prof-stats span, html body .rgn-prof-meta { color: var(--m-muted); }
html body .rgn-prof .rgn-chip {
  background: var(--m-accent-soft) !important; color: var(--m-accent) !important;
  border: 1px solid var(--m-line2) !important; border-radius: 999px; padding: 3px 12px;
}
html body .rgn-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--m-line); padding-bottom: 8px; }
html body .rgn-tabs a { border-radius: 999px; background: var(--m-panel); border: 1px solid var(--m-line); color: var(--m-ink); text-decoration: none; }
html body .rgn-tabs a.active, html body .rgn-tabs a.current, html body .rgn-tabs a[aria-current] { background: var(--m-grad); color:#fff; border-color: transparent; }
html body .rgn-prof-ava img, html body .rgn-prof-ava .avatar { border: 2px solid var(--m-line2); border-radius: 14px; box-shadow: var(--m-shadow); }
html body #postform .panel { border-radius: 14px !important; }
html body #postform #format-buttons { background: var(--m-panel2) !important; border: 1px solid var(--m-line) !important; border-bottom: 0 !important; }
html body #postform #format-buttons .button, html body #postform #format-buttons button { background: var(--m-panel) !important; color: var(--m-ink) !important; border: 1px solid var(--m-line2) !important; box-shadow: none; }
html body #postform #format-buttons button:hover { background: var(--m-accent-soft) !important; }
html body #postform #smiley-box { background: var(--m-soft); border: 1px solid var(--m-line); border-top: 0; }
html body #postform textarea#message { background: var(--m-panel) !important; color: var(--m-ink) !important; border: 1px solid var(--m-line) !important; border-radius: 0 0 12px 12px !important; }
html body #postform #subject { border-radius: 10px !important; }
html body #postform .submit-buttons input.button1 { background: var(--m-grad) !important; color:#fff !important; border-color: transparent !important; }
html body #postform #tabs .tab > a { background: var(--m-panel); border: 1px solid var(--m-line); color: var(--m-ink); }
html body #postform #tabs .activetab > a { background: var(--m-grad); color:#fff; border-color: transparent; }
html body #message-box, html body .rules, html body .successbox, html body .errorbox {
  border-radius: 12px; border: 1px solid var(--m-line); background: var(--m-panel); color: var(--m-ink);
}
html body .error, html body .errorbox p { color: var(--m-danger); }
html body #page-body { background: var(--m-bg) !important; background-image: radial-gradient(900px 420px at 80% 0%, rgba(47,102,176,.12), transparent 65%) !important; }
@media (max-width: 700px) {
  html body .forabg, html body .forumbg { border-radius: 10px !important; }
  html body .pagination, html body .action-bar .pagination { float: none; justify-content: center; width: 100%; }
  html body .pagination li a, html body .pagination li > span { min-width: 40px; height: 40px; }
  html body .button, html body a.button, html body input.button1 { min-height: 42px; }
  html body .post { border-left-width: 3px !important; }
  html body .postprofile { border-right: 0 !important; border-bottom: 1px solid var(--m-line) !important; }
  html body .rgn-hero .rgn-chip { flex: 1 1 45%; text-align: center; }
}
/* ===== Ende RGN Modern v4 ===== */

/* ===== RGN Modern v4.1 – Feinschliff ===== */
html body .rgn-tabs a.active, html body .rgn-tabs a.current, html body .rgn-tabs a[aria-current] { color:#fff !important; background: var(--m-grad) !important; border-color: transparent !important; }
html body .rgn-tabs a:not(.active):hover { background: var(--m-accent-soft); border-color: var(--m-brand2); }
html body .rgn-tabs { background: transparent !important; }
html body #postform #subject, html body #postform #format-buttons button, html body #postform #format-buttons select { font-family: inherit !important; }
html body #postform #format-buttons button { font-weight: 600; }
html body #postform #subject { font-weight: 700; font-size: 18px; }
html body .rgn-prof .rgn-wallform textarea, html body .rgn-wallform textarea { background: var(--m-panel) !important; color: var(--m-ink) !important; }
/* ===== Ende v4.1 ===== */
