
:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --blood: #d73545;
  --blood-bright: #ff5361;
  --panel: #181014;
  --border: #57252e;
  --text: #f4e7e9;
  --muted: #bca4aa;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -15%, #651923 0%, transparent 48%),
    radial-gradient(ellipse at 100% 100%, #2d0b12 0%, transparent 40%),
    #0d090c !important;
  background-attachment: fixed !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background: repeating-linear-gradient(
    135deg, transparent 0 24px,
    #9c2635 25px, transparent 26px 55px
  );
  z-index: -1;
}
header, section, .panel, main > main {
  background: linear-gradient(145deg, #201317, #130e12) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 35px #0006, inset 0 1px #ffffff09;
}
header {
  border-top: 2px solid #a92a39 !important;
}
h1, h2, h3 {
  color: #fff0f0;
  letter-spacing: .015em;
}
h1 {
  text-shadow: 0 0 24px #b51d3244;
}
h2 {
  border-left: 3px solid var(--blood);
  padding-left: 12px;
}
.muted, small, footer, label {
  color: var(--muted) !important;
}
a { color: #ff8490; }
a:hover { color: #ffd0d5; }
button, .button, header a, nav a {
  transition: background .2s, border-color .2s,
              transform .2s, box-shadow .2s;
}
button:not(:disabled), .button {
  background: linear-gradient(135deg, #a32335, #641622);
  color: white !important;
  border: 1px solid #b73a49;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
}
button:not(:disabled):hover, .button:hover {
  background: linear-gradient(135deg, #d33749, #8c1b2e);
  box-shadow: 0 0 18px #d52e4744;
  transform: translateY(-1px);
}
button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.card {
  background: linear-gradient(145deg, #29171d, #180f14) !important;
  border: 1px solid #5a2832;
  border-radius: 13px !important;
  box-shadow: inset 0 1px #ffffff0b;
}
.number {
  color: var(--blood-bright);
  text-shadow: 0 0 20px #e52b4844;
}
nav {
  padding: 12px;
  background: #160e13;
  border: 1px solid #4d232c;
  border-radius: 14px;
}
nav a {
  background: #26161c !important;
  border: 1px solid #51232e !important;
  color: #edd8dd !important;
}
nav a:hover {
  background: #682332 !important;
  border-color: #c33b50 !important;
}
input, textarea, select {
  background: #110c10 !important;
  color: #f5e7ea !important;
  border: 1px solid #5b2a35 !important;
  border-radius: 9px !important;
}
input:focus, textarea:focus, select:focus {
  outline: 1px solid #db4559;
  box-shadow: 0 0 12px #c42d4533;
}
table {
  border-collapse: separate;
  border-spacing: 0;
}
th {
  background: #321820;
  color: #ffc0c8;
}
td {
  background: #1b1116;
}
th, td {
  border-bottom: 1px solid #4a242d !important;
}
tr:hover td {
  background: #2b1820;
}
.status { color: #ff8896 !important; }
.panel {
  padding: 24px !important;
}
::selection { background: #9d2c3d; color: white; }
@media(max-width:650px) {
  header, section, .panel { padding: 16px !important; }
  main { width: 95% !important; }
}


/* BLOODPACT Banner */
.bloodpact-banner {
    width: 100%;
    height: clamp(190px, 27vw, 320px);
    background:
        linear-gradient(to top, rgba(12,5,9,.8), transparent 65%),
        url('/static/bloodpact-banner.webp') center / cover no-repeat;
    border: 1px solid #96313f;
    border-radius: 18px;
    box-shadow: 0 15px 40px #0009, 0 0 30px #ad26383d;
    margin-bottom: 24px;
}

/* BLOODPACT Icon und Titel */
.bloodpact-brand {
    color: #ff6370;
    font-weight: 800;
    letter-spacing: .08em;
}

/* BLOODPACT – KI-Entwicklung Layout-Fix */
.grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.grid > .card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
}

.grid > .card small {
    display: block !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}

.grid > .card .number {
    font-size: clamp(28px, 3vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #ff6370 !important;
    margin: 0 !important;
}

.panel {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
}

.panel table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.panel th,
.panel td {
    padding: 12px 14px !important;
    text-align: left !important;
    vertical-align: middle !important;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .grid > .card {
        padding: 18px !important;
    }
}

/* BLOODPACT – KI-Entwicklung Layout-Fix */
.grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.grid > .card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
}

.grid > .card small {
    display: block !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
}

.grid > .card .number {
    font-size: clamp(28px, 3vw, 42px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #ff6370 !important;
    margin: 0 !important;
}

.panel {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
}

.panel table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.panel th,
.panel td {
    padding: 12px 14px !important;
    text-align: left !important;
    vertical-align: middle !important;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important;
    }

    .grid > .card {
        padding: 18px !important;
    }
}
