/* TCV EMEA Marketing Materials — Gestaltung (gleiches System wie Wirtschaftsrat/VHS, eigene Akzentfarbe)
   Schriftgrade: 11 / 12 / 13 / 14 / 16 / 22 px     Abstände: 4 / 8 / 12 / 16 / 24 / 40 px */

:root {
  --akzent: #00695c;      /* dunkles Grün, Text auf Weiß ≥ 4.5:1 */
  --akzent-hell: #e3f1ee;
  --text: #111827;
  --grau: #4b5563;
  --linie: #c9d0da;
  --rand: #aeb7c4;
  --flaeche: #eef1f4;
  --rot: #c62828;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--flaeche); color: var(--text); font: 14px/1.45 var(--schrift); }
a { color: var(--akzent); }
.ter-seite { max-width: 1180px; margin: 0 auto; padding: 24px 24px 96px; }
.ter-unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ter-leise { font-weight: 400; color: var(--grau); }
.ter-meta { font-size: 12px; color: var(--grau); }
.ter-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.ter-hinweis { margin: 0 0 16px; font-size: 13px; color: var(--grau); }
.ter-h1 { margin: 0 0 16px; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--text); }
.ter-ueberzeile { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grau); }
.ter-abschnitt {
  margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--akzent);
  font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent);
}
.ter-abschnitt.ter-ohne-abstand { margin-top: 0; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px; border: 1px solid #9aa5b4; border-radius: 8px;
  background: #fff; color: #1f2937; font: 500 14px/1.2 var(--schrift);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: #eef2f7; }
.btn:active { transform: translateY(1px); }
.btn-primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.btn-primaer:hover { background: #00564b; }
.btn-gross { padding: 10px 20px; font-size: 15px; }
.btn-klein { padding: 3px 10px; font-size: 13px; }
.btn-gefahr-rand { border-color: #d36b6b; color: #b42323; }
.btn-gefahr-rand:hover { background: #fdf2f2; }
.btn-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: var(--rot); color: #fff; font: 600 15px/1 var(--schrift); cursor: pointer; }
.btn-x:hover { background: #a61f1f; }
.ter-knopfzeile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ter-knopfgruppe { display: flex; gap: 8px; }

/* ---------- Kopfleiste ---------- */
.ter-leiste { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #d3d9e1; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.ter-leiste-innen { max-width: 1180px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ter-marke { font-weight: 700; font-size: 15px; color: var(--akzent); text-decoration: none; letter-spacing: 0.01em; }
.ter-marke span { font-weight: 500; color: var(--text); }
.ter-nlname, .ter-nlwahl select { font-weight: 600; }
.ter-nlname { padding: 3px 10px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); font-size: 13px; }
.ter-nlwahl { margin: 0; }
.ter-nlwahl .ter-feld { width: auto; padding: 4px 8px; font-size: 13px; }
.ter-nav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.ter-nav a { padding: 6px 10px; border-radius: 8px; color: #1f2937; text-decoration: none; font-weight: 500; }
.ter-nav a:hover { background: #eef2f7; }
.ter-nav a[aria-current="page"] { background: var(--akzent-hell); color: var(--akzent); }
.ter-zahl { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--akzent); color: #fff; font-size: 12px; text-align: center; }
.ter-konto { position: relative; }
.ter-konto summary { cursor: pointer; padding: 6px 10px; border-radius: 8px; color: var(--grau); list-style: none; }
.ter-konto summary::after { content: " ▾"; font-size: 11px; }
.ter-konto summary:hover { background: #eef2f7; }
.ter-konto-menue { position: absolute; right: 0; top: calc(100% + 4px); min-width: 12rem; padding: 4px 0; background: #fff; border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 8px 20px rgba(16,24,40,0.16); }
.ter-konto-menue a, .ter-konto-menue button { display: block; width: 100%; padding: 8px 14px; border: 0; background: none; color: var(--text); font: 14px var(--schrift); text-align: left; text-decoration: none; cursor: pointer; }
.ter-konto-menue a:hover, .ter-konto-menue button:hover { background: #eef2f7; }
.ter-konto-menue form { margin: 0; }

/* ---------- Kopfzeile einer Seite ---------- */
.ter-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.ter-kopfzeile .ter-h1 { margin: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ter-suche { display: flex; gap: 8px; margin: 0; }
.ter-suche .ter-feld { width: 18rem; }
.ter-suche .ter-auto { width: auto; }

/* ---------- Reiter (Kategorien / Status) ---------- */
.ter-reiter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ter-reiter a { padding: 5px 12px; border: 1px solid var(--linie); border-radius: 999px; background: #fff; color: #1f2937; text-decoration: none; font-size: 13px; font-weight: 500; }
.ter-reiter a:hover { border-color: var(--akzent); }
.ter-reiter a[aria-current="page"] { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.ter-reiter a[aria-current="page"] .ter-leise { color: #d4ebe6; }

/* ---------- Felder ---------- */
.ter-feld { width: 100%; padding: 6px 10px; border: 1px solid var(--rand); border-radius: 8px; background: #fff; color: var(--text); font: 14px/1.4 var(--schrift); }
.ter-feld:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(0,105,92,0.2); }
textarea.ter-feld { resize: vertical; }
.ter-zahlfeld { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.ter-zahlfeld.ist-leer { border-color: #d36b6b; }
.ter-oben { display: block; margin-top: 12px; }
.ter-oben > span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #374151; }
.ter-oben:first-child { margin-top: 0; }
.ter-haken { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--akzent); }
.ter-plzort { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 8px; }
.ter-plzort .ter-oben { margin-top: 12px; }
.ter-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.ter-fehlerliste { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #e8a3a3; border-radius: 8px; background: #fdeeee; color: #8f1d1d; font-size: 13px; }
.ter-feldfehler { margin-top: 4px; font-size: 12px; color: #a12626; }
.ter-hilfe { margin-top: 4px; font-size: 12px; color: var(--grau); }
.ter-hilfe ul { margin: 0; padding-left: 18px; }

/* ---------- Karten ---------- */
.ter-karte { padding: 20px 24px; background: #fff; border: 1px solid #d3d9e1; border-radius: 12px; box-shadow: 0 1px 3px rgba(16,24,40,0.08); }
.ter-schmal { max-width: 28rem; }
.ter-gefahrkarte { border-color: #ecc3c3; }

/* ---------- Katalog ---------- */
.ter-gruppe { scroll-margin-top: 80px; }
.ter-kathinweis { margin: -8px 0 16px; padding: 8px 12px; border-left: 3px solid var(--akzent); background: #fff; font-size: 13px; color: #374151; }
.ter-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ter-artikel { display: flex; flex-direction: column; background: #fff; border: 1px solid #d3d9e1; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,0.08); scroll-margin-top: 80px; }
.ter-artikel:target { outline: 3px solid rgba(0,105,92,0.35); }
.ter-bild { aspect-ratio: 4 / 3; background: #f4f6f8; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e3e7ed; }
.ter-bild img { width: 100%; height: 100%; object-fit: contain; }
.ter-keinbild { font-size: 12px; color: #8a94a3; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 16px; text-align: center; }
.ter-artikeltext { padding: 12px 16px 0; flex: 1 1 auto; }
.ter-artikeltext h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.3; }
.ter-artikeltext p { margin: 0 0 8px; }
.ter-beschreibung { font-size: 13px; color: #374151; }
.ter-bestellzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 16px; margin: 0; }
.ter-bestand { flex: 1 0 100%; font-size: 12px; font-weight: 600; color: #17693a; }
.ter-bestand.ist-leer { color: var(--rot); }
.ter-imkorb { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.ter-menge .ter-feld { width: auto; }
.ter-bestellzeile .btn-primaer { margin-left: auto; }
.ter-weiterleiste { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 24px; pointer-events: none; }
.ter-weiterleiste .btn { pointer-events: auto; padding: 10px 18px; box-shadow: 0 6px 16px rgba(16,24,40,0.2); }

/* ---------- Tabellen ---------- */
.ter-tabellenrahmen { overflow-x: auto; }
.ter-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #d3d9e1; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,0.08); }
.ter-tabelle th { padding: 10px 12px; background: #e4e9ef; text-align: left; font-size: 12px; font-weight: 600; border-bottom: 1px solid #b9c2ce; }
.ter-tabelle td { padding: 8px 12px; vertical-align: middle; border-top: 1px solid #e3e7ed; }
.ter-tabelle tbody tr:first-child td { border-top: 0; }
.ter-tabelle form { margin: 0; }
.ter-tabelle .ter-zahlspalte { text-align: right; font-variant-numeric: tabular-nums; }
.ter-schmal { width: 1%; white-space: nowrap; }
.ter-minibild { width: 64px; }
.ter-minibild img { width: 56px; height: 42px; object-fit: contain; display: block; }
.ter-leerzeile td { text-align: center; color: #6b7280; font-style: italic; padding: 16px; }
.ter-klickbar tbody tr[data-href] { cursor: pointer; }
.ter-klickbar tbody tr[data-href]:hover { background: #f0f6f5; }
tr.ist-zuviel td { background: #fff4f4; }
tr.ist-inaktiv td { color: #6b7280; }
.ter-bestandform { display: flex; gap: 8px; align-items: center; }
.ter-bestandform input[type="text"] { min-width: 12rem; }

/* ---------- Status ---------- */
.ter-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ter-status-bestellt { background: #fdf1d6; color: #7a4f00; }
.ter-status-versendet { background: #dcf2e4; color: #17693a; }
.ter-status-storniert { background: #eceff3; color: #4b5563; }
.ter-status-warenkorb { background: #e6edf7; color: #1e3a8a; }

/* ---------- Bestellung ---------- */
.ter-daten { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 6px 12px; margin: 0; align-content: start; }
.ter-daten dt { font-size: 13px; font-weight: 600; color: #374151; }
.ter-daten dd { margin: 0; }
address { font-style: normal; }
.ter-bestellen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e3e7ed; }
.ter-bestellen p { margin: 0; flex: 1 1 20rem; font-size: 13px; color: var(--grau); }
.ter-versandaktionen { margin-top: 40px; align-items: start; }

/* ---------- Leere Seiten, Meldungen ---------- */
.ter-leerseite { margin: 64px 0; text-align: center; font-size: 15px; color: var(--grau); }
.ter-leerseite h1 { color: var(--text); font-size: 22px; }
.ter-meldungen { position: fixed; bottom: 16px; left: 16px; z-index: 60; display: grid; gap: 8px; max-width: 28rem; }
.ter-meldung { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--linie); box-shadow: 0 6px 16px rgba(16,24,40,0.14); font-size: 13px; }
.ter-meldung-zu { margin-left: auto; border: 0; background: none; font-size: 16px; line-height: 1; color: inherit; cursor: pointer; opacity: 0.7; }
.ter-meldung-success { border-color: #9fd3b1; background: #e9f7ee; color: #17693a; }
.ter-meldung-error { border-color: #e8a3a3; background: #fdeeee; color: #8f1d1d; }
.ter-meldung-warning { border-color: #ecd08a; background: #fdf6e3; color: #6b4a00; }

/* ---------- Anmeldung ---------- */
.ter-anmeldeseite { background: var(--akzent); }
.ter-anmeldung { max-width: 24rem; margin: 12vh auto 0; padding: 32px; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.ter-anmeldung h1 { margin: 0 0 24px; font-size: 22px; font-weight: 600; color: var(--akzent); }
.ter-anmeldung .ter-oben { margin-top: 12px; }
.ter-anmeldung .btn { width: 100%; margin-top: 24px; padding: 9px 12px; }

/* ---------- Schmale Fenster ---------- */
@media (max-width: 760px) {
  .ter-spalten { grid-template-columns: minmax(0, 1fr); }
  .ter-suche { flex: 1 1 100%; }
  .ter-suche .ter-feld { width: auto; flex: 1 1 auto; }
  .ter-bestandform { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .ter-seite { padding: 16px 12px 80px; }
  .ter-leiste-innen { padding: 8px 12px; gap: 8px; }
  .ter-daten { grid-template-columns: 1fr; }
}

/* ---------- Druck (Bestellübersicht) ---------- */
@media print {
  body { background: #fff; }
  .ter-leiste, .ter-nicht-drucken, .ter-meldungen { display: none !important; }
  .ter-seite { padding: 0; max-width: none; }
  .ter-karte, .ter-tabelle { box-shadow: none; }
}
