:root {
  --bg: #fbf7f0;
  --fl: #ffffff;
  --text: #2a2320;
  --leise: #6b5f58;
  --rot: #b3261e;
  --rot-hell: #f6e3df;
  --gruen: #2f6b3f;
  --linie: #e6ddd2;
  --papier: #fffdf6;
  --papier-linie: #efe6cf;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1715;
    --fl: #26201d;
    --text: #f1e9e2;
    --leise: #b8aca4;
    --rot: #ff8a7a;
    --rot-hell: #3a2421;
    --gruen: #8fd19e;
    --linie: #3b332e;
    --papier: #2c2622;
    --papier-linie: #3a322b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--rot); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: .4em 0 .3em; }
h2 { font-size: 1.35rem; margin-top: 1.8em; }
h3 { font-size: 1.1rem; margin-bottom: .2em; }
.lead { font-size: 1.15rem; color: var(--leise); max-width: 40em; }
.klein { font-size: .88rem; color: var(--leise); }
.kicker { font-size: .9rem; color: var(--leise); margin: 0; }
.kicker a { color: inherit; }

.kopf {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem;
  padding: .8rem 16px; max-width: 1040px; margin: 0 auto;
}
.marke { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.kopf nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.kopf nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.kopf nav a:hover { color: var(--rot); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 3rem; }

.held { padding: 1.5rem 0 .5rem; }

.namen {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 1rem 0 1.5rem;
  padding: .9rem 1rem; background: var(--fl); border: 1px solid var(--linie); border-radius: var(--radius);
}
.namen label { display: flex; flex-direction: column; font-size: .85rem; color: var(--leise); flex: 1 1 12rem; }
.namen input {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--linie); border-radius: 8px; padding: .45rem .6rem; margin-top: .2rem;
}
.namen input:focus { outline: 2px solid var(--rot); outline-offset: 1px; }

.heute h2 { margin-top: 1rem; }
.heute-karte {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.25rem; margin-bottom: .75rem;
  background: var(--rot-hell); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.heute-karte strong { font-size: 1.2rem; }
.heute-karte .knopf { align-self: flex-start; margin-top: .4rem; }

.knopf {
  display: inline-block; background: var(--rot); color: #fff; border: 0; border-radius: 999px;
  padding: .5rem 1.1rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
@media (prefers-color-scheme: dark) { .knopf { color: #1b1715; } }
.knopf:hover { filter: brightness(1.08); }

.kalender {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem;
}
.kalender a {
  display: flex; flex-direction: column; height: 100%; min-height: 96px; padding: .7rem .8rem;
  background: var(--fl); border: 1px solid var(--linie); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.kalender a:hover { border-color: var(--rot); }
.kalender .nr { font-size: 1.6rem; font-weight: 800; color: var(--rot); line-height: 1; }
.kalender .t { font-size: .92rem; margin-top: .35rem; }
.kalender .heute-markiert { background: var(--rot-hell); border-color: var(--rot); }

.karten { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.karten a {
  display: flex; flex-direction: column; padding: 1rem 1.1rem; height: 100%;
  background: var(--fl); border: 1px solid var(--linie); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.karten a:hover { border-color: var(--gruen); }
.karten strong { font-size: 1.1rem; color: var(--gruen); }
.karten span { font-size: .9rem; color: var(--leise); }

.liste li { margin-bottom: .8rem; }

.spalten { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
@media (min-width: 820px) { .spalten { grid-template-columns: 1fr 1fr; } }
.spalten > section > h2:first-child { margin-top: .5rem; }

.material { padding-left: 1.2rem; }
.material li { margin-bottom: .3rem; }
.material.gross li { margin-bottom: .6rem; }
.stern { color: var(--leise); margin-left: .1em; }

.brief-wrap { margin: 0; }
.brief {
  background: var(--papier);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.7em - 1px), var(--papier-linie) calc(1.7em - 1px), var(--papier-linie) 1.7em);
  background-origin: content-box; background-position: 0 .25em;
  border: 1px solid var(--linie); border-radius: 6px; padding: 1.2rem 1.4rem;
  font-family: "Comic Neue", "Segoe Print", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
  font-size: 1.12rem; line-height: 1.7em;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transform: rotate(-.4deg);
}
.brief p { margin: 0 0 1.7em; }
.brief p:last-child { margin-bottom: 0; }
.brief [data-n] { color: var(--rot); }
.brief-wrap figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.hinweis { font-size: .85rem; color: var(--leise); }

.blaettern { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

.fuss { max-width: 1040px; margin: 0 auto; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--leise); }
.fuss p { margin: .3rem 0; }
.fuss a { color: var(--leise); }

code { font-size: .9em; }

@media print {
  body { background: #fff; color: #000; }
  .no-print, .kopf, .fuss, .namen, .sponsor, .blaettern, .kicker, .lead, h1, h2, .spalten > section:first-child { display: none !important; }
  main { padding: 0; }
  .spalten { display: block; }
  .brief { transform: none; box-shadow: none; border: 0; background: none; font-size: 16pt; color: #000; }
  .brief [data-n] { color: #000; }
}

/* Startseite: zwei Säulen */
.saeulen { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.saeulen a {
  display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.25rem;
  background: var(--fl); border: 2px solid var(--linie); border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.saeulen a:hover { border-color: var(--rot); }
.saeulen strong { font-size: 1.2rem; color: var(--rot); }
.saeulen span { color: var(--leise); }
.heute [data-heute-inhalt] { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.heute .heute-karte { margin: 0; }

/* Geschenkefinder */
.finder {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 1rem 0 .5rem;
  padding: .9rem 1rem; background: var(--fl); border: 1px solid var(--linie); border-radius: var(--radius);
}
.finder label { display: flex; flex-direction: column; font-size: .85rem; color: var(--leise); flex: 1 1 11rem; }
.finder select {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--linie); border-radius: 8px; padding: .45rem .6rem; margin-top: .2rem;
}
.treffer { font-weight: 600; margin: .75rem 0; }
.geschenke { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.geschenk {
  display: flex; flex-direction: column; padding: 1rem 1.1rem;
  background: var(--fl); border: 1px solid var(--linie); border-radius: var(--radius);
}
.geschenk[hidden] { display: none; }
.geschenk h3 { margin: 0 0 .3rem; }
.geschenk p { margin: 0 0 .5rem; }
.geschenk .meta { font-size: .85rem; color: var(--leise); margin-top: auto; }
.geschenk .preis { font-weight: 700; color: var(--gruen); }
.klein-knopf { align-self: flex-start; font-size: .9rem; padding: .35rem .9rem; }
.leer { padding: 1rem; background: var(--rot-hell); border-radius: var(--radius); }
