:root {
  color-scheme: light;
  --cream: #f6f0e4;
  --paper: #fffdf8;
  --ink: #243028;
  --muted: #69736b;
  --forest: #264c3a;
  --forest-soft: #dfe9df;
  --blue: #315d78;
  --mustard: #c2912f;
  --terracotta: #a94f3d;
  --line: #d8d4c8;
  --shadow: 0 16px 40px rgb(36 48 40 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0%, #e3dac6 0, transparent 30rem), var(--cream); }
button, input, select { font: inherit; }
button, input, select { min-height: 46px; border-radius: 10px; }
button { border: 0; padding: .75rem 1rem; background: var(--forest); color: white; font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(.94); }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e1ad43; outline-offset: 2px; }
input, select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); background: white; color: var(--ink); }
label { display: grid; gap: .35rem; color: #445047; font-size: .88rem; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2rem, 8vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-family: Georgia, serif; font-size: clamp(1.65rem, 5vw, 2.6rem); line-height: 1.1; }
.eyebrow { margin-bottom: .45rem; color: var(--forest); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.lede { color: var(--muted); line-height: 1.6; }
.login-shell { min-height: 100svh; display: grid; place-items: center; padding: 1.25rem; }
.login-card { width: min(100%, 460px); padding: clamp(1.4rem, 6vw, 2.8rem); border: 1px solid rgb(38 76 58 / 18%); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.login-card h1 { font-size: clamp(2rem, 10vw, 2.85rem); hyphens: auto; overflow-wrap: break-word; }
.login-card form { display: grid; gap: .85rem; margin-top: 1.5rem; }
.app-header { padding: 2rem 1rem 1.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.app-header h1 { max-width: 850px; margin-bottom: 0; }
.button-secondary { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.fixture-banner { margin: 0 1rem 1rem; padding: .8rem 1rem; border-left: 5px solid var(--mustard); background: #fff5d8; font-weight: 700; }
.quick-panel, .library, .downloads { margin: 1rem; padding: 1.2rem; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.quick-panel { border-top: 7px solid var(--forest); }
.quick-grid, .filters { display: grid; gap: .85rem; }
#quick-result { margin-top: 1rem; }
.quick-card { padding: 1rem; border-radius: 14px; background: var(--forest-soft); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading h2 { margin-bottom: .4rem; }
.search-row { display: grid; grid-template-columns: 1fr; gap: .65rem; margin: 1rem 0; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.activity-grid, .download-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.activity-card, .download-card { --module: var(--forest); position: relative; overflow: hidden; padding: 1.15rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.activity-card::before, .download-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--module); }
[data-module="bonus-sitzungen"] { --module: var(--blue); }
[data-module="bonus-plan"] { --module: var(--mustard); }
[data-module="bonus-ohne-material"] { --module: var(--terracotta); }
.card-topline { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .78rem; font-weight: 750; }
.activity-card h3, .download-card h3 { margin: .75rem 0 .45rem; font-family: Georgia, serif; font-size: 1.25rem; }
.activity-card p { color: var(--muted); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { padding: .35rem .55rem; border-radius: 999px; background: #f1efe8; font-size: .78rem; }
.download-card button { width: 100%; margin-top: .6rem; background: var(--module); }
.message, .empty-state { padding: 1rem; border-radius: 12px; background: #eff3ee; }
.error { background: #fae9e4; color: #7c2f22; }
.empty-state { margin-top: 1rem; text-align: center; }

@media (min-width: 700px) {
  .app-header, .fixture-banner, .quick-panel, .library, .downloads { margin-left: auto; margin-right: auto; width: min(calc(100% - 3rem), 1180px); }
  .app-header { padding-left: 0; padding-right: 0; }
  .quick-grid { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-row { grid-template-columns: 1fr auto; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .filters { grid-template-columns: repeat(5, 1fr); }
  .activity-grid { grid-template-columns: repeat(3, 1fr); }
  .download-grid { grid-template-columns: repeat(4, 1fr); }
}

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