/* workwithba – gemeinsames Design aller Lernpfade
   Farben angelehnt an die französische Flagge (bleu · blanc · rouge).
   Hell/Dunkel über light-dark(); theme.js setzt data-theme auf <html>. */

:root {
  color-scheme: light dark;
  --bleu: #000091;        /* Bleu France */
  --bleu-hell: #6a6af4;
  --rouge: #e1000f;       /* Rouge Marianne */
  --rouge-hell: #ff5a5f;

  --bg:      light-dark(#f6f6fb, #12131c);
  --flaeche: light-dark(#ffffff, #1c1e2b);
  --text:    light-dark(#1a1a2e, #e9e9f2);
  --leise:   light-dark(#5a5a72, #a4a6bb);
  --linie:   light-dark(#dcdcea, #33354a);
  --acc:     light-dark(var(--bleu), var(--bleu-hell));
  --mark:    light-dark(var(--rouge), var(--rouge-hell));

  --radius: 14px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--acc); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }

/* Trikolore-Leiste */
.tricolore {
  height: 8px;
  background: linear-gradient(90deg,
    var(--bleu) 0 33.33%, #ffffff 33.33% 66.66%, var(--rouge) 66.66% 100%);
}

/* Kopf */
header.kopf {
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding: 2rem 0 1.6rem;
}
header.kopf h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
}
header.kopf h1 .b { color: var(--acc); }
header.kopf h1 .r { color: var(--mark); }
header.kopf p.unter { margin: 0; color: var(--leise); max-width: 60ch; }

/* Bedienelemente */
.knopf, button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  border-radius: 999px;
  padding: .45rem 1rem;
}
.knopf.aktiv, button.aktiv { background: var(--acc); border-color: var(--acc); color: #fff; }
input[type="search"] {
  font: inherit;
  width: 100%;
  max-width: 420px;
  padding: .6rem 1rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--text);
}
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

/* Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.kachel {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .12s, box-shadow .12s;
}
.kachel:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 60 / .12); }
.kachel .streifen { height: 6px; background: linear-gradient(90deg, var(--bleu), var(--rouge)); }
.kachel .inhalt { padding: .9rem 1rem 1rem; }
.kachel h4 { margin: 0 0 .25rem; font-size: 1.1rem; }
.kachel p { margin: 0; color: var(--leise); font-size: .95rem; }
.kachel.bald { opacity: .7; pointer-events: none; }
.kachel.bald .streifen { background: var(--linie); }

/* Fuß */
footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--linie);
  color: var(--leise);
  font-size: .9rem;
}
footer .rechtl a { color: var(--leise); }
