/* ============================================
   Alltagskompass – zentrales Stylesheet
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --tanne: #0f3d3e;        /* dunkles Tannengrün */
  --tanne-dunkel: #0a2b2c;
  --senf: #e8a33d;         /* Senfgelb-Akzent */
  --senf-hell: #f6d9a8;
  --salbei: #e9efeb;       /* heller Hintergrund */
  --tinte: #16241f;        /* Textfarbe */
  --grau: #5b6b64;
  --weiss: #ffffff;
  --ziegel: #c2502e;       /* zweiter Akzent (Tabs) */
  --himmel: #3b7ea1;       /* dritter Akzent (Tabs) */
  --radius: 14px;
  --schatten: 0 8px 28px rgba(15, 61, 62, 0.10);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--tinte);
  background: var(--salbei);
  line-height: 1.65;
  font-size: 1.0rem;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--tanne);
  color: var(--weiss);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem;
  color: var(--weiss); text-decoration: none;
  display: flex; align-items: center; gap: .55rem;
}
.logo .kompass {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--senf); display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--tanne); font-size: 1rem;
}
.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  color: #d8e4de; text-decoration: none; font-weight: 500;
  padding: .5rem .9rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: var(--weiss); }
.nav-links a.aktiv { background: var(--senf); color: var(--tanne-dunkel); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.4);
  border-radius: 8px; color: var(--weiss); font-size: 1.3rem;
  width: 42px; height: 42px; cursor: pointer;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--senf); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--tanne);
  color: var(--weiss);
  padding: 4.5rem 0 5.5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: var(--salbei);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.12; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--senf); }
.hero p { max-width: 56ch; margin-top: 1.1rem; color: #cfe0d8; font-size: 1.08rem; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--senf);
  font-weight: 600; margin-bottom: 1rem;
}
.btn {
  display: inline-block; margin-top: 1.8rem;
  background: var(--senf); color: var(--tanne-dunkel);
  font-weight: 600; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn-sekundaer {
  background: transparent; color: var(--weiss);
  border: 2px solid rgba(255,255,255,.45); margin-left: .6rem;
}

/* ---------- Register-Karten (Signatur) ---------- */
.section { padding: 3.5rem 0; }
.section-titel {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem;
}
.section-sub { color: var(--grau); margin-bottom: 2.2rem; max-width: 60ch; }

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

/* cards with images */
.karte-mit-bild { padding: 0; }
.karte-mit-bild .karte-bild {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}
.karte-mit-bild .karte-bild-placeholder {
  width: 100%; aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(140deg, var(--tanne) 0%, var(--tanne-dunkel) 100%);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--weiss); letter-spacing: -.01em;
}
.karte-mit-bild .karte-bild-placeholder .ph-mark {
  font-size: 2rem; color: var(--senf); line-height: 1;
}
.karte-mit-bild .karte-body { padding: 1.6rem 1.6rem 1.5rem; }

.karte {
  background: var(--weiss); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1.6rem 1.6rem 1.5rem;
  position: relative; margin-top: 18px;
  text-decoration: none; color: inherit; display: block;
  transition: transform .18s, box-shadow .18s;
}
.karte:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15,61,62,.16); }
/* der Registerreiter */
.karte::before {
  content: attr(data-tab);
  position: absolute; top: -18px; left: 18px;
  background: var(--senf); color: var(--tanne-dunkel);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .8rem; border-radius: 8px 8px 0 0;
}
.karte.tab-ziegel::before { background: var(--ziegel); color: #fff; }
.karte.tab-himmel::before { background: var(--himmel); color: #fff; }
.karte.tab-tanne::before { background: var(--tanne); color: #fff; }
.karte h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: .5rem; }
.karte p { color: var(--grau); font-size: .95rem; }
.karte .mehr { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--tanne); font-size: .9rem; }

/* ---------- Artikel / Unterseiten ---------- */
.seitenkopf {
  background: var(--tanne); color: var(--weiss);
  padding: 3rem 0 3.5rem; position: relative;
}
.seitenkopf::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 40px;
  background: var(--salbei); clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
}
.seitenkopf h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.seitenkopf p { color: #cfe0d8; max-width: 60ch; margin-top: .7rem; }

.artikel { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 2rem; margin-bottom: 1.5rem; }
.artikel-thumb {
  width: 100%; aspect-ratio: 16/7; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.4rem; display: block;
}
.artikel-vorschau { overflow: hidden; padding: 0; }
.artikel-vorschau img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.artikel-vorschau-body { padding: 1.6rem 2rem 1.5rem; }
.artikel h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: .7rem; color: var(--tanne); }
.artikel h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.artikel p + p { margin-top: .8rem; }
.artikel ul, .artikel ol { margin: .8rem 0 .8rem 1.3rem; }
.artikel li { margin-bottom: .35rem; }

.hinweis {
  border-left: 4px solid var(--senf); background: var(--senf-hell);
  padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0;
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--tanne-dunkel); color: #b9cdc4;
  margin-top: 4rem; padding: 3rem 0 1.5rem; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h4 { color: var(--weiss); font-family: var(--font-display); font-weight: 600; margin-bottom: .7rem; }
.site-footer a { color: #b9cdc4; text-decoration: none; }
.site-footer a:hover { color: var(--senf); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.footer-unten {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--tanne-dunkel); flex-direction: column;
    padding: 1rem 1.25rem 1.4rem; gap: .4rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.3);
  }
  .nav-links.offen { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-sekundaer { margin-left: 0; margin-top: .8rem; display: inline-block; }
}
