/* --- Variables --- */
:root {
  --bg-gradient: linear-gradient(to bottom, #f9fafb, #e2e8f0);
  --text-color: #2d3748;
  --header-bg: #ffffff;
  --header-text: #718096;
  --header-accent: #3b82f6;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.08);
  --role-color: #0ea5e9;
  --desc-color: #4a5568;
  --service-bg: #edf2f7;
  --service-shadow: rgba(0, 0, 0, 0.05);
  --service-title: #0369a1;
  --footer-bg: #ffffff;
  --footer-text: #718096;
  --black: black;
}

/* Darkmode automatisch erkennen */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-gradient: linear-gradient(to bottom, #1a202c, #2d3748);
    --text-color: #e2e8f0;
    --header-bg: #2d3748;
    --header-text: #a0aec0;
    --header-accent: #60a5fa;
    --card-bg: #2d3748;
    --card-shadow: rgba(0, 0, 0, 0.6);
    --role-color: #38bdf8;
    --desc-color: #cbd5e1;
    --service-bg: #1e293b;
    --service-shadow: rgba(0, 0, 0, 0.7);
    --service-title: #38bdf8;
    --footer-bg: #2d3748;
    --footer-text: #a0aec0;
    --black: black;
  }
}

/* --- Reset & Basics --- */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--header-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

header p {
  color: var(--header-text);
  margin-top: 0.5rem;
}

header p span {
  color: var(--header-accent);
  font-weight: bold;
}

/* Main */
main {
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* --- Family Cards --- */
.card {
  cursor: pointer;
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px var(--card-shadow);
  transition: transform 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: scale(1.05);
}

.avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(to right, #38bdf8, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
}

.role {
  color: var(--role-color);
  font-weight: 600;
  margin-top: 0.3rem;
}

.desc {
  font-size: 0.9rem;
  color: var(--desc-color);
  margin-top: 0.5rem;
}

/* --- Services --- */
.service-card {
  background: var(--service-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--service-shadow);
  transition: box-shadow 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.service-card h3 {
  color: var(--service-title);
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.85rem;
  margin-top: 2rem;
}