/* ===========================================================================
   Ausschreibungsseiten — Design der Startseite.
   ===========================================================================

   Ersetzt seit 08.08.2026 die beiden AWL-Stylesheets (ausschreibungen.css und
   tenderbase.css). Verbindliche Vorlage ist ausschliesslich die Startseite
   von tenderbold.com: diese Datei verwendet NUR die dort gesetzten Werte.

   Die Marken (--tb-dark, --tb-green, --tb-orange, --tb-bg, --tb-text,
   --tb-muted, --tb-border, Radien 8/16/40) stehen in landing.css. Das
   TenderLayout laedt landing.css mit und setzt <body class="lp"> — Schrift,
   Grundfarben und die Bausteine .lp-in, .lp-cta, .lp-nav, .lp-foot gelten
   deshalb hier genauso wie auf der Startseite. Es wird KEIN Wert erfunden.

   Richtung: alle Abstaende und Rahmen laufen ueber logische Eigenschaften
   (margin-inline, padding-inline, border-inline, inset-inline). Eine kuenftige
   RTL-Sprache spiegelt dadurch von allein — Arabisch wurde auf Wunsch aus dem
   Sprachangebot genommen, die Mechanik bleibt.
   ------------------------------------------------------------------------- */

/* --- Grundgeruest --------------------------------------------------------- */
.section { width: min(1180px, 100% - 40px); margin-inline: auto; padding: 72px 0; }
main > .section:first-child { padding-top: 34px; }

.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.16; color: var(--tb-dark); margin: 0; letter-spacing: -.025em; }
.sec-sub { margin: 14px 0 0; color: var(--tb-muted); font-size: 16.5px; line-height: 1.6; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--tb-green); margin-bottom: 12px;
}
h2 { color: var(--tb-dark); letter-spacing: -.02em; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 400;
  background: var(--tb-dark); color: #fff; padding: 12px 18px;
  border-end-end-radius: var(--tb-r-sm); font-size: 15px; font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; }

.legal-note {
  width: min(1180px, 100% - 40px); margin: 0 auto; padding: 26px 0 34px;
  font-size: 13.5px; line-height: 1.6; color: var(--tb-muted);
}
.legal-note a { color: var(--tb-green); }

/* --- Kopfzeile ------------------------------------------------------------ */
/* Aufbau und Farben wie .lp-nav auf der Startseite. */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef1f3;
}
.nav-inner {
  width: min(1180px, 100% - 40px); margin-inline: auto;
  display: flex; align-items: center; gap: 22px; min-height: 74px;
}
.logo {
  font-size: 25px; font-weight: 700; letter-spacing: -.035em;
  color: var(--tb-green); white-space: nowrap; text-decoration: none;
}
.logo b { color: var(--tb-orange); font-weight: 700; }
.nav-tender, .nav-main a {
  font-size: 16px; font-weight: 450; color: #2f3b3a;
  text-decoration: none; white-space: nowrap;
}
.nav-tender { margin-inline-start: 8px; }
.nav-main { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.nav-tender:hover, .nav-main a:hover { color: var(--tb-green); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

/* Land- und Sprachumschalter — helle Felder statt der schwarzen AWL-Pillen. */
.tb-switch { display: flex; align-items: center; gap: 8px; margin: 0; }
.tb-switch-f { display: flex; align-items: center; }
.tb-switch-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-switch select {
  height: 44px; max-width: 168px; border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm);
  background: #fff; color: var(--tb-dark); font-family: inherit; font-size: 15px;
  font-weight: 500; padding-inline: 12px; cursor: pointer;
}
.tb-switch select:hover { border-color: var(--tb-green); }
.tb-switch select:focus-visible { outline: 2px solid var(--tb-green); outline-offset: 2px; }
.tb-switch-go {
  height: 44px; border: 1px solid var(--tb-green); border-radius: var(--tb-r-sm);
  background: var(--tb-green); color: #fff; font-family: inherit;
  font-size: 15px; font-weight: 600; padding-inline: 16px; cursor: pointer;
}
.tb-switch-go:hover { background: var(--tb-green-deep); border-color: var(--tb-green-deep); }

.nav-burger { display: none; width: 44px; height: 44px; border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); background: #fff; cursor: pointer; padding: 0; }
.nav-burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--tb-dark); border-radius: 2px; }
.nav-mobile { display: none; }
.nav-mobile.open {
  display: block; border-top: 1px solid #eef1f3; background: #fff;
  padding: 10px min(20px, 5vw) 18px;
}
.nav-mobile a {
  display: block; padding: 13px 2px; font-size: 16.5px; color: var(--tb-dark);
  text-decoration: none; border-bottom: 1px solid #f0f3f4;
}
.nav-mobile a:last-child { border-bottom: 0; }

@media (max-width: 1100px) { .tb-switch select { max-width: 128px; } }
@media (max-width: 980px) {
  .nav-main { display: none; }
  .nav-tender { margin-inline-end: auto; }
}
@media (max-width: 860px) {
  .tb-switch { display: none; }   /* Auf Mobil fuehrt das Menue auf #markets. */
  .nav-burger { display: block; }
  .nav-inner { min-height: 66px; }
}

/* --- Kompakte Suche (ersetzt den alten Hero) ------------------------------ */
.aus-top { padding: 34px 0 8px; }
.aus-h1 { font-size: clamp(23px, 2.6vw, 31px); line-height: 1.2; color: var(--tb-dark); margin: 0 0 6px; letter-spacing: -.025em; }
.aus-lead { margin: 0 0 20px; color: var(--tb-muted); font-size: 16px; line-height: 1.55; max-width: 72ch; }
.aus-lead strong { color: var(--tb-dark); font-weight: 600; }

/* Dieselbe Leiste wie im Hero der Startseite: eine Pille, Felder durch feine
   Trenner geteilt, runder Knopf rechts. */
.aus-bar {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: 0 18px 44px -26px rgba(12, 39, 36, .34), 0 0 0 1px rgba(12, 39, 36, .07);
}
.bar-f { display: flex; align-items: center; gap: 10px; padding-inline: 14px; min-width: 0; position: relative; }
.bar-f:first-child { padding-inline-start: 0; }
.bar-what { flex: 1.1 1 0; border-inline-end: 1px solid #e7ecec; }
.bar-where { flex: 1 1 0; border-inline-end: 1px solid #e7ecec; }
.bar-q { flex: 1.2 1 0; }
.bar-f > svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--tb-green); }
.bar-f select, .bar-f input {
  flex: 1; min-width: 0; height: 48px; border: none; background: transparent;
  outline: none; font-family: inherit; font-size: 16px; color: var(--tb-dark); font-weight: 500;
}
.bar-f select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 20px; }
.bar-f input::placeholder { color: #9aa7a6; font-weight: 400; }
.bar-caret { position: absolute; inset-inline-end: 12px; width: 12px; height: 8px; color: var(--tb-muted); pointer-events: none; }
.bar-go {
  flex: 0 0 auto; margin-inline-start: 8px; border: none; border-radius: 999px;
  background: var(--tb-green); color: #fff; font-family: inherit; font-size: 16px;
  font-weight: 600; padding-inline: 26px; cursor: pointer; white-space: nowrap;
}
.bar-go:hover { background: var(--tb-green-deep); }

.aus-vat { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14.5px; color: var(--tb-muted); }
.aus-vat svg { width: 17px; height: 17px; color: var(--tb-green); flex: 0 0 17px; }

@media (max-width: 860px) {
  .aus-bar { flex-direction: column; border-radius: var(--tb-r-md); padding: 8px; }
  .aus-vat { margin-top: 22px; align-items: flex-start; }
  .aus-vat svg { margin-top: 2px; }
  .bar-f { padding-inline: 14px; border-inline-end: 0; border-bottom: 1px solid #e7ecec; }
  .bar-f:first-child { padding-inline-start: 14px; }
  .bar-q { border-bottom: 0; }
  .bar-go { margin: 8px 0 0; height: 50px; border-radius: var(--tb-r-sm); }
}

/* --- Trefferkopf ---------------------------------------------------------- */
.aus-head { display: grid; gap: 18px; margin-bottom: 26px; }
.aus-count {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; font-size: 15.5px; color: var(--tb-dark); font-weight: 600;
}
.txt-form {
  margin-inline: auto 0; display: flex; align-items: center;
  border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); background: #fff; overflow: hidden; height: 42px;
}
.txt-form input {
  border: none; outline: none; background: transparent; height: 100%;
  padding-inline: 14px; font-family: inherit; font-size: 14.5px; color: var(--tb-dark); width: min(320px, 46vw);
}
.txt-form input::placeholder { color: #9aa7a6; }
.txt-form button {
  border: none; background: var(--tb-bg); color: var(--tb-dark); height: 100%; width: 42px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.txt-form button:hover { background: var(--tb-green); color: #fff; }
.txt-form button svg { width: 16px; height: 16px; }
.txt-form:focus-within { border-color: var(--tb-green); }
.srt-form { margin: 0; }
.srt-form label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--tb-muted); font-weight: 500; }
.srt-form select {
  height: 42px; border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); padding-inline: 12px;
  background: #fff; font-size: 14.5px; font-family: inherit; font-weight: 500; color: var(--tb-dark);
}

.aus-split { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.aus-side { display: grid; gap: 16px; position: sticky; top: 92px; }
@media (max-width: 980px) {
  .aus-split { grid-template-columns: 1fr; }
  .aus-side { position: static; }
}

/* Seitenleiste */
.sb-card { background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-r-md); padding: 22px; }
.sb-card h4 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--tb-dark); }
.sb-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--tb-muted); }
.sb-quelle { display: block; font-size: 13px; line-height: 1.55; color: var(--tb-muted); }
.sb-list { display: grid; gap: 11px; }
.sb-list > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--tb-dark); }
.sb-list svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--tb-green); }
.sb-cta {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; border-radius: var(--tb-r-sm); background: var(--tb-green);
  color: #fff; text-decoration: none; font-size: 15.5px; font-weight: 600;
}
.sb-cta:hover { background: var(--tb-green-deep); }
.sb-fakt { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--tb-border); font-size: 14.5px; }
.sb-fakt:last-child { border-bottom: 0; }
.sb-fakt span { color: var(--tb-muted); }
.sb-fakt b { color: var(--tb-dark); }

/* --- Ausschreibungskarte -------------------------------------------------- */
.tender-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.tender {
  display: grid; grid-template-rows: 1fr auto; gap: 16px;
  background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-r-md);
  padding: 24px; min-width: 0;
  /* Derselbe weiche Schatten wie auf der Startseite (.lp-card, .lp-strip) --
     kein neuer Wert, nur eine Stufe zurueckhaltender. */
  box-shadow: 0 14px 34px -26px rgba(12, 39, 36, .45);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.tender:hover {
  border-color: var(--tb-green);
  box-shadow: 0 22px 48px -28px rgba(12, 39, 36, .5);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .tender { transition: none; }
  .tender:hover { transform: none; }
}
.tender h3 { margin: 12px 0 0; font-size: 18.5px; line-height: 1.3; letter-spacing: -.015em; }
.tender h3 a { color: var(--tb-dark); text-decoration: none; }
.tender h3 a:hover { color: var(--tb-green); }
.tender h3, .tender .t-loc span { overflow-wrap: anywhere; }
.t-main { min-width: 0; }
.t-top { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.t-cat {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: #e8f7f8; border: 1px solid #d8eef0; color: var(--tb-green-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.t-verf {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--tb-bg); border: 1px solid var(--tb-border); color: var(--tb-muted);
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.t-new {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: var(--tb-dark); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
/* Knappe Frist: die Warnfarbe der Startseite ist das Orange, kein neues Rot. */
.t-eilt {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  background: #fff3e6; border: 1px solid #fbdcbd; color: #b35c00;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.t-off { background: var(--tb-bg); color: var(--tb-muted); border: 1px solid var(--tb-border); }
.t-loc { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--tb-muted); }
.t-loc svg { width: 16px; height: 16px; flex: 0 0 16px; }

.t-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 16px 0 0; }
.t-facts > div { min-width: 0; }
.t-facts dt { font-size: 12px; color: var(--tb-muted); font-weight: 600; }
.t-facts dd { margin: 2px 0 0; font-size: 14.5px; color: var(--tb-dark); font-weight: 600; line-height: 1.35; }
.t-facts dd.is-knapp { color: #b35c00; }
.t-facts dd em { display: block; font-style: normal; font-size: 12px; color: var(--tb-muted); font-weight: 500; margin-top: 1px; }

.t-locked {
  display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 0; padding-top: 13px;
  border-top: 1px solid var(--tb-border); font-size: 12.5px; line-height: 1.5; color: var(--tb-muted);
}
.t-locked svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

.t-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.t-wert { background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-r-sm); padding: 14px 16px; }
.t-wert span { display: block; font-size: 12px; color: var(--tb-muted); font-weight: 600; }
.t-wert strong { display: block; margin-top: 3px; font-size: 22px; line-height: 1.2; color: var(--tb-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.t-wert strong.is-leer { font-size: 16px; font-weight: 600; color: var(--tb-muted); }
.t-wert small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--tb-muted); }

.t-action { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.t-cta {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--tb-green); color: #fff; border-radius: var(--tb-r-sm); padding: 12px 18px;
  font-size: 15.5px; font-weight: 600; text-decoration: none; text-align: center;
}
.t-cta:hover { background: var(--tb-green-deep); }
.t-cta-off { background: var(--tb-bg); color: var(--tb-muted); }
.t-cta-off:hover { background: var(--tb-border); }
.t-note { margin: 0; font-size: 12px; color: var(--tb-muted); text-align: center; }
.t-frei {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); color: var(--tb-dark); background: #fff;
  font-size: 14.5px; font-weight: 600; text-decoration: none; text-align: center;
}
.t-frei:hover { border-color: var(--tb-dark); }

/* Leerzustand */
.t-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-r-md); padding: 30px;
}
.t-empty strong { font-size: 17.5px; color: var(--tb-dark); line-height: 1.35; }
.t-empty span { font-size: 15px; color: var(--tb-muted); line-height: 1.6; }
.t-empty-cta {
  display: inline-flex; align-items: center; min-height: 46px; padding-inline: 20px;
  border-radius: var(--tb-r-sm); background: var(--tb-green); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 600; margin-top: 4px;
}
.t-empty-cta:hover { background: var(--tb-green-deep); }

/* "Mehr laden" */
.mehr-wrap { text-align: center; margin: 34px 0 0; }
.mehr-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  background: #fff; border: 1px solid #dfe4e8; color: var(--tb-dark); border-radius: var(--tb-r-sm);
  padding-inline: 28px; font-weight: 600; text-decoration: none; font-size: 15.5px;
}
.mehr-btn:hover { border-color: var(--tb-dark); }
.mehr-note { margin: 10px 0 0; font-size: 13.5px; color: var(--tb-muted); }

/* Gewerke-Zeile im Fussbereich der Liste */
.gw-foot { border-top: 1px solid var(--tb-border); padding: 26px 0 4px; margin-top: 26px; }
.gw-foot h3 { font-size: 13px; font-weight: 700; color: var(--tb-muted); margin: 0 0 10px; letter-spacing: .02em; }
.gw-foot p { font-size: 13.5px; line-height: 2; color: var(--tb-muted); margin: 0; }
.gw-foot a { color: var(--tb-text); text-decoration: none; }
.gw-foot a:hover { color: var(--tb-green); text-decoration: underline; }
.gw-foot a.on { color: var(--tb-green); font-weight: 600; }

/* --- Filter-Sheet (mobil) ------------------------------------------------- */
.aus-fbtn { display: none; }
.fsheet { position: fixed; inset: 0; z-index: 120; }
.fsheet-bg { position: absolute; inset: 0; background: rgba(12, 39, 36, .45); }
.fsheet-box {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; overflow: auto;
  background: #fff; border-radius: var(--tb-r-md) var(--tb-r-md) 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
.fsheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fsheet-head strong { flex: 1; font-size: 17px; color: var(--tb-dark); }
.fsheet-head a { font-size: 14px; color: var(--tb-green); text-decoration: none; }
.fsheet-head button {
  width: 38px; height: 38px; border: 1px solid var(--tb-border); background: #fff;
  border-radius: 999px; font-size: 20px; line-height: 1; color: var(--tb-dark); cursor: pointer;
}
.fsheet-lab { font-size: 12.5px; font-weight: 700; color: var(--tb-muted); margin: 14px 0 8px; }
.fsheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fsheet-chips label {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 16px;
  border: 1px solid var(--tb-border); border-radius: 999px; font-size: 14.5px;
  color: var(--tb-dark); cursor: pointer; background: #fff;
}
.fsheet-chips label.on { border-color: var(--tb-green); background: var(--tb-green); color: #fff; }
.fsheet-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.fsheet-ort {
  width: 100%; min-height: 48px; border: 1px solid var(--tb-border);
  border-radius: var(--tb-r-sm); padding-inline: 14px; font-family: inherit; font-size: 15px;
}
.fsheet-go {
  width: 100%; min-height: 50px; margin-top: 16px; border: none; border-radius: var(--tb-r-sm);
  background: var(--tb-green); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
@media (max-width: 860px) {
  .aus-fbtn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 18px;
    border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); background: #fff; color: var(--tb-dark);
    font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .aus-fbtn svg { width: 18px; height: 18px; }
}

/* --- Detailseite ---------------------------------------------------------- */
.t-detail { width: min(1180px, 100% - 40px); margin-inline: auto; padding: 34px 0 0; }
.t-crumb { font-size: 14px; color: var(--tb-muted); margin-bottom: 18px; }
.t-crumb a { color: var(--tb-green); text-decoration: none; }
.t-crumb a:hover { text-decoration: underline; }
.t-detail h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.16; color: var(--tb-dark); margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.t-detail h2 { font-size: 21px; margin: 32px 0 12px; }
.t-origlang {
  margin: 12px 0 24px; font-size: 13.5px; line-height: 1.55; color: var(--tb-muted);
  border-inline-start: 3px solid var(--tb-border); padding-inline-start: 13px;
}
.t-cols { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.t-col-main { min-width: 0; }
.t-col-main p { font-size: 16px; line-height: 1.7; color: var(--tb-text); }

.t-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.t-meta span {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: var(--tb-bg); border: 1px solid var(--tb-border); font-size: 13.5px; color: var(--tb-text);
}
.t-meta span.is-knapp { background: #fff3e6; border-color: #fbdcbd; color: #b35c00; font-weight: 600; }
.t-meta span.is-expired { background: var(--tb-bg); border-color: var(--tb-border); color: var(--tb-muted); font-weight: 600; }

.t-eck {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px;
  margin: 0 0 22px; padding: 22px; background: var(--tb-bg);
  border: 1px solid var(--tb-border); border-radius: var(--tb-r-md);
}
.t-eck > div { min-width: 0; }
.t-eck dt { font-size: 12.5px; color: var(--tb-muted); font-weight: 600; }
.t-eck dd { margin: 3px 0 0; font-size: 15.5px; color: var(--tb-dark); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }

.t-box { background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-r-md); padding: 26px; margin: 22px 0; }
.t-box.locked { background: var(--tb-bg); }
.t-box h2 { font-size: 19px; margin-top: 0; }
.t-box dl { margin: 0; }
.t-box dt { font-size: 12.5px; color: var(--tb-muted); font-weight: 600; margin-top: 12px; }
.t-box dt:first-child { margin-top: 0; }
.t-box dd { margin: 3px 0 0; font-size: 15px; color: var(--tb-dark); overflow-wrap: anywhere; }
.t-box dd a { color: var(--tb-green); }
.t-box ul { margin: 0; padding-inline-start: 20px; }
.t-box li { font-size: 15.5px; line-height: 1.7; color: var(--tb-text); }
.t-box .t-hint { font-size: 13.5px; color: var(--tb-muted); margin-top: 12px; }
.t-box .t-sub { font-weight: 400; color: var(--tb-muted); }
.t-quelle { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--tb-muted); }
.t-similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* Kaufkasten — rein optisch angepasst, Verhalten unveraendert. */
.t-col-buy { position: sticky; top: 92px; }
.t-buybox {
  background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-r-md);
  padding: 24px; box-shadow: 0 24px 60px -40px rgba(12, 39, 36, .4);
}
.t-buy-wert { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--tb-border); }
.t-buy-wert span { display: block; font-size: 12.5px; color: var(--tb-muted); font-weight: 600; }
.t-buy-wert strong { display: block; margin-top: 4px; font-size: 26px; line-height: 1.15; color: var(--tb-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.t-buy-wert strong.is-leer { font-size: 17px; font-weight: 600; color: var(--tb-muted); }
.t-buy-wert small { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.5; color: var(--tb-muted); }
.t-buy-preis { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.t-buy-preis strong { font-size: 30px; font-weight: 700; color: var(--tb-dark); letter-spacing: -.03em; }
.t-buy-preis span { font-size: 13.5px; color: var(--tb-muted); }
.t-buy {
  width: 100%; min-height: 52px; border: 1px solid var(--tb-green); border-radius: var(--tb-r-sm);
  background: var(--tb-green); color: #fff; font-family: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer;
}
.t-buy:hover { background: var(--tb-green-deep); border-color: var(--tb-green-deep); }
.t-buy-note { margin: 10px 0 0; font-size: 13px; color: var(--tb-muted); text-align: center; }
.t-steuer { margin-top: 16px; border-top: 1px solid var(--tb-border); padding-top: 14px; }
.t-steuer summary { font-size: 14px; color: var(--tb-green); cursor: pointer; font-weight: 600; }
.t-steuer p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--tb-muted); }
.t-expired { font-size: 14.5px; line-height: 1.6; color: var(--tb-muted); }
.t-expired a { color: var(--tb-green); font-weight: 600; }

/* Kaufleiste am unteren Rand (mobil) */
.t-mobibar { display: none; }
@media (max-width: 980px) {
  .t-cols { grid-template-columns: 1fr; }
  .t-col-buy { position: static; }
  .t-mobibar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-top: 1px solid var(--tb-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px -22px rgba(12, 39, 36, .5);
  }
  .t-mobibar > div { flex: 1; min-width: 0; }
  .t-mobibar strong { display: block; font-size: 19px; color: var(--tb-dark); font-weight: 700; }
  .t-mobibar span { display: block; font-size: 12px; color: var(--tb-muted); }
  .t-mobibar .t-buy { width: auto; padding-inline: 22px; }
}

/* --- Statische Bloecke ---------------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: #f7f9f9; border: 1px solid #e6ecec; border-radius: var(--tb-r-md);
  padding: 28px 24px; text-align: center;
}
.step-card .n { display: block; font-size: 13.5px; font-weight: 600; color: var(--tb-green); margin-bottom: 10px; }
.step-card svg { width: 26px; height: 26px; color: var(--tb-dark); margin-bottom: 12px; }
.step-card h3 { font-size: 18.5px; margin: 0 0 9px; color: var(--tb-dark); }
.step-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tb-muted); }

.val-grid { width: min(1180px, 100% - 40px); margin: 0 auto 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.val { border-radius: var(--tb-r-lg); padding: 44px 42px; }
.val.dark { background: var(--tb-dark); }
.val.dark .eyebrow { color: #7fd8cd; }
.val.dark h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.16; }
.val.dark p { color: #a8bfbc; font-size: 16px; line-height: 1.62; }
.val.dark ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.val.dark li { display: flex; gap: 11px; align-items: flex-start; color: #e7f2f0; font-size: 15.5px; line-height: 1.45; }
.val.dark li svg { width: 19px; height: 19px; flex: 0 0 19px; color: #7fd8cd; margin-top: 2px; }
.val.light { background: linear-gradient(100deg, #eeedf3 0%, #f0e9e5 52%, #f3e5db 100%); }
.val.light h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.16; }
.srv-list { display: grid; gap: 12px; margin-top: 22px; }
.srv-list > div { display: flex; gap: 11px; align-items: center; }
.srv-list svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--tb-green); }
.srv-list strong { font-weight: 600; font-size: 16px; }
.srv-list a { color: var(--tb-dark); text-decoration: none; }
.srv-list a:hover { color: var(--tb-green); text-decoration: underline; }

.faq-orig { width: min(1180px, 100% - 40px); margin-inline: auto; padding: 72px 0; display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-r-md); padding: 18px 22px; }
.faq-list summary { font-size: 16.5px; font-weight: 600; color: var(--tb-dark); cursor: pointer; }
.faq-list p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--tb-muted); }
@media (max-width: 900px) { .faq-orig { grid-template-columns: 1fr; gap: 24px; padding: 56px 0; } }

.alert { background: var(--tb-bg); padding: 62px 0; }
.alert-in { width: min(1180px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.alert-ic { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid var(--tb-border); display: flex; align-items: center; justify-content: center; }
.alert-ic svg { width: 24px; height: 24px; color: var(--tb-green); }
.alert-in h2 { margin: 0 0 6px; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; }
.alert-in p { margin: 0; color: var(--tb-muted); font-size: 15.5px; line-height: 1.55; }
.alert-form { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-form input {
  min-height: 50px; min-width: 260px; border: 1px solid var(--tb-border); border-radius: var(--tb-r-sm);
  padding-inline: 16px; font-family: inherit; font-size: 15.5px; background: #fff; color: var(--tb-dark);
}
.alert-form input:focus-visible { outline: 2px solid var(--tb-green); outline-offset: 1px; }
.alert-form button {
  min-height: 50px; border: 1px solid var(--tb-green); border-radius: var(--tb-r-sm);
  background: var(--tb-green); color: #fff; font-family: inherit; font-size: 15.5px;
  font-weight: 600; padding-inline: 24px; cursor: pointer;
}
.alert-form button:hover { background: var(--tb-green-deep); border-color: var(--tb-green-deep); }
@media (max-width: 900px) { .alert-in { grid-template-columns: 1fr; } }

.final { background: var(--tb-dark); padding: 76px 0; }
.final-in { width: min(1180px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.final-in .eyebrow { color: #7fd8cd; }
.final-in h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1.16; margin: 0; }
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px;
  padding-inline: 32px; border-radius: var(--tb-r-sm); background: #fff; color: var(--tb-dark);
  font-size: 16.5px; font-weight: 600; text-decoration: none;
}
.btn-dark:hover { background: #e8f7f8; }

/* --- Marktliste ----------------------------------------------------------- */
.tb-market-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px;
}
.tb-market-grid a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--tb-border); border-radius: var(--tb-r-sm); text-decoration: none;
  color: var(--tb-dark); font-size: 14.5px; background: #fff;
}
.tb-market-grid a:hover { border-color: var(--tb-green); }
.tb-market-grid a.on { border-color: var(--tb-green); background: var(--tb-green); color: #fff; }
.tb-m-code {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--tb-muted);
  border: 1px solid var(--tb-border); border-radius: 999px; padding: 2px 8px; flex: 0 0 auto;
}
.tb-market-grid a.on .tb-m-code { color: #fff; border-color: rgba(255, 255, 255, .45); }
.tb-m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-m-empty { margin-inline-start: auto; color: #9aa7a6; font-weight: 800; line-height: 1; }

/* --- Rechtsseiten --------------------------------------------------------- */
.tb-legal { max-width: 860px; }
.tb-legal .sec-head { text-align: start; }
.tb-legal-note {
  font-size: 14px; color: var(--tb-muted); border-inline-start: 3px solid var(--tb-border);
  padding-inline-start: 14px; margin: 0 0 34px;
}
.tb-legal-sec { margin-bottom: 30px; }
.tb-legal-sec h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.tb-legal-sec p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: var(--tb-text); }
.tb-legal-facts {
  display: grid; grid-template-columns: minmax(190px, auto) 1fr; gap: 9px 22px;
  margin: 0 0 16px; padding: 22px; background: var(--tb-bg);
  border: 1px solid var(--tb-border); border-radius: var(--tb-r-md); font-size: 16px; line-height: 1.6;
}
.tb-legal-facts dt { font-weight: 600; color: var(--tb-dark); }
.tb-legal-facts dd { margin: 0; color: var(--tb-text); overflow-wrap: anywhere; }
.tb-legal-back { margin-top: 38px; }
.tb-legal-back a { font-weight: 600; color: var(--tb-green); text-decoration: underline; }
@media (max-width: 560px) {
  .tb-legal-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .tb-legal-facts dd { margin-bottom: 10px; }
}

/* --- Hinweisdialog (Kauf/Suchalarm abgeschaltet) -------------------------- */
#tb-notice {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(12, 39, 36, .45);
}
.tb-notice-in {
  background: #fff; border-radius: var(--tb-r-md); padding: 30px; max-width: 480px;
  box-shadow: 0 30px 70px -30px rgba(12, 39, 36, .6);
}
.tb-notice-in h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; color: var(--tb-dark); }
.tb-notice-in p { margin: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--tb-muted); }
.tb-notice-in button {
  min-height: 50px; padding-inline: 24px; border: 1px solid var(--tb-green);
  border-radius: var(--tb-r-sm); background: var(--tb-green); color: #fff;
  font-family: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer;
}
.tb-notice-in button:hover { background: var(--tb-green-deep); border-color: var(--tb-green-deep); }

/* --- Fusszeile ------------------------------------------------------------ */
.ft { background: var(--tb-bg); border-top: 1px solid var(--tb-border); padding: 58px 0 34px; }
.ft-inner { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ft-top { margin-bottom: 30px; }
.ft-logo { font-size: 25px; font-weight: 700; letter-spacing: -.035em; color: var(--tb-green); }
.ft-logo b { color: var(--tb-orange); font-weight: 700; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.ft-cols.tb-ft-slim { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; }
.ft-col h4 { font-size: 15px; font-weight: 700; color: var(--tb-dark); margin: 0 0 14px; }
.ft-col a { display: block; font-size: 15px; color: var(--tb-muted); margin-bottom: 11px; text-decoration: none; }
.ft-col a:hover { color: var(--tb-green); }
.ft-bottom { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--tb-border); }
.ft-meta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--tb-muted); }
.ft-meta .m { display: flex; align-items: center; gap: 7px; }
.ft-copy { margin-top: 20px; font-size: 13.5px; color: var(--tb-muted); }
@media (max-width: 720px) { .ft-cols, .ft-cols.tb-ft-slim { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ft-cols, .ft-cols.tb-ft-slim { grid-template-columns: 1fr; } }

/* --- Schmale Bildschirme -------------------------------------------------- */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .val-grid { grid-template-columns: 1fr; }
  .val { padding: 32px 26px; border-radius: var(--tb-r-md); }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .t-facts { grid-template-columns: 1fr; }
  .t-eck { grid-template-columns: 1fr; }
  .t-wert strong { font-size: 20px; }
  .t-frei { min-height: 48px; }
  .tender-grid { grid-template-columns: 1fr; }
}

/* --- RTL ------------------------------------------------------------------ */
/* Zahlen, CPV-Codes, Waehrungen und Original-URLs bleiben von links nach
   rechts lesbar; der Ausschreibungstext behaelt die Richtung seiner
   Originalsprache (lang-Attribut steht im Markup). */
[dir="rtl"] .t-wert strong,
[dir="rtl"] .t-buy-wert strong,
[dir="rtl"] .t-buy-preis strong,
[dir="rtl"] .tb-m-code,
[dir="rtl"] .t-eck dd a,
[dir="rtl"] .t-box dd a { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] h1[lang], [dir="rtl"] p[lang], [dir="rtl"] dd[lang] { unicode-bidi: isolate; }
[dir="rtl"] .t-crumb { direction: rtl; }

/* Hinweis, wenn eine Datenquelle gerade nicht antwortet. Warnfarbe der
   Startseite ist das Orange -- es wird kein neues Gelb/Rot eingefuehrt. */
.t-warn {
  margin: 0 0 18px; padding: 12px 16px; border-radius: var(--tb-r-sm);
  background: #fff3e6; border: 1px solid #fbdcbd; color: #b35c00;
  font-size: 14.5px; line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Knopffarben festnageln (09.08.2026)
   ---------------------------------------------------------------------------
   Die meisten Knoepfe sind Links. In landing.css steht `.lp a { color:
   inherit }` -- eine Klasse PLUS ein Element und damit spezifischer als eine
   einzelne Klasse wie `.t-cta`. Der Text auf den gruenen Flaechen erbte
   dadurch das Grau des Fliesstextes statt weiss zu sein.

   Deshalb hier dieselben Farben noch einmal mit `.lp` davor. Regel fuer alles
   Kuenftige: gruene Flaeche = weisser Text, ohne Ausnahme.
   ------------------------------------------------------------------------- */
.lp a.t-cta,
.lp a.sb-cta,
.lp a.t-empty-cta { color: #fff; }
.lp a.t-cta:hover,
.lp a.sb-cta:hover,
.lp a.t-empty-cta:hover { color: #fff; }

/* Helle Knoepfe behalten die dunkle Schrift -- ebenfalls festgeschrieben. */
.lp a.t-cta-off { color: var(--tb-muted); }
.lp a.t-frei,
.lp a.mehr-btn { color: var(--tb-dark); }
.lp a.btn-dark { color: var(--tb-dark); }
