:root {
  --wall: url(/static/img/ui/tex-wall.png);
  --tex-panel: url(/static/img/ui/tex-panel.png);
  --tex-paper: url(/static/img/ui/tex-plate-light.png);
  --tex-card: url(/static/img/ui/tex-tab.png);
  --tex-metal: url(/static/img/ui/tex-plate-dark.png);
  --tex-gold: url(/static/img/ui/tex-plate-gold.png);
  --tex-bar: url(/static/img/ui/tex-bar.png);
  --ring-light: url(/static/img/ui/frame-plate-light.png);
  --ring-dark: url(/static/img/ui/frame-plate-dark.png);
  --ring-gold: url(/static/img/ui/frame-plate-gold.png);

  --bg: #100e0c; --paper: #221f1b; --paper-deep: #1b1917; --paper-edge: #0d0c0b;
  --row: #262220; --row-alt: #201d1b; --row-hover: #332e29;
  --ink: #d9d2c6; --ink-dim: #948b7d; --ink-head: #a2988a; --ink-bright: #f4efe6; --link: #d8cbb0;
  --card: #e6d9bd; --card-ink: #241a0d; --card-line: #a08a68;
  --box: #26221f; --box-edge: #171412; --box-deep: #1a1715; --edge: #0c0b0a; --pic-bg: #3a2c1c;
  --ok: #6ec845; --ok-bg: #23430f; --ok-line: #4e8f24; --err: #ef4a3d; --err-bg: #45120e; --err-line: #99281d;
  --warn: #e8b33a; --accent: #c0261f; --field: #322c27; --gold: #e8b33a;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  --disp: "Arial Black", "Arial Bold", "Helvetica Bold", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 13px/1.55 Arial, Helvetica, sans-serif; color: var(--ink);
  background: var(--bg) var(--wall) repeat top center fixed; background-size: 256px;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(232, 179, 58, 0.09), transparent 55%),
              linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
}
body > * { position: relative; z-index: 1; }
a { color: var(--link); }
a:hover { color: #fff; }
h1 {
  font: 26px/1.15 var(--disp); letter-spacing: 0.01em; margin: 0 0 14px; color: var(--ink-bright);
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, 0.7); font-style: italic;
}
h1.graffiti { color: var(--gold); transform: rotate(-1.5deg); display: inline-block; font-size: 32px; }
h2 { font: bold 15px/1.3 Arial, sans-serif; margin: 0 0 10px; color: var(--ink-bright); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 4px; }
h3 { font: bold 12px/1.3 Arial, sans-serif; margin: 12px 0 6px; color: var(--ink-head); text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 10px; }
hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 14px 0; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 9px; border-bottom: 1px solid rgba(0, 0, 0, 0.5); vertical-align: top; }
th { font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-head); background: rgba(0, 0, 0, 0.35); }
tbody tr:nth-child(odd) td { background: var(--row-alt); }
tbody tr:nth-child(even) td { background: var(--row); }
tbody tr:hover td { background: var(--row-hover); }
tr.me td { background: #4a3d18 !important; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.kv td:first-child { color: var(--ink-dim); width: 40%; }
table.kv tr td { background: transparent !important; }

input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  font: inherit; padding: 5px 7px; border: 1px solid var(--edge); background: var(--field); color: #e8e2d8;
  border-radius: 2px; max-width: 100%; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
textarea { width: 100%; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--gold); }

button, .btn {
  font: bold 12px/1.2 Arial, sans-serif; padding: 7px 14px; border: 1px solid #0b0a09; border-radius: 3px;
  cursor: pointer; color: #f0e9dc; text-decoration: none; display: inline-block; text-shadow: 0 1px 1px #000;
  background: linear-gradient(#524a41, #332d28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.6);
}
button:hover, .btn:hover { background: linear-gradient(#655c50, #3d3630); color: #fff; }
button.secondary, .btn.secondary { background: linear-gradient(#3d3730, #2a2521); }
button.danger, .btn.danger { background: linear-gradient(#a5241c, #601410); border-color: #2c0806; }
button.primary, .btn.primary { background: linear-gradient(#c1281f, #7a1411); border-color: #2c0806; }
button:disabled, .btn.disabled { background: #2b2724; color: #7a7269; border-color: #1a1715; cursor: default; text-shadow: none; box-shadow: none; }
button.small, .btn.small { padding: 3px 9px; font-weight: normal; }
button.linkbtn { background: none; border: none; padding: 0; color: var(--card-ink); font-weight: bold; text-decoration: underline; text-shadow: none; box-shadow: none; cursor: pointer; }
button.linkbtn:hover { background: none; color: #000; }
form.inline { display: inline; }
label.block { display: block; margin: 6px 0 2px; font-weight: bold; }
.formgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 7px 12px; align-items: center; }
.formgrid input:not([type=checkbox]):not([type=radio]):not([type=file]), .formgrid select, .formgrid textarea { width: 100%; min-width: 0; }
.formgrid button { justify-self: start; }
.formgrid label { font-weight: bold; }
.formgrid .chk { font-weight: normal; }

.help, .muted { color: var(--ink-dim); font-style: italic; }
.ok { color: var(--ok); } .bad { color: var(--err); } .warn { color: var(--warn); }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.flash { padding: 9px 13px; margin: 0 0 14px; border: 1px solid; border-radius: 3px; }
.flash-ok { background: var(--ok-bg); border-color: var(--ok-line); color: #e6ffdc; }
.flash-err { background: var(--err-bg); border-color: var(--err-line); color: #ffdfda; }
.flash-info { background: #1b3143; border-color: #3d6d92; color: #dfeaf3; }
.flash ul { margin: 0; padding-left: 18px; }
.flash a { color: #fff; }

.gbox { background: rgba(0, 0, 0, 0.34); border: 1px solid rgba(0, 0, 0, 0.65); border-top-color: rgba(255, 255, 255, 0.07); border-radius: 3px; padding: 13px 16px; margin-bottom: 14px; }
.gbox.danger { border-color: #6b1a14; }
.info { background: var(--box-deep); border: 1px solid var(--box-edge); padding: 10px 12px 10px 44px; position: relative; margin-bottom: 14px; border-radius: 3px; }
.info::before { content: 'i'; position: absolute; left: 10px; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: #2c6288; color: #fff; text-align: center; font: bold 16px/24px Georgia, serif; }
.cols { display: flex; gap: 22px; align-items: flex-start; }
.cols > * { min-width: 0; }
.cols .cols > .gbox { flex: 1 1 0; min-width: 0; }
.col-main { flex: 1; }
.col-side { flex: 0 0 216px; }
.narrow { flex: 0 0 150px; }
.bar { display: inline-block; vertical-align: middle; width: 200px; height: 12px; background: #17140f; border: 1px solid #000; overflow: hidden; margin-left: 6px; border-radius: 2px; }
.bar > span { display: block; height: 100%; background: linear-gradient(#8ede5f, #3f8a17); }
.bar.blue > span { background: linear-gradient(#7ebcff, #2b6b9b); }
.bar.wide { width: 100%; margin: 4px 0; }
.processbar { height: 13px; background: #17140f; border: 1px solid #000; border-radius: 2px; overflow: hidden; }
.processbar > span { display: block; height: 100%; background: linear-gradient(#8ede5f, #3f8a17); }

/* ---------- Grundgeruest ---------- */
.frame {
  width: min(1520px, 100%); margin: 0 auto; flex: 1; display: grid; grid-template-columns: 0 minmax(0, 1fr) 0;
  grid-template-rows: auto auto 1fr; align-items: start;
}
.rails { display: contents; }
.rail { grid-row: 2 / -1; align-self: stretch; overflow: hidden; position: relative; background: var(--wall); }
.rail::before, .rail::after { content: ''; position: absolute; background: no-repeat center / contain; }
.rail-l {
  grid-column: 1; box-shadow: inset -14px 0 22px rgba(0, 0, 0, 0.7);
  background-image: url(/static/img/ui/deko-moin.png), var(--wall);
  background-repeat: no-repeat, repeat; background-position: left 12px top 20px, top center;
  background-size: 100px auto, 256px;
}
.rail-r {
  grid-column: 3; box-shadow: inset 14px 0 22px rgba(0, 0, 0, 0.7);
  background-image: url(/static/img/ui/deko-reeperbahn.png), var(--wall);
  background-repeat: no-repeat, repeat; background-position: right -14px top 24px, top center;
  background-size: 158px auto, 256px;
}
.rail-l::before { left: 8px; top: 214px; width: 118px; height: 218px; background-image: url(/static/img/ui/deko-luxus.png); opacity: 0.8; }
.rail-l::after { left: 0; bottom: 0; width: 150px; height: 440px; background-image: url(/static/img/ui/deko-tonne.png), url(/static/img/ui/deko-hund.png); background-size: 104px auto, 132px auto; background-position: left 10px bottom 92px, left 4px bottom 8px; }
.rail-r::before { right: 6px; top: 196px; width: 130px; height: 232px; background-image: url(/static/img/ui/deko-gefuehl.png); opacity: 0.8; }
.rail-r::after { right: 0; bottom: 0; width: 150px; height: 300px; background-image: url(/static/img/ui/deko-wagen.png); background-size: 150px auto; background-position: right bottom; }
.headgrid, .content { grid-column: 2; }
.banner { grid-column: 1 / -1; }

/* ---------- Kopfbalken ---------- */
.banner {
  position: relative; min-height: 148px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 26px 10px 16px; overflow: hidden;
  background: #0f1013 url(/static/img/ui/header.jpg) no-repeat center / cover;
  border-bottom: 3px solid #0a0908;
}
.banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.25) 34%, rgba(8, 8, 10, 0.15) 60%, rgba(8, 8, 10, 0.85) 100%);
}
.banner::after {
  content: ''; position: absolute; right: 27%; bottom: 0; width: 250px; height: 168px;
  background: url(/static/img/ui/character.png) no-repeat right bottom / contain; pointer-events: none;
}
.banner > * { position: relative; }
.logo { display: block; width: min(330px, 42vw); aspect-ratio: 570 / 250; text-decoration: none; }
.logo span { display: block; width: 100%; height: 100%; background: url(/static/img/ui/logo.png) no-repeat left center / contain; text-indent: -999em; overflow: hidden; }
.banner-right { display: flex; align-items: center; gap: 26px; }
.statusline .weather { width: 26px; height: 26px; margin-left: auto; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.7); }
.statusline .weather > span { inset: 6px; }
.statusline .weather-rain::after, .statusline .weather-snow::after, .statusline .weather-thunder::after { left: 7px; right: 7px; bottom: 3px; height: 3px; }
.ortsschild {
  /* Als border-image, nicht als gezerrter Hintergrund: der Rahmen behaelt seine
     Staerke, nur die gelbe Flaeche waechst mit dem Namen. Die Slices sind die
     Raender des Blechs im Bild (404x176, Flaeche 34,26 bis 372,152). */
  position: relative; min-width: 176px; padding: 7px 15px 9px; text-align: center;
  border-style: solid; border-width: 17px 21px 16px 22px;
  border-image: url(/static/img/ui/sign.png) 26 32 24 34 fill stretch;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}
.ortsschild b { display: block; font: bold 20px/1.1 Arial, Helvetica, sans-serif; color: #1a1408; letter-spacing: -0.01em; white-space: nowrap; }
.ortsschild i { display: block; font: italic 12px/1.3 Arial, sans-serif; color: #4a3813; margin-top: 1px; white-space: nowrap; }
.weather { width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none; margin-left: auto; background: #6ea7d6; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6); }
.weather.night { background: #1a2440; }
.weather span { position: absolute; inset: 6px; border-radius: 50%; background: var(--warn); }
.weather.night span { background: #f2f2d0; clip-path: circle(50% at 40% 50%); }
.weather-cloud span, .weather-rain span, .weather-thunder span, .weather-snow span { background: #eee; border-radius: 40% 40% 30% 30%; inset: 9px 5px 7px; }
.weather-rain::after, .weather-snow::after, .weather-thunder::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: 3px; height: 4px; background: repeating-linear-gradient(90deg, #4a7fbf 0 1px, transparent 1px 3px); }
.weather-snow::after { background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 6px); }
.weather-thunder::after { background: var(--warn); clip-path: polygon(30% 0, 70% 0, 50% 100%); height: 6px; }

/* ---------- Menue, Statusleiste, Reiter ---------- */
.headgrid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; align-items: start; padding: 12px 0 0; }
.headmain { min-width: 0; display: flex; flex-direction: column; gap: 9px; }

.topmenu { display: flex; gap: 8px; }
.topmenu a {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; position: relative; text-decoration: none; padding: 8px 4px;
  font: bold 12px/1.15 var(--disp); letter-spacing: 0.02em; text-transform: uppercase; text-align: center;
  color: var(--card-ink); background: var(--tex-paper);
  border: 13px solid transparent; border-image: var(--ring-light) 24 round;
}
.topmenu a .ico { display: block; width: 34px; height: 29px; background: no-repeat center / contain; }
.topmenu a:hover { color: #000; background: var(--tex-gold); border-image-source: var(--ring-gold); }
.topmenu a.active { color: #efe6d4; background: var(--tex-metal); border-image-source: var(--ring-dark); text-shadow: 0 1px 2px #000; }
.topmenu a.active .ico, .topmenu a:hover .ico { filter: none; }
.topmenu a.active .ico { filter: invert(1) brightness(1.6); }
.topmenu .badge { position: absolute; top: -6px; right: -2px; background: var(--accent); color: #fff; border: 1px solid #45100c; border-radius: 9px; padding: 0 6px; font: bold 10px/16px Arial, sans-serif; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.topmenu a .ico-penner { background-image: url(/static/img/ui/icon-penner.png); }
.topmenu a .ico-mail { background-image: url(/static/img/ui/icon-mail.png); }
.topmenu a .ico-gang { background-image: url(/static/img/ui/icon-gang.png); }
.topmenu a .ico-city { background-image: url(/static/img/ui/icon-city.png); }
.topmenu a .ico-news { background-image: url(/static/img/ui/icon-news.png); }

.statusline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; padding: 5px 8px;
  font: bold 13px/1.2 Arial, sans-serif; color: #f2ecdf;
  background: #14120f var(--tex-bar); border: 9px solid transparent; border-image: var(--ring-dark) 24 round;
}
.statusline .st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.statusline .st:last-of-type { border-right: none; }
.statusline .st::before { content: ''; width: 21px; height: 21px; background: no-repeat center / contain; flex: none; }
.statusline .st-money::before { background-image: url(/static/img/ui/icon-money.png); }
.statusline .st-beer::before { background-image: url(/static/img/ui/icon-beer.png); }
.statusline .st-book::before { background-image: url(/static/img/ui/icon-book.png); filter: invert(1) brightness(1.4); }
.statusline .st-fight::before { background-image: url(/static/img/ui/icon-fight.png); }
.statusline .st-bottle::before { background-image: url(/static/img/ui/icon-bottle.png); }
.statusline .st-clock::before { background-image: url(/static/img/ui/icon-clock.png); }
.statusline .st-clean::before { background-image: url(/static/img/ui/icon-drop.png); }
.statusline .st-stamps::before { background-image: url(/static/img/ui/icon-coins.png); }
.statusline a { color: #fff; text-decoration: none; }
.statusline a:hover { color: var(--warn); }
.statusline [data-ends] { font-variant-numeric: tabular-nums; color: var(--warn); }

.tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tabbar .tabwrap { flex: 1; min-width: 0; }
.tabbar .xtra { display: flex; align-items: center; gap: 9px; padding-bottom: 3px; font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.tabbar .xtra i { color: #5c554b; font-style: normal; }
.tabbar .xtra a { color: var(--ink); text-decoration: none; }
.tabbar .xtra a:hover { color: #fff; }
.tabbar .xtra .linkbtn.out { color: var(--err); text-decoration: none; font: bold 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.tabbar .xtra .linkbtn.out:hover { color: #ff8b80; text-decoration: underline; }
.tabnav { display: flex; flex-wrap: wrap; gap: 3px; }
.tabnav a {
  background: var(--tex-card); color: var(--card-ink); text-decoration: none; padding: 7px 20px 8px;
  font: bold 12px/1.2 Arial, sans-serif; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  border-bottom: 3px solid rgba(0, 0, 0, 0.45);
}
.tabnav a:hover { color: #000; filter: brightness(1.08); }
.tabnav a.active { background: var(--tex-gold); color: #2a1c05; }

/* ---------- Profilkarte ---------- */
.profilecard {
  display: flex; gap: 11px; padding: 12px 13px; color: var(--card-ink);
  background: var(--tex-paper); border: 16px solid transparent; border-image: var(--ring-light) 24 round;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.6));
}
.profilecard .polaroid { flex: 0 0 82px; background: #fbf7ee; padding: 5px 5px 14px; box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.45); transform: rotate(-2.5deg); }
.profilecard .polaroid img { width: 72px; height: 92px; object-fit: cover; display: block; background: #2a2520; }
.profilecard h2 { font: bold 17px/1.2 var(--disp); text-transform: uppercase; color: var(--card-ink); border-bottom: 1px solid var(--card-line); margin: 0 0 5px; padding-bottom: 3px; }
.profilecard .pc-text { font-size: 12px; line-height: 1.5; flex: 1; min-width: 0; }
.profilecard .pc-text span { text-transform: uppercase; color: #6b573c; font-weight: bold; font-size: 11px; }
.profilecard .pc-mail { display: block; text-transform: uppercase; font-weight: bold; color: #8d1410; margin-top: 5px; }
.profilecard .pc-set { display: block; color: #4a3a22; font-size: 11px; }

/* ---------- Inhaltsflaeche ---------- */
.content {
  margin: 14px 0 0; padding: 20px 24px 28px; position: relative;
  background: var(--paper-deep) var(--tex-panel);
  border: 18px solid transparent; border-image: var(--ring-dark) 24 round;
}
.content::before {
  content: ''; position: absolute; left: 4px; right: 4px; top: 2px; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(232, 220, 195, 0.5) 0 16px, transparent 16px 26px);
}

/* ---------- Startseite ---------- */
.noauth-head {
  background: #0f1013 url(/static/img/ui/header.jpg) no-repeat center / cover;
  border-bottom: 3px solid #0a0908; position: relative; overflow: hidden;
}
.noauth-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.3) 40%, rgba(8, 8, 10, 0.8) 100%); }
.noauth-head::after { content: ''; position: absolute; right: 7%; bottom: 0; width: 214px; height: 142px; background: url(/static/img/ui/character.png) no-repeat right bottom / contain; }
.noauth-head .inner { position: relative; width: min(1080px, 100%); margin: 0 auto; padding: 18px 14px 14px; }
.noauth-wrap { width: min(1080px, 100%); margin: 0 auto; padding: 20px 14px 0; }
.noauth-logo { width: min(360px, 60vw); aspect-ratio: 570 / 250; margin: 0; }
.noauth-logo a { display: block; width: 100%; height: 100%; background: url(/static/img/ui/logo.png) no-repeat left center / contain; text-indent: -999em; overflow: hidden; }
.slogan { color: var(--ink-bright); font: italic bold 18px var(--disp); margin: 2px 0 0; text-shadow: 0 2px 0 #000, 0 0 10px #000; }
.start { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.start .login-box { order: 2; padding: 16px 18px; color: var(--card-ink); background: var(--tex-paper); border: 18px solid transparent; border-image: var(--ring-light) 24 round; }
.start .login-box h2 { color: var(--card-ink); border-bottom: 1px solid var(--card-line); font: bold 15px var(--disp); text-transform: uppercase; }
.start .login-box input[type=text], .start .login-box input[type=password] { width: 100%; background: #fdfaf2; color: #241a0d; border-color: #a08a68; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.start .login-box a { color: #8d1410; }
.start .login-box .online { color: #6b573c; font-size: 11px; margin-top: 10px; }
.start .teaser { order: 1; background: var(--paper) var(--tex-panel); border: 18px solid transparent; border-image: var(--ring-dark) 24 round; padding: 18px 22px; }
.start .teaser ul { columns: 2; margin: 8px 0 12px; padding-left: 18px; font-weight: bold; }
.start .teaser li { margin-bottom: 4px; break-inside: avoid; }
.start .register { margin-top: 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--box-edge); padding: 14px 16px; }
.start .register .row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 7px 12px; align-items: center; margin-bottom: 7px; }
.start .register input[type=text], .start .register input[type=email], .start .register input[type=password] { width: 100%; max-width: 320px; }
.city-strip { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.city-strip span { background: var(--tex-card); color: var(--card-ink); padding: 2px 9px; font-size: 11px; font-weight: bold; transform: rotate(-1deg); }
.city-strip span:nth-child(even) { transform: rotate(1deg); }
.noauth-wrap .box, .noauth-wrap .legal { background: var(--paper) var(--tex-panel); border: 18px solid transparent; border-image: var(--ring-dark) 24 round; padding: 18px 22px; margin-top: 18px; }

/* ---------- Fussleiste ---------- */
.footer { margin-top: auto; background: #14120f var(--tex-bar); border-top: 3px solid #0a0908; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.footer-inner {
  width: min(1520px, 100%); margin: 0 auto; padding: 16px 150px; text-align: center; font-size: 12px; color: #a2988a;
  background: url(/static/img/ui/deko-moin-klein.png) no-repeat left 26px center / 66px auto,
              url(/static/img/ui/deko-bleibt.png) no-repeat right 26px center / 100px auto;
}
.footer a { color: #c9bda6; text-decoration: none; margin: 0 9px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .copy { display: block; margin-top: 5px; color: #6d6459; }

.rules li { margin-bottom: 8px; }
.legal table td { font-size: 12px; }

/* ---------- Bausteine im Spiel ---------- */
.submenu { display: flex; flex-direction: column; gap: 9px; }
.submenu .paper {
  display: block; background: var(--tex-paper); color: var(--card-ink); font: bold 12px/1.2 Arial, sans-serif;
  text-decoration: none; padding: 11px 12px; text-align: center; box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.55);
}
.submenu .paper-1 { clip-path: polygon(0 10%, 2% 0, 100% 4%, 98% 100%, 0 94%); transform: rotate(-1deg); }
.submenu .paper-2 { clip-path: polygon(2% 0, 100% 8%, 100% 100%, 0 96%); transform: rotate(0.8deg); }
.submenu .paper-3 { clip-path: polygon(0 0, 98% 3%, 100% 92%, 3% 100%); transform: rotate(-0.5deg); }
.submenu .paper-4 { clip-path: polygon(3% 5%, 100% 0, 97% 100%, 0 100%); transform: rotate(1.2deg); }
.submenu .paper-5 { clip-path: polygon(0 4%, 100% 0, 100% 96%, 2% 100%); transform: rotate(-1.4deg); }
.submenu .paper:hover { color: #000; filter: brightness(1.09); }
.submenu .paper.active { background: var(--tex-gold); color: #2a1c05; }
.submenu .paper[href^="/aktionen"] { display: flex; align-items: center; gap: 11px; text-align: left; padding: 10px 14px; }
.submenu .paper[href^="/aktionen"]::before {
  content: ''; flex: none; width: 28px; height: 24px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.submenu .paper[href="/aktionen/verbrechen"]::before { background-image: url(/static/img/ui/icon-crime.png); }
.submenu .paper[href="/aktionen/kaempfen"]::before { background-image: url(/static/img/ui/icon-gloves.png); }
.submenu .paper[href="/aktionen/flaschen"]::before { background-image: url(/static/img/ui/icon-bottle-green.png); }
.submenu .paper[href="/aktionen/weiterbildung"]::before { background-image: url(/static/img/ui/icon-book.png); }
.submenu .paper[href="/aktionen/tagesaufgabe"]::before { background-image: url(/static/img/ui/icon-task.png); }
.submenu .paper[href="/aktionen/marken"]::before { background-image: url(/static/img/ui/icon-crown.png); }

.special { background: var(--tex-paper); color: var(--card-ink); padding: 13px 15px; margin-top: 16px; clip-path: polygon(0 2%, 100% 0, 98% 100%, 2% 98%); }
.special h3 { color: var(--card-ink); font-size: 13px; margin-top: 0; }
.special a { color: #8d1410; }
.sigcard { background: var(--box-deep); border: 2px solid var(--edge); padding: 9px 11px; width: 158px; text-align: center; box-shadow: 0 0 0 2px #4a423a; }
.sigcard b { display: block; color: var(--gold); font: 16px var(--disp); letter-spacing: 0.5px; margin-bottom: 4px; }
.sigcard span { display: block; font-size: 11px; color: #ddd; }

.mood { font-weight: bold; }
.mood-bad, .promille-bad { color: var(--err); } .mood-mid, .promille-mid { color: var(--warn); } .mood-good, .promille-good { color: var(--ok); } .mood-warn, .promille-warn { color: #ff7a2a; }
.cleanrow { margin: 6px 0 10px; }

.gitem { display: flex; gap: 14px; align-items: stretch; background: rgba(0, 0, 0, 0.32); border: 1px solid var(--box-edge); margin-bottom: 9px; padding: 11px; border-radius: 3px; }
.gitem .pic { flex: 0 0 88px; height: 88px; background: linear-gradient(#4a3721, #2d2014); border: 1px solid #17110a; border-radius: 4px; display: flex; align-items: center; justify-content: center; font: 22px var(--disp); color: #f0e6d2; text-shadow: 0 1px 2px #000; overflow: hidden; }
.pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.gitem .pic img { padding: 3px; }

/* Bildspalte in den Listen: schmal, das Bild sitzt mittig */
table.withpic td.ipic { width: 62px; padding: 4px 6px; }
table.withpic td.ipic img { width: 54px; height: 42px; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.duell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duell img { width: 46px; height: 40px; object-fit: contain; }
.duell i { font-style: normal; color: var(--ink-dim); margin: 0 2px; }
.gitem .desc { flex: 1; min-width: 0; }
.gitem .desc b { display: block; font-size: 13px; color: var(--ink-bright); }
.gitem .card { flex: 0 0 168px; background: var(--tex-card); color: var(--card-ink); padding: 10px 12px; font-size: 12px; clip-path: polygon(0 3%, 100% 0, 98% 100%, 2% 97%); }
.gitem .card b { display: block; font-size: 13px; }
.gitem .card form { margin-top: 7px; }
.gitem .card a { color: #8d1410; }
.gitem.locked { opacity: 0.55; }
.gitem.owned { border-color: var(--ok-line); }

.actioncard { background: #2b2724; border: 1px solid #17130f; margin-bottom: 12px; border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.actioncard .head { background: rgba(0, 0, 0, 0.45); padding: 7px 11px; font-weight: bold; color: var(--ink-bright); }
.actioncard .body { padding: 11px; display: flex; gap: 14px; align-items: center; }
.actioncard .timer { font: bold 22px Georgia, serif; color: var(--ink-bright); font-variant-numeric: tabular-nums; }

.district-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.district { background: var(--box); border: 1px solid var(--box-edge); padding: 7px 9px; font-size: 11px; border-radius: 2px; }
.district.current { border-color: #3d7cab; background: #1a324a; }
.district.owned { border-color: var(--ok-line); }
.district b { display: block; color: var(--ink-bright); }
.district.held b::after { content: ' ★'; color: var(--warn); }

.fightlog { font-family: Consolas, "Courier New", monospace; font-size: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--edge); padding: 9px 11px; max-height: 360px; overflow: auto; }
.fightlog p { margin: 0 0 3px; }
tr.f-win td { background: #24450f !important; } tr.f-loss td { background: #4a1512 !important; } tr.f-draw td { background: #4a4014 !important; }
.arrow-out::before { content: '➔ '; color: var(--ok); } .arrow-in::before { content: '➔ '; color: var(--err); display: inline-block; transform: scaleX(-1); }

.msg { background: var(--box); border: 1px solid var(--box-edge); padding: 11px 13px; margin-bottom: 10px; border-radius: 3px; }
.msg .meta { color: var(--ink-dim); font-size: 11px; margin-bottom: 4px; }
.msg.unread { border-left: 4px solid var(--accent); }
.msg .body { white-space: pre-wrap; }

.shoutbox { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--edge); padding: 9px 11px; max-height: 260px; overflow: auto; margin-bottom: 8px; }
.shoutbox p { margin: 0 0 4px; }
.shoutbox .who { color: var(--gold); font-weight: bold; }
.shoutbox .when { color: #6d6459; font-size: 10px; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5c554b; margin-right: 4px; }
.online-dot.on { background: var(--ok); box-shadow: 0 0 5px var(--ok); }

.pager { margin-top: 12px; }
.pager a, .pager span { display: inline-block; padding: 3px 9px; margin-right: 4px; background: var(--box); border: 1px solid var(--box-edge); text-decoration: none; border-radius: 2px; }
.pager span.cur { background: var(--tex-gold); color: #2a1c05; font-weight: bold; }

.chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--edge); padding: 4px; }
.chart span { flex: 1; background: linear-gradient(#8ede5f, #3f8a17); min-width: 3px; }
.chart span.low { background: linear-gradient(#e0786d, #a90204); }

.awardlist li { margin-bottom: 6px; }
.awardlist b { color: #cfa9ff; }
.title-tag { color: #cfa9ff; font-size: 11px; }
.newsticker { background: rgba(0, 0, 0, 0.45); color: #b3aa9c; padding: 5px 11px; margin-bottom: 12px; white-space: nowrap; overflow: hidden; font-size: 12px; border-left: 3px solid var(--gold); }

.cityview { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge); padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cityview a { display: block; background: var(--tex-paper); color: var(--card-ink); text-decoration: none; text-align: center; padding: 20px 8px 10px; font: bold 11px/1.3 Arial, sans-serif; text-transform: uppercase; position: relative; box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); }
.cityview a::before { content: ''; position: absolute; top: 7px; left: 50%; width: 12px; height: 7px; margin-left: -6px; background: var(--gold); border-radius: 1px; }
.cityview a:hover { filter: brightness(1.09); color: #000; }
.cityview a small { display: block; font-weight: normal; text-transform: none; color: #6b573c; }

.hs-search { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.hs-search input[type=text] { width: 130px; }
.hs-search input[type=number] { width: 74px; }
.errmsg { color: var(--err); font-weight: bold; } .goodmsg { color: var(--ok); font-weight: bold; }
.online-note { color: var(--ink-dim); font-size: 11px; }

/* ---------- schmale Fenster ---------- */
@media (min-width: 1240px) {
  .frame { grid-template-columns: 150px minmax(0, 1fr) 150px; }
}
@media (max-width: 1000px) {
  .headgrid { grid-template-columns: minmax(0, 1fr); }
  .start { grid-template-columns: 1fr; }
  .start .login-box { order: 1; }
  .start .teaser { order: 2; }
  .start .teaser ul { columns: 1; }
  .cols { flex-direction: column; }
  .cols > *, .cols .cols > .gbox { flex: none; width: 100%; }
  .col-side { flex: none; width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 12px; }
  .banner { min-height: 108px; padding: 8px 10px; }
  .banner::after { display: none; }
  .logo { width: 200px; }
  .ortsschild { min-width: 128px; padding: 5px 10px 6px; border-width: 13px 16px 12px 17px; }
  .ortsschild b { font-size: 16px; }
  .ortsschild i { font-size: 11px; }
  .weather { display: none; }
  .topmenu { flex-wrap: wrap; }
  .topmenu a { flex: 1 1 44%; border-width: 11px; font-size: 10px; }
  .statusline { font-size: 12px; padding: 4px 6px; border-width: 8px; }
  .statusline .st { padding: 2px 7px; gap: 5px; }
  .statusline .st::before { width: 17px; height: 17px; }
  .content { padding: 14px 12px 20px; border-width: 13px; }
  .tabbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .tabnav a { padding: 6px 13px; font-size: 11px; }
  .gitem { flex-wrap: wrap; }
  .gitem .pic { flex: 0 0 66px; height: 66px; }
  .gitem .card { flex: 1 1 100%; }
  .formgrid, .start .register .row { grid-template-columns: 1fr; }
  .footer-inner { background-image: none; padding: 14px 12px; }
  .noauth-head::after { display: none; }
  h1 { font-size: 20px; }
}

@media (max-width: 560px) {
  .banner { flex-wrap: wrap; gap: 8px; min-height: 92px; padding: 8px 8px 6px; }
  .logo { width: 152px; }
  .banner-right { gap: 10px; }
  .ortsschild { min-width: 96px; padding: 4px 7px 5px; border-width: 10px 12px 9px 13px; }
  .ortsschild b { font-size: 13px; }
  .ortsschild i { font-size: 10px; }
  .topmenu a { flex: 1 1 100%; flex-direction: row; gap: 9px; justify-content: flex-start; padding: 5px 10px; border-width: 10px; }
  .topmenu a .ico { width: 24px; height: 21px; }
  .profilecard { border-width: 12px; padding: 9px 10px; }
  .profilecard .polaroid { flex: 0 0 62px; }
  .profilecard .polaroid img { width: 54px; height: 70px; }
  .content { padding: 12px 9px 16px; border-width: 11px; }
  .statusline .st { padding: 2px 5px; }
  th, td { padding: 5px 6px; }
}
