/* ========= Base ========= */
* { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:#f3f4f6;                 /* hellgrau wie im Screenshot */
  color:#1f2937;
}

a{ color:inherit; }

/* ========= Header ========= */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,.06);
  padding: 14px 18px 10px;
}

.headerrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:70px;                        /* fixe Höhe für Logos */
}

.header h1{
  margin:0;
  font-size:22px;
  line-height:1.2;
}

.headerlogos{
  display:flex;
  align-items:center;
  gap:10px;
  height:100%;
}

.headerlogos img{
  height:100%;                        /* füllt die Headerzeile */
  width:auto;
  object-fit:contain;
  display:block;
}

.state{
  margin-top:6px;
  font-size:14px;
  color:#6b7280;
}

/* ========= Grid ========= */
.grid{
  display:grid;
  gap:18px;
  padding:18px;
  max-width:1400px;
  margin:0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));  /* wie Screenshot */
}

@media (max-width: 1200px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}

/* ========= Card ========= */
.card{
  display:flex;
  gap:16px;
  padding:18px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:10px;
  text-decoration:none;               /* weil ganze Karte klickbar ist */
  color:#1f2937;
  min-height:160px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  /* Übergänge für sanfte Animation */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover{
  /* 1. Stärkerer Schatten für "Glow"-Effekt */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);

  /* 2. Leichte Skalierung für "Hervorheben"-Effekt (optional) */
  transform: translateY(-2px) scale(1.01);

  /* 3. Hintergrundfarbe leicht aufhellen (optional) */
  background-color: #ffffff;
}

/* ========= Thumbnail / Logo ========= */
.thumbWrap{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
}

.thumbFrame{
  width:110px;
  height:110px;
  border:0;          /* Rahmen */
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb{
  width:100%;
  height:100%;
  object-fit:contain;                 /* ganz anzeigen */
  padding:0px;
  display:block;
}

.thumbFallback{
  font-size:28px;
  line-height:1;
}

/* ========= Right Side Content ========= */
.info{
  display:flex;
  flex-direction:column;
  min-width:0;
  flex:1;
}

.title{
  font-weight:700;
  font-size:16px;
  line-height:1.2;
  margin-top:2px;
  word-break:break-word;
}

.meta{
  margin-top:6px;
  color:#374151;
  font-size:15px;
}

.meta .line{
  line-height:1.3;
}

/* ========= Bottom line: availability ========= */
.bottom{
  margin-top:auto;
  display:flex;
  align-items:flex-end;
  gap:10px;
}

.spacer{ flex:1; }

.avail{
  font-weight:600;
  color:#1f6fb2;                      /* blau */
  white-space:nowrap;
  font-size: 15px;
}

.avail.full{
  color:#b91c1c;                      /* rot */
}

.leftCol{
  flex:0 0 auto;
  width:120px;              /* passt zu größeren Icons */
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}

.dateUnderThumb{
  font-size:15px;
  font-weight:600;
  color:#111827;
  text-align:center;
  width:110px;
}

/* ========= Legende unter dem Header ========= */
.legend {
  background: #f3f4f6; /* Wie der Body-Hintergrund */
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.legend .item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend .color-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.legend .yellow {
  background-color: #fbbf24; /* Gelb */
}

.legend .red {
  background-color: #ef4444; /* Rot */
}

.legend .blue {
  background-color: #3b82f6; /* Blau */
}

.legend .yellow-text {
  color: #f7ae08;
}

.legend .red-text {
  color: #bf0000;
}

.legend .blue-text {
  color: #1571b0;
}

.footer {
  background: #f3f4f6;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 30px;
}

.footer a {
  color: #1f6fb2; /* Blau, wie deine anderen Links */
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
