:root {
  --bg: #000000;
  --card: #121212;
  --text: #FFFFFF;
  --text-2: #B3B3B3;
  --accent: #E1000F;
  --divider: #2A2A2A;

  --tap: 44px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  padding: env(safe-area-inset-top) 0 0 0;
}

.header__title {
  margin: 0;
  padding: 14px 16px 2px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.header__updated {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--text-2);
  min-height: 14px;
}

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tab--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Content --- */
.content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

/* --- Karten / Akkordeon --- */
.card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}

.card__head {
  display: block;
  width: 100%;
  min-height: var(--tap);
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.card__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: max-height .28s ease, opacity .28s ease, padding .28s ease;
}
.card--open .card__body {
  max-height: 600px;
  opacity: 1;
  padding: 0 16px 16px;
}

.card__text {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.card__ainote {
  margin: -6px 0 12px;
  font-size: 11px;
  color: var(--text-2);
  font-style: italic;
}

.card__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
}

/* --- Skeletons --- */
.skeleton {
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(90deg,
    rgba(225,0,15,0.10) 25%,
    rgba(225,0,15,0.22) 37%,
    rgba(225,0,15,0.10) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* --- Meldungen --- */
.message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-2);
}
.message p { margin: 0 0 16px; font-size: 15px; }

.retry-btn {
  min-height: var(--tap);
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
