:root {
  --bg: #07101b;
  --bg-deep: #040a12;
  --surface: #0d1928;
  --surface-2: #101f31;
  --surface-3: #13253a;
  --surface-soft: rgba(19, 37, 58, .72);
  --text: #edf3f8;
  --text-soft: #c2cfda;
  --muted: #8192a2;
  --line: rgba(159, 179, 199, .14);
  --line-strong: rgba(215, 180, 104, .35);
  --gold: #d7b468;
  --gold-light: #f0d590;
  --gold-dark: #9c7430;
  --blue: #3184c6;
  --blue-light: #64b3ea;
  --green: #4fc58c;
  --red: #e16f76;
  --discord: #5865f2;
  --shadow: 0 20px 55px rgba(0, 0, 0, .34);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(49, 132, 198, .14), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(215, 180, 104, .1), transparent 28%),
    linear-gradient(180deg, #091421 0, var(--bg) 280px, var(--bg-deep) 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 47%, rgba(255,255,255,.012) 47% 48%, transparent 48% 100%);
  background-size: 76px 76px;
  opacity: .5;
  z-index: -2;
}
.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-main { min-height: 58vh; }

/* Kopfbereich */
.site-header { position: relative; z-index: 20; box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.utility-bar { background: rgba(3, 8, 14, .92); border-bottom: 1px solid rgba(255,255,255,.055); }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-label { color: #9cacba; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.utility-label i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(79,197,140,.8); }
.utility-links { display: flex; align-items: center; gap: 18px; font-size: 12px; color: #91a0ae; }
.utility-links a:hover { color: var(--gold-light); }

.brand-header {
  background:
    linear-gradient(110deg, rgba(13, 28, 45, .98), rgba(8, 17, 30, .96)),
    radial-gradient(circle at 15% 50%, rgba(215,180,104,.12), transparent 34%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand-header-inner { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 18px; min-width: 0; }
.brand img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 3vw, 34px); line-height: 1.06; letter-spacing: .015em; color: #f4f6f8; white-space: nowrap; }
.brand small { margin-top: 7px; color: var(--gold-light); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.header-welcome { padding-left: 28px; border-left: 1px solid var(--line); text-align: right; }
.header-welcome strong { display: block; color: #e8edf2; font-size: 13px; }
.header-welcome span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.nav-shell { background: rgba(8, 17, 29, .97); border-bottom: 1px solid rgba(215,180,104,.16); }
.nav-inner { min-height: 58px; display: flex; align-items: stretch; gap: 18px; }
.main-nav { display: flex; align-items: stretch; min-width: 0; }
.main-nav > a { position: relative; display: flex; align-items: center; padding: 0 15px; color: #aab8c5; font-size: 13px; font-weight: 700; transition: color .18s ease, background .18s ease; }
.main-nav > a:hover { color: #fff; background: rgba(255,255,255,.025); }
.main-nav > a.active { color: var(--gold-light); }
.main-nav > a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); box-shadow: 0 -4px 16px rgba(215,180,104,.3); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-search { width: 210px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #07121e; }
.header-search input { min-width: 0; width: 100%; height: 36px; border: 0; outline: 0; color: var(--text); background: transparent; padding: 0 10px; font-size: 12px; }
.header-search input::placeholder { color: #6f8191; }
.header-search button { width: 38px; height: 36px; border: 0; background: rgba(255,255,255,.035); cursor: pointer; color: var(--gold-light); font-size: 19px; }
.login-link, .profile-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 11px; border-left: 1px solid var(--line); }
.login-link:hover, .profile-chip:hover { background: rgba(255,255,255,.025); }
.login-link > span:last-child, .profile-chip > span { display: flex; flex-direction: column; color: #eaf0f5; line-height: 1.2; font-size: 12px; font-weight: 700; }
.login-link small, .profile-chip small { margin-bottom: 2px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.discord-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(88,101,242,.14); color: #9da6ff; border: 1px solid rgba(88,101,242,.3); }
.profile-chip img { width: 31px; height: 31px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(215,180,104,.35); }
.nav-toggle { display: none; align-self: center; width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #0d1a29; cursor: pointer; }
.nav-toggle span { width: 19px; height: 2px; margin: 4px auto; display: block; background: #c5d0da; border-radius: 99px; }

/* Allgemeine Elemente */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 0 13px; color: #708294; font-size: 12px; }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs span[aria-hidden="true"] { color: #435364; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0 22px; }
.page-header h1 { margin: 0; color: #f2f5f8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 4vw, 42px); font-weight: 600; letter-spacing: -.015em; }
.page-header p { margin: 6px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #11151a; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: rgba(255,229,166,.45); box-shadow: 0 8px 22px rgba(156,116,48,.22); }
.button-primary:hover { background: linear-gradient(135deg, #f7dda0, #dfbc70); }
.button-secondary { color: #dce5ed; background: #111f30; border-color: var(--line); }
.button-secondary:hover { border-color: rgba(215,180,104,.32); }
.button-discord { color: #fff; background: var(--discord); border-color: rgba(255,255,255,.12); }
.button-danger { color: #ffd3d6; background: rgba(225,111,118,.12); border-color: rgba(225,111,118,.28); }

.flash-stack { padding-top: 16px; }
.flash { margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.flash-success { color: #a7ecc9; background: rgba(79,197,140,.1); border-color: rgba(79,197,140,.22); }
.flash-error { color: #ffc4c8; background: rgba(225,111,118,.1); border-color: rgba(225,111,118,.22); }
.flash-info { color: #c7d0ff; background: rgba(88,101,242,.1); border-color: rgba(88,101,242,.22); }

/* Start / Board */
.board-welcome { margin-top: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(115deg, rgba(18,37,57,.96), rgba(9,19,32,.97)); box-shadow: var(--shadow); }
.board-welcome::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(215,180,104,.15), transparent 28%), linear-gradient(120deg, transparent 0 64%, rgba(255,255,255,.025) 64% 65%, transparent 65% 100%); pointer-events: none; }
.board-welcome-inner { position: relative; min-height: 190px; display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 30px; padding: 30px 34px; }
.board-welcome .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.board-welcome h1 { max-width: 720px; margin: 9px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 4vw, 47px); line-height: 1.06; font-weight: 600; letter-spacing: -.02em; }
.board-welcome p { max-width: 710px; margin: 0; color: #aebdca; font-size: 14px; }
.board-welcome-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.board-welcome-logo { display: grid; place-items: center; }
.board-welcome-logo img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 18px 35px rgba(0,0,0,.38)); }

.board-toolbar { margin: 20px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.board-toolbar h2 { margin: 0; font-size: 21px; font-weight: 700; }
.board-toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.board-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.board-main { min-width: 0; }
.board-sidebar { display: flex; flex-direction: column; gap: 16px; }

.panel, .sidebar-card, .form-card, .legal, .profile-hero, .member-card { border: 1px solid var(--line); background: rgba(12, 25, 40, .91); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.panel { margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; }
.category-header { min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 11px 15px; background: linear-gradient(90deg, #15273b, #101f31); border-bottom: 1px solid rgba(215,180,104,.17); }
.category-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; color: var(--gold-light); background: rgba(215,180,104,.09); border: 1px solid rgba(215,180,104,.17); }
.category-header h3 { margin: 0; color: #edf2f6; font-size: 14px; text-transform: uppercase; letter-spacing: .055em; }
.category-header p { margin: 2px 0 0; color: #7f91a1; font-size: 11px; }
.forum-row { display: grid; grid-template-columns: 48px minmax(0,1fr) 112px 225px; align-items: center; gap: 14px; min-height: 82px; padding: 12px 15px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: rgba(255,255,255,.023); }
.forum-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #80bceb; background: rgba(49,132,198,.09); border: 1px solid rgba(49,132,198,.2); font-size: 18px; }
.forum-title { color: #eef3f7; font-size: 14px; font-weight: 800; }
.forum-row:hover .forum-title { color: var(--gold-light); }
.forum-description { margin-top: 3px; color: #7f91a2; font-size: 11px; line-height: 1.45; }
.forum-counts { color: #7c8d9c; text-align: center; font-size: 10px; line-height: 1.4; }
.forum-counts strong { display: block; color: #cfd9e2; font-size: 15px; font-weight: 700; }
.last-topic { min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 13px; border-left: 1px solid var(--line); }
.last-topic img { width: 34px; height: 34px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.last-topic > div { min-width: 0; }
.last-topic strong { display: block; overflow: hidden; color: #cbd6df; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.last-topic span { display: block; overflow: hidden; margin-top: 2px; color: #687b8d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-card { border-radius: var(--radius); overflow: hidden; }
.sidebar-card-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; background: #13253a; border-bottom: 1px solid var(--line); }
.sidebar-card-header h3 { margin: 0; color: #e7edf2; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.sidebar-card-header a { color: var(--gold-light); font-size: 10px; }
.sidebar-card-body { padding: 13px; }
.quick-list { display: flex; flex-direction: column; }
.quick-item { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.quick-item:last-child { border-bottom: 0; }
.quick-avatar, .quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(49,132,198,.09); color: #7db9e8; border: 1px solid rgba(49,132,198,.18); object-fit: cover; }
.quick-item > div { min-width: 0; }
.quick-item strong { display: block; overflow: hidden; color: #d4dde5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quick-item:hover strong { color: var(--gold-light); }
.quick-item span { display: block; overflow: hidden; margin-top: 2px; color: #6e8191; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-box { padding: 11px; border-radius: 5px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.stat-box strong { display: block; color: #edf2f6; font-size: 18px; }
.stat-box span { color: #718394; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.newest-member { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: #7e90a0; font-size: 10px; }
.newest-member a { color: var(--gold-light); }
.online-list { display: flex; flex-wrap: wrap; gap: 7px; }
.online-user { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 4px; background: rgba(255,255,255,.025); border: 1px solid var(--line); color: #aebcc8; font-size: 10px; }
.online-user i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.role-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.legend-item { font-size: 10px; font-weight: 700; }
.legend-admin { color: #e3bd6e; }
.legend-mod { color: #65b6ec; }
.legend-user { color: #9aa9b5; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { padding: 4px 7px; border-radius: 4px; color: #91a3b1; background: rgba(255,255,255,.026); border: 1px solid var(--line); font-size: 10px; }
.tag-cloud a:hover { color: var(--gold-light); border-color: rgba(215,180,104,.25); }

/* Themenlisten */
.topic-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(12,25,40,.91); }
.topic-list-head { display: grid; grid-template-columns: 44px minmax(0,1fr) 115px 205px; gap: 14px; padding: 9px 14px; color: #718496; background: #13253a; border-bottom: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.topic-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 115px 205px; align-items: center; gap: 14px; min-height: 72px; padding: 11px 14px; border-bottom: 1px solid var(--line); transition: background .16s ease; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255,255,255,.023); }
.topic-status { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #73b0df; background: rgba(49,132,198,.09); border: 1px solid rgba(49,132,198,.18); }
.topic-status.pinned { color: var(--gold-light); background: rgba(215,180,104,.09); border-color: rgba(215,180,104,.2); }
.topic-title { color: #dce5ec; font-size: 13px; font-weight: 800; }
.topic-row:hover .topic-title { color: var(--gold-light); }
.topic-meta { margin-top: 3px; color: #6d8091; font-size: 10px; }
.topic-stats { color: #738596; text-align: center; font-size: 9px; }
.topic-stats strong { display: block; color: #b9c6d1; font-size: 11px; }
.topic-last { min-width: 0; padding-left: 13px; border-left: 1px solid var(--line); font-size: 10px; }
.topic-last strong { display: block; overflow: hidden; color: #b9c5ce; text-overflow: ellipsis; white-space: nowrap; }
.topic-last span { color: #687b8d; }
.empty { padding: 32px; color: var(--muted); text-align: center; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 19px 0 0; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: #9dabb8; background: #0f1d2d; font-size: 11px; }
.pagination .active { color: #14171b; background: var(--gold); border-color: var(--gold-light); }

/* Beiträge */
.post { display: grid; grid-template-columns: 190px minmax(0,1fr); margin-bottom: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,25,40,.94); }
.post-author { padding: 21px 17px; text-align: center; background: rgba(255,255,255,.018); border-right: 1px solid var(--line); }
.post-author img { width: 88px; height: 88px; margin: 0 auto; object-fit: cover; border-radius: 50%; border: 3px solid rgba(215,180,104,.22); }
.post-author strong { display: block; margin-top: 10px; color: #e7edf2; }
.role-badge { display: inline-flex; margin-top: 7px; padding: 3px 7px; border-radius: 3px; color: var(--role-color, var(--gold-light)); background: color-mix(in srgb, var(--role-color, #d7b468) 10%, transparent); border: 1px solid color-mix(in srgb, var(--role-color, #d7b468) 28%, transparent); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.author-details { margin-top: 12px; color: #6f8192; font-size: 10px; }
.post-main { min-width: 0; display: flex; flex-direction: column; }
.post-head { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 15px; color: #718394; background: rgba(255,255,255,.015); border-bottom: 1px solid var(--line); font-size: 10px; }
.post-content { min-height: 150px; padding: 23px; color: #ccd6de; word-break: break-word; }
.post-content a { color: #79bce9; text-decoration: underline; }
.post-content code { padding: 2px 5px; border-radius: 3px; color: #f1d390; background: #07111c; }
.post-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }

/* Formulare */
.form-card { padding: 23px; border-radius: var(--radius); }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; margin-bottom: 7px; color: #dce4eb; font-size: 12px; font-weight: 800; }
.form-help { margin-top: 6px; color: #718394; font-size: 10px; }
.input, .textarea, .select { width: 100%; border: 1px solid rgba(159,179,199,.18); border-radius: 5px; outline: 0; color: var(--text); background: #07131f; padding: 12px 13px; }
.textarea { min-height: 210px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(215,180,104,.5); box-shadow: 0 0 0 3px rgba(215,180,104,.07); }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.counter { margin-right: auto; color: #718394; font-size: 10px; }

/* Profile, Team, Mitglieder */
.profile-hero { display: grid; grid-template-columns: 135px minmax(0,1fr); align-items: center; gap: 24px; padding: 27px; border-radius: var(--radius); }
.profile-hero > img { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; border: 4px solid rgba(215,180,104,.22); }
.profile-hero h1 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; }
.profile-hero p { color: #92a3b2; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 15px; color: #718394; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 20px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 15px; }
.members-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.member-card { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: var(--radius); transition: transform .16s ease, border-color .16s ease; }
.member-card:hover { transform: translateY(-2px); border-color: rgba(215,180,104,.25); }
.member-card img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(215,180,104,.2); }
.member-card strong { display: block; overflow: hidden; color: #dfe7ed; text-overflow: ellipsis; white-space: nowrap; }
.member-card span { display: block; margin-top: 3px; color: #718394; font-size: 10px; }
.team-section { margin-bottom: 18px; }
.team-title { margin: 0 0 10px; color: var(--team-color, var(--gold-light)); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.team-member { position: relative; overflow: hidden; border-left: 3px solid var(--team-color, var(--gold-light)); }
.team-member::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--team-color, #d7b468) 7%, transparent), transparent 45%); }
.team-member > * { position: relative; z-index: 1; }
.team-member img { border-color: color-mix(in srgb, var(--team-color, #d7b468) 55%, transparent); }

/* Inhalte / Wiki / FAQ */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.info-card { min-height: 165px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,25,40,.91); }
.info-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--gold-light); background: rgba(215,180,104,.08); border: 1px solid rgba(215,180,104,.17); font-size: 18px; }
.info-card h3 { margin: 14px 0 7px; font-size: 14px; }
.info-card p { margin: 0; color: #7f91a0; font-size: 11px; }
.info-card a { display: inline-flex; margin-top: 13px; color: var(--gold-light); font-size: 10px; font-weight: 800; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,25,40,.91); }
.faq-item summary { position: relative; padding: 15px 42px 15px 16px; cursor: pointer; list-style: none; color: #dce5ec; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-light); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: #8798a7; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,25,40,.91); }
.news-date { padding: 9px; text-align: center; border-radius: 5px; color: var(--gold-light); background: rgba(215,180,104,.08); border: 1px solid rgba(215,180,104,.16); }
.news-date strong { display: block; font-size: 20px; line-height: 1; }
.news-date span { font-size: 9px; text-transform: uppercase; }
.news-card h3 { margin: 0; font-size: 14px; }
.news-card p { margin: 4px 0 0; color: #7f91a0; font-size: 11px; }

/* Verwaltung */
.admin-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 18px; }
.admin-stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,25,40,.91); }
.admin-stat strong { display: block; color: #eef2f5; font-size: 27px; }
.admin-stat span { color: #718394; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; }
.table th { color: #718394; background: #13253a; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; }
.table tbody tr:hover { background: rgba(255,255,255,.018); }
.legal { padding: 26px; border-radius: var(--radius); }
.legal h1 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; }
.legal h2 { margin-top: 26px; color: #e6ecf1; }
.legal p, .legal li { color: #92a2b0; }
.state-card { width: min(610px, calc(100% - 30px)); margin: 70px auto; padding: 39px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(12,25,40,.95); box-shadow: var(--shadow); }
.state-icon { width: 62px; height: 62px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-light); background: rgba(215,180,104,.08); border: 1px solid rgba(215,180,104,.2); font-size: 24px; }
.state-card h1 { margin: 0; }
.state-card p { color: #8798a7; }

/* Fußbereich */
.site-footer { margin-top: 62px; border-top: 1px solid rgba(215,180,104,.15); background: #050b13; }
.footer-grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(3,minmax(120px,1fr)); gap: 35px; padding: 34px 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand strong { color: #e7edf2; }
.footer-brand p { margin: 4px 0 0; color: #687a8b; font-size: 11px; }
.footer-column { display: flex; flex-direction: column; gap: 7px; }
.footer-column strong { margin-bottom: 4px; color: var(--gold-light); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.footer-column a { color: #7d8e9e; font-size: 11px; }
.footer-column a:hover { color: #d6dfe7; }
.footer-bottom { min-height: 53px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.05); color: #536576; font-size: 9px; }

@media (max-width: 1060px) {
  .header-welcome { display: none; }
  .nav-inner { flex-wrap: wrap; padding: 9px 0; min-height: auto; }
  .nav-toggle { display: block; }
  .main-nav { display: none; order: 4; width: 100%; flex-direction: column; border-top: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav > a { min-height: 43px; padding: 0 10px; }
  .main-nav > a.active::after { left: 10px; right: auto; width: 34px; }
  .nav-actions { flex: 1; justify-content: flex-end; }
  .board-grid { grid-template-columns: 1fr; }
  .board-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .forum-row { grid-template-columns: 48px minmax(0,1fr) 105px; }
  .last-topic { display: none; }
  .topic-list-head, .topic-row { grid-template-columns: 44px minmax(0,1fr) 115px; }
  .topic-last, .topic-list-head > :last-child { display: none; }
  .members-grid, .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .container { width: min(100% - 20px, 1180px); }
  .utility-label { font-size: 9px; }
  .utility-links a:not(:first-child) { display: none; }
  .brand-header-inner { min-height: 90px; }
  .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: 19px; white-space: normal; }
  .brand small { font-size: 8px; letter-spacing: .12em; }
  .header-search { display: none; }
  .login-link small, .profile-chip small, .login-link > span:last-child, .profile-chip > span { display: none; }
  .login-link, .profile-chip { padding: 4px 7px; border-left: 0; }
  .board-welcome-inner { grid-template-columns: 1fr; padding: 25px 20px; }
  .board-welcome-logo { display: none; }
  .board-welcome h1 { font-size: 31px; }
  .board-toolbar, .page-header { align-items: flex-start; flex-direction: column; }
  .board-tools, .page-actions { justify-content: flex-start; }
  .forum-row { grid-template-columns: 43px minmax(0,1fr); min-height: 74px; padding: 11px; }
  .forum-counts { display: none; }
  .category-header { padding: 10px 11px; }
  .category-header p { display: none; }
  .topic-list-head { display: none; }
  .topic-row { grid-template-columns: 38px minmax(0,1fr); padding: 11px; }
  .topic-stats { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px 11px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author img { grid-row: span 3; width: 58px; height: 58px; margin: 0; }
  .post-author strong, .role-badge, .author-details { margin: 0; }
  .board-sidebar { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .members-grid, .card-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-hero > img { margin: auto; }
  .profile-meta { justify-content: center; }
  .form-row, .admin-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .counter { margin: 0; }
  .news-card { grid-template-columns: 55px minmax(0,1fr); }
  .news-card .button { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 13px 0; }
}

/* Fraktionsportal */
.home-factions { margin: 28px 0 32px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; color: #eef3f7; font-size: 27px; }
.section-heading p { margin: 6px 0 0; color: #7d8fa0; font-size: 11px; }
.section-heading-small { align-items: center; margin: 0 0 14px; }
.section-heading-small h2 { font-size: 21px; }
.faction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.faction-grid-home { grid-template-columns: repeat(4,minmax(0,1fr)); }
.faction-grid-related { grid-template-columns: repeat(3,minmax(0,1fr)); }
.faction-card { position: relative; min-height: 235px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--faction-color, #d7b468) 26%, var(--line)); border-radius: 10px; background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--faction-color, #d7b468) 15%, transparent), transparent 36%),
    linear-gradient(145deg, #102237 0%, #0a1726 100%); box-shadow: 0 16px 42px rgba(0,0,0,.18); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.faction-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--faction-color, #d7b468); box-shadow: 0 0 28px color-mix(in srgb, var(--faction-color, #d7b468) 52%, transparent); }
.faction-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--faction-color, #d7b468) 56%, transparent); box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.faction-card-link { position: relative; z-index: 1; display: flex; min-height: 235px; flex-direction: column; padding: 18px 18px 17px 20px; }
.faction-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faction-emblem { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: color-mix(in srgb, var(--faction-color, #d7b468) 14%, #0a1726); border: 1px solid color-mix(in srgb, var(--faction-color, #d7b468) 48%, transparent); box-shadow: inset 0 0 18px color-mix(in srgb, var(--faction-color, #d7b468) 9%, transparent); font-size: 21px; font-weight: 900; }
.faction-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .065em; white-space: nowrap; }
.faction-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.faction-status-open { color: #58d68d; background: rgba(44,170,98,.08); border: 1px solid rgba(64,203,120,.2); }
.faction-status-closed { color: #e17979; background: rgba(185,61,61,.08); border: 1px solid rgba(210,87,87,.2); }
.faction-status-preparation { color: #e9c46a; background: rgba(209,165,65,.08); border: 1px solid rgba(219,177,83,.2); }
.faction-status-inactive { color: #8799a9; background: rgba(117,137,154,.08); border: 1px solid rgba(132,151,168,.18); }
.faction-category { margin-top: 16px; color: color-mix(in srgb, var(--faction-color, #d7b468) 78%, #fff); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.faction-card h3 { margin: 6px 0 8px; color: #edf3f7; font-size: 16px; line-height: 1.25; }
.faction-card p { margin: 0; color: #8496a6; font-size: 11px; line-height: 1.55; }
.faction-card-action { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 17px; color: #c9d5de; font-size: 10px; font-weight: 800; }
.faction-card-action b { color: var(--faction-color, #d7b468); font-size: 14px; transition: transform .16s ease; }
.faction-card:hover .faction-card-action b { transform: translateX(4px); }
.faction-card-compact { min-height: 210px; }
.faction-card-compact .faction-card-link { min-height: 210px; }

.faction-portal-hero { position: relative; min-height: 350px; display: grid; grid-template-columns: minmax(0,1fr) 360px; align-items: center; gap: 35px; overflow: hidden; margin-bottom: 18px; padding: 48px 52px; border: 1px solid rgba(215,180,104,.2); border-radius: 14px; background:
    radial-gradient(circle at 82% 50%, rgba(50,112,168,.18), transparent 33%),
    radial-gradient(circle at 20% 0%, rgba(215,180,104,.12), transparent 36%),
    linear-gradient(120deg, #10243a 0%, #0a1624 58%, #07111c 100%); box-shadow: var(--shadow); }
.faction-portal-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 49%, rgba(255,255,255,.025) 49% 49.2%, transparent 49.2%); }
.faction-portal-copy { position: relative; z-index: 2; }
.faction-portal-copy h1 { max-width: 720px; margin: 9px 0 14px; font-family: Georgia, "Times New Roman", serif; color: #f3f5f7; font-size: clamp(36px,5vw,58px); line-height: 1.02; }
.faction-portal-copy p { max-width: 700px; margin: 0; color: #99aab8; font-size: 14px; line-height: 1.7; }
.faction-portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.faction-orbit { position: relative; width: 290px; height: 290px; margin: auto; border: 1px solid rgba(215,180,104,.16); border-radius: 50%; background: radial-gradient(circle, rgba(215,180,104,.09), transparent 61%); box-shadow: inset 0 0 55px rgba(0,0,0,.24); }
.faction-orbit::before, .faction-orbit::after { content: ''; position: absolute; border: 1px solid rgba(110,170,218,.13); border-radius: 50%; }
.faction-orbit::before { inset: 35px; }
.faction-orbit::after { inset: 76px; border-color: rgba(215,180,104,.2); }
.faction-orbit strong { position: absolute; inset: 50%; width: 88px; height: 88px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: var(--gold-light); background: #0d2032; border: 1px solid rgba(215,180,104,.3); font-family: Georgia,serif; font-size: 25px; letter-spacing: .08em; box-shadow: 0 0 35px rgba(215,180,104,.12); }
.faction-orbit span { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #10263b; border: 1px solid rgba(126,178,218,.22); font-size: 19px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.faction-orbit span:nth-child(1) { left: 10px; top: 118px; }
.faction-orbit span:nth-child(2) { left: 63px; top: 20px; }
.faction-orbit span:nth-child(3) { right: 37px; top: 44px; }
.faction-orbit span:nth-child(4) { right: 10px; bottom: 75px; }
.faction-orbit span:nth-child(5) { left: 74px; bottom: 16px; }
.fraction-summary-strip { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(10,22,36,.9); }
.fraction-summary-strip > div { padding: 17px 19px; border-right: 1px solid var(--line); }
.fraction-summary-strip > div:last-child { border-right: 0; }
.fraction-summary-strip strong { display: block; color: #edf3f7; font-size: 23px; }
.fraction-summary-strip span { color: #708293; font-size: 9px; text-transform: uppercase; letter-spacing: .075em; }
.faction-directory { display: flex; flex-direction: column; gap: 31px; }
.faction-category-section { scroll-margin-top: 120px; }
.fraction-category-count { color: #728596; font-size: 10px; }

.faction-detail-hero { position: relative; display: grid; grid-template-columns: 126px minmax(0,1fr) 150px; align-items: center; gap: 28px; overflow: hidden; min-height: 250px; padding: 35px 39px; border: 1px solid color-mix(in srgb, var(--faction-color, #d7b468) 28%, var(--line)); border-radius: 14px; background:
    radial-gradient(circle at 93% 16%, color-mix(in srgb, var(--faction-color, #d7b468) 18%, transparent), transparent 31%),
    linear-gradient(125deg, color-mix(in srgb, var(--faction-color, #d7b468) 7%, #10243a), #081522 68%); box-shadow: var(--shadow); }
.faction-detail-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--faction-color, #d7b468); box-shadow: 0 0 45px color-mix(in srgb, var(--faction-color, #d7b468) 50%, transparent); }
.faction-detail-emblem { position: relative; z-index: 2; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 26px; color: #fff; background: color-mix(in srgb, var(--faction-color, #d7b468) 15%, #0a1726); border: 1px solid color-mix(in srgb, var(--faction-color, #d7b468) 52%, transparent); font-size: 43px; font-weight: 900; box-shadow: inset 0 0 35px color-mix(in srgb, var(--faction-color, #d7b468) 10%, transparent), 0 18px 40px rgba(0,0,0,.25); }
.faction-detail-copy { position: relative; z-index: 2; }
.faction-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: color-mix(in srgb, var(--faction-color, #d7b468) 78%, #fff); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .085em; }
.faction-detail-copy h1 { margin: 8px 0 10px; font-family: Georgia,"Times New Roman",serif; color: #f2f5f8; font-size: clamp(31px,4vw,46px); line-height: 1.05; }
.faction-detail-copy > p { max-width: 700px; margin: 0; color: #94a5b4; font-size: 13px; line-height: 1.65; }
.faction-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.button-ghost { color: color-mix(in srgb, var(--faction-color, #d7b468) 78%, #fff); background: transparent; border-color: color-mix(in srgb, var(--faction-color, #d7b468) 35%, transparent); }
.faction-detail-code { position: relative; z-index: 1; display: grid; place-items: center; min-height: 140px; color: color-mix(in srgb, var(--faction-color, #d7b468) 24%, transparent); font-family: Georgia,serif; font-size: 35px; font-weight: 900; letter-spacing: .12em; writing-mode: vertical-rl; text-orientation: mixed; }
.faction-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 19px; margin-top: 20px; align-items: start; }
.faction-detail-main { display: flex; flex-direction: column; gap: 18px; }
.faction-detail-sidebar { display: flex; flex-direction: column; gap: 15px; }
.faction-about, .faction-links-panel, .faction-topics-panel { padding: 23px; border-radius: var(--radius); }
.panel-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-title-row h2 { margin: 4px 0 0; color: #edf2f6; font-family: Georgia,"Times New Roman",serif; font-size: 22px; }
.panel-title-row > a { color: var(--gold-light); font-size: 10px; font-weight: 800; }
.faction-description { color: #a1b0bd; font-size: 12px; line-height: 1.8; }
.faction-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faction-link-grid > a { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; min-height: 83px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); transition: border-color .16s ease, transform .16s ease; }
.faction-link-grid > a:hover { transform: translateY(-2px); border-color: rgba(215,180,104,.26); }
.faction-link-grid > a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: var(--gold-light); background: rgba(215,180,104,.08); border: 1px solid rgba(215,180,104,.16); font-size: 17px; }
.faction-link-grid strong { display: block; color: #dce5ec; font-size: 11px; }
.faction-link-grid small { display: block; margin-top: 3px; color: #718394; font-size: 9px; line-height: 1.45; }
.faction-topic-list { display: flex; flex-direction: column; }
.faction-topic-list > a { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 57px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.faction-topic-list > a:last-child { border-bottom: 0; }
.faction-topic-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px rgba(215,180,104,.5); }
.faction-topic-list strong { display: block; color: #d5dee6; font-size: 11px; }
.faction-topic-list small { display: block; margin-top: 3px; color: #718394; font-size: 9px; }
.faction-topic-list em { color: #687b8d; font-size: 9px; font-style: normal; }
.faction-facts { overflow: hidden; border-top: 3px solid var(--faction-color, #d7b468); }
.faction-facts dl { margin: 0; }
.faction-facts dl > div { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.faction-facts dl > div:last-child { border-bottom: 0; }
.faction-facts dt { color: #718394; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.faction-facts dd { margin: 0; color: #d3dde5; font-size: 10px; text-align: right; }
.faction-note p { margin: 0; color: #8395a4; font-size: 10px; line-height: 1.65; }
.related-factions { margin-top: 34px; }

/* Fraktionsverwaltung */
.fraction-admin-layout { display: grid; grid-template-columns: minmax(340px,.78fr) minmax(0,1.42fr); gap: 18px; align-items: start; }
.fraction-admin-list, .fraction-admin-form-card { overflow: hidden; border-radius: var(--radius); }
.fraction-admin-items { max-height: 860px; overflow: auto; }
.fraction-admin-item { display: grid; grid-template-columns: 43px minmax(0,1fr) auto auto; align-items: center; gap: 11px; min-height: 70px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.fraction-admin-item:last-child { border-bottom: 0; }
.fraction-admin-item:hover { background: rgba(255,255,255,.018); }
.fraction-admin-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: color-mix(in srgb, var(--faction-color, #d7b468) 13%, #0a1726); border: 1px solid color-mix(in srgb, var(--faction-color, #d7b468) 42%, transparent); }
.fraction-admin-item strong { display: block; color: #dce5ec; font-size: 11px; }
.fraction-admin-item small { display: block; margin-top: 3px; color: #718394; font-size: 9px; }
.fraction-visibility { padding: 4px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.fraction-visibility.visible { color: #58d68d; background: rgba(44,170,98,.08); }
.fraction-visibility.hidden { color: #8799a9; background: rgba(117,137,154,.08); }
.button-small { min-height: 31px; padding: 0 9px; font-size: 9px; }
.fraction-admin-form { padding: 18px; }
.fraction-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.fraction-form-wide { grid-column: 1 / -1; }
.color-input-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.color-input-row input[type="color"] { width: 44px; height: 42px; padding: 3px; border: 1px solid rgba(159,179,199,.18); border-radius: 5px; background: #07131f; cursor: pointer; }
.fraction-checkboxes { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 4px 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.015); }
.fraction-checkboxes label { display: inline-flex; align-items: center; gap: 8px; color: #a9b7c2; font-size: 10px; cursor: pointer; }
.fraction-checkboxes input { accent-color: var(--gold); }
.fraction-delete-form { display: flex; justify-content: flex-end; padding: 0 18px 18px; }

@media (max-width: 1060px) {
  .faction-grid-home { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faction-portal-hero { grid-template-columns: 1fr 270px; padding: 38px; }
  .faction-orbit { width: 240px; height: 240px; }
  .faction-orbit::after { inset: 61px; }
  .faction-orbit span:nth-child(1) { left: 2px; top: 98px; }
  .faction-orbit span:nth-child(2) { left: 48px; top: 13px; }
  .faction-orbit span:nth-child(3) { right: 27px; top: 33px; }
  .faction-orbit span:nth-child(4) { right: 2px; bottom: 59px; }
  .faction-orbit span:nth-child(5) { left: 55px; bottom: 8px; }
  .faction-detail-layout { grid-template-columns: 1fr; }
  .faction-detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .fraction-admin-layout { grid-template-columns: 1fr; }
  .fraction-admin-items { max-height: none; }
  .admin-grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 820px) {
  .faction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faction-portal-hero { grid-template-columns: 1fr; min-height: auto; }
  .faction-orbit { display: none; }
  .faction-detail-hero { grid-template-columns: 88px minmax(0,1fr); padding: 28px; }
  .faction-detail-emblem { width: 82px; height: 82px; border-radius: 19px; font-size: 31px; }
  .faction-detail-code { display: none; }
  .fraction-summary-strip { grid-template-columns: 1fr 1fr; }
  .fraction-summary-strip > div:nth-child(2) { border-right: 0; }
  .fraction-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faction-link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section-heading { align-items: flex-start; flex-direction: column; }
  .faction-grid, .faction-grid-home, .faction-grid-related { grid-template-columns: 1fr; }
  .faction-card, .faction-card-link, .faction-card-compact, .faction-card-compact .faction-card-link { min-height: 205px; }
  .faction-portal-hero { padding: 28px 22px; }
  .faction-portal-copy h1 { font-size: 35px; }
  .faction-detail-hero { grid-template-columns: 1fr; text-align: center; padding: 25px 20px; }
  .faction-detail-emblem { margin: auto; }
  .faction-detail-meta, .faction-detail-actions { justify-content: center; }
  .faction-detail-sidebar { grid-template-columns: 1fr; }
  .fraction-form-grid { grid-template-columns: 1fr; }
  .fraction-form-wide { grid-column: auto; }
  .fraction-admin-item { grid-template-columns: 43px minmax(0,1fr) auto; }
  .fraction-admin-item .fraction-visibility { display: none; }
  .fraction-summary-strip strong { font-size: 19px; }
  .fraction-summary-strip > div { padding: 13px; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
}
