:root {
  --ink: #0c0b09;
  --panel: #15130f;
  --panel-2: #1b1812;
  --bronze: #d22828;
  --gold: #f04a3f;
  --bone: #ece7e3;
  --muted: #918584;
  --ember: #d61f1f;
  --green: #74c85f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

.topbar {
  height: 92px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(224, 36, 36, .38);
  background: linear-gradient(#0b0907e8, #0b0907a8, transparent);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo { width: 72px; height: 68px; object-fit: contain; filter: drop-shadow(0 0 12px #d00a); }
.brand > span { display: grid; }
.brand strong { color: #f1ebe6; font-size: clamp(16px, 1.8vw, 24px); letter-spacing: .08em; line-height: 1; }
.brand small { margin-top: 7px; color: #807467; letter-spacing: .2em; font: 600 8px/1 Arial, sans-serif; }
nav { display: flex; align-items: stretch; height: 100%; gap: clamp(28px, 4vw, 60px); }
nav a {
  position: relative; display: grid; place-items: center; color: #bdb09f;
  font: 700 12px/1 Arial, sans-serif; letter-spacing: .16em;
}
nav a::after { content: ""; position: absolute; height: 2px; left: 50%; right: 50%; bottom: 0; background: var(--gold); transition: .25s ease; }
nav a:hover, nav a.active { color: var(--bone); }
nav a:hover::after, nav a.active::after { left: 0; right: 0; }
.menu-button { display: none; border: 0; background: transparent; color: var(--gold); font-size: 24px; }

.hero {
  min-height: 790px; position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
  gap: clamp(36px, 6vw, 92px); padding: 132px clamp(24px, 6vw, 96px) 80px;
  background:
    linear-gradient(90deg, #080505 3%, #100707e8 38%, #16050567 69%, #080505df 100%),
    linear-gradient(0deg, #0c0b09 0%, transparent 30%),
    linear-gradient(135deg, #95000035, transparent 55%),
    url("hero-red-devil-centered.png") center/cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: radial-gradient(circle at 70% 45%, transparent 10%, #1d00006b 75%); pointer-events: none; }
.hero-content, .status-panel { position: relative; z-index: 2; }
.hero-content { max-width: 720px; }
.eyebrow, .kicker { color: var(--bronze); font: 700 11px/1 Arial, sans-serif; letter-spacing: .3em; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.eyebrow span { display: block; width: 44px; height: 1px; background: var(--bronze); }
h1 { margin: 0; font-size: clamp(56px, 7.2vw, 104px); line-height: .88; letter-spacing: -.055em; text-shadow: 0 7px 26px #000; }
h1 em { color: #dc2a27; font-style: normal; text-shadow: 0 0 30px #c4000055, 0 7px 26px #000; }
.hero-content > p { max-width: 560px; margin: 29px 0 35px; color: #c6baa9; font: 400 17px/1.75 Arial, sans-serif; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.primary-button {
  min-width: 230px; padding: 18px 23px; display: flex; justify-content: space-between;
  color: #fff; border: 1px solid #ef4545; background: linear-gradient(135deg, #d51d1d, #750909);
  box-shadow: inset 0 0 0 3px #1a0505, inset 0 0 0 4px #a71919, 0 9px 28px #0008;
  font: 800 11px/1 Arial, sans-serif; letter-spacing: .16em; transition: .25s ease;
}
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.18); box-shadow: inset 0 0 0 3px #1a0505, inset 0 0 0 4px #ef4545, 0 0 32px #d1000066; }
.address { color: #938878; font: 600 11px/1 Arial, sans-serif; letter-spacing: .1em; }
.address button { border: 0; background: transparent; color: var(--gold); cursor: pointer; }

.status-panel {
  max-width: 460px; width: 100%; justify-self: end; padding: 30px;
  border: 1px solid #8e2424; outline: 1px solid #351818; outline-offset: -7px;
  background: linear-gradient(145deg, #1b1111d9, #0c0909c7);
  box-shadow: 0 30px 80px #0009;
  backdrop-filter: blur(1.5px);
}
.status-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid #5b4732; }
.live, .live-feed { color: #9be887; font: 800 12px/1 Arial, sans-serif; letter-spacing: .16em; }
.live i, .live-feed i { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); animation: pulse 2s infinite; }
.live.is-offline { color: #d15a55; }
.live.is-offline i { background: #b92d2d; box-shadow: 0 0 12px #b92d2d; }
.demo-tag { color: #8c806f; font: 700 8px/1 Arial, sans-serif; letter-spacing: .14em; border: 1px solid #524435; padding: 6px 8px; }
.demo-tag.is-live { color: #9be887; border-color: #42653a; }
.population { padding: 27px 0 22px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.population strong { font-size: 72px; line-height: 1; color: #f1e4cd; }
.population > span { font-size: 28px; color: #776b5e; }
.population small { grid-column: 1 / -1; color: var(--bronze); margin-top: 8px; font: 700 9px/1 Arial, sans-serif; letter-spacing: .24em; }
.capacity { height: 4px; background: #30291f; margin-bottom: 28px; }
.capacity i { display: block; height: 100%; background: linear-gradient(90deg, #7e1111, #e72b2b); box-shadow: 0 0 10px #d71d1d; }
.server-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.server-metrics div { display: grid; gap: 7px; }
.server-metrics span { color: #766d61; font: 700 8px/1 Arial, sans-serif; letter-spacing: .15em; }
.server-metrics strong { color: #d9ccb9; font-size: 15px; font-weight: 500; }
.pvp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 27px -30px -30px; background: #3c1717; }
.pvp-strip div { padding: 14px 7px; display: grid; gap: 5px; text-align: center; background: #130d0d; }
.pvp-strip strong { color: #e23b37; font-size: 18px; }
.pvp-strip span { color: #786c68; font: 700 7px Arial, sans-serif; letter-spacing: .16em; }

.content-section, .split-section { max-width: 1420px; margin: 0 auto; padding: 90px clamp(24px, 5vw, 72px); }
.players-section { border-bottom: 1px solid #351b1b; background: radial-gradient(circle at 50% 0, #2b080840, transparent 44%); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(30px, 3vw, 45px); letter-spacing: -.02em; }
.search { width: min(340px, 100%); display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #64513b; padding: 10px 2px; color: var(--bronze); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--bone); font: 13px Arial, sans-serif; }
.search input::placeholder { color: #72695e; }
.player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.player-card {
  min-height: 112px; display: flex; align-items: center; gap: 20px; position: relative; padding: 19px;
  border: 1px solid #402323; background: linear-gradient(110deg, #1c1111, #100d0d);
  transition: border-color .2s ease, transform .2s ease;
}
.player-card:hover { border-color: #a52525; transform: translateY(-2px); box-shadow: 0 8px 28px #0007; }
.rank { width: 35px; color: #e12c2c; font: 900 16px Arial, sans-serif; letter-spacing: -.05em; }
.avatar {
  flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #773131; outline: 1px solid #321919; outline-offset: 4px;
  color: #e64a44; background: radial-gradient(circle at 35% 30%, #511d1d, #130c0c 70%); font-size: 30px;
}
.avatar.is-online::after { content: ""; width: 9px; height: 9px; border-radius: 50%; position: absolute; margin: 53px 0 0 54px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.player-copy { min-width: 0; flex: 1; }
.player-copy h3 { margin: 0 0 6px; font-size: 21px; }
.player-copy p { margin: 0 0 13px; color: #857a6d; font: 12px Arial, sans-serif; }
.player-copy > div { display: flex; gap: 16px; color: #a88682; font: 700 8px Arial, sans-serif; letter-spacing: .12em; }
.combat-stats b { color: #e1423d; font-size: 13px; margin-right: 3px; }
.player-state { align-self: flex-start; color: #625c53; font: 700 8px Arial, sans-serif; letter-spacing: .14em; }
.player-state.online { color: #7dcb6b; }
.text-button { display: block; margin: 34px auto 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; font: 800 10px Arial, sans-serif; letter-spacing: .18em; }
.text-button span { margin-left: 10px; }
.empty { text-align: center; color: var(--muted); font: 14px Arial, sans-serif; }
.player-card.is-hidden { display: none; }
.copy-note { color: #9be887; font: 700 9px Arial, sans-serif; letter-spacing: .1em; }

.split-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.split-section h2 { font-size: clamp(26px, 2.5vw, 38px); }
.section-heading.compact { margin-bottom: 25px; }
.live-feed { font-size: 9px; }
.activity-list, .event-list { display: grid; gap: 10px; }
.activity-item, .event-item {
  display: flex; align-items: center; min-height: 83px; padding: 12px 17px;
  border: 1px solid #3c2323; background: #151010; transition: background .2s, border-color .2s;
}
.activity-item:hover, .event-item:hover { border-color: #842d2d; background: #1c1212; }
.activity-icon { flex: 0 0 47px; width: 47px; height: 47px; display: grid; place-items: center; margin-right: 16px; border: 1px solid #692a2a; color: #e33b36; background: #281414; }
.activity-item h3, .event-item h3 { margin: 0 0 7px; font-size: 15px; }
.activity-item p, .event-item p { margin: 0; color: #7d7469; font: 11px Arial, sans-serif; }
.activity-item time, .event-item time { margin-left: auto; color: #8d795e; font: 10px Arial, sans-serif; white-space: nowrap; }
.event-date { flex: 0 0 52px; display: grid; justify-items: center; margin-right: 17px; padding-right: 17px; border-right: 1px solid #4b3929; }
.event-date strong { color: #e43935; font-size: 24px; line-height: 1; }
.event-date span { color: #80694d; font: 700 8px Arial, sans-serif; letter-spacing: .16em; margin-top: 6px; }

footer {
  min-height: 150px; padding: 36px clamp(24px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; gap: 30px;
  border-top: 1px solid #352a20; background: #090806;
}
.footer-brand { opacity: .8; }
.footer-brand .brand-logo { width: 62px; height: 58px; }
.footer-brand strong { font-size: 16px; }
footer p, footer a { color: #6d655d; font: 9px/1.6 Arial, sans-serif; letter-spacing: .1em; }
footer a { color: #a78356; }

@keyframes pulse { 50% { opacity: .5; box-shadow: 0 0 5px var(--green); } }

@media (max-width: 900px) {
  .topbar { height: 76px; }
  nav { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 140px; }
  .status-panel { justify-self: start; }
  .status-panel { transform: none; }
  .split-section { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .hero { padding-inline: 20px; background-position: 62% center; }
  .hero-content > p { font-size: 15px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-logo { width: 54px; height: 50px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .player-grid { grid-template-columns: 1fr; }
  .player-card { align-items: flex-start; }
  .player-state { position: absolute; right: 15px; top: 15px; }
  .server-metrics { grid-template-columns: 1fr; }
  .status-panel { padding: 23px; }
  .pvp-strip { margin: 27px -23px -23px; }
  .population strong { font-size: 58px; }
  .activity-item { align-items: flex-start; }
  .activity-item time { position: absolute; right: 15px; }
  .activity-item { position: relative; padding-right: 70px; }
  .event-item { align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Erweiterte Dashboard-Bereiche */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-card{min-height:145px;padding:24px;border:1px solid #402323;background:linear-gradient(145deg,#1d1111,#100c0c);display:grid;align-content:center;gap:7px}.stat-card>span{color:#d93131;font:700 18px Arial}.stat-card strong{font-size:34px;color:#f0e6dc}.stat-card small{color:#7f746b;font:700 9px Arial;letter-spacing:.15em;text-transform:uppercase}
.tabs{display:flex;gap:8px;margin:-14px 0 24px}.tabs button{border:1px solid #4c2929;background:#120d0d;color:#81746c;padding:10px 14px;font:800 9px Arial;letter-spacing:.12em;cursor:pointer}.tabs button.active,.tabs button:hover{color:#fff;border-color:#bb3030;background:#2a1111}.player-card{width:100%;color:inherit;text-align:left;cursor:pointer}.clan-grid{display:grid;gap:12px}.clan-card{display:grid;grid-template-columns:55px minmax(180px,1fr) auto;align-items:center;gap:18px;padding:22px;border:1px solid #402323;background:linear-gradient(110deg,#1d1111,#100d0d)}.clan-rank{color:#e33232;font:900 20px Arial}.clan-card h3{margin:0 0 6px;font-size:21px}.clan-card p{margin:0;color:#7e746c;font:12px Arial}.clan-metrics{display:flex;gap:28px}.clan-metrics span{display:grid;gap:5px;color:#7c7168;font:700 8px Arial;letter-spacing:.12em}.clan-metrics b{color:#e2403b;font-size:16px;letter-spacing:0}
.map-section{max-width:1540px}.data-note{color:#a58e7d;font:800 9px Arial;letter-spacing:.15em}.map-shell{position:relative;min-height:420px;border:1px solid #542626;background:radial-gradient(circle at center,#2a1111,#0d0b0b 72%);overflow:hidden}.map-shell canvas{display:block;width:100%;height:auto;min-height:420px}.map-shell:before{content:"EXILED LANDS · DATENBANKPROJEKTION";position:absolute;left:20px;top:18px;color:#713b39;font:800 9px Arial;letter-spacing:.2em}.map-empty{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;color:#8b7d73;font:14px Arial}.map-tooltip{position:absolute;z-index:2;pointer-events:none;padding:10px 12px;border:1px solid #9d3434;background:#120b0bec;box-shadow:0 10px 25px #000}.map-tooltip strong,.map-tooltip small{display:block}.map-tooltip small{margin-top:5px;color:#a38f82;font:10px Arial}
.follower-columns{display:grid;grid-template-columns:1fr 1fr;gap:28px}.follower-columns>div{border:1px solid #3e2222;background:#120e0e;padding:22px}.follower-columns h3{margin:0 0 18px;font-size:18px}.follower-columns h3 span{float:right;color:#e43a36}.compact-list{display:grid;gap:8px;max-height:520px;overflow:auto}.compact-list article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px;border:1px solid #382121;background:#191010}.compact-list strong,.compact-list small{display:block}.compact-list small{margin-top:4px;color:#756a63;font:10px Arial}.compact-list article>span{color:#b59583;font:10px Arial;text-align:right}.data-hint{color:#70675f;font:11px Arial;margin-top:16px}
.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:22px}.modal-backdrop{position:absolute;inset:0;border:0;background:#050303df;backdrop-filter:blur(5px)}.profile-card{position:relative;z-index:1;width:min(720px,100%);padding:32px;border:1px solid #973333;background:linear-gradient(145deg,#211313,#0e0b0b);box-shadow:0 35px 100px #000}.modal-close{position:absolute;right:16px;top:12px;border:0;background:none;color:#d24a45;font-size:32px;cursor:pointer}.profile-head{display:flex;align-items:center;gap:24px;padding-bottom:25px;border-bottom:1px solid #442929}.profile-head h2{margin:8px 0 4px;font-size:38px}.profile-head p{margin:0;color:#8b7d74}.avatar.large{width:92px;height:92px;flex-basis:92px;font-size:42px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.profile-stats div{padding:15px;border:1px solid #3e2525;background:#160f0f}.profile-stats span,.profile-stats strong{display:block}.profile-stats span{color:#746a64;font:800 8px Arial;letter-spacing:.13em;text-transform:uppercase}.profile-stats strong{margin-top:7px;font-size:16px}.green{color:#85d372}.death-note{margin:18px 0 0;color:#a58f82}.modal-open{overflow:hidden}
@media(max-width:900px){.stat-grid{grid-template-columns:repeat(2,1fr)}.clan-card{grid-template-columns:45px 1fr}.clan-metrics{grid-column:2;flex-wrap:wrap}.follower-columns{grid-template-columns:1fr}.profile-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.stat-grid{grid-template-columns:1fr 1fr}.stat-card{padding:17px}.stat-card strong{font-size:26px}.clan-card{grid-template-columns:38px 1fr;padding:16px}.clan-metrics{gap:14px}.profile-stats{grid-template-columns:1fr}.profile-card{padding:24px 18px}.profile-head{align-items:flex-start}.map-shell canvas{min-height:360px}.tabs{overflow:auto}.combat-stats{flex-direction:column;gap:5px!important}}

/* Begleiter-Gesamtstatistik */
.companion-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:28px}.companion-card{position:relative;min-height:220px;display:flex;align-items:flex-end;overflow:hidden;border:1px solid #542929;background:linear-gradient(135deg,#211010,#0c0909);padding:24px}.companion-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,5,5,.92) 0%,rgba(8,5,5,.48) 58%,rgba(8,5,5,.05) 100%)}.companion-card img{position:absolute;right:-8px;bottom:0;width:62%;height:100%;object-fit:contain;object-position:right bottom;opacity:.8;filter:drop-shadow(0 12px 20px #000)}.companion-card>div{position:relative;z-index:2;max-width:62%}.companion-card span,.companion-card strong,.companion-card small{display:block}.companion-card span{color:#d9413c;font:800 9px Arial;letter-spacing:.18em}.companion-card strong{margin:8px 0 6px;color:#f2e9df;font:900 52px/1 Arial}.companion-card small{color:#8d7d72;font:11px/1.45 Arial}.follower-columns.three{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-list article>span b{color:#e1443e;font-size:15px}.compact-list .empty{padding:22px;text-align:center;border:1px dashed #3b2525}.follower-columns.three>div{min-width:0}
@media(max-width:1050px){.companion-summary{grid-template-columns:1fr}.companion-card{min-height:180px}.follower-columns.three{grid-template-columns:1fr}}
@media(max-width:600px){.companion-card>div{max-width:72%}.companion-card img{width:55%}.companion-card strong{font-size:44px}}

/* Spielerprofil: Conan-artiger Hintergrund ohne Community-Logo */
.profile-card{
  overflow:hidden;
  isolation:isolate;
  background-image:
    linear-gradient(90deg,rgba(8,6,6,.97) 0%,rgba(12,8,8,.91) 52%,rgba(15,8,7,.72) 100%),
    linear-gradient(0deg,rgba(7,5,5,.93),rgba(7,5,5,.28)),
    url("player-profile-background.jpg");
  background-size:cover;
  background-position:center right;
  background-repeat:no-repeat;
}
.profile-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(circle at 78% 22%,rgba(210,52,40,.18),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.025),transparent 45%);
}
.profile-card .profile-head,
.profile-card .profile-stats,
.profile-card .death-note{position:relative;z-index:1}
.profile-card .profile-stats div{
  background:rgba(18,12,12,.78);
  backdrop-filter:blur(3px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.profile-card .profile-head{background:linear-gradient(90deg,rgba(8,6,6,.18),transparent);padding-right:90px}
.profile-card .avatar.large{box-shadow:0 0 0 1px rgba(220,63,54,.65),0 16px 38px rgba(0,0,0,.5)}
@media(max-width:600px){
  .profile-card{background-position:62% center}
  .profile-card .profile-head{padding-right:36px}
}
