:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #111114;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #e54646;
  --accent-weak: #eef2ff;

  --radius-lg: 18px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --surface: #0f1117;
    --text: #e6e7ea;
    --muted: #9aa1aa;
    --border: #1b1f2a;
    --accent: #7c7cff;
    --accent-weak: #141733;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.25);
  }
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; height: auto; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
  padding-block: 2rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem;
}

.about-text {
  color: var(--muted);       /* etwas heller als Standardtext */
  font-size: 1rem;
  margin: 0 0 1.5rem 0;      /* Abstand nach unten vor den Karten */
  line-height: 1.6;
}

/* Header mit Avatar */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.hero-media img {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-text h1 {
  margin: 0;
  font-weight: 400; /* Sue Ellen Francisco ist sehr „handwritten“ */
  font-size: clamp(2.2rem, 3vw + 1rem, 3.5rem);
  font-family: "Sue Ellen Francisco", cursive, sans-serif;
  letter-spacing: 0.02em;
}

.hero-text p {
  margin: 0.5rem 0 1rem 0;
  color: var(--muted);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.button-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.button-ghost {
  background: transparent;
}

/* Karten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media img {
  width: 100%;       /* Bild füllt immer die ganze Kartenbreite */
  height: auto;      /* Höhe passt sich an */
  display: block;    /* kein „inline gap“ */
  object-fit: cover; /* Bild wird bei unterschiedlichen Seitenverhältnissen sauber zugeschnitten */
}


.card-body {
  padding: 1rem;
}
.card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.card-text {
  margin: 0;
  color: var(--muted);
}

.card-actions {
  padding: 0 1rem 1rem 1rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
