/*
 * WestdeutschlandRP.de™ – Portal Design V11
 * Midnight Civic: ruhige Flächen, klare Hierarchie und eine hochwertige
 * Darstellung für Startseite, Community und Verwaltung.
 *
 * Die Datei wird nach den bestehenden Styles geladen. Dadurch bleiben alle
 * bisherigen Module kompatibel und das neue Erscheinungsbild ist unabhängig
 * von Datenbank, Konfiguration und den getrennten Fraktionsseiten.
 */

body.portal-v3 {
  --v3-bg: #050b12;
  --v3-bg-soft: #08131f;
  --v3-panel: rgba(11, 25, 39, .84);
  --v3-panel-solid: #0b1927;
  --v3-panel-light: #102235;
  --v3-panel-hover: #132a3f;
  --v3-line: rgba(202, 219, 231, .11);
  --v3-line-bright: rgba(239, 207, 133, .28);
  --v3-text: #f5f7f8;
  --v3-text-soft: #c3ced6;
  --v3-muted: #8194a3;
  --v3-gold: #e4bf69;
  --v3-gold-soft: #f3da9a;
  --v3-gold-deep: #ad7d2f;
  --v3-ice: #76c6ee;
  --v3-mint: #61d6a4;
  --v3-red: #ed727c;
  --v3-blue: #5f74f7;
  --v3-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  --v3-shadow-soft: 0 16px 45px rgba(0, 0, 0, .22);
  --v3-radius-sm: 12px;
  --v3-radius: 18px;
  --v3-radius-lg: 28px;
  color: var(--v3-text);
  background:
    radial-gradient(circle at 12% -6%, rgba(54, 149, 205, .17), transparent 31rem),
    radial-gradient(circle at 88% 3%, rgba(228, 191, 105, .105), transparent 29rem),
    linear-gradient(180deg, #07131f 0, #050c14 46rem, #04090f 100%);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  letter-spacing: -.008em;
}

body.portal-v3::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .43;
  background-image:
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.portal-v3 .portal-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.portal-v3 .portal-background span {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: .08;
  filter: blur(90px);
}

.portal-v3 .portal-background span:nth-child(1) {
  left: -18rem;
  top: 18rem;
  background: #2b9bd2;
}

.portal-v3 .portal-background span:nth-child(2) {
  right: -18rem;
  top: 44rem;
  background: #dfb45c;
}

.portal-v3 .portal-background span:nth-child(3) {
  left: 38%;
  top: 92rem;
  background: #294e88;
}

.portal-v3 ::selection {
  color: #07111b;
  background: var(--v3-gold-soft);
}

.portal-v3 :focus-visible {
  outline: 3px solid rgba(118, 198, 238, .76);
  outline-offset: 3px;
}

.portal-v3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.portal-v3 .container {
  width: min(1320px, calc(100% - 56px));
}

.portal-v3 .site-main {
  min-height: 72vh;
}

/* Kopfbereich */

.portal-v3 .site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.portal-v3 .site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 191, 105, .22), transparent);
  pointer-events: none;
}

.portal-v3 .site-header.scrolled {
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
}

.portal-v3 .utility-bar {
  color: #81909c;
  background: rgba(3, 8, 14, .91);
  backdrop-filter: blur(24px);
}

.portal-v3 .utility-inner {
  min-height: 30px;
}

.portal-v3 .portal-status {
  gap: 8px;
  color: #7f909e;
  font-size: 10px;
  letter-spacing: .025em;
}

.portal-v3 .portal-status i,
.portal-v3 .footer-status i {
  width: 7px;
  height: 7px;
  background: var(--v3-mint);
  box-shadow: 0 0 0 5px rgba(97, 214, 164, .08), 0 0 18px rgba(97, 214, 164, .55);
}

.portal-v3 .portal-status strong {
  color: #cdd6dc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.portal-v3 .portal-status em {
  color: #647684;
  font-style: normal;
}

.portal-v3 .utility-links {
  gap: 4px;
  font-size: 9px;
}

.portal-v3 .utility-links a {
  padding: 4px 8px;
  border-radius: 7px;
  color: #768896;
  transition: color .18s ease, background .18s ease;
}

.portal-v3 .utility-links a:hover {
  color: #e8edf0;
  background: rgba(255, 255, 255, .035);
}

.portal-v3 .nav-shell {
  border: 0;
  background: rgba(6, 15, 24, .84);
  backdrop-filter: blur(28px) saturate(145%);
}

.portal-v3 .nav-inner {
  min-height: 78px;
  gap: clamp(16px, 2.25vw, 31px);
}

.portal-v3 .site-brand {
  flex: 0 0 auto;
  gap: 12px;
}

.portal-v3 .site-brand-logo {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(232, 201, 128, .23);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, rgba(240, 213, 145, .13), transparent 70%),
    rgba(12, 27, 42, .8);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .22);
}

.portal-v3 .site-brand-logo::after {
  content: none;
}

.portal-v3 .site-brand-logo img {
  position: relative;
  z-index: 1;
  width: 49px;
  height: 49px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, .32));
}

.portal-v3 .site-brand-copy strong {
  color: #f4f5f6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  letter-spacing: -.026em;
  white-space: nowrap;
}

.portal-v3 .site-brand-copy small {
  margin-top: 5px;
  color: #718391;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.portal-v3 .site-brand-copy small b {
  color: var(--v3-gold-soft);
}

.portal-v3 .main-nav {
  align-self: stretch;
  gap: 3px;
  min-width: 0;
  overflow: visible;
}

.portal-v3 .main-nav > a,
.portal-v3 .nav-more > summary {
  position: relative;
  min-height: 42px;
  align-self: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #91a1ad;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .main-nav > a:hover,
.portal-v3 .nav-more > summary:hover {
  color: #f4f7f8;
  background: rgba(255, 255, 255, .045);
  transform: translateY(-1px);
}

.portal-v3 .main-nav > a.active,
.portal-v3 .nav-more.active > summary,
.portal-v3 .nav-more[open] > summary {
  color: #0a1420;
  background: linear-gradient(135deg, #f0d48f, #d1aa57);
  box-shadow: 0 9px 24px rgba(181, 137, 56, .18);
}

.portal-v3 .main-nav > a.active::after,
.portal-v3 .nav-more.active > summary::after {
  display: none;
}

.portal-v3 .nav-more {
  align-self: stretch;
}

.portal-v3 .nav-more > summary span {
  color: currentColor;
  opacity: .65;
}

.portal-v3 .nav-more-panel {
  top: calc(100% + 10px);
  left: auto;
  right: -13rem;
  width: min(600px, 83vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(191, 211, 225, .14);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 191, 105, .08), transparent 17rem),
    rgba(7, 18, 29, .985);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .54);
  transform: none;
}

.portal-v3 .nav-more-panel::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14.4rem;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(191, 211, 225, .14);
  border-left: 1px solid rgba(191, 211, 225, .14);
  background: #091725;
  transform: rotate(45deg);
}

.portal-v3 .nav-more-panel > a {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .nav-more-panel > a:hover {
  border-color: rgba(228, 191, 105, .13);
  background: rgba(255, 255, 255, .035);
  transform: translateY(-1px);
}

.portal-v3 .nav-more-panel > a > span {
  width: 40px;
  height: 40px;
  border-color: rgba(228, 191, 105, .17);
  border-radius: 12px;
  color: var(--v3-gold-soft);
  background: linear-gradient(145deg, rgba(228, 191, 105, .09), rgba(228, 191, 105, .025));
  font-size: 13px;
}

.portal-v3 .nav-more-panel strong {
  color: #e8edf0;
  font-size: 11px;
}

.portal-v3 .nav-more-panel small {
  margin-top: 3px;
  color: #718493;
  font-size: 9px;
}

.portal-v3 .nav-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.portal-v3 .header-search {
  width: 146px;
  height: 42px;
  border: 1px solid rgba(175, 199, 216, .12);
  border-radius: 13px;
  background: rgba(3, 11, 18, .45);
  transition: width .23s ease, border-color .23s ease, background .23s ease;
}

.portal-v3 .header-search:focus-within {
  width: 210px;
  border-color: rgba(118, 198, 238, .37);
  background: rgba(4, 13, 22, .8);
}

.portal-v3 .header-search input {
  padding-left: 13px;
  color: #e9eef1;
  font-size: 10px;
}

.portal-v3 .header-search button {
  width: 39px;
  color: var(--v3-ice);
}

.portal-v3 .login-link {
  min-height: 44px;
  padding: 5px 11px 5px 7px;
  border: 1px solid rgba(109, 123, 250, .24);
  border-radius: 14px;
  color: #eef0ff;
  background: linear-gradient(135deg, rgba(87, 99, 233, .18), rgba(71, 82, 207, .07));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.portal-v3 .login-link:hover {
  border-color: rgba(128, 141, 255, .42);
  background: linear-gradient(135deg, rgba(91, 104, 241, .25), rgba(71, 82, 207, .11));
  transform: translateY(-1px);
}

.portal-v3 .login-link .discord-mark {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #5865f2;
  box-shadow: 0 7px 17px rgba(88, 101, 242, .26);
}

.portal-v3 .login-link span:last-child {
  font-size: 9px;
  line-height: 1.18;
}

.portal-v3 .login-link small {
  color: #9fa8ee;
  font-size: 7px;
}

.portal-v3 .user-menu > summary {
  min-height: 46px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(176, 200, 216, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.portal-v3 .user-menu > summary:hover {
  border-color: rgba(228, 191, 105, .2);
  background: rgba(255, 255, 255, .04);
}

.portal-v3 .user-menu-panel {
  border-color: rgba(191, 211, 225, .14);
  border-radius: 18px;
  background: rgba(7, 18, 29, .99);
  box-shadow: var(--v3-shadow);
}

/* Buttons, Eingaben und allgemeine Seiten */

.portal-v3 .button {
  min-height: 45px;
  gap: 9px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .008em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.portal-v3 .button:hover {
  transform: translateY(-2px);
}

.portal-v3 .button:active {
  transform: translateY(0);
}

.portal-v3 .button-primary {
  border-color: rgba(250, 222, 153, .35);
  color: #111923;
  background: linear-gradient(135deg, #f4dda2 0, #e3bd66 52%, #c99b43 100%);
  box-shadow: 0 13px 31px rgba(190, 144, 57, .24), inset 0 1px rgba(255, 255, 255, .52);
}

.portal-v3 .button-primary:hover {
  box-shadow: 0 17px 38px rgba(190, 144, 57, .3), inset 0 1px rgba(255, 255, 255, .58);
}

.portal-v3 .button-secondary,
.portal-v3 .button-ghost {
  border-color: rgba(177, 199, 215, .14);
  color: #dce5ea;
  background: rgba(16, 34, 52, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.portal-v3 .button-secondary:hover,
.portal-v3 .button-ghost:hover {
  border-color: rgba(118, 198, 238, .28);
  background: rgba(20, 44, 66, .82);
}

.portal-v3 .button-discord {
  border-color: rgba(126, 139, 255, .3);
  color: #f0f2ff;
  background: linear-gradient(135deg, #6673f3, #4c58d3);
  box-shadow: 0 13px 28px rgba(73, 84, 204, .23);
}

.portal-v3 .button-danger {
  border-color: rgba(237, 114, 124, .24);
  color: #ffd7da;
  background: rgba(184, 50, 61, .2);
}

.portal-v3 .breadcrumbs {
  gap: 9px;
  padding: 29px 0 14px;
  color: #617584;
  font-size: 9px;
}

.portal-v3 .breadcrumbs a {
  color: #8ca0ae;
}

.portal-v3 .breadcrumbs a:hover {
  color: var(--v3-gold-soft);
}

.portal-v3 .page-header {
  position: relative;
  gap: 24px;
  margin-bottom: 20px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  background:
    radial-gradient(circle at 91% -40%, rgba(228, 191, 105, .14), transparent 20rem),
    linear-gradient(135deg, rgba(16, 35, 53, .84), rgba(7, 18, 29, .8));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .page-header::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -54px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(228, 191, 105, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(228, 191, 105, .018), 0 0 0 54px rgba(228, 191, 105, .012);
  pointer-events: none;
}

.portal-v3 .page-header > * {
  position: relative;
  z-index: 1;
}

.portal-v3 .page-header h1 {
  margin-top: 5px;
  color: #f5f7f8;
  font-size: clamp(31px, 4vw, 49px);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.045em;
}

.portal-v3 .page-header p {
  max-width: 760px;
  margin-top: 10px;
  color: #91a3b0;
  font-size: 13px;
  line-height: 1.65;
}

.portal-v3 .eyebrow {
  color: var(--v3-gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portal-v3 .panel,
.portal-v3 .sidebar-card,
.portal-v3 .form-card,
.portal-v3 .legal,
.portal-v3 .profile-hero,
.portal-v3 .member-card,
.portal-v3 .info-card,
.portal-v3 .news-card,
.portal-v3 .topic-list,
.portal-v3 .dashboard-card,
.portal-v3 .integration-panel {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .84), rgba(7, 18, 29, .91));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .input,
.portal-v3 .textarea,
.portal-v3 .select {
  min-height: 46px;
  border: 1px solid rgba(176, 200, 216, .14);
  border-radius: 12px;
  color: #eaf0f3;
  background: rgba(3, 11, 18, .58);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.portal-v3 .textarea {
  min-height: 130px;
}

.portal-v3 .input:hover,
.portal-v3 .textarea:hover,
.portal-v3 .select:hover {
  border-color: rgba(176, 200, 216, .23);
}

.portal-v3 .input:focus,
.portal-v3 .textarea:focus,
.portal-v3 .select:focus {
  border-color: rgba(118, 198, 238, .52);
  background: rgba(5, 16, 26, .86);
  box-shadow: 0 0 0 4px rgba(118, 198, 238, .075);
}

.portal-v3 .form-group > label,
.portal-v3 .form-group > span {
  color: #b3c0c8;
  font-size: 10px;
  font-weight: 750;
}

.portal-v3 .form-help {
  color: #6f8391;
  font-size: 9px;
  line-height: 1.5;
}

.portal-v3 .flash {
  margin-top: 15px;
  border-radius: 14px;
  backdrop-filter: blur(18px);
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .state-card {
  position: relative;
  max-width: 720px;
  overflow: hidden;
  margin: 70px auto;
  padding: clamp(38px, 7vw, 72px);
  border: 1px solid var(--v3-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0, rgba(228, 191, 105, .11), transparent 20rem),
    linear-gradient(145deg, rgba(15, 32, 49, .92), rgba(6, 16, 27, .95));
  box-shadow: var(--v3-shadow);
}

.portal-v3 .state-icon {
  border-color: rgba(228, 191, 105, .26);
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .07);
  box-shadow: 0 0 0 9px rgba(228, 191, 105, .025);
}

.portal-v3 .state-card h1 {
  margin-top: 25px;
  font-size: clamp(30px, 5vw, 45px);
  letter-spacing: -.04em;
}

.portal-v3 .state-card p {
  color: #8fa0ad;
  font-size: 13px;
  line-height: 1.65;
}

/* Startseite */

.portal-homepage .site-main {
  overflow: clip;
}

.portal-v3 .portal-home {
  padding-top: 34px;
  padding-bottom: 82px;
}

.portal-v3 .home-hero-clean {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(194, 215, 228, .14);
  border-radius: 34px;
  background:
    linear-gradient(112deg, rgba(13, 35, 55, .96) 0, rgba(8, 22, 35, .94) 52%, rgba(7, 18, 29, .98) 100%);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .055);
}

.portal-v3 .home-hero-clean::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(78, 167, 216, .17), transparent 27rem),
    radial-gradient(circle at 87% 28%, rgba(228, 191, 105, .17), transparent 23rem),
    linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .7) 72%, transparent 100%);
}

.portal-v3 .home-hero-clean::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16rem;
  right: -12rem;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgba(239, 207, 133, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(239, 207, 133, .018),
    0 0 0 100px rgba(239, 207, 133, .012),
    0 0 120px rgba(228, 191, 105, .055);
}

.portal-v3 .home-hero-monogram {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: -8%;
  color: rgba(255, 255, 255, .018);
  font-size: clamp(190px, 28vw, 420px);
  font-weight: 950;
  line-height: .7;
  letter-spacing: -.12em;
  pointer-events: none;
  user-select: none;
}

.portal-v3 .home-hero-layout {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.13fr) minmax(340px, .76fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: center;
  min-height: 480px;
  padding: clamp(48px, 5vw, 66px) clamp(30px, 5.4vw, 70px);
}

.portal-v3 .home-hero-copy {
  max-width: 760px;
}

.portal-v3 .home-de-badge {
  width: fit-content;
  min-height: 31px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(228, 191, 105, .18);
  border-radius: 999px;
  color: #d5c18d;
  background: rgba(228, 191, 105, .055);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-v3 .home-de-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-mint);
  box-shadow: 0 0 0 5px rgba(97, 214, 164, .075), 0 0 16px rgba(97, 214, 164, .45);
}

.portal-v3 .home-hero-copy h1 {
  max-width: 800px;
  margin: 23px 0 19px;
  color: #f4f7f8;
  font-size: clamp(54px, 6.4vw, 88px);
  font-weight: 790;
  line-height: .92;
  letter-spacing: -.068em;
}

.portal-v3 .home-hero-copy h1 em {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, #f5dea1 0, #ddb45c 56%, #f0cf84 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: inherit;
  font-style: normal;
  text-shadow: 0 12px 42px rgba(218, 171, 76, .09);
}

.portal-v3 .home-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: #a6b5c0;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.72;
}

.portal-v3 .home-hero-actions {
  gap: 11px;
  margin-top: 29px;
}

.portal-v3 .home-hero-actions .button {
  min-height: 51px;
  padding: 0 21px;
}

.portal-v3 .home-hero-actions .button span {
  font-size: 16px;
  transition: transform .18s ease;
}

.portal-v3 .home-hero-actions .button:hover span {
  transform: translateX(3px);
}

.portal-v3 .home-hero-assurances {
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 24px;
  padding: 0;
  border: 0;
}

.portal-v3 .home-hero-assurances span {
  gap: 6px;
  color: #778b99;
  font-size: 9px;
  font-weight: 650;
}

.portal-v3 .home-hero-assurances b {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .14);
  border-radius: 7px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .05);
  font-size: 8px;
}

.portal-v3 .home-command-card {
  position: relative;
  isolation: isolate;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(223, 238, 247, .15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 191, 105, .12), transparent 16rem),
    linear-gradient(150deg, rgba(17, 39, 58, .92), rgba(6, 17, 28, .96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .39), inset 0 1px rgba(255, 255, 255, .07);
  transform: rotate(.55deg);
}

.portal-v3 .home-command-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(228, 191, 105, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(228, 191, 105, .018), 0 0 0 44px rgba(228, 191, 105, .012);
}

.portal-v3 .home-command-card:hover {
  border-color: rgba(228, 191, 105, .26);
  transform: rotate(0) translateY(-3px);
}

.portal-v3 .home-command-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 1px 2px 16px;
  border-bottom: 1px solid rgba(195, 216, 229, .09);
}

.portal-v3 .home-command-logo {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(228, 191, 105, .21);
  border-radius: 16px;
  background: rgba(5, 14, 23, .66);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.portal-v3 .home-command-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.portal-v3 .home-command-head small {
  color: #718695;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-v3 .home-command-head strong {
  margin-top: 5px;
  color: #eef2f4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.portal-v3 .home-command-badge {
  align-self: start;
  min-width: 36px;
  padding: 6px 7px;
  border: 1px solid rgba(228, 191, 105, .18);
  border-radius: 9px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .055);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.portal-v3 .home-command-state {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 76px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(97, 214, 164, .13);
  border-radius: 16px;
  background: rgba(97, 214, 164, .045);
}

.portal-v3 .home-command-state:hover {
  border-color: rgba(97, 214, 164, .27);
  background: rgba(97, 214, 164, .075);
  transform: translateY(-1px);
}

.portal-v3 .home-command-state > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(97, 214, 164, .16);
  border-radius: 13px;
  background: rgba(97, 214, 164, .065);
}

.portal-v3 .home-command-state > span i {
  width: 9px;
  height: 9px;
  background: var(--v3-mint);
  box-shadow: 0 0 0 6px rgba(97, 214, 164, .08), 0 0 18px rgba(97, 214, 164, .45);
}

.portal-v3 .home-command-state.status-offline,
.portal-v3 .home-command-state.status-unconfigured {
  border-color: rgba(228, 191, 105, .13);
  background: rgba(228, 191, 105, .035);
}

.portal-v3 .home-command-state.status-offline > span,
.portal-v3 .home-command-state.status-unconfigured > span {
  border-color: rgba(228, 191, 105, .14);
  background: rgba(228, 191, 105, .05);
}

.portal-v3 .home-command-state.status-offline > span i,
.portal-v3 .home-command-state.status-unconfigured > span i {
  background: var(--v3-gold);
  box-shadow: 0 0 0 6px rgba(228, 191, 105, .08), 0 0 18px rgba(228, 191, 105, .36);
}

.portal-v3 .home-command-state small {
  color: #718695;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .home-command-state strong {
  margin-top: 4px;
  color: #e9eef1;
  font-size: 11px;
  line-height: 1.35;
}

.portal-v3 .home-command-state > b {
  color: #a9b7c0;
  font-size: 8px;
}

.portal-v3 .home-command-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.portal-v3 .home-command-links > a {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 9px;
  border: 1px solid rgba(188, 209, 222, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .home-command-links > a:hover {
  border-color: rgba(118, 198, 238, .17);
  background: rgba(118, 198, 238, .045);
}

.portal-v3 .home-command-links > a > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .06);
}

.portal-v3 .home-command-links strong {
  color: #dce4e9;
  font-size: 9px;
}

.portal-v3 .home-command-links small {
  margin-top: 2px;
  color: #667b8b;
  font-size: 7px;
}

.portal-v3 .home-command-links b {
  color: #647888;
}

.portal-v3 .home-hero-metrics {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(195, 216, 229, .1);
  background: rgba(3, 11, 18, .28);
  backdrop-filter: blur(14px);
}

.portal-v3 .home-hero-metrics > div {
  min-height: 91px;
  align-content: center;
  padding: 15px clamp(18px, 3vw, 37px);
  border-right: 1px solid rgba(195, 216, 229, .08);
  background: transparent;
}

.portal-v3 .home-hero-metrics > div:last-child {
  border-right: 0;
}

.portal-v3 .home-hero-metrics strong {
  color: #f1f4f6;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 760;
  letter-spacing: -.045em;
}

.portal-v3 .home-hero-metrics span {
  margin-top: 4px;
  color: #6f8392;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-v3 .home-primary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.portal-v3 .home-primary-card {
  --card-accent: var(--v3-ice);
  position: relative;
  isolation: isolate;
  min-height: 178px;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 14px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--v3-line);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .87), rgba(7, 18, 29, .93));
  box-shadow: var(--v3-shadow-soft);
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}

.portal-v3 .home-primary-card:nth-child(1) {
  --card-accent: #f06a76;
}

.portal-v3 .home-primary-card:nth-child(2) {
  --card-accent: #76c6ee;
}

.portal-v3 .home-primary-card:nth-child(3) {
  --card-accent: #e4bf69;
}

.portal-v3 .home-primary-card:nth-child(4) {
  --card-accent: #61d6a4;
}

.portal-v3 .home-primary-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -85px;
  right: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 11%, transparent);
  filter: blur(6px);
  transition: transform .3s ease, opacity .3s ease;
}

.portal-v3 .home-primary-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  opacity: .55;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
}

.portal-v3 .home-primary-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 32%, var(--v3-line));
  box-shadow: 0 23px 55px rgba(0, 0, 0, .29);
  transform: translateY(-5px);
}

.portal-v3 .home-primary-card:hover::before {
  opacity: 1;
  transform: scale(1.14);
}

.portal-v3 .home-primary-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent);
  border-radius: 15px;
  color: color-mix(in srgb, var(--card-accent) 82%, white);
  background: color-mix(in srgb, var(--card-accent) 7%, transparent);
  font-size: 11px;
  font-weight: 900;
}

.portal-v3 .home-primary-card small {
  color: color-mix(in srgb, var(--card-accent) 76%, #8b9ba6);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-v3 .home-primary-card strong {
  margin-top: 6px;
  color: #edf1f3;
  font-size: 15px;
  line-height: 1.2;
}

.portal-v3 .home-primary-card p {
  margin-top: 7px;
  color: #788c9a;
  font-size: 10px;
  line-height: 1.55;
}

.portal-v3 .home-primary-card > b {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, transparent);
  border-radius: 10px;
  color: color-mix(in srgb, var(--card-accent) 82%, white);
  background: color-mix(in srgb, var(--card-accent) 5%, transparent);
  transition: transform .2s ease, background .2s ease;
}

.portal-v3 .home-primary-card:hover > b {
  background: color-mix(in srgb, var(--card-accent) 11%, transparent);
  transform: translateX(3px);
}

.portal-v3 .home-section {
  position: relative;
  margin-top: clamp(62px, 8vw, 100px);
}

.portal-v3 .home-section::before {
  content: "";
  position: absolute;
  top: -35px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 206, 221, .1), transparent);
}

.portal-v3 .home-section-heading {
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.portal-v3 .home-section-heading h2 {
  margin-top: 6px;
  color: #f1f4f5;
  font-size: clamp(31px, 4.3vw, 51px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.052em;
}

.portal-v3 .home-section-heading p {
  margin-top: 8px;
  color: #7d909f;
  font-size: 12px;
}

.portal-v3 .home-section-heading > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(178, 201, 216, .12);
  border-radius: 11px;
  color: #a8b6bf;
  background: rgba(255, 255, 255, .018);
  font-size: 9px;
  font-weight: 750;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.portal-v3 .home-section-heading > a:hover {
  border-color: rgba(228, 191, 105, .27);
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .045);
}

.portal-v3 .home-today-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(290px, .72fr);
  gap: 14px;
}

.portal-v3 .home-news-panel,
.portal-v3 .home-live-panel > div,
.portal-v3 .home-topic-panel,
.portal-v3 .home-discover-card {
  border: 1px solid var(--v3-line);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .84), rgba(7, 18, 29, .91));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .home-news-panel {
  overflow: hidden;
  padding: 8px;
}

.portal-v3 .home-news-list {
  gap: 3px;
}

.portal-v3 .home-news-item {
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: 15px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .home-news-item + .home-news-item {
  border-top-color: rgba(185, 206, 221, .07);
}

.portal-v3 .home-news-item:hover {
  border-color: rgba(118, 198, 238, .14);
  background: rgba(118, 198, 238, .035);
  transform: translateX(3px);
}

.portal-v3 .home-news-item > span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(118, 198, 238, .16);
  border-radius: 13px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .055);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
}

.portal-v3 .home-news-item.breaking > span {
  border-color: rgba(237, 114, 124, .22);
  color: #ff9aa2;
  background: rgba(237, 114, 124, .065);
}

.portal-v3 .home-news-item small {
  color: #657a89;
  font-size: 8px;
}

.portal-v3 .home-news-item strong {
  margin-top: 5px;
  color: #e8edf0;
  font-size: 14px;
  line-height: 1.25;
}

.portal-v3 .home-news-item p {
  margin-top: 6px;
  color: #7c8f9c;
  font-size: 10px;
  line-height: 1.5;
}

.portal-v3 .home-news-item > b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(173, 198, 214, .11);
  border-radius: 10px;
  color: #8ba0ae;
}

.portal-v3 .home-live-panel {
  gap: 14px;
}

.portal-v3 .home-live-panel > div {
  padding: 20px;
}

.portal-v3 .home-server-summary {
  position: relative;
  overflow: hidden;
}

.portal-v3 .home-server-summary::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(97, 214, 164, .075);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(97, 214, 164, .012);
}

.portal-v3 .home-server-summary header {
  position: relative;
  z-index: 1;
}

.portal-v3 .home-server-summary header > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(97, 214, 164, .15);
  border-radius: 13px;
  background: rgba(97, 214, 164, .05);
}

.portal-v3 .home-server-summary header i {
  background: var(--v3-mint);
  box-shadow: 0 0 0 6px rgba(97, 214, 164, .08), 0 0 17px rgba(97, 214, 164, .45);
}

.portal-v3 .home-server-summary small,
.portal-v3 .home-member-card small {
  color: #687d8c;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-v3 .home-server-summary strong,
.portal-v3 .home-member-card strong {
  margin-top: 4px;
  color: #e8edf0;
  font-size: 13px;
}

.portal-v3 .home-server-summary p,
.portal-v3 .home-member-card span {
  position: relative;
  z-index: 1;
  color: #7f929f;
  font-size: 10px;
  line-height: 1.55;
}

.portal-v3 .home-server-summary a,
.portal-v3 .home-member-card a {
  position: relative;
  z-index: 1;
  color: var(--v3-gold);
  font-size: 9px;
  font-weight: 750;
}

.portal-v3 .home-member-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
}

.portal-v3 .home-member-card > a {
  grid-column: 1 / -1;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(228, 191, 105, .13);
  border-radius: 11px;
  background: rgba(228, 191, 105, .035);
}

.portal-v3 .home-member-card img,
.portal-v3 .home-member-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(126, 139, 255, .2);
  border-radius: 14px;
}

.portal-v3 .home-member-icon {
  display: grid;
  place-items: center;
  color: #aab2ff;
  background: rgba(88, 101, 242, .1);
  font-size: 16px;
}

.portal-v3 .faction-grid-home {
  gap: 13px;
}

.portal-v3 .faction-card {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--faction-color) 5%, rgba(15, 32, 49, .88)), rgba(7, 18, 29, .93));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .faction-card::before {
  height: 2px;
  opacity: .7;
}

.portal-v3 .faction-card:hover {
  border-color: color-mix(in srgb, var(--faction-color) 29%, var(--v3-line));
  box-shadow: 0 24px 58px rgba(0, 0, 0, .29);
  transform: translateY(-5px);
}

.portal-v3 .faction-card-link {
  padding: 21px;
}

.portal-v3 .faction-emblem {
  border-radius: 14px;
}

.portal-v3 .home-community-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  gap: 14px;
}

.portal-v3 .home-topic-panel {
  overflow: hidden;
  padding: 8px;
}

.portal-v3 .home-topic-panel-head {
  padding: 12px 13px 16px;
}

.portal-v3 .home-topic-panel-head strong {
  color: #dce4e8;
  font-size: 12px;
}

.portal-v3 .home-topic-panel-head a {
  color: #718695;
  font-size: 8px;
}

.portal-v3 .home-topic-item {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .home-topic-item + .home-topic-item {
  border-top-color: rgba(185, 206, 221, .07);
}

.portal-v3 .home-topic-item:hover {
  border-color: rgba(118, 198, 238, .13);
  background: rgba(118, 198, 238, .03);
  transform: translateX(3px);
}

.portal-v3 .home-topic-item img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(118, 198, 238, .13);
  border-radius: 13px;
}

.portal-v3 .home-topic-item strong {
  color: #dce4e8;
  font-size: 11px;
}

.portal-v3 .home-topic-item span,
.portal-v3 .home-topic-item b small {
  color: #687d8c;
  font-size: 8px;
}

.portal-v3 .home-topic-item > b {
  min-width: 50px;
  color: #aab9c2;
  font-size: 11px;
  text-align: right;
}

.portal-v3 .home-discover-grid {
  gap: 9px;
}

.portal-v3 .home-discover-card {
  grid-template-columns: 40px minmax(0, 1fr) 26px;
  gap: 11px;
  min-height: 79px;
  padding: 12px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.portal-v3 .home-discover-card:hover {
  border-color: rgba(228, 191, 105, .22);
  background: linear-gradient(145deg, rgba(228, 191, 105, .07), rgba(7, 18, 29, .93));
  transform: translateX(-3px);
}

.portal-v3 .home-discover-card > span {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(228, 191, 105, .14);
  border-radius: 13px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .05);
}

.portal-v3 .home-discover-card strong {
  color: #dde5e9;
  font-size: 11px;
}

.portal-v3 .home-discover-card p {
  margin-top: 3px;
  color: #728695;
  font-size: 9px;
  line-height: 1.4;
}

/* Verfeinerte Fraktions- und Community-Bereiche */

.portal-v3 .home-section-heading-polished {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
  margin-bottom: 25px;
  padding: 22px 18px 0;
  text-align: center;
}

.portal-v3 .home-section-heading-polished::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: auto;
  left: 50%;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v3-gold-soft), var(--v3-gold-deep));
  box-shadow: 0 0 20px rgba(228, 191, 105, .27);
  transform: translateX(-50%);
}

.portal-v3 .home-section-heading-polished .eyebrow::before {
  display: none;
}

.portal-v3 .home-section-heading-polished > div {
  max-width: 720px;
}

.portal-v3 .home-section-heading-polished h2 {
  margin-top: 7px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(33px, 3.4vw, 46px);
  font-weight: 790;
  letter-spacing: -.052em;
}

.portal-v3 .home-section-heading-polished p {
  margin-top: 7px;
}

.portal-v3 .home-section-heading-polished > a {
  justify-self: center;
  margin-top: 16px;
  min-height: 41px;
  padding: 0 15px;
  border-radius: 13px;
}

.portal-v3 .home-factions-clean,
.portal-v3 .home-community-section {
  width: min(100%, 1080px);
  margin-right: auto;
  margin-left: auto;
  padding: 27px 28px 28px;
  border: 1px solid rgba(194, 215, 228, .105);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0, rgba(118, 198, 238, .055), transparent 22rem),
    radial-gradient(circle at 92% 0, rgba(228, 191, 105, .045), transparent 19rem),
    linear-gradient(145deg, rgba(10, 24, 38, .72), rgba(5, 14, 23, .82));
  box-shadow: 0 28px 75px rgba(0, 0, 0, .22);
}

.portal-v3 .home-factions-clean::before,
.portal-v3 .home-community-section::before {
  display: none;
}

.portal-v3 .home-factions-clean {
  margin-top: clamp(58px, 6.5vw, 82px);
}

.portal-v3 .home-factions-clean .faction-grid-home {
  gap: 14px;
}

.portal-v3 .home-factions-clean .faction-card {
  min-height: 224px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--faction-color) 11%, transparent), transparent 12rem),
    linear-gradient(145deg, color-mix(in srgb, var(--faction-color) 5%, rgba(15, 32, 49, .91)), rgba(7, 18, 29, .96));
}

.portal-v3 .home-factions-clean .faction-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 18%;
  bottom: auto;
  left: 18%;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--faction-color), transparent);
  box-shadow: 0 0 19px color-mix(in srgb, var(--faction-color) 30%, transparent);
  opacity: .85;
}

.portal-v3 .home-factions-clean .faction-card::after {
  content: attr(data-faction-icon);
  position: absolute;
  z-index: 0;
  right: 11px;
  bottom: 4px;
  width: auto;
  height: auto;
  border-radius: 0;
  color: color-mix(in srgb, var(--faction-color) 64%, white);
  background: none;
  font-size: 72px;
  line-height: 1;
  opacity: .045;
  filter: saturate(.65);
  transform: rotate(-7deg);
  transition: opacity .25s ease, transform .3s ease;
}

.portal-v3 .home-factions-clean .faction-card:hover::after {
  opacity: .09;
  transform: translate(-4px, -5px) rotate(-4deg) scale(1.05);
}

.portal-v3 .home-factions-clean .faction-card-link {
  z-index: 1;
  min-height: 224px;
  padding: 19px 20px 16px;
}

.portal-v3 .home-factions-clean .faction-emblem {
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--faction-color) 35%, transparent);
  border-radius: 15px;
  color: color-mix(in srgb, var(--faction-color) 78%, white);
  background: color-mix(in srgb, var(--faction-color) 10%, rgba(6, 16, 27, .86));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--faction-color) 9%, transparent);
}

.portal-v3 .home-factions-clean .faction-status {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.portal-v3 .home-factions-clean .faction-category {
  margin-top: 17px;
  font-size: 8px;
  letter-spacing: .095em;
}

.portal-v3 .home-factions-clean .faction-card h3 {
  margin: 7px 0;
  font-size: 16px;
  letter-spacing: -.025em;
}

.portal-v3 .home-factions-clean .faction-card p {
  max-width: 95%;
  color: #7f929f;
  font-size: 10px;
  line-height: 1.55;
}

.portal-v3 .home-factions-clean .faction-card-action {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgba(185, 206, 221, .075);
  color: #b9c5cc;
  font-size: 9px;
}

.portal-v3 .home-factions-clean .faction-card-action b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--faction-color) 22%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--faction-color) 6%, transparent);
}

.portal-v3 .home-community-section {
  margin-top: clamp(54px, 6vw, 76px);
}

.portal-v3 .home-community-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: stretch;
  gap: 14px;
}

.portal-v3 .home-topic-panel {
  min-height: 194px;
  padding: 0;
  border-radius: 22px;
}

.portal-v3 .home-topic-panel-head {
  min-height: 67px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(185, 206, 221, .09);
  background: rgba(255, 255, 255, .016);
}

.portal-v3 .home-topic-panel-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.portal-v3 .home-topic-panel-head > div > span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .17);
  border-radius: 12px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .055);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
}

.portal-v3 .home-topic-panel-head > div > div {
  min-width: 0;
}

.portal-v3 .home-topic-panel-head small,
.portal-v3 .home-topic-panel-head strong {
  display: block;
}

.portal-v3 .home-topic-panel-head small {
  color: #667b89;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-v3 .home-topic-panel-head strong {
  margin-top: 4px;
  color: #e2e9ec;
  font-family: inherit;
  font-size: 12px;
  font-weight: 780;
}

.portal-v3 .home-topic-panel-head > a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(118, 198, 238, .12);
  border-radius: 10px;
  color: #8da3b1;
  background: rgba(118, 198, 238, .025);
  font-size: 8px;
  font-weight: 750;
}

.portal-v3 .home-topic-panel-head > a:hover {
  border-color: rgba(118, 198, 238, .27);
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .055);
}

.portal-v3 .home-topic-empty {
  min-height: 126px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: initial;
  gap: 14px;
  padding: 17px 18px;
  background:
    radial-gradient(circle at 11% 50%, rgba(118, 198, 238, .05), transparent 13rem);
}

.portal-v3 .home-topic-empty > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .16);
  border-radius: 15px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .05);
  font-size: 16px;
}

.portal-v3 .home-topic-empty > div {
  min-width: 0;
}

.portal-v3 .home-topic-empty small {
  display: block;
  color: #657a89;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-v3 .home-topic-empty strong {
  margin-top: 5px;
  color: #e1e8eb;
  font-size: 12px;
}

.portal-v3 .home-topic-empty p {
  margin-top: 4px;
  color: #718593;
  font-size: 9px;
  line-height: 1.45;
}

.portal-v3 .home-topic-empty > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(228, 191, 105, .15);
  border-radius: 11px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .045);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.portal-v3 .home-topic-empty > a:hover {
  border-color: rgba(228, 191, 105, .3);
  background: rgba(228, 191, 105, .08);
}

.portal-v3 .home-discover-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-v3 .home-discover-card {
  --discover-accent: var(--v3-gold);
  position: relative;
  isolation: isolate;
  grid-template-columns: 44px minmax(0, 1fr) 29px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  overflow: hidden;
  padding: 13px;
  border-color: color-mix(in srgb, var(--discover-accent) 17%, var(--v3-line));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--discover-accent) 8%, transparent), transparent 10rem),
    linear-gradient(145deg, rgba(15, 32, 49, .87), rgba(7, 18, 29, .94));
}

.portal-v3 .home-discover-card:nth-child(1) {
  --discover-accent: #76c6ee;
}

.portal-v3 .home-discover-card:nth-child(2) {
  --discover-accent: #61d6a4;
}

.portal-v3 .home-discover-card:nth-child(3) {
  --discover-accent: #e4bf69;
}

.portal-v3 .home-discover-card:nth-child(4) {
  --discover-accent: #a494ee;
}

.portal-v3 .home-discover-card:hover {
  border-color: color-mix(in srgb, var(--discover-accent) 34%, var(--v3-line));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--discover-accent) 13%, transparent), transparent 10rem),
    linear-gradient(145deg, rgba(17, 37, 56, .93), rgba(8, 20, 32, .97));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  transform: translateY(-3px);
}

.portal-v3 .home-discover-card > span {
  width: 44px;
  height: 44px;
  border-color: color-mix(in srgb, var(--discover-accent) 25%, transparent);
  border-radius: 14px;
  color: color-mix(in srgb, var(--discover-accent) 82%, white);
  background: color-mix(in srgb, var(--discover-accent) 8%, transparent);
}

.portal-v3 .home-discover-card strong {
  color: #e3e9ec;
  font-size: 11px;
}

.portal-v3 .home-discover-card p {
  margin-top: 4px;
  color: #748795;
  font-size: 8px;
  line-height: 1.45;
}

.portal-v3 .home-discover-card > b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--discover-accent) 18%, transparent);
  border-radius: 9px;
  color: color-mix(in srgb, var(--discover-accent) 75%, white);
  background: color-mix(in srgb, var(--discover-accent) 5%, transparent);
}

/* Forum, Mitglieder und persönliche Bereiche */

.portal-v3 .board-grid,
.portal-v3 .dashboard-layout,
.portal-v3 .profile-layout {
  gap: 18px;
}

.portal-v3 .board-toolbar {
  margin-bottom: 17px;
  padding: 20px 22px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: rgba(11, 25, 39, .66);
}

.portal-v3 .board-toolbar h2 {
  color: #f0f3f5;
  font-size: 27px;
  letter-spacing: -.035em;
}

.portal-v3 .board-toolbar p {
  color: #748896;
}

.portal-v3 .category {
  overflow: hidden;
}

.portal-v3 .category-header {
  min-height: 76px;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .category-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(228, 191, 105, .16);
  border-radius: 13px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .05);
}

.portal-v3 .category-header h3 {
  color: #e6ecef;
  font-size: 14px;
}

.portal-v3 .category-header p {
  color: #718593;
  font-size: 9px;
}

.portal-v3 .forum-row {
  min-height: 91px;
  border-bottom-color: rgba(185, 206, 221, .075);
  transition: background .18s ease, transform .18s ease;
}

.portal-v3 .forum-row:hover {
  background: rgba(118, 198, 238, .025);
  transform: translateX(2px);
}

.portal-v3 .forum-icon {
  border-color: rgba(118, 198, 238, .13);
  border-radius: 13px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .045);
}

.portal-v3 .forum-title {
  color: #e1e8ec;
}

.portal-v3 .forum-description,
.portal-v3 .forum-counts,
.portal-v3 .last-topic span {
  color: #718593;
}

.portal-v3 .sidebar-card {
  overflow: hidden;
}

.portal-v3 .sidebar-card-header {
  border-bottom-color: var(--v3-line);
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .quick-item {
  border-radius: 11px;
}

.portal-v3 .quick-item:hover {
  background: rgba(118, 198, 238, .035);
}

.portal-v3 .dashboard-hero,
.portal-v3 .application-hub-hero,
.portal-v3 .team-hero,
.portal-v3 .faction-portal-hero,
.portal-v3 .server-status-hero {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  background:
    radial-gradient(circle at 90% 0, color-mix(in srgb, var(--role-color, var(--v3-gold)) 11%, transparent), transparent 21rem),
    linear-gradient(145deg, rgba(16, 35, 53, .89), rgba(7, 18, 29, .94));
  box-shadow: var(--v3-shadow);
}

.portal-v3 .dashboard-stat-grid {
  gap: 11px;
}

.portal-v3 .dashboard-stat-grid > div,
.portal-v3 .application-summary-card {
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  background: rgba(12, 27, 42, .78);
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .dashboard-card {
  overflow: hidden;
}

.portal-v3 .dashboard-card > header {
  border-bottom-color: var(--v3-line);
  background: rgba(255, 255, 255, .016);
}

.portal-v3 .profile-hero {
  position: relative;
  overflow: hidden;
}

.portal-v3 .profile-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(228, 191, 105, .06);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(228, 191, 105, .012);
}

.portal-v3 .profile-hero > * {
  position: relative;
  z-index: 1;
}

.portal-v3 .profile-hero > img {
  border: 3px solid rgba(228, 191, 105, .17);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.portal-v3 .role-badge {
  border-radius: 999px;
}

/* Verwaltung */

.portal-v3 .admin-grid-expanded {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.portal-v3 .admin-stat {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--v3-line);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .82), rgba(7, 18, 29, .9));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .admin-stat::after {
  content: "";
  position: absolute;
  right: -27px;
  bottom: -36px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(118, 198, 238, .06);
  border-radius: 50%;
}

.portal-v3 .admin-stat strong {
  color: #eef2f4;
  font-size: 27px;
  font-weight: 760;
  letter-spacing: -.045em;
}

.portal-v3 .admin-stat span {
  color: #718593;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .admin-section-grid {
  gap: 14px;
  margin-bottom: 19px;
}

.portal-v3 .admin-tool-section {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .83), rgba(7, 18, 29, .92));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .admin-tool-section > header {
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .admin-tool-section > header > span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(228, 191, 105, .16);
  border-radius: 13px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .05);
}

.portal-v3 .admin-tool-section > header strong {
  color: #e5ebee;
  font-size: 13px;
}

.portal-v3 .admin-tool-section > header small {
  color: #718593;
  font-size: 9px;
}

.portal-v3 .admin-tool-grid {
  gap: 7px;
  padding: 9px;
}

.portal-v3 .admin-tool-grid > a {
  min-height: 68px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .012);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .admin-tool-grid > a:hover {
  border-color: rgba(118, 198, 238, .14);
  background: rgba(118, 198, 238, .035);
  transform: translateY(-2px);
}

.portal-v3 .admin-tool-grid > a > span {
  border-color: rgba(118, 198, 238, .13);
  border-radius: 11px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .045);
}

.portal-v3 .admin-tool-grid strong {
  color: #dfe6ea;
}

.portal-v3 .admin-tool-grid small {
  color: #6d8190;
}

.portal-v3 .operations-nav-clean {
  position: sticky;
  top: 120px;
  z-index: 45;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  background: rgba(7, 18, 29, .89);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
}

.portal-v3 .operations-home,
.portal-v3 .operations-group > summary {
  min-height: 49px;
  border: 1px solid transparent;
  border-radius: 13px;
}

.portal-v3 .operations-home:hover,
.portal-v3 .operations-group > summary:hover {
  border-color: rgba(118, 198, 238, .12);
  background: rgba(118, 198, 238, .035);
}

.portal-v3 .operations-group.active > summary,
.portal-v3 .operations-group[open] > summary {
  border-color: rgba(228, 191, 105, .18);
  background: rgba(228, 191, 105, .055);
}

.portal-v3 .operations-group-links {
  border-color: rgba(185, 206, 221, .13);
  border-radius: 16px;
  background: rgba(7, 18, 29, .99);
  box-shadow: var(--v3-shadow);
}

.portal-v3 .operations-hero,
.portal-v3 .maintenance-admin-status,
.portal-v3 .security-score-hero {
  overflow: hidden;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(97, 214, 164, .09), transparent 20rem),
    linear-gradient(145deg, rgba(15, 32, 49, .86), rgba(7, 18, 29, .94));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .system-check-card,
.portal-v3 .operations-info-grid > article,
.portal-v3 .security-card,
.portal-v3 .activity-card {
  border: 1px solid var(--v3-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(15, 32, 49, .78), rgba(7, 18, 29, .88));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .operations-safety-note {
  border-color: rgba(97, 214, 164, .13);
  border-radius: 16px;
  background: rgba(97, 214, 164, .035);
}

/* Tabellen */

.portal-v3 .table-wrap {
  scrollbar-color: rgba(118, 198, 238, .25) transparent;
}

.portal-v3 .table {
  border-collapse: separate;
  border-spacing: 0;
}

.portal-v3 .table th {
  padding: 13px 15px;
  border-bottom: 1px solid var(--v3-line);
  color: #8295a2;
  background: rgba(255, 255, 255, .018);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-v3 .table td {
  padding: 13px 15px;
  border-bottom-color: rgba(185, 206, 221, .07);
  color: #b8c5cd;
}

.portal-v3 .table tr:hover td {
  background: rgba(118, 198, 238, .025);
}

/* Footer */

.portal-v3 .site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(185, 206, 221, .09);
  background:
    radial-gradient(circle at 13% 0, rgba(118, 198, 238, .07), transparent 23rem),
    radial-gradient(circle at 86% 0, rgba(228, 191, 105, .06), transparent 22rem),
    #040a11;
}

.portal-v3 .site-footer::before {
  content: "DE";
  position: absolute;
  right: 4%;
  bottom: -4rem;
  color: rgba(255, 255, 255, .016);
  font-size: 260px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.12em;
  pointer-events: none;
}

.portal-v3 .footer-grid {
  position: relative;
  z-index: 1;
  gap: 44px;
  padding-top: 55px;
  padding-bottom: 44px;
}

.portal-v3 .footer-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border: 1px solid rgba(228, 191, 105, .15);
  border-radius: 19px;
  background: rgba(255, 255, 255, .02);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .3));
}

.portal-v3 .footer-brand strong {
  color: #edf1f3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.portal-v3 .footer-brand p {
  color: #718492;
  line-height: 1.55;
}

.portal-v3 .footer-column > strong {
  color: #dce4e8;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-v3 .footer-column a {
  color: #738693;
  font-size: 10px;
  transition: color .18s ease, transform .18s ease;
}

.portal-v3 .footer-column a:hover {
  color: var(--v3-gold-soft);
  transform: translateX(2px);
}

.portal-v3 .footer-bottom {
  position: relative;
  z-index: 1;
  border-top-color: rgba(185, 206, 221, .08);
  color: #536775;
  font-size: 8px;
}

/* Interaktive Lichtfläche */

.portal-v3 .portal-glow-target {
  position: relative;
}

.portal-v3 .portal-glow-target::selection {
  background: var(--v3-gold-soft);
}

.portal-v3 .portal-glow-target > * {
  position: relative;
  z-index: 1;
}

.portal-v3 .portal-glow-target::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(
    280px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, .055),
    transparent 60%
  );
  pointer-events: none;
  transition: opacity .2s ease;
}

.portal-v3 .portal-glow-target:hover::after {
  opacity: 1;
}

.portal-v3 .portal-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .72, .2, 1);
}

.portal-v3 .portal-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes v3-live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 5px rgba(97, 214, 164, .07), 0 0 16px rgba(97, 214, 164, .38);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(97, 214, 164, .025), 0 0 23px rgba(97, 214, 164, .58);
  }
}

.portal-v3 .portal-status i,
.portal-v3 .home-de-badge i,
.portal-v3 .home-command-state.status-online > span i,
.portal-v3 .home-server-summary.status-online header i {
  animation: v3-live-pulse 2.8s ease-in-out infinite;
}

/* Große und mittlere Bildschirme */

@media (max-width: 1220px) {
  .portal-v3 .nav-inner {
    gap: 15px;
  }

  .portal-v3 .site-brand-copy small {
    display: none;
  }

  .portal-v3 .main-nav > a,
  .portal-v3 .nav-more > summary {
    padding: 0 9px;
  }

  .portal-v3 .header-search {
    width: 43px;
  }

  .portal-v3 .header-search input {
    width: 0;
    padding: 0;
    opacity: 0;
  }

  .portal-v3 .header-search:focus-within {
    width: 180px;
  }

  .portal-v3 .header-search:focus-within input {
    width: auto;
    padding-left: 13px;
    opacity: 1;
  }

  .portal-v3 .home-hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
    gap: 38px;
  }

  .portal-v3 .home-hero-copy h1 {
    font-size: clamp(50px, 6.3vw, 75px);
  }

  .portal-v3 .admin-grid-expanded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  body.portal-v3.menu-open {
    overflow: hidden;
  }

  .portal-v3 .utility-links a:nth-child(-n+2) {
    display: none;
  }

  .portal-v3 .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    order: 3;
    border: 1px solid var(--v3-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
  }

  .portal-v3 .nav-toggle span {
    width: 19px;
    background: #b8c5cd;
  }

  .portal-v3 .main-nav {
    position: fixed;
    top: 108px;
    right: 18px;
    left: 18px;
    z-index: 130;
    max-height: calc(100vh - 126px);
    display: none;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(191, 211, 225, .14);
    border-radius: 21px;
    background:
      radial-gradient(circle at 100% 0, rgba(228, 191, 105, .08), transparent 19rem),
      rgba(6, 16, 26, .985);
    box-shadow: var(--v3-shadow);
  }

  .portal-v3 .main-nav.open {
    display: grid;
  }

  .portal-v3 .main-nav > a,
  .portal-v3 .nav-more > summary {
    min-height: 48px;
    align-self: auto;
    padding: 0 14px;
    border: 1px solid transparent;
  }

  .portal-v3 .main-nav > a.active,
  .portal-v3 .nav-more.active > summary,
  .portal-v3 .nav-more[open] > summary {
    color: #0a1420;
  }

  .portal-v3 .nav-more {
    display: block;
  }

  .portal-v3 .nav-more-panel {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 7px;
    border-radius: 16px;
    box-shadow: none;
  }

  .portal-v3 .nav-more-panel::before {
    display: none;
  }

  .portal-v3 .nav-actions {
    margin-left: auto;
  }

  .portal-v3 .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-hero-copy {
    max-width: 760px;
  }

  .portal-v3 .home-command-card {
    max-width: 650px;
    transform: none;
  }

  .portal-v3 .home-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .home-today-grid,
  .portal-v3 .home-community-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-live-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .home-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .operations-nav-clean {
    top: 119px;
    overflow-x: auto;
  }

  .portal-v3 .footer-grid {
    grid-template-columns: 1.35fr repeat(2, minmax(0, .8fr));
  }

  .portal-v3 .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  body.portal-v3 {
    font-size: 14px;
  }

  .portal-v3 .container {
    width: min(100% - 28px, 1320px);
  }

  .portal-v3 .utility-inner {
    min-height: 28px;
  }

  .portal-v3 .portal-status em,
  .portal-v3 .utility-links a:not(:last-child) {
    display: none;
  }

  .portal-v3 .nav-inner {
    min-height: 70px;
  }

  .portal-v3 .site-brand-logo {
    width: 47px;
    height: 47px;
    border-radius: 50%;
  }

  .portal-v3 .site-brand-logo img {
    width: 43px;
    height: 43px;
  }

  .portal-v3 .site-brand-copy strong {
    max-width: 180px;
    overflow: hidden;
    display: block;
    font-size: 16px;
    text-overflow: ellipsis;
  }

  .portal-v3 .main-nav {
    top: 99px;
  }

  .portal-v3 .header-search {
    display: none;
  }

  .portal-v3 .login-link > span:last-child {
    display: none;
  }

  .portal-v3 .login-link {
    min-width: 44px;
    width: 44px;
    padding: 5px;
  }

  .portal-v3 .login-link .discord-mark {
    width: 32px;
    height: 32px;
  }

  .portal-v3 .user-menu > summary > span {
    display: none;
  }

  .portal-v3 .breadcrumbs {
    padding-top: 20px;
  }

  .portal-v3 .page-header {
    align-items: flex-start;
    padding: 21px;
    border-radius: 22px;
  }

  .portal-v3 .page-header h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .portal-v3 .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .portal-v3 .portal-home {
    padding-top: 17px;
    padding-bottom: 58px;
  }

  .portal-v3 .home-hero-clean {
    padding: 0;
    border-radius: 25px;
  }

  .portal-v3 .home-hero-layout {
    gap: 30px;
    min-height: 0;
    padding: 34px 22px 40px;
  }

  .portal-v3 .home-hero-clean::after {
    top: -27rem;
    right: -27rem;
  }

  .portal-v3 .home-hero-monogram {
    right: -4%;
    bottom: 4%;
  }

  .portal-v3 .home-hero-copy h1 {
    margin-top: 19px;
    font-size: clamp(48px, 15vw, 68px);
  }

  .portal-v3 .home-hero-copy > p {
    font-size: 13px;
  }

  .portal-v3 .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-hero-actions .button {
    width: 100%;
  }

  .portal-v3 .home-hero-assurances {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-command-card {
    padding: 13px;
    border-radius: 20px;
  }

  .portal-v3 .home-command-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .portal-v3 .home-command-logo {
    width: 48px;
    height: 48px;
  }

  .portal-v3 .home-command-logo img {
    width: 43px;
    height: 43px;
  }

  .portal-v3 .home-command-head strong {
    font-size: 13px;
  }

  .portal-v3 .home-command-state {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .portal-v3 .home-command-state > b {
    grid-column: 2;
  }

  .portal-v3 .home-command-links {
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
  }

  .portal-v3 .home-hero-metrics > div {
    min-height: 74px;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(195, 216, 229, .08);
  }

  .portal-v3 .home-hero-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .portal-v3 .home-primary-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .portal-v3 .home-primary-card {
    min-height: 145px;
  }

  .portal-v3 .home-section {
    margin-top: 68px;
  }

  .portal-v3 .home-section-heading {
    align-items: flex-start;
  }

  .portal-v3 .home-section-heading h2 {
    font-size: clamp(31px, 10vw, 43px);
  }

  .portal-v3 .home-section-heading-polished {
    min-height: 0;
    margin-bottom: 16px;
    padding: 19px 6px 0;
    text-align: center;
  }

  .portal-v3 .home-section-heading-polished::before {
    top: 0;
    bottom: auto;
    left: 50%;
    width: 56px;
    height: 2px;
    transform: translateX(-50%);
  }

  .portal-v3 .home-section-heading-polished h2 {
    font-size: clamp(29px, 9vw, 39px);
  }

  .portal-v3 .home-factions-clean,
  .portal-v3 .home-community-section {
    width: 100%;
    padding: 20px 14px 15px;
    border-radius: 24px;
  }

  .portal-v3 .home-community-grid {
    gap: 10px;
  }

  .portal-v3 .home-topic-panel {
    min-height: 0;
  }

  .portal-v3 .home-topic-empty {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .portal-v3 .home-topic-empty > span {
    width: 44px;
    height: 44px;
  }

  .portal-v3 .home-topic-empty > a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .portal-v3 .home-news-item {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .portal-v3 .home-news-item > span {
    min-height: 43px;
  }

  .portal-v3 .home-news-item > b {
    display: none;
  }

  .portal-v3 .home-live-panel,
  .portal-v3 .home-discover-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-topic-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .portal-v3 .home-topic-item img {
    width: 38px;
    height: 38px;
  }

  .portal-v3 .home-topic-item > b {
    display: none;
  }

  .portal-v3 .admin-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .admin-section-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .operations-nav-clean {
    top: 103px;
  }

  .portal-v3 .operations-group > summary div {
    display: none;
  }

  .portal-v3 .operations-group-links {
    position: fixed;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .portal-v3 .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .portal-v3 .footer-brand {
    grid-column: 1 / -1;
  }

  .portal-v3 .footer-column:last-child {
    grid-column: auto;
  }

  .portal-v3 .footer-bottom {
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .portal-v3 .site-brand-copy strong {
    max-width: 134px;
    font-size: 14px;
  }

  .portal-v3 .nav-toggle {
    width: 41px;
    height: 41px;
  }

  .portal-v3 .nav-more-panel {
    grid-template-columns: 1fr;
  }

  .portal-v3 .home-hero-clean {
    padding: 0;
  }

  .portal-v3 .home-hero-layout {
    padding-right: 18px;
    padding-left: 18px;
  }

  .portal-v3 .home-de-badge {
    letter-spacing: .08em;
  }

  .portal-v3 .home-hero-copy h1 {
    font-size: clamp(43px, 15vw, 58px);
  }

  .portal-v3 .home-command-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .portal-v3 .home-command-badge {
    display: none;
  }

  .portal-v3 .home-hero-metrics > div {
    padding-right: 18px;
    padding-left: 18px;
  }

  .portal-v3 .home-section-heading > a {
    width: 100%;
    justify-content: center;
  }

  .portal-v3 .home-topic-panel-head > a {
    min-height: 30px;
    padding: 0 8px;
  }

  .portal-v3 .home-factions-clean .faction-card,
  .portal-v3 .home-factions-clean .faction-card-link {
    min-height: 210px;
  }

  .portal-v3 .admin-grid-expanded {
    grid-template-columns: 1fr 1fr;
  }

  .portal-v3 .admin-stat {
    min-height: 90px;
    padding: 14px;
  }

  .portal-v3 .footer-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .footer-brand,
  .portal-v3 .footer-column:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-v3 *,
  .portal-v3 *::before,
  .portal-v3 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .portal-v3 .portal-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   DESIGN V10 · BNN, FORUM UND FRAKTIONEN
   Robuste BNN-Texte und verfeinerte Leseansicht, übrige Bereiche bleiben erhalten.
   ========================================================================== */

/* BNN · digitale Stadtredaktion */

.portal-v3.bnn-network .site-main,
.portal-v3.bnn-article-view .site-main {
  background:
    radial-gradient(circle at 48% -16rem, rgba(204, 52, 67, .11), transparent 37rem),
    radial-gradient(circle at 96% 42rem, rgba(227, 193, 125, .045), transparent 30rem),
    linear-gradient(180deg, rgba(2, 8, 14, .26), transparent 44rem);
}

.portal-v3 .bnn-masthead > .container,
.portal-v3 .bnn-breaking > .container,
.portal-v3 .bnn-content,
.portal-v3 .bnn-article-page > .container {
  width: min(1160px, calc(100% - 56px));
}

.portal-v3 .bnn-page {
  padding-bottom: 92px;
  background: none;
}

.portal-v3 .bnn-masthead {
  position: relative;
  overflow: hidden;
  border-top: 0;
  border-bottom: 1px solid rgba(226, 94, 107, .18);
  background:
    linear-gradient(90deg, rgba(204, 51, 66, .08), transparent 32%),
    rgba(4, 11, 18, .94);
}

.portal-v3 .bnn-masthead::after {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - 1160px) / 2));
  bottom: -56px;
  width: 260px;
  height: 130px;
  border: 1px solid rgba(221, 82, 95, .07);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.portal-v3 .bnn-masthead > .container {
  position: relative;
  z-index: 1;
  min-height: 122px;
  padding: 18px 0;
}

.portal-v3 .bnn-brand {
  gap: 19px;
}

.portal-v3 .bnn-brand > span {
  position: relative;
  min-width: 96px;
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 151, 161, .25);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(205, 51, 66, .98), rgba(119, 19, 31, .98));
  box-shadow:
    0 18px 40px rgba(91, 8, 19, .3),
    inset 0 1px rgba(255, 255, 255, .13);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 920;
  letter-spacing: -.075em;
  text-shadow: none;
}

.portal-v3 .bnn-brand > span::after {
  content: "";
  position: absolute;
  inset: auto -12px -15px 34px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.portal-v3 .bnn-brand > div {
  padding-left: 19px;
  border-left-color: rgba(231, 91, 104, .2);
}

.portal-v3 .bnn-brand strong {
  color: #f7f8f9;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(21px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.048em;
}

.portal-v3 .bnn-brand small {
  margin-top: 8px;
  color: #788b98;
  font-size: 8px;
  letter-spacing: .155em;
}

.portal-v3 .bnn-edition-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.portal-v3 .bnn-edition-meta > span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(231, 91, 104, .17);
  border-radius: 999px;
  color: #de7580;
  background: rgba(183, 45, 58, .055);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portal-v3 .bnn-edition-meta > span i,
.portal-v3 .bnn-desk-strip > span:first-child i,
.portal-v3 .bnn-visual-live i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #63d9a7;
  box-shadow: 0 0 0 4px rgba(99, 217, 167, .08);
}

.portal-v3 .bnn-edition-meta time {
  color: #758794;
  font: 650 9px/1.3 Inter, "Segoe UI", sans-serif;
}

.portal-v3 .bnn-breaking {
  border-bottom-color: rgba(244, 108, 120, .2);
  background: linear-gradient(90deg, #811522, #bd2c3a 48%, #861624);
  box-shadow: 0 12px 32px rgba(86, 8, 18, .14);
}

.portal-v3 .bnn-breaking > .container {
  min-height: 40px;
  gap: 24px;
}

.portal-v3 .bnn-breaking strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-v3 .bnn-breaking strong i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .1);
}

.portal-v3 .bnn-breaking a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-v3 .bnn-breaking a span {
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
}

.portal-v3 .bnn-content {
  padding-top: 28px;
}

.portal-v3 .bnn-category-nav {
  gap: 6px;
  overflow-x: auto;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 17px;
  background: rgba(9, 21, 33, .82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
  scrollbar-width: none;
}

.portal-v3 .bnn-category-nav::-webkit-scrollbar {
  display: none;
}

.portal-v3 .bnn-category-nav a {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #8395a1;
  background: transparent;
  font-size: 8px;
}

.portal-v3 .bnn-category-nav a:hover,
.portal-v3 .bnn-category-nav a.active {
  border-color: rgba(247, 128, 140, .24);
  color: #fff;
  background: linear-gradient(135deg, rgba(198, 45, 59, .94), rgba(146, 26, 39, .94));
  box-shadow: 0 10px 22px rgba(102, 15, 25, .22);
}

.portal-v3 .bnn-desk-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 13px 7px 0;
  color: #617582;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.portal-v3 .bnn-desk-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.portal-v3 .bnn-desk-strip > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 1px;
  border-radius: 50%;
  background: rgba(201, 219, 231, .27);
}

.portal-v3 .bnn-newsroom-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin: 45px 2px 20px;
}

.portal-v3 .bnn-newsroom-heading h2 {
  max-width: 690px;
  margin: 7px 0 0;
  color: #f1f3f5;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 830;
  line-height: 1.02;
  letter-spacing: -.057em;
}

.portal-v3 .bnn-newsroom-heading > p {
  max-width: 350px;
  margin: 0 0 3px;
  color: #718592;
  font-size: 10px;
  line-height: 1.65;
  text-align: right;
}

.portal-v3 .bnn-newsroom-heading > p strong {
  display: block;
  margin-bottom: 3px;
  color: #a9b7c0;
  font-size: 9px;
}

.portal-v3 .bnn-newsroom-heading .eyebrow,
.portal-v3 .bnn-latest-section .eyebrow {
  color: #e16a76;
}

.portal-v3 .bnn-lead-story {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .72fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(212, 232, 243, .13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 10%, rgba(196, 44, 59, .075), transparent 23rem),
    linear-gradient(145deg, #101f2d, #07121d);
  box-shadow: 0 36px 96px rgba(0, 0, 0, .37);
}

.portal-v3 .bnn-lead-story::after {
  display: none;
}

.portal-v3 .bnn-lead-story > .bnn-lead-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(40px, 5vw, 62px);
}

.portal-v3 .bnn-lead-copy::before {
  content: "";
  width: 52px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e25260, rgba(226, 82, 96, .16));
}

.portal-v3 .bnn-lead-kicker {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 15px;
}

.portal-v3 .bnn-lead-kicker > span,
.portal-v3 .bnn-article > header > span {
  color: #f27b86;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-v3 .bnn-lead-kicker > small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #637784;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portal-v3 .bnn-lead-kicker > small::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b5424d;
}

.portal-v3 .bnn-lead-story h1 {
  width: 100%;
  max-width: 660px;
  margin: 13px 0 17px;
  color: #f6f7f8;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(40px, 5.5vw, 66px);
  font-weight: 840;
  line-height: .98;
  letter-spacing: -.064em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-v3 .bnn-lead-story p {
  width: 100%;
  max-width: 590px;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #a8b5be;
  font: 400 15px/1.68 Inter, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.portal-v3 .bnn-lead-story footer {
  min-width: 0;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 31px;
}

.portal-v3 .bnn-lead-story footer > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.portal-v3 .bnn-lead-story footer > div strong {
  color: #aab8c0;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portal-v3 .bnn-lead-story footer > div small {
  color: #637682;
  font-size: 8px;
}

.portal-v3.bnn-network .bnn-lead-story .button-primary {
  flex: 0 0 auto;
  min-height: 43px;
  gap: 15px;
  color: #fff;
  background: linear-gradient(135deg, #dc4d5b, #9b1e2e);
  border-color: rgba(255, 154, 164, .28);
  box-shadow: 0 14px 30px rgba(114, 17, 29, .3);
}

.portal-v3.bnn-network .bnn-lead-story .button-primary span {
  font-size: 13px;
  transition: transform .18s ease;
}

.portal-v3.bnn-network .bnn-lead-story .button-primary:hover span {
  transform: translateX(3px);
}

.portal-v3 .bnn-lead-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  border-left: 1px solid rgba(210, 230, 242, .09);
}

.portal-v3 .bnn-lead-visual.has-image {
  padding: 0;
  background: #07111b;
}

.portal-v3 .bnn-lead-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 27, .26), transparent 38%),
    linear-gradient(0deg, rgba(7, 17, 27, .35), transparent 45%);
  pointer-events: none;
}

.portal-v3 .bnn-lead-visual.has-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform .45s ease;
}

.portal-v3 .bnn-lead-visual.has-image:hover img {
  transform: scale(1.025);
}

.portal-v3 .bnn-lead-visual.is-brand {
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(225, 76, 91, .24), transparent 14rem),
    linear-gradient(145deg, #121b29, #080e18);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.portal-v3 .bnn-lead-visual.is-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -85px;
  bottom: 58px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(229, 91, 104, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(229, 91, 104, .025),
    0 0 0 90px rgba(229, 91, 104, .016);
}

.portal-v3 .bnn-visual-live {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(213, 230, 240, .1);
  border-radius: 999px;
  color: #a9b7c0;
  background: rgba(4, 12, 20, .52);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .bnn-lead-visual.is-brand > strong {
  align-self: center;
  color: rgba(255, 255, 255, .92);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(86px, 9vw, 132px);
  font-weight: 930;
  line-height: .8;
  letter-spacing: -.11em;
  text-shadow: 0 22px 55px rgba(0, 0, 0, .38);
}

.portal-v3 .bnn-lead-visual.is-brand > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(213, 230, 240, .1);
}

.portal-v3 .bnn-lead-visual.is-brand > div span {
  color: #d56570;
  font-size: 8px;
  font-weight: 870;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .bnn-lead-visual.is-brand > div small {
  color: #687b88;
  font-size: 8px;
}

.portal-v3 .bnn-empty-lead {
  min-height: 340px;
  border-radius: 29px;
  background:
    radial-gradient(circle at 82% 0, rgba(188, 42, 57, .12), transparent 22rem),
    linear-gradient(145deg, rgba(14, 31, 45, .9), rgba(6, 16, 26, .96));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .bnn-latest-section {
  margin-top: 64px;
}

.portal-v3 .bnn-latest-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  padding: 0 2px 17px;
  border-bottom: 1px solid rgba(192, 213, 226, .09);
}

.portal-v3 .bnn-latest-section > header h2 {
  margin: 6px 0 0;
  color: #edf1f3;
  font-size: clamp(27px, 3vw, 36px);
  letter-spacing: -.048em;
}

.portal-v3 .bnn-latest-section > header p {
  margin: 6px 0 0;
  color: #6f828e;
  font-size: 9px;
}

.portal-v3 .bnn-latest-section > header > span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(216, 90, 102, .16);
  border-radius: 999px;
  color: #c15e68;
  background: rgba(183, 45, 58, .05);
  font-size: 8px;
  font-weight: 820;
}

.portal-v3 .bnn-story-grid {
  gap: 15px;
  margin-top: 0;
}

.portal-v3 .bnn-story-grid > article {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(185, 46, 60, .045), transparent 12rem),
    linear-gradient(145deg, rgba(14, 30, 45, .93), rgba(6, 16, 26, .98));
  box-shadow: 0 17px 44px rgba(0, 0, 0, .18);
}

.portal-v3 .bnn-story-grid-featured > article:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(240px, .88fr) minmax(0, 1.12fr);
}

.portal-v3 .bnn-story-grid > article:hover {
  border-color: rgba(218, 82, 95, .31);
  box-shadow: 0 25px 58px rgba(0, 0, 0, .27);
  transform: translateY(-4px);
}

.portal-v3 .bnn-story-image {
  min-height: 205px;
  border-bottom-color: rgba(192, 213, 226, .08);
  background:
    radial-gradient(circle at 75% 22%, rgba(196, 48, 63, .17), transparent 11rem),
    linear-gradient(145deg, #111d2b, #070e17);
}

.portal-v3 .bnn-story-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 35px 35px;
  pointer-events: none;
}

.portal-v3 .bnn-story-image img {
  position: relative;
  z-index: 1;
  height: 205px;
}

.portal-v3 .bnn-story-grid-featured > article:first-child .bnn-story-image img,
.portal-v3 .bnn-story-grid-featured > article:first-child .bnn-story-image {
  height: 100%;
  min-height: 315px;
}

.portal-v3 .bnn-story-image.fallback > span {
  position: relative;
  z-index: 1;
  color: rgba(234, 91, 105, .17);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 60px;
  text-shadow: 0 18px 36px rgba(0, 0, 0, .26);
}

.portal-v3 .bnn-story-number {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 12px;
  color: rgba(224, 234, 240, .36);
  font-size: 8px;
  font-style: normal;
  font-weight: 840;
  letter-spacing: .08em;
}

.portal-v3 .bnn-story-image > b {
  z-index: 3;
  left: 12px;
  top: 12px;
  padding: 6px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #d94150, #941c2b);
  box-shadow: 0 9px 20px rgba(91, 8, 19, .25);
}

.portal-v3 .bnn-story-grid > article > div {
  display: flex;
  min-height: 215px;
  flex-direction: column;
  padding: 21px;
}

.portal-v3 .bnn-story-grid-featured > article:first-child > div {
  justify-content: center;
  padding: 28px;
}

.portal-v3 .bnn-story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-v3 .bnn-story-meta small {
  color: #df6874;
}

.portal-v3 .bnn-story-meta > span {
  color: #5f7380;
  font-size: 7px;
  font-weight: 750;
  text-transform: uppercase;
}

.portal-v3 .bnn-story-grid h2 {
  margin: 9px 0 7px;
  color: #e8ecef;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 770;
  line-height: 1.16;
  letter-spacing: -.038em;
}

.portal-v3 .bnn-story-grid-featured > article:first-child h2 {
  font-size: clamp(24px, 2.6vw, 33px);
}

.portal-v3 .bnn-story-grid p {
  color: #788b98;
  font: 400 10px/1.65 Inter, "Segoe UI", sans-serif;
}

.portal-v3 .bnn-story-read {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: #b8c4cb;
  font-size: 8px;
  font-weight: 790;
}

.portal-v3 .bnn-story-read span {
  color: #dc5b68;
  font-size: 11px;
  transition: transform .18s ease;
}

.portal-v3 .bnn-story-read:hover {
  color: #fff;
}

.portal-v3 .bnn-story-read:hover span {
  transform: translateX(3px);
}

.portal-v3 .bnn-story-grid footer {
  margin-top: auto;
}

.portal-v3 .bnn-project-news,
.portal-v3 .bnn-related {
  margin-top: 62px;
  padding: 25px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(13, 29, 44, .78), rgba(6, 16, 26, .9));
  box-shadow: 0 19px 50px rgba(0, 0, 0, .18);
}

.portal-v3 .bnn-project-news {
  border-top-color: rgba(221, 83, 96, .25);
}

.portal-v3 .bnn-project-news > div > a,
.portal-v3 .bnn-related > div:last-child > a {
  border-color: rgba(192, 213, 226, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.portal-v3 .bnn-project-news > div > a:hover,
.portal-v3 .bnn-related > div:last-child > a:hover {
  border-color: rgba(222, 91, 104, .22);
  background: rgba(204, 52, 67, .045);
  transform: translateY(-2px);
}

.portal-v3 .bnn-article-page {
  padding-top: 12px;
}

.portal-v3 .bnn-article-topbar {
  max-width: 1000px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 7px auto 15px;
  padding: 10px 15px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 18px;
  background: rgba(9, 21, 33, .78);
}

.portal-v3 .bnn-article-topbar > a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-v3 .bnn-article-topbar > a > span {
  min-width: 53px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 139, 150, .21);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #c53242, #7d1523);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.055em;
}

.portal-v3 .bnn-article-topbar > a > div,
.portal-v3 .bnn-article-topbar > div {
  display: grid;
  gap: 3px;
}

.portal-v3 .bnn-article-topbar strong {
  color: #dfe5e9;
  font-size: 10px;
}

.portal-v3 .bnn-article-topbar small {
  color: #647783;
  font-size: 7px;
}

.portal-v3 .bnn-article-topbar > div {
  justify-items: end;
}

.portal-v3 .bnn-article-topbar > div > span {
  color: #dc6672;
  font-size: 8px;
  font-weight: 840;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-v3 .bnn-article {
  max-width: 1000px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 47, 62, .055), transparent 24rem),
    rgba(7, 17, 27, .92);
  box-shadow: 0 34px 95px rgba(0, 0, 0, .38);
}

.portal-v3 .bnn-article,
.portal-v3 .bnn-article * {
  min-width: 0;
}

.portal-v3 .bnn-article > header {
  position: relative;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
  gap: clamp(28px, 4vw, 46px);
  margin: 0;
  overflow: hidden;
  padding: clamp(39px, 5vw, 58px);
  border: 0;
  background:
    radial-gradient(circle at 8% 0, rgba(197, 47, 62, .085), transparent 22rem),
    linear-gradient(145deg, rgba(15, 31, 45, .91), rgba(7, 17, 27, .97));
}

.portal-v3 .bnn-article > header::after {
  content: "";
  position: absolute;
  left: clamp(39px, 5vw, 58px);
  top: 0;
  width: 66px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #e24f5e, rgba(226, 79, 94, .16));
  pointer-events: none;
}

.portal-v3 .bnn-article > header > .bnn-article-heading {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  color: inherit;
}

.portal-v3 .bnn-article-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 12px;
}

.portal-v3 .bnn-article-kicker > span {
  color: #f17884;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-v3 .bnn-article-kicker > small {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(215, 86, 99, .14);
  border-radius: 999px;
  color: #8a6c73;
  background: rgba(197, 47, 62, .035);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portal-v3 .bnn-article-heading h1 {
  max-width: 700px;
  margin: 13px 0 17px;
  overflow-wrap: anywhere;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(43px, 6.1vw, 70px);
  font-weight: 840;
  line-height: .98;
  letter-spacing: -.066em;
}

.portal-v3 .bnn-article-heading > p {
  max-width: 690px;
  margin: 0;
  color: #aab7bf;
  font: 400 clamp(16px, 1.7vw, 19px)/1.58 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-v3 .bnn-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(193, 214, 227, .085);
  color: #687c89;
  font-size: 8px;
}

.portal-v3 .bnn-article-meta strong {
  color: #dc606d;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-v3 .bnn-article-meta > :not(:first-child) {
  position: relative;
}

.portal-v3 .bnn-article-meta > :not(:first-child)::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(194, 213, 225, .23);
  transform: translateY(-50%);
}

.portal-v3 .bnn-article-stamp {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(216, 90, 102, .15);
  border-radius: 23px;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    radial-gradient(circle at 100% 0, rgba(222, 75, 90, .23), transparent 12rem),
    linear-gradient(145deg, #111b29, #090f19);
  background-size: 36px 36px, 36px 36px, auto, auto;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.portal-v3 .bnn-article-stamp::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -76px;
  bottom: -72px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(230, 95, 108, .15);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(230, 95, 108, .025),
    0 0 0 64px rgba(230, 95, 108, .014);
}

.portal-v3 .bnn-article-stamp > small {
  align-self: flex-start;
  padding: 7px 9px;
  border: 1px solid rgba(208, 226, 237, .1);
  border-radius: 999px;
  color: #8b9aa4;
  background: rgba(3, 10, 17, .38);
  font-size: 6px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-v3 .bnn-article-stamp > strong {
  align-self: center;
  color: #f3f4f5;
  font-size: 61px;
  font-weight: 930;
  line-height: .8;
  letter-spacing: -.105em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

.portal-v3 .bnn-article-stamp > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(208, 226, 237, .095);
  color: #667a87;
  font-size: 7px;
  font-weight: 780;
  text-transform: uppercase;
}

.portal-v3 .bnn-article > figure,
.portal-v3 .bnn-article-body {
  max-width: none;
}

.portal-v3 .bnn-article > figure {
  margin: 30px clamp(22px, 5vw, 54px) 0;
  overflow: hidden;
  border-radius: 21px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .22);
}

.portal-v3 .bnn-article-body {
  margin: 0;
  padding:
    clamp(42px, 6vw, 66px)
    max(clamp(24px, 6vw, 68px), calc((100% - 760px) / 2));
  border: 0;
  border-top: 1px solid rgba(193, 214, 227, .085);
  color: #acb9c1;
  background:
    linear-gradient(180deg, rgba(15, 31, 45, .46), rgba(8, 19, 30, .76));
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portal-v3 .bnn-article > figure + .bnn-article-body {
  border-top-color: transparent;
}

.portal-v3 .bnn-article-body > p:first-child {
  color: #c1cbd1;
  font-size: 16px;
}

.portal-v3 .bnn-article-body h2,
.portal-v3 .bnn-article-body h3,
.portal-v3 .bnn-article-body h4 {
  overflow-wrap: anywhere;
}

.portal-v3 .bnn-article-body img,
.portal-v3 .bnn-article-body video,
.portal-v3 .bnn-article-body iframe,
.portal-v3 .bnn-article-body table {
  max-width: 100%;
}

.portal-v3 .bnn-article-body pre {
  max-width: 100%;
  overflow-x: auto;
}

.portal-v3 .bnn-article > footer {
  width: auto;
  max-width: none;
  min-height: 83px;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 18px clamp(24px, 5vw, 56px);
  border: 0;
  border-top: 1px solid rgba(212, 64, 79, .3);
  border-radius: 0;
  background: rgba(3, 9, 15, .82);
}

.portal-v3 .bnn-article-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-v3 .bnn-article-footer-brand > span {
  color: #fff;
  font-size: 28px;
  font-weight: 930;
  line-height: 1;
  letter-spacing: -.085em;
  text-shadow: 2px 0 #b31e2b;
}

.portal-v3 .bnn-article-footer-brand strong,
.portal-v3 .bnn-article-footer-brand small {
  display: block;
}

.portal-v3 .bnn-article-footer-brand strong {
  color: #dce3e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.portal-v3 .bnn-article-footer-brand small {
  margin-top: 3px;
  color: #5e707c;
  font-size: 7px;
}

.portal-v3 .bnn-article > footer > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(216, 90, 102, .16);
  border-radius: 11px;
  color: #bdc8ce;
  background: rgba(197, 47, 62, .045);
  font-size: 8px;
  font-weight: 790;
}

.portal-v3 .bnn-article > footer > a span {
  color: #e36672;
  font-size: 12px;
  transition: transform .18s ease;
}

.portal-v3 .bnn-article > footer > a:hover {
  border-color: rgba(230, 99, 112, .28);
  color: #fff;
  background: rgba(197, 47, 62, .09);
}

.portal-v3 .bnn-article > footer > a:hover span {
  transform: translateX(3px);
}

.portal-v3 .bnn-related {
  max-width: 1000px;
}

/* Forum · moderne Community-Zentrale */

.portal-v3 .forum-index-page {
  width: min(1180px, calc(100% - 56px));
  padding-bottom: 84px;
}

.portal-v3 .forum-overview-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: clamp(38px, 5vw, 66px);
  border: 1px solid rgba(192, 213, 226, .115);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 6%, rgba(118, 198, 238, .115), transparent 24rem),
    radial-gradient(circle at 4% 100%, rgba(228, 191, 105, .07), transparent 23rem),
    linear-gradient(145deg, rgba(15, 33, 50, .94), rgba(5, 15, 25, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
}

.portal-v3 .forum-overview-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -250px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(118, 198, 238, .075);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(118, 198, 238, .018),
    0 0 0 112px rgba(228, 191, 105, .012);
}

.portal-v3 .forum-overview-copy {
  position: relative;
  z-index: 1;
}

.portal-v3 .forum-overview-copy .eyebrow,
.portal-v3 .faction-portal-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.portal-v3 .forum-overview-copy .eyebrow i,
.portal-v3 .faction-portal-copy .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-mint);
  box-shadow: 0 0 15px rgba(97, 214, 164, .55);
}

.portal-v3 .forum-overview-copy h1 {
  margin: 14px 0 17px;
  color: #f4f6f7;
  font-size: clamp(45px, 6vw, 70px);
  font-weight: 820;
  line-height: .98;
  letter-spacing: -.066em;
}

.portal-v3 .forum-overview-copy h1 em,
.portal-v3 .faction-portal-copy h1 em {
  color: var(--v3-gold-soft);
  font-style: normal;
}

.portal-v3 .forum-overview-copy > p {
  max-width: 590px;
  margin: 0;
  color: #98a9b4;
  font-size: 14px;
  line-height: 1.7;
}

.portal-v3 .forum-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.portal-v3 .forum-overview-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 23px;
  background: rgba(4, 13, 22, .52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.portal-v3 .forum-overview-stats > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid rgba(192, 213, 226, .075);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(17, 36, 54, .8), rgba(8, 21, 33, .88));
}

.portal-v3 .forum-overview-stats span,
.portal-v3 .forum-overview-stats small {
  color: #718592;
  font-size: 7px;
  font-weight: 780;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .forum-overview-stats strong {
  margin: 7px 0 4px;
  color: #edf2f4;
  font-size: 29px;
  font-weight: 790;
  letter-spacing: -.045em;
}

.portal-v3 .forum-overview-stats > div:last-child strong {
  color: var(--v3-mint);
}

.portal-v3 .forum-directory-heading {
  scroll-margin-top: 130px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 64px 3px 20px;
}

.portal-v3 .forum-directory-heading h2 {
  margin: 6px 0 0;
  color: #edf1f3;
  font-size: clamp(30px, 4vw, 43px);
  letter-spacing: -.052em;
}

.portal-v3 .forum-directory-heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: #728693;
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.portal-v3 .forum-directory-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
}

.portal-v3 .forum-directory-grid .category {
  margin-bottom: 14px;
  border-color: rgba(192, 213, 226, .105);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(13, 29, 44, .84), rgba(6, 17, 27, .92));
  box-shadow: 0 20px 52px rgba(0, 0, 0, .2);
}

.portal-v3 .forum-directory-grid .category-header {
  min-height: 86px;
  padding: 17px 19px;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 191, 105, .045), transparent 14rem),
    rgba(255, 255, 255, .018);
}

.portal-v3 .forum-directory-grid .category-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 17px;
}

.portal-v3 .forum-directory-grid .category-header > div:nth-child(2) {
  min-width: 0;
}

.portal-v3 .forum-directory-grid .category-header h3 {
  font-size: 15px;
  letter-spacing: -.01em;
  text-transform: none;
}

.portal-v3 .category-area-count {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(118, 198, 238, .13);
  border-radius: 999px;
  color: #7794a5;
  background: rgba(118, 198, 238, .035);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portal-v3 .forum-directory-grid .forum-row {
  min-height: 102px;
  padding: 15px 18px;
}

.portal-v3 .forum-directory-grid .forum-row:hover {
  background:
    linear-gradient(90deg, rgba(118, 198, 238, .045), rgba(118, 198, 238, .012));
  transform: none;
}

.portal-v3 .forum-directory-grid .forum-icon {
  width: 45px;
  height: 45px;
  border-radius: 15px;
}

.portal-v3 .forum-directory-grid .forum-title {
  font-size: 13px;
}

.portal-v3 .forum-directory-grid .forum-description {
  max-width: 460px;
  margin-top: 5px;
  line-height: 1.55;
}

.portal-v3 .forum-directory-grid .board-sidebar {
  position: sticky;
  top: 126px;
  gap: 13px;
}

.portal-v3 .forum-directory-grid .sidebar-card {
  border-color: rgba(192, 213, 226, .105);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(13, 29, 44, .84), rgba(6, 17, 27, .92));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.portal-v3 .forum-directory-grid .sidebar-card-header {
  min-height: 57px;
  padding: 12px 15px;
}

.portal-v3 .forum-directory-grid .sidebar-card-header h3 {
  font-size: 9px;
}

.portal-v3 .forum-directory-grid .sidebar-card-body {
  padding: 12px;
}

/* Fraktionen · zentriertes Organisationsregister */

.portal-v3 .factions-index-page {
  width: min(1180px, calc(100% - 56px));
  padding-bottom: 88px;
}

.portal-v3 .factions-index-page .faction-portal-hero {
  min-height: 410px;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 52px;
  margin-bottom: 14px;
  padding: clamp(40px, 5vw, 66px);
  border-color: rgba(209, 226, 237, .115);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 7%, rgba(228, 191, 105, .105), transparent 23rem),
    radial-gradient(circle at 5% 100%, rgba(118, 198, 238, .075), transparent 22rem),
    linear-gradient(145deg, rgba(15, 33, 50, .95), rgba(5, 15, 25, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
}

.portal-v3 .factions-index-page .faction-portal-hero::after {
  left: 58%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(228, 191, 105, .1), transparent);
}

.portal-v3 .faction-portal-copy h1 {
  margin: 14px 0 17px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(44px, 5.8vw, 68px);
  font-weight: 820;
  line-height: .99;
  letter-spacing: -.064em;
}

.portal-v3 .faction-portal-copy p {
  max-width: 620px;
  color: #98a9b4;
  font-size: 14px;
}

.portal-v3 .faction-register-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(209, 226, 237, .11);
  border-radius: 23px;
  background: rgba(4, 13, 22, .55);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .27);
  backdrop-filter: blur(16px);
}

.portal-v3 .faction-register-card > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 12px;
  padding: 5px 4px 14px;
  border-bottom: 1px solid rgba(192, 213, 226, .085);
}

.portal-v3 .faction-register-card > header > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 191, 105, .28);
  border-radius: 15px;
  color: #f4d995;
  background:
    linear-gradient(145deg, rgba(228, 191, 105, .14), rgba(228, 191, 105, .035));
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
}

.portal-v3 .faction-register-card > header small,
.portal-v3 .faction-register-card > header strong {
  display: block;
}

.portal-v3 .faction-register-card > header small {
  color: #6f8390;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-v3 .faction-register-card > header strong {
  margin-top: 5px;
  color: #e6ecef;
  font-size: 14px;
}

.portal-v3 .faction-register-card > header > i,
.portal-v3 .faction-register-card > footer i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-mint);
  box-shadow: 0 0 14px rgba(97, 214, 164, .58);
}

.portal-v3 .faction-register-list {
  display: grid;
  gap: 7px;
  padding: 11px 0;
}

.portal-v3 .faction-register-list > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 9px;
  border: 1px solid rgba(192, 213, 226, .065);
  border-radius: 14px;
  background: rgba(255, 255, 255, .014);
}

.portal-v3 .faction-register-list > div > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .13);
  border-radius: 11px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .04);
  font-size: 12px;
  font-weight: 850;
}

.portal-v3 .faction-register-list strong {
  overflow: hidden;
  color: #ccd7dd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-v3 .faction-register-list small {
  color: #687c89;
  font-size: 8px;
}

.portal-v3 .faction-register-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 5px 4px;
  border-top: 1px solid rgba(192, 213, 226, .085);
}

.portal-v3 .faction-register-card > footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #748895;
  font-size: 8px;
}

.portal-v3 .faction-register-card > footer > strong {
  color: #c7d2d8;
  font-size: 8px;
}

.portal-v3 .factions-index-page .fraction-summary-strip {
  gap: 10px;
  overflow: visible;
  margin: 0 0 60px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portal-v3 .factions-index-page .fraction-summary-strip > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(13, 29, 44, .8), rgba(6, 17, 27, .9));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

.portal-v3 .factions-index-page .fraction-summary-strip strong {
  font-size: 25px;
  letter-spacing: -.04em;
}

.portal-v3 .factions-index-page .fraction-summary-strip span {
  margin-top: 4px;
  font-size: 7px;
}

.portal-v3 .factions-index-page .faction-directory {
  gap: 44px;
}

.portal-v3 .factions-index-page .faction-category-section {
  scroll-margin-top: 126px;
  padding: 24px;
  border: 1px solid rgba(192, 213, 226, .1);
  border-radius: 27px;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 191, 105, .04), transparent 17rem),
    linear-gradient(145deg, rgba(12, 28, 43, .72), rgba(5, 15, 25, .84));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .19);
}

.portal-v3 .factions-index-page .section-heading-small {
  min-height: 70px;
  margin-bottom: 17px;
  padding: 0 3px 17px;
  border-bottom: 1px solid rgba(192, 213, 226, .085);
}

.portal-v3 .factions-index-page .section-heading-small > div {
  min-width: 0;
  display: block;
}

.portal-v3 .factions-index-page .section-heading-small .eyebrow {
  width: auto;
  height: auto;
  display: inline-flex;
  place-items: initial;
  border: 0;
  border-radius: 0;
  color: var(--v3-gold);
  background: transparent;
  font-size: 8px;
}

.portal-v3 .factions-index-page .section-heading-small h2 {
  margin-top: 6px;
  color: #edf1f3;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(25px, 3vw, 33px);
  letter-spacing: -.047em;
}

.portal-v3 .factions-index-page .fraction-category-count {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(228, 191, 105, .13);
  border-radius: 999px;
  color: #9a8b68;
  background: rgba(228, 191, 105, .035);
  font-size: 8px;
}

.portal-v3 .factions-index-page .faction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.portal-v3 .factions-index-page .faction-card {
  min-height: 246px;
  border-color: color-mix(in srgb, var(--faction-color) 18%, rgba(192, 213, 226, .1));
  border-radius: 21px;
  background:
    radial-gradient(circle at 96% 4%, color-mix(in srgb, var(--faction-color) 10%, transparent), transparent 15rem),
    linear-gradient(145deg, rgba(15, 32, 49, .9), rgba(6, 17, 28, .96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .19);
}

.portal-v3 .factions-index-page .faction-card::before {
  top: 0;
  right: 22%;
  bottom: auto;
  left: 22%;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--faction-color), transparent);
  opacity: .8;
}

.portal-v3 .factions-index-page .faction-card-link {
  min-height: 246px;
  padding: 21px 22px 18px;
}

.portal-v3 .factions-index-page .faction-emblem {
  width: 50px;
  height: 50px;
  border-radius: 16px;
}

.portal-v3 .factions-index-page .faction-category {
  margin-top: 18px;
  font-size: 8px;
}

.portal-v3 .factions-index-page .faction-card h3 {
  margin-top: 7px;
  font-size: 18px;
  letter-spacing: -.035em;
}

.portal-v3 .factions-index-page .faction-card p {
  max-width: 92%;
  color: #7c909e;
  font-size: 10px;
}

.portal-v3 .factions-index-page .faction-card-action {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(192, 213, 226, .075);
}

.portal-v3 .factions-index-page .faction-card-action b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--faction-color) 20%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--faction-color) 5%, transparent);
}

@media (max-width: 1000px) {
  .portal-v3 .forum-overview-hero,
  .portal-v3 .factions-index-page .faction-portal-hero {
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-overview-stats {
    max-width: 700px;
  }

  .portal-v3 .faction-register-card {
    width: min(100%, 620px);
  }

  .portal-v3 .forum-directory-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-directory-grid .board-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .bnn-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v3 .bnn-story-grid-featured > article:first-child {
    grid-column: 1 / -1;
  }

  .portal-v3 .bnn-lead-story {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  }
}

@media (max-width: 760px) {
  .portal-v3 .bnn-masthead > .container,
  .portal-v3 .bnn-breaking > .container,
  .portal-v3 .bnn-content,
  .portal-v3 .bnn-article-page > .container,
  .portal-v3 .forum-index-page,
  .portal-v3 .factions-index-page {
    width: min(100% - 28px, 1180px);
  }

  .portal-v3 .bnn-masthead > .container {
    min-height: 88px;
  }

  .portal-v3 .bnn-brand > span {
    min-width: 66px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 23px;
  }

  .portal-v3 .bnn-brand > div {
    padding-left: 12px;
  }

  .portal-v3 .bnn-brand strong {
    font-size: 16px;
  }

  .portal-v3 .bnn-brand small,
  .portal-v3 .bnn-edition-meta > span {
    display: none;
  }

  .portal-v3 .bnn-edition-meta time {
    display: block;
    max-width: 105px;
    text-align: right;
  }

  .portal-v3 .bnn-content {
    padding-top: 19px;
  }

  .portal-v3 .bnn-desk-strip {
    overflow-x: auto;
    margin-inline: 4px;
    padding-bottom: 3px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .portal-v3 .bnn-desk-strip::-webkit-scrollbar {
    display: none;
  }

  .portal-v3 .bnn-newsroom-heading,
  .portal-v3 .forum-directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-top: 34px;
  }

  .portal-v3 .bnn-newsroom-heading > p,
  .portal-v3 .forum-directory-heading > p {
    max-width: 520px;
    text-align: left;
  }

  .portal-v3 .bnn-lead-story {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 23px;
  }

  .portal-v3 .bnn-lead-story > .bnn-lead-copy {
    grid-row: 2;
    padding: 34px 27px 36px;
  }

  .portal-v3 .bnn-lead-copy::before {
    margin-bottom: 21px;
  }

  .portal-v3 .bnn-lead-visual {
    min-height: 270px;
    grid-row: 1;
    padding: 22px;
    border-bottom: 1px solid rgba(210, 230, 242, .09);
    border-left: 0;
  }

  .portal-v3 .bnn-lead-visual.has-image img {
    min-height: 270px;
    max-height: 360px;
  }

  .portal-v3 .bnn-lead-visual.is-brand > strong {
    font-size: clamp(80px, 22vw, 118px);
  }

  .portal-v3 .bnn-lead-story h1 {
    font-size: clamp(36px, 10.5vw, 52px);
  }

  .portal-v3 .bnn-latest-section {
    margin-top: 45px;
  }

  .portal-v3 .bnn-story-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .bnn-story-grid-featured > article:first-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .portal-v3 .bnn-story-grid-featured > article:first-child .bnn-story-image img,
  .portal-v3 .bnn-story-grid-featured > article:first-child .bnn-story-image {
    height: 205px;
    min-height: 205px;
  }

  .portal-v3 .bnn-project-news,
  .portal-v3 .bnn-related {
    padding: 17px;
    border-radius: 21px;
  }

  .portal-v3 .bnn-project-news > div,
  .portal-v3 .bnn-related > div:last-child {
    grid-template-columns: 1fr;
  }

  .portal-v3 .bnn-article {
    border-radius: 22px;
  }

  .portal-v3 .bnn-article-topbar {
    margin-top: 3px;
  }

  .portal-v3 .bnn-article > header {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 34px 25px 29px;
  }

  .portal-v3 .bnn-article-heading h1 {
    font-size: clamp(40px, 11vw, 54px);
  }

  .portal-v3 .bnn-article-stamp {
    min-height: 128px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
  }

  .portal-v3 .bnn-article-stamp > small {
    grid-column: 1;
    grid-row: 1;
  }

  .portal-v3 .bnn-article-stamp > strong {
    grid-column: 2;
    grid-row: 1 / 3;
    font-size: 53px;
  }

  .portal-v3 .bnn-article-stamp > div {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 16px;
  }

  .portal-v3 .bnn-article-body {
    padding: 38px 27px 43px;
  }

  .portal-v3 .bnn-article > footer {
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 24px;
  }

  .portal-v3 .forum-overview-hero,
  .portal-v3 .factions-index-page .faction-portal-hero {
    min-height: 0;
    gap: 32px;
    padding: 34px 22px;
    border-radius: 25px;
  }

  .portal-v3 .forum-overview-copy h1,
  .portal-v3 .faction-portal-copy h1 {
    font-size: clamp(42px, 13vw, 57px);
  }

  .portal-v3 .forum-overview-actions,
  .portal-v3 .faction-portal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-overview-actions .button,
  .portal-v3 .faction-portal-actions .button {
    width: 100%;
  }

  .portal-v3 .forum-overview-stats {
    grid-template-columns: 1fr 1fr;
    padding: 8px;
  }

  .portal-v3 .forum-overview-stats > div {
    min-height: 98px;
    padding: 13px;
  }

  .portal-v3 .forum-directory-heading {
    margin-top: 48px;
  }

  .portal-v3 .forum-directory-grid .board-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-v3 .category-area-count {
    display: none;
  }

  .portal-v3 .forum-directory-grid .category-header {
    padding: 15px;
  }

  .portal-v3 .forum-directory-grid .forum-row {
    min-height: 88px;
    padding: 13px 14px;
  }

  .portal-v3 .faction-register-card {
    width: 100%;
  }

  .portal-v3 .factions-index-page .fraction-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 43px;
  }

  .portal-v3 .factions-index-page .fraction-summary-strip > div {
    min-height: 82px;
    border: 1px solid rgba(192, 213, 226, .1);
    padding: 14px;
  }

  .portal-v3 .factions-index-page .faction-category-section {
    padding: 16px;
    border-radius: 23px;
  }

  .portal-v3 .factions-index-page .section-heading-small {
    align-items: flex-start;
    min-height: 0;
  }

  .portal-v3 .factions-index-page .faction-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .portal-v3 .bnn-edition-meta {
    display: none;
  }

  .portal-v3 .bnn-brand {
    gap: 10px;
  }

  .portal-v3 .bnn-brand > span {
    min-width: 58px;
    padding: 0 9px;
    font-size: 21px;
  }

  .portal-v3 .bnn-brand strong {
    font-size: 14px;
  }

  .portal-v3 .bnn-desk-strip > span:nth-child(3) {
    display: none;
  }

  .portal-v3 .bnn-newsroom-heading {
    margin-top: 31px;
  }

  .portal-v3 .bnn-lead-story > .bnn-lead-copy {
    padding: 29px 20px 31px;
  }

  .portal-v3 .bnn-lead-story footer {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-v3 .bnn-lead-story footer .button {
    width: 100%;
  }

  .portal-v3 .bnn-lead-visual {
    min-height: 230px;
    padding: 18px;
  }

  .portal-v3 .bnn-lead-visual.has-image img {
    min-height: 230px;
    max-height: 280px;
  }

  .portal-v3 .bnn-lead-visual.is-brand > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .portal-v3 .bnn-latest-section > header {
    align-items: flex-start;
  }

  .portal-v3 .bnn-latest-section > header > span {
    flex: 0 0 auto;
  }

  .portal-v3 .bnn-article-topbar {
    align-items: flex-start;
  }

  .portal-v3 .bnn-article-topbar > div {
    display: none;
  }

  .portal-v3 .bnn-article-heading h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .portal-v3 .bnn-article-heading > p {
    font-size: 16px;
  }

  .portal-v3 .bnn-article-meta {
    gap: 9px 16px;
  }

  .portal-v3 .bnn-article-stamp {
    min-height: 116px;
  }

  .portal-v3 .bnn-article-stamp > strong {
    font-size: 47px;
  }

  .portal-v3 .bnn-article-body {
    padding: 33px 22px 38px;
  }

  .portal-v3 .bnn-article > footer {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 19px 21px 21px;
  }

  .portal-v3 .bnn-article > footer > a {
    width: 100%;
    justify-content: space-between;
  }

  .portal-v3 .forum-overview-stats {
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-overview-stats > div {
    min-height: 88px;
  }

  .portal-v3 .faction-register-list > div {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .portal-v3 .faction-register-list small {
    display: none;
  }

  .portal-v3 .faction-register-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-v3 .factions-index-page .fraction-summary-strip {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   DESIGN V11 · FORENRECHTE
   ========================================================================== */

.portal-v3 .forum-permissions-header {
  margin-bottom: 20px;
}

.portal-v3 .forum-permissions-layout {
  display: grid;
  grid-template-columns: minmax(245px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.portal-v3 .forum-permissions-directory,
.portal-v3 .forum-permissions-editor > section,
.portal-v3 .forum-permissions-form {
  border: 1px solid var(--v3-line);
  background:
    linear-gradient(145deg, rgba(15, 32, 49, .84), rgba(7, 18, 29, .94));
  box-shadow: var(--v3-shadow-soft);
}

.portal-v3 .forum-permissions-directory {
  position: sticky;
  top: 192px;
  overflow: hidden;
  border-radius: 22px;
}

.portal-v3 .forum-permissions-directory > header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .forum-permissions-directory > header > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(228, 191, 105, .19);
  border-radius: 13px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .055);
}

.portal-v3 .forum-permissions-directory > header div {
  display: grid;
  gap: 2px;
}

.portal-v3 .forum-permissions-directory > header strong {
  color: var(--v3-text);
  font-size: 13px;
}

.portal-v3 .forum-permissions-directory > header small {
  color: var(--v3-muted);
  font-size: 9px;
}

.portal-v3 .forum-permissions-directory-scroll {
  max-height: min(650px, calc(100vh - 285px));
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(228, 191, 105, .25) transparent;
}

.portal-v3 .forum-permissions-directory-scroll section + section {
  margin-top: 14px;
}

.portal-v3 .forum-permissions-directory-scroll h2 {
  margin: 0 7px 7px;
  color: #718593;
  font-family: inherit;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-v3 .forum-permissions-directory-scroll a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .012);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.portal-v3 .forum-permissions-directory-scroll a:hover {
  transform: translateX(2px);
  border-color: rgba(118, 198, 238, .14);
  background: rgba(118, 198, 238, .035);
}

.portal-v3 .forum-permissions-directory-scroll a.active {
  border-color: rgba(228, 191, 105, .24);
  background:
    linear-gradient(110deg, rgba(228, 191, 105, .1), rgba(228, 191, 105, .025));
}

.portal-v3 .forum-permissions-directory-scroll a > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .13);
  border-radius: 11px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .045);
}

.portal-v3 .forum-permissions-directory-scroll a > div {
  min-width: 0;
}

.portal-v3 .forum-permissions-directory-scroll a strong,
.portal-v3 .forum-permissions-directory-scroll a small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-v3 .forum-permissions-directory-scroll a strong {
  color: #e2e9ed;
  font-size: 11px;
}

.portal-v3 .forum-permissions-directory-scroll a small {
  margin-top: 3px;
  color: #708391;
  font-size: 8px;
}

.portal-v3 .forum-permissions-directory-scroll a > b {
  color: #617684;
  font-size: 17px;
}

.portal-v3 .forum-permissions-editor {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.portal-v3 .forum-permissions-hero {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  min-height: 106px;
  padding: 20px;
  border-radius: 22px;
}

.portal-v3 .forum-permissions-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(228, 191, 105, .08);
  border-radius: 50%;
}

.portal-v3 .forum-permissions-hero-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(228, 191, 105, .23);
  border-radius: 17px;
  color: var(--v3-gold-soft);
  font-size: 22px;
  background: rgba(228, 191, 105, .065);
}

.portal-v3 .forum-permissions-hero > div:nth-child(2) {
  min-width: 0;
}

.portal-v3 .forum-permissions-hero small {
  color: var(--v3-gold);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.portal-v3 .forum-permissions-hero h2 {
  margin: 3px 0 5px;
  color: var(--v3-text);
  font-family: inherit;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 780;
  letter-spacing: -.035em;
}

.portal-v3 .forum-permissions-hero p {
  overflow: hidden;
  margin: 0;
  color: var(--v3-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-v3 .forum-permissions-hero > span {
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(97, 214, 164, .19);
  border-radius: 999px;
  color: var(--v3-mint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(97, 214, 164, .06);
}

.portal-v3 .forum-permissions-hero > span.locked {
  border-color: rgba(237, 114, 124, .22);
  color: #f1959d;
  background: rgba(237, 114, 124, .065);
}

.portal-v3 .forum-permissions-form {
  padding: 18px;
  border-radius: 22px;
}

.portal-v3 .forum-permission-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-v3 .forum-permission-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(190, 211, 225, .1);
  border-radius: 17px;
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .forum-permission-card > header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 67px;
}

.portal-v3 .forum-permission-card > header > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(118, 198, 238, .15);
  border-radius: 11px;
  color: var(--v3-ice);
  background: rgba(118, 198, 238, .045);
}

.portal-v3 .forum-permission-card > header div {
  min-width: 0;
}

.portal-v3 .forum-permission-card > header strong {
  display: block;
  color: #e4ebef;
  font-size: 11px;
}

.portal-v3 .forum-permission-card > header small {
  display: block;
  margin-top: 4px;
  color: #718492;
  font-size: 8px;
  line-height: 1.45;
}

.portal-v3 .forum-permission-card > label {
  display: grid;
  gap: 6px;
}

.portal-v3 .forum-permission-card > label > span,
.portal-v3 .forum-role-picker > strong,
.portal-v3 .forum-exception-form label > span {
  color: #8295a3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.portal-v3 .forum-permission-card .select,
.portal-v3 .forum-exception-form .select {
  min-width: 0;
  width: 100%;
}

.portal-v3 .forum-role-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--v3-line);
}

.portal-v3 .forum-role-picker[hidden] {
  display: none;
}

.portal-v3 .forum-role-picker > div {
  display: grid;
  gap: 5px;
  max-height: 188px;
  margin-top: 8px;
  overflow-y: auto;
}

.portal-v3 .forum-role-picker label {
  cursor: pointer;
}

.portal-v3 .forum-role-picker input {
  position: absolute;
  opacity: 0;
}

.portal-v3 .forum-role-picker label > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(190, 211, 225, .08);
  border-radius: 10px;
  color: #aebdc6;
  font-size: 9px;
  background: rgba(255, 255, 255, .012);
}

.portal-v3 .forum-role-picker label > span i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--role-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 13%, transparent);
}

.portal-v3 .forum-role-picker input:checked + span {
  border-color: color-mix(in srgb, var(--role-color) 38%, transparent);
  color: #eef3f5;
  background: color-mix(in srgb, var(--role-color) 9%, transparent);
}

.portal-v3 .forum-permissions-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(228, 191, 105, .14);
  border-radius: 14px;
  background: rgba(228, 191, 105, .035);
}

.portal-v3 .forum-permissions-note > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: var(--v3-gold-soft);
  background: rgba(228, 191, 105, .08);
}

.portal-v3 .forum-permissions-note p {
  margin: 0;
  color: #8496a3;
  font-size: 9px;
  line-height: 1.55;
}

.portal-v3 .forum-permissions-note strong {
  color: #cdd7dd;
}

.portal-v3 .forum-permissions-actions {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
}

.portal-v3 .forum-permissions-actions > span {
  color: #718492;
  font-size: 8px;
}

.portal-v3 .forum-member-exceptions {
  overflow: hidden;
  border-radius: 22px;
}

.portal-v3 .forum-member-exceptions > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--v3-line);
}

.portal-v3 .forum-member-exceptions > header h2 {
  margin: 4px 0 3px;
  color: var(--v3-text);
  font-family: inherit;
  font-size: 19px;
}

.portal-v3 .forum-member-exceptions > header p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 9px;
}

.portal-v3 .forum-member-exceptions > header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  color: #8498a6;
  font-size: 8px;
  background: rgba(255, 255, 255, .018);
}

.portal-v3 .forum-exception-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(115px, .75fr)) auto;
  align-items: end;
  gap: 9px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(255, 255, 255, .012);
}

.portal-v3 .forum-exception-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.portal-v3 .forum-exception-form .button {
  min-height: 42px;
  white-space: nowrap;
}

.portal-v3 .forum-exception-list {
  padding: 10px;
}

.portal-v3 .forum-exception-list > article {
  display: grid;
  grid-template-columns: 40px minmax(130px, .7fr) minmax(280px, 1.4fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, .012);
}

.portal-v3 .forum-exception-list > article + article {
  margin-top: 6px;
}

.portal-v3 .forum-exception-list > article:hover {
  border-color: rgba(118, 198, 238, .11);
}

.portal-v3 .forum-exception-list img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--v3-line);
  border-radius: 13px;
  object-fit: cover;
}

.portal-v3 .forum-exception-list article > div:nth-child(2) {
  min-width: 0;
}

.portal-v3 .forum-exception-list article > div:nth-child(2) strong,
.portal-v3 .forum-exception-list article > div:nth-child(2) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-v3 .forum-exception-list article > div:nth-child(2) strong {
  color: #e1e8ec;
  font-size: 10px;
}

.portal-v3 .forum-exception-list article > div:nth-child(2) small {
  margin-top: 3px;
  color: #718492;
  font-size: 8px;
}

.portal-v3 .forum-exception-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.portal-v3 .forum-exception-badges span {
  padding: 5px 7px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  color: #8396a3;
  font-size: 7px;
  font-weight: 800;
  background: rgba(255, 255, 255, .015);
}

.portal-v3 .forum-exception-badges span.allow {
  border-color: rgba(97, 214, 164, .18);
  color: var(--v3-mint);
  background: rgba(97, 214, 164, .045);
}

.portal-v3 .forum-exception-badges span.deny {
  border-color: rgba(237, 114, 124, .18);
  color: #f0949c;
  background: rgba(237, 114, 124, .045);
}

@media (max-width: 1120px) {
  .portal-v3 .forum-permissions-layout {
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-permissions-directory {
    position: static;
  }

  .portal-v3 .forum-permissions-directory-scroll {
    display: flex;
    max-height: none;
    gap: 12px;
    overflow-x: auto;
  }

  .portal-v3 .forum-permissions-directory-scroll section {
    flex: 0 0 min(300px, 78vw);
    margin-top: 0 !important;
  }

  .portal-v3 .forum-exception-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-v3 .forum-exception-member {
    grid-column: 1 / -1;
  }

  .portal-v3 .forum-exception-form .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .portal-v3 .forum-permission-card-grid {
    grid-template-columns: 1fr;
  }

  .portal-v3 .forum-permission-card > header {
    min-height: 0;
    margin-bottom: 13px;
  }

  .portal-v3 .forum-exception-list > article {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .portal-v3 .forum-exception-badges {
    grid-column: 1 / -1;
    order: 4;
  }
}

@media (max-width: 560px) {
  .portal-v3 .forum-permissions-page .operations-nav-clean {
    position: static;
    display: flex;
    align-items: center;
    min-height: 62px;
    overflow-x: auto;
    gap: 6px;
    padding: 6px;
  }

  .portal-v3 .forum-permissions-page .operations-home {
    flex: 0 0 46px;
    min-width: 46px;
  }

  .portal-v3 .forum-permissions-page .operations-group {
    position: relative;
    flex: 0 0 54px;
  }

  .portal-v3 .forum-permissions-page .operations-group > summary {
    display: flex;
    min-height: 48px;
    justify-content: center;
    padding: 6px;
  }

  .portal-v3 .forum-permissions-page .operations-group > summary > b {
    display: none;
  }

  .portal-v3 .forum-permissions-directory-scroll {
    scroll-snap-type: x mandatory;
  }

  .portal-v3 .forum-permissions-directory-scroll section {
    flex-basis: 100%;
    scroll-snap-align: start;
  }

  .portal-v3 .forum-permissions-hero {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
  }

  .portal-v3 .forum-permissions-hero-icon {
    width: 48px;
    height: 48px;
  }

  .portal-v3 .forum-permissions-hero > span {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .portal-v3 .forum-permissions-form {
    padding: 12px;
  }

  .portal-v3 .forum-permissions-actions,
  .portal-v3 .forum-member-exceptions > header {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-v3 .forum-permissions-actions .button {
    width: 100%;
  }

  .portal-v3 .forum-exception-form {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .portal-v3 .forum-exception-member,
  .portal-v3 .forum-exception-form .button {
    grid-column: auto;
  }

  .portal-v3 .forum-exception-list > article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .portal-v3 .forum-exception-list article > form {
    grid-column: 1 / -1;
  }

  .portal-v3 .forum-exception-list article > form .button {
    width: 100%;
  }
}
