/* CHP Projects – gemeinsames Stylesheet der Übersichtsseiten.
   Markenschrift Lexend Deca ist selbst gehostet (DSGVO, kein Google Fonts). */

@font-face { font-family: 'Lexend Deca'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/LexendDeca-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/LexendDeca-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/LexendDeca-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Lexend Deca'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/LexendDeca-Bold.ttf') format('truetype'); }

:root {
  --purple-900: #3C2F69;  /* Markenfarbe */
  --purple-700: #514391;  /* Akzent auf hellen Flächen */
  --purple-500: #6559A3;
  --orange:     #EF7934;  /* Akzent auf dunklen Flächen */
  --bg:         #F5F4F8;
  --surface:    #FFFFFF;
  --line:       #E4E2EA;
  --chip:       #EDEBF2;
  --muted:      #8A8499;
  --text:       #261F3C;
  --radius:     14px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lexend Deca', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--purple-700); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

/* Kopf */
.kopf {
  background: var(--purple-900);
  color: #fff;
  padding: 28px 0 56px;
  border-bottom: 4px solid var(--orange);
}
.kopf .leiste { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 48px; }
.marke { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .02em; font-size: 1.05rem; }
.marke span { color: var(--orange); }
.kopf .zurueck { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9rem; }
.kopf .zurueck:hover { color: #fff; }
.kopf h1 { margin: 0 0 12px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.15; }
.kopf .lead { margin: 0; max-width: 640px; color: rgba(255,255,255,.82); font-size: 1.05rem; font-weight: 300; }
.kopf .badge {
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px;
  background: var(--orange); color: var(--purple-900); font-size: .75rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Inhalt */
main { flex: 1; padding: 40px 0 72px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter button {
  font: inherit; font-size: .875rem; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.filter button[aria-pressed="true"] { background: var(--purple-900); border-color: var(--purple-900); color: #fff; }

.raster { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.karte {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.karte:hover, .karte:focus-visible {
  border-color: var(--purple-700);
  box-shadow: 0 16px 40px rgba(38,31,60,.12);
  transform: translateY(-2px);
  outline: none;
}
.karte .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); }
.karte .kategorie { padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--purple-700); font-weight: 500; }
.karte h2 { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--purple-900); }
.karte p { margin: 0; color: #4A4360; font-size: .95rem; flex: 1; }
.karte .cta { color: var(--purple-700); font-weight: 500; font-size: .9rem; }

.hinweis {
  grid-column: 1 / -1; margin: 0; padding: 32px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface);
}

/* Fuß */
.fuss { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0; font-size: .85rem; color: var(--muted); }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 18px; }
.fuss a { color: var(--muted); text-decoration: none; }
.fuss a:hover { color: var(--purple-700); }

@media (prefers-reduced-motion: reduce) { .karte { transition: none; } .karte:hover { transform: none; } }
