@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
  color-scheme: light;

  /* ClubDesk Farben (aus page.css) */
  --cd-blue: #044C77;        /* rgba(4,76,119,1.0) — Navigation & Akzent */
  --cd-blue-dark: #033d60;   /* dunklere Kante */
  --cd-panel: #CDE7F3;       /* rgba(205,231,243,1.0) — Panel/Hover */
}


/* Reset & iFrame-Freundlichkeit */
html, body {
  margin: 0;
  padding: 0;
  background: transparent;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, Arial, sans-serif;
}

.wrap { padding: 0; }

/* Card wie ClubDesk "N채chste Termine" */
.card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
}

/* ===== DESKTOP / TABLET: Tabelle ===== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.35;
}

thead th {
  background: var(--cd-blue);
  border-bottom: 2px solid var(--cd-blue-dark);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

thead th.col-ort {
  color: #fff;
}


tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(0,0,0,.02); }

a {
  color: var(--cd-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: 0;
  padding-bottom: 0;
}
a:hover {
  text-decoration: none;
}

.col-ort {
  white-space: nowrap;
  color: rgba(0,0,0,.75);
}

tbody td:nth-child(3) {
  font-weight: 600;
}

/* ===== MOBILE: Karten-Layout ===== */

.cards { display: none; }

.cards .item {
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.cards .item:last-child { border-bottom: 0; }

.item-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.date-pill {
  font-size: 12px;
  color: var(--cd-blue);
  background: rgba(208,228,240,.9);               /* hellblau */
  border: 1px solid rgba(28,72,116,.25);          /* blau */
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
  word-break: break-word;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: rgba(0,0,0,.75);
}

.label {
  font-weight: 600;
  color: rgba(0,0,0,.55);
}

/* Breakpoint */
@media (max-width: 720px) {
  table { display: none; }
  .cards { display: block; }
}
