/* Layout-Basics */
body, html {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.content { flex: 1 0 auto; padding: 20px; }
footer { flex-shrink: 0; }

.impressum {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.impressum h5 { margin-bottom: 15px; }
.impressum p { margin-bottom: 10px; }

.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { margin-right: 8px; }

/* --- Searchbar --- */

/* max Breite wie Tailwind max-w-2xl (~42rem) */
.searchbar { max-width: 42rem; width: 100%; }

/* Fokus neutral (kein blaues Leuchten) */
.form-control:focus {
  border-color: #ced4da !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Standardzustand: Container im Markup mit .rounded-pill versehen */

/* Wenn Autocomplete offen → unten glatt (wie Google) */
.searchbar-container.autocomplete-open,
.searchbar-container:has(.wicket-aa) {
  border-radius: 1rem 1rem 0 0 !important; /* oben rund, unten gerade */
}

.home-filetype-hub {
  padding: 2.75rem 0 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(17, 123, 99, 0.04));
}

.home-hub-grid-section {
  padding: 1rem 0 4rem;
}

.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-hub-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color, #111827), transparent 88%);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.home-hub-grid .home-hub-card {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
}

.home-hub-card--primary {
  align-items: center;
  background:
          radial-gradient(circle at 92% 8%, rgba(255, 176, 55, 0.2), transparent 28%),
          linear-gradient(135deg, #0d3b55, #121720);
  color: #fffaf1;
}

.home-hub-card h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home-hub-grid .home-hub-card h2 {
  max-width: 19ch;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.home-hub-card p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, currentColor, transparent 22%);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-hub-grid .home-hub-card p {
  max-width: 30rem;
  margin: 0;
}

.home-hub-card__label {
  margin: 0 0 0.75rem !important;
  color: #117b63 !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hub-card--primary .home-hub-card__label {
  color: #cce35d !important;
}

.home-hub-card__link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  background: #cce35d;
  color: #14200b;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-hub-grid .home-hub-card__link {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.home-hub-card__link:hover,
.home-hub-card__link:focus-visible {
  color: #14200b;
  transform: translateY(-1px);
}

@media (max-width: 767.98px) {
  .home-hub-grid {
    grid-template-columns: 1fr;
  }

  .home-hub-card {
    flex-direction: column;
  }
}
