:root {
  --tinte: #1c2b33;
  --tinte-hell: #55666f;
  --linie: #d9e0e4;
  --papier: #ffffff;
  --papier-warm: #f6f4ef;
  --akzent: #2f4858;
  --akzent-hell: #e8eef1;
  --rost: #8c4a2f;
  --gruen: #2f6b4f;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier-warm);
}

a { color: var(--akzent); }

.huelle { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopf ---------- */

header.kopf {
  background: var(--akzent);
  color: #fff;
  border-bottom: 4px solid var(--rost);
}
.kopf .huelle { padding-top: 18px; padding-bottom: 0; }
.kopf .marke { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.kopf .marke b { font-size: 21px; letter-spacing: .2px; }
.kopf .marke span { color: #b9cbd6; font-size: 13.5px; }
.kopf .marke a { color: #fff; text-decoration: none; }

nav.haupt { display: flex; gap: 2px; margin-top: 16px; flex-wrap: wrap; }
nav.haupt a {
  color: #cfdde5; text-decoration: none; padding: 9px 14px;
  border-radius: var(--radius) var(--radius) 0 0; font-size: 14.5px; white-space: nowrap;
}
nav.haupt a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav.haupt a.aktiv { background: var(--papier-warm); color: var(--tinte); font-weight: 600; }
nav.haupt .rechts { margin-left: auto; }
nav.haupt a.merk { color: #fff; }
nav.haupt a.merk.aktiv { color: var(--tinte); }
nav.haupt a.merk b {
  background: var(--rost); border-radius: 10px; padding: 1px 7px; font-size: 12.5px; margin-left: 5px;
}

/* ---------- Flächen ---------- */

main { padding: 30px 0 70px; }
.hero { margin-bottom: 26px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.hero p.unter { font-size: 16.5px; color: var(--tinte-hell); margin: 0 0 4px; max-width: 900px; }

h2 { font-size: 21px; margin: 34px 0 12px; }
h3 { font-size: 16px; margin: 22px 0 8px; }

.tafel {
  background: var(--papier); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
}

/* ---------- Kategorie-Karten ---------- */

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.karte {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: inherit; display: block;
  transition: border-color .12s, transform .12s;
}
.karte:hover { border-color: var(--akzent); transform: translateY(-2px); }
.karte .zahl { font-size: 30px; font-weight: 700; color: var(--akzent); line-height: 1; }
.karte .name { font-size: 17px; font-weight: 600; margin: 6px 0 4px; }
.karte .meta { font-size: 13.5px; color: var(--tinte-hell); }
.karte .preis { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--rost); }

/* ---------- Suche ---------- */

.suchfeld { position: relative; margin: 4px 0 14px; }
.suchfeld input {
  width: 100%; padding: 15px 17px; font-size: 17px; font-family: inherit;
  border: 2px solid var(--linie); border-radius: var(--radius); background: var(--papier);
}
.suchfeld input:focus { outline: none; border-color: var(--akzent); }

.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.filter select, .filter button.zuruck {
  font-family: inherit; font-size: 14px; padding: 7px 10px;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--papier); color: inherit;
}
.filter button.zuruck { cursor: pointer; }
.filter button.zuruck:hover { border-color: var(--akzent); }

.trefferzeile { font-size: 14.5px; color: var(--tinte-hell); margin: 14px 0 10px; }
.trefferzeile b { color: var(--tinte); }

/* ---------- Trefferliste ---------- */

.treffer { list-style: none; padding: 0; margin: 0; }
.treffer li {
  background: var(--papier); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 9px;
  display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: start;
}
.treffer .nr {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; font-weight: 700;
  color: var(--akzent); background: var(--akzent-hell);
  border-radius: var(--radius); padding: 4px 0; text-align: center;
}
.treffer .titel { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.treffer .inhalt { font-size: 14px; color: var(--tinte-hell); margin: 0 0 6px; }
.treffer .meta { font-size: 12.5px; color: var(--tinte-hell); display: flex; gap: 8px; flex-wrap: wrap; }
.treffer .meta span::after { content: "·"; margin-left: 8px; color: var(--linie); }
.treffer .meta span:last-child::after { content: ""; }
mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 2px; }

.marker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  background: var(--rost); color: #fff; border-radius: 3px; padding: 1px 5px; margin-right: 4px;
}

.aktion { text-align: right; min-width: 150px; }
.aktion .preis { font-size: 15px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; }
.aktion .hinweis { font-size: 11.5px; color: var(--tinte-hell); margin-top: 5px; line-height: 1.35; }

button.knopf {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; border-radius: var(--radius); padding: 9px 15px; color: #fff; white-space: nowrap;
}
button.kaufen { background: var(--gruen); }
button.kaufen:hover { background: #26563f; }
button.anfragen { background: var(--akzent); }
button.anfragen:hover { background: #22353f; }
button.knopf.drin { background: var(--tinte-hell); }

button.mehr {
  font-family: inherit; font-size: 15px; cursor: pointer; width: 100%;
  padding: 13px; border: 1px dashed var(--linie); border-radius: var(--radius);
  background: var(--papier); color: var(--akzent); font-weight: 600;
}
button.mehr:hover { border-color: var(--akzent); }

.leer { text-align: center; padding: 44px 20px; color: var(--tinte-hell); }

/* ---------- Tabellen ---------- */

table.liste { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.liste th, table.liste td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); }
table.liste th { background: var(--akzent-hell); font-size: 13px; }
table.liste td.zahl { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Merkliste / Formular ---------- */

.formular { display: grid; gap: 14px; max-width: 640px; }
.formular label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.formular input[type=text], .formular input[type=email], .formular textarea {
  width: 100%; font-family: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--linie); border-radius: var(--radius); background: var(--papier);
}
.formular textarea { min-height: 110px; resize: vertical; }
.formular .zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formular .zustimmung { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px;
  color: var(--tinte-hell); font-weight: 400; margin-bottom: 0; }
.formular .zustimmung span { font-weight: 400; }
.formular .zustimmung input { margin-top: 3px; flex: 0 0 auto; }
.formular button.senden {
  background: var(--gruen); color: #fff; border: none; border-radius: var(--radius);
  padding: 13px 26px; font-size: 16px; font-weight: 600; cursor: pointer; justify-self: start;
}
.formular button.senden:hover { background: #26563f; }

.summe { font-size: 17px; font-weight: 700; margin-top: 10px; }
.summe span { font-weight: 400; color: var(--tinte-hell); font-size: 14px; }

button.weg {
  background: none; border: 1px solid var(--linie); border-radius: var(--radius);
  color: var(--tinte-hell); cursor: pointer; font-size: 13px; padding: 5px 9px; font-family: inherit;
}
button.weg:hover { border-color: var(--rost); color: var(--rost); }

/* ---------- Fuß ---------- */

footer.fuss {
  background: var(--akzent); color: #b9cbd6; font-size: 13.5px; padding: 26px 0; margin-top: 40px;
}
footer.fuss a { color: #fff; }
footer.fuss .huelle { display: flex; gap: 26px; flex-wrap: wrap; justify-content: space-between; }

.warnung {
  background: #fff6e5; border: 1px solid #e8cf9a; border-radius: var(--radius);
  padding: 12px 15px; font-size: 13.5px; margin-bottom: 18px;
}

@media (max-width: 720px) {
  .treffer li { grid-template-columns: 1fr; }
  .treffer .nr { justify-self: start; padding: 4px 12px; }
  .aktion { text-align: left; }
  .formular .zeile2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}
