/*
 * Basislayout für die Fuchsbau‑Navigation.
 * Die Gestaltung ist bewusst schlicht gehalten, lässt sich aber leicht erweitern.
 */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* Dark mode Hintergrund: sanfter Verlauf von sehr dunklem Blau zu Anthrazit. */
  background: linear-gradient(180deg, #0d1117 0%, #1f2937 100%);
  color: #e5e7eb; /* helles Grau für Text auf dunklem Hintergrund */
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  /* halbtransparentes Panel über dem dunklen Verlauf */
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #334155;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #ffffff;
}

header p {
  margin: 0.5rem 0 0;
  color: #94a3b8; /* helleres Grau für Untertitel */
}

main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid für die Karten.  Flexbox sorgt dafür, dass sie sich auch bei schmalen
 * Displays gut anordnen. */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Darstellung der Karte selbst */
.card {
  display: flex;
  flex-direction: column;
  width: 280px;
  text-decoration: none;
  color: inherit;
  background-color: #1e293b; /* dunkle Karte */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Bild am oberen Rand der Karte */
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Inhalt der Karte */
.card-content {
  padding: 1rem;
  flex-grow: 1;
}

.card-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.card-content p {
  margin: 0;
  color: #94a3b8;
}

/* Hover‑Effekt: leichte Bewegung und stärkerer Schatten */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.7);
}

footer {
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(15, 23, 42, 0.9);
  border-top: 1px solid #334155;
  font-size: 0.9rem;
  color: #94a3b8;
}