/* ================= Thilo's Table — standalone public site ================= */
@import url('https://fonts.googleapis.com/css?family=Roboto');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  min-height: 100%;
  background-color: #5B5B5B;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
}
a, a:hover, a:focus { color: #fff; }
img { max-width: 100%; }
.d-block { display: block; }
.w-100 { width: 100%; }

.page { max-width: 680px; margin: 0 auto; padding: 28px 16px 64px; text-align: center; }
.cover-heading { font-size: 2.2rem; margin-bottom: 10px; }
.lead { font-size: 1.05rem; opacity: .95; margin-bottom: 20px; }

/* ---------- search ---------- */
.kochen-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  margin: 10px 0 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  background-color: #696969;
  color: #fff;
  text-shadow: none;
}
.kochen-search::placeholder { color: #d9d9d9; }
.kochen-search:focus { outline: 2px solid #8e9dcc; }

/* ---------- category / subcategory filters ---------- */
.kochen-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.kochen-filter {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  background-color: #696969;
  color: #fff;
  text-shadow: none;
}
.kochen-filter:focus { outline: 2px solid #8e9dcc; }
.kochen-filter:disabled { opacity: 0.55; }

.kochen-empty { margin: 24px 0; font-style: italic; opacity: 0.85; }

/* ---------- card grid ---------- */
.kochen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.kochen-card {
  background-color: #525050;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.kochen-card:hover, .kochen-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
  outline: none;
}
.kochen-card-img { width: 100%; height: 160px; object-fit: cover; margin-bottom: 0; display: block; }
.kochen-card-noimg {
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; background-color: #696969;
}
.kochen-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.kochen-card-title { font-size: 18px; margin: 0; }
.kochen-card-desc {
  margin: 0; font-size: 14px; opacity: 0.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- badges ---------- */
.kochen-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kochen-badge {
  align-self: flex-start;
  background-color: #8e9dcc; color: #1c1c1c; text-shadow: none;
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 12px;
}
.kochen-badge-sub { background-color: #d1d7eb; }

/* ---------- detail overlay / modal ---------- */
.kochen-overlay {
  position: fixed; inset: 0; z-index: 1050;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.kochen-modal {
  position: relative; background-color: #525050; border-radius: 10px;
  max-width: 640px; width: 100%; margin: auto; padding: 20px 22px 26px;
  text-align: left; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.kochen-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: none; color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer; text-shadow: none; z-index: 3;
}
.kochen-close:hover { color: #ddd; }
.kochen-detail-img { width: 100%; border-radius: 6px; margin-bottom: 16px; }
.kochen-detail-title { margin: 8px 0; }
.kochen-detail-date { font-size: 13px; opacity: 0.75; margin: 6px 0; }
.kochen-detail-desc { margin-top: 12px; white-space: pre-wrap; line-height: 1.5; }

/* ---------- carousel (self-contained, no Bootstrap) ---------- */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; border-radius: 6px; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-control-prev, .carousel-control-next {
  position: absolute; top: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 30px; line-height: 1;
  background: rgba(0, 0, 0, 0.25); border: 0; cursor: pointer; z-index: 2;
}
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev-icon::before { content: '‹'; }
.carousel-control-next-icon::before { content: '›'; }
.carousel-indicators {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  margin: 0; padding: 0; list-style: none; z-index: 2;
}
.carousel-indicators li {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer;
}
.carousel-indicators li.active { background: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.kochen-modal .carousel-inner > .carousel-item { height: auto; }
.kochen-modal .carousel-inner img {
  border-radius: 6px; max-height: 60vh; object-fit: contain; background-color: #3f3f3f;
}
