/* =========================================================
   HCH UI FRAMEWORK
   Version: 1.0
   ========================================================= */

:root {

  /* Farben */

  --hch-green: #005D36;
  --hch-green-light: #ebf7ef;

  --hch-grey-100: #f9f9f9;
  --hch-grey-200: #f5f5f5;
  --hch-grey-300: #eeeeee;
  --hch-grey-400: #dddddd;

  --hch-text: #333333;
  --hch-text-light: #666666;

  --hch-link: navy;

  --hch-warning: #b71c1c;
  --hch-warning-light: #fdecea;

  --hch-new-bg: #fff3cd;
  --hch-new-text: #856404;

  --hch-cancelled-bg: #f5c6cb;
  --hch-cancelled-text: #721c24;


  /* Schriften */

  --hch-font:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  /* Layout */

  --hch-radius: 10px;
  --hch-radius-small: 6px;

  --hch-shadow:
    0 1px 3px rgba(0,0,0,0.08);
}

/* =========================================================
   BASIS
   ========================================================= */

.hch-hidden {
  display: none;
}

.hch-muted {
  color: var(--hch-text-light);
}

.hch-small {
  font-size: 0.9em;
}

.hch-text-green {
  color: var(--hch-green);
}

.hch-text-center {
  text-align: center;
}

.hch-app {

  font-family: var(--hch-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hch-text);
}

/* =========================================================
   FILTER BAR
   ========================================================= */

.hch-filter-bar {

  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px;
  background:
    rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--hch-radius);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}

.hch-filter {

  display: inline-block;
  padding: 8px 14px;
  border: none;
  border-radius: var(--hch-radius-small);
  background: white;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  text-decoration: none !important;
  color: var(--hch-text);
  font-size: 0.9em;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.hch-filter:hover {
  transform: translateY(-1px);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.18);
}

.hch-filter.active {

  background: var(--hch-green);
  color: white !important;
  box-shadow:
    0 2px 8px rgba(0,93,54,0.35);
}


/* =========================================================
   PRIMARY ACTION BUTTON
   ========================================================= */

.hch-button-primary {

  padding: 8px 14px;
  border: none;
  border-radius: var(--hch-radius-small);
  background: var(--hch-green);
  color: white !important;
  box-shadow:
    0 2px 8px rgba(0,93,54,0.35);
  font-size: 0.9em;
  cursor: pointer;
}

.hch-button-primary:hover {
  filter: brightness(110%);
}


/* =========================================================
   CARD CONTAINER
   ========================================================= */

.hch-card {

  margin-bottom: 20px;
  padding: 12px;
  border: none;
  border-radius: var(--hch-radius);
  background: white;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.hch-card-header {

  font-weight: bold;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--hch-grey-200);
  padding: 6px 10px;
  border-radius: var(--hch-radius-small);
}



/* =========================================================
   CARD DETAILS
   ========================================================= */

.hch-title {

  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hch-green);
}

.hch-subtitle {

  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 400;
}

.hch-metadata {

  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--hch-text-light);
  line-height: 0.8;
}

.hch-note {

  margin-top: 6px;
  color: var(--hch-text-light);
  font-style: italic;
  font-size: 0.9em;
}



/* =========================================================
   STANDARD ENTRY
   ========================================================= */

.hch-entry {

  padding: 8px 0;
  border-bottom:
    1px solid var(--hch-grey-300);
}

.hch-entry:last-child {
  border-bottom: none;
}


/* =========================================================
   HIGHLIGHT ENTRY
   z.B. Heimspiel oder wichtige Termine
   ========================================================= */

.hch-entry-highlight {

  padding: 10px;
  background: var(--hch-green-light);
  border-radius: var(--hch-radius-small);
  margin-bottom: 8px;
}

.hch-entry-highlight .hch-title {
    color: var(--hch-green);
}

/* =========================================================
   LINKS
   ========================================================= */

.hch-link {

  color: var(--hch-link) !important;
  text-decoration: none !important;
  opacity: 0.8;
}

.hch-link:hover {

  opacity: 1;
  text-decoration: underline !important;
}


/* Inline Link Liste */

.hch-link-inline {

  display: inline-block;
  margin-top: 3px;
  margin-right: 10px;
  font-size: 0.9em;
}


/* =========================================================
   INFO BOX
   ========================================================= */

.hch-info {

  background: var(--hch-green-light);
  border: none;
  border-left:
    1px solid var(--hch-green);
  border-radius: var(--hch-radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  line-height: 1.6;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25);
}

.hch-info strong {

  color: var(--hch-green);
  font-size: 1.05em;
}

.hch-info a {

  color: var(--hch-green);
  font-weight: bold;
  text-decoration: none;
}

.hch-info a:hover {
  text-decoration: underline;
}


/* =========================================================
   BADGES
   ========================================================= */

.hch-badge {

  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: bold;
}


/* Neu */

.hch-badge-new {

  background: var(--hch-new-bg);
  color: var(--hch-new-text);
}


/* Geändert */

.hch-badge-changed {

  background: var(--hch-warning-light);
  color: var(--hch-warning);
}


/* Abgesagt */

.hch-badge-cancelled {

  
  background: var(--hch-cancelled-bg);
  color: var(--hch-cancelled-text);
}


/* =========================================================
   DETAILS / ACCORDION
   ========================================================= */

.hch-details summary {

  cursor: pointer;
  list-style: none;
}

.hch-details summary::-webkit-details-marker {
  display: none;
}

.hch-details summary::before {

  content: "▶ ";
  color: var(--hch-green);
  font-weight: bold;
}

.hch-details[open] summary::before {
  content: "▼ ";
}


/* =========================================================
   TABELLEN
   ========================================================= */

.hch-table {

  width: 100%;
  border-collapse: collapse;
}

.hch-table th,
.hch-table td {

  padding: 8px 10px;
  text-align: left;
  border-bottom:
    1px solid var(--hch-grey-400);
}

.hch-table th {

  background: var(--hch-green-light);
  color: var(--hch-green);
  font-weight: bold;
}

.hch-table tr:hover {
  background: var(--hch-grey-100);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

  .hch-card {
    padding: 10px;
  }

  .hch-card-header {
    font-size: 16px;
  }

  .hch-filter {
    font-size: 0.85em;
  }

  .hch-button-primary {
    font-size: 0.85em;
  }

}