@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: italic; font-display: swap; src: url('/assets/fonts/dm-sans-latin-700-italic.woff2') format('woff2'); }

:root {
  --ink: #000;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #f5f5f5;
  --paper: #fff;
  --pink: #F2A9BC;
  --lime: #DDEE7D;
  --pink-soft: #fbe3ea;
  --lime-soft: #f3f8d6;
  --radius: 14px;
  --gradient: linear-gradient(135deg, #F2A9BC 0%, #f7d9b0 50%, #DDEE7D 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(242,169,188,.35), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(221,238,125,.35), transparent 70%),
    var(--bg);
}

a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .6em; }

button, .btn {
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: .45em 1.1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .4em;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--lime-soft); }
button.primary { background: var(--ink); color: #fff; }
button.primary:hover { background: #333; }
button.ghost { border-color: transparent; background: transparent; color: var(--muted); padding: .3em .6em; }
button.ghost:hover { color: var(--ink); background: transparent; text-decoration: underline; }
button:disabled { opacity: .4; cursor: default; }

input[type=text], input[type=number], textarea {
  font: inherit;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55em .7em;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: var(--pink); }
textarea { resize: vertical; min-height: 6em; }

label.field { display: block; margin: 0 0 1em; }
label.field > span { display: block; font-weight: 500; margin-bottom: .3em; }

.logo { height: 18px; width: auto; display: block; }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.marke span { font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) { .marke span { display: none; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Karten ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
}
.card .prinzip { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card h2 { font-size: 1.35rem; margin: .15em 0 .4em; }
.card .leitsatz { font-weight: 500; }
.card ol { padding-left: 1.3em; margin: .6em 0 0; }
.card ol li { margin-bottom: .35em; }

.nr {
  display: inline-grid; place-items: center;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--lime); font-weight: 700; font-size: .75rem;
}

.grid8 {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.pick {
  position: relative;
  text-align: left; display: block;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper);
  padding: .7rem .8rem 2rem;
  min-height: 6.2rem;
  font-weight: 700; line-height: 1.2;
}
.pick:hover { background: var(--paper); border-color: var(--ink); }
.pick em { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: .25em; }
.pick .nr { position: absolute; right: .6rem; bottom: .6rem; }
.pick.selected { border: 2px solid var(--ink); background: var(--pink-soft); padding: calc(.7rem - 1px) calc(.8rem - 1px) calc(2rem - 1px); }
.pick.selected::after { content: '✓ Deine Karte'; position: absolute; left: .8rem; bottom: .6rem; font-size: .75rem; font-weight: 500; }

/* ---------- Uhr ---------- */
.pie { display: block; }
.pie .face { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.pie .eaten { fill: #f1f1f1; }
.pie .tick { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.pie .boundary { stroke: var(--ink); stroke-width: 1.5; }
.pie .hand { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pie .hub { fill: var(--ink); }

@media print {
  body::before { display: none; }
  body { background: #fff; }
}
