/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --primary:   #5b9cf6;
  --accent:    #f05a3a;
  --text:      #e8eaf2;
  --muted:     #8890aa;
  --border:    #2a2e3e;
  --radius:    12px;
  --shadow:    0 2px 12px rgba(0,0,0,.35);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.5);
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Header ────────────────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #0d1b3e 0%, #162952 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

header p {
  margin-top: .5rem;
  font-size: 1.1rem;
  opacity: .85;
}

/* ── Main content ──────────────────────────────────────────────── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Category section ──────────────────────────────────────────── */
.category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.category-desc {
  font-size: .9rem;
  color: var(--muted);
  margin-top: -.75rem;
  margin-bottom: 1.25rem;
}

.category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
}

.card-body { min-width: 0; }

.card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Impressum ─────────────────────────────────────────────────── */

#impressum {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.impressum-inner {
  max-width: 860px;
  margin: 0 auto;
}

#impressum h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.impr-tabs {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.75rem;
  justify-content: center;
}

.impr-tab {
  padding: .45rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  transition: all .15s ease;
}

.impr-tab.active,
.impr-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.impr-panel { display: none; }
.impr-panel.active { display: block; }

.impr-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}

.impr-panel p, .impr-panel address {
  font-size: .93rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.impr-panel a { color: var(--primary); }

/* ── Footer ────────────────────────────────────────────────────── */
footer {
  background: #0d1b3e;
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 1rem;
  font-size: .85rem;
}

footer a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .impr-tabs { flex-direction: column; align-items: stretch; }
  .impr-tab { text-align: center; }
}
