/* ===========================================================================
   Startseite (/) — eigenes Stylesheet.
   ===========================================================================

   Diese Datei traegt die Marken (--tb-*), die Grundtypografie und die
   Startseiten-Abschnitte. Seit 08.08.2026 laedt auch das TenderLayout sie --
   die Ausschreibungsseiten setzen dasselbe Design darauf auf (app.css). Die
   Startseite bleibt die verbindliche Vorlage; hier wird nichts erfunden.

   Farben, Verlaeufe und Radien sind die des Vorbilds tenderbase.co.uk. Sie
   wurden zum Teil aus dessen CSS-Variablen (--bbl-*) und zum Teil direkt aus
   Bildschirmfotos der Seite ausgemessen, damit Hero-Verlauf, Karten und
   Reiter denselben Ton treffen. Uebernommen wurden ausschliesslich Farbwerte
   und Masse — keine Schrift-, Bild- oder Codedateien.

   Schrift: das Vorbild liefert "SF Pro Display" selbst aus. Das ist eine
   lizenzierte Apple-Schrift und wird hier NICHT mitgeliefert. Stattdessen
   laeuft die Seite auf system-ui/-apple-system mit der bereits vorhandenen
   Geist als Rueckfall — auf Apple-Geraeten ist das genau SF Pro, sonst eine
   sehr nahe Entsprechung.
   ------------------------------------------------------------------------- */

:root {
  --tb-dark: #0c2724;
  --tb-green: #02897a;
  --tb-green-mid: #089081;
  --tb-green-deep: #006e62;
  --tb-orange: #fc7b07;
  --tb-bg: #f7f8fa;
  --tb-white: #ffffff;
  --tb-text: #344c4b;
  --tb-muted: #6b7a79;
  --tb-border: #e4eae9;
  --tb-r-sm: 8px;
  --tb-r-md: 16px;
  --tb-r-lg: 40px;
  /* Schrittmarken — dieselbe Reihenfolge wie im Vorbild. */
  --tb-s1: #32a194;
  --tb-s2: #fc7b07;
  --tb-s3: #c77ada;
  --tb-s4: #2f9cfb;
  --tb-s5: #2db04e;
}

.lp {
  margin: 0;
  font-family: system-ui, -apple-system, 'Geist', 'Segoe UI', sans-serif;
  color: var(--tb-text);
  background: var(--tb-white);
  -webkit-font-smoothing: antialiased;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp p { margin: 0 0 14px; }
.lp h1, .lp h2, .lp h3 { color: var(--tb-dark); margin: 0; letter-spacing: -.025em; }
.lp a { color: inherit; text-decoration: none; }
.lp-in { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* --- Kopfzeile ----------------------------------------------------------- */
.lp-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;
}
.lp-nav-in { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.lp-logo {
  display: inline-flex; align-items: baseline;
  font-size: 25px; font-weight: 700; letter-spacing: -.035em;
  color: var(--tb-green); white-space: nowrap;
}
.lp-logo b { font-weight: 700; color: var(--tb-orange); }
.lp-menu {
  display: flex; align-items: center; gap: 28px;
  margin-inline: auto; font-size: 16px; font-weight: 450; color: #2f3b3a;
}
.lp-menu a { white-space: nowrap; }
.lp-menu a:hover { color: var(--tb-green); }
.lp-nav-btns { display: flex; align-items: center; gap: 12px; }
.lp-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: var(--tb-r-sm);
  background: var(--tb-green); color: #fff !important;
  font-size: 16px; font-weight: 600; white-space: nowrap; border: 1px solid var(--tb-green);
}
.lp-cta:hover { background: var(--tb-green-deep); border-color: var(--tb-green-deep); }
.lp-cta.ghost {
  background: var(--tb-white); color: var(--tb-dark) !important; border-color: #dfe4e8;
}
.lp-cta.ghost:hover { background: var(--tb-white); border-color: var(--tb-dark); }
.lp-cta.big { min-height: 56px; padding: 0 34px; font-size: 17px; }

/* Menuetaste und aufklappbares Menue -- nur auf schmalen Geraeten sichtbar. */
.lp-burger {
  display: none; width: 46px; height: 46px; padding: 0; cursor: pointer;
  border: 1px solid #dfe4e8; border-radius: var(--tb-r-sm); background: #fff;
}
.lp-burger span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: var(--tb-dark); border-radius: 2px;
}
.lp-mobile { display: none; }

/* --- Hero (mittig, wie im Vorbild) --------------------------------------- */
.lp-hero {
  background: linear-gradient(180deg, #e3eef8 0%, #dcf8fd 34%, #eefafd 66%, #ffffff 100%);
  padding: 74px 0 0; text-align: center;
}
/* Auf die Hero-Ueberschrift eingegrenzt: seit 08.08.2026 laedt auch das
   TenderLayout dieses Stylesheet (fuer Marken und Grundtypografie), und dort
   gibt es andere h1 -- eine ungebundene `.lp h1`-Regel wuerde sie erschlagen. */
.lp-hero h1 {
  font-size: clamp(33px, 4.6vw, 58px); line-height: 1.1; text-wrap: balance;
  max-width: 24ch; margin-inline: auto;
}
.lp-hero h1 em { font-style: normal; color: var(--tb-green); }
.lp-lead {
  margin: 22px auto 0; font-size: 18px; line-height: 1.55;
  color: #2f3b3a; max-width: 56ch;
}
.lp-lead a { color: var(--tb-dark); font-weight: 600; text-decoration: underline; }

/* Suchleiste */
.lp-search {
  display: flex; align-items: center; gap: 0;
  width: min(950px, 100%); margin: 46px auto 0;
  background: #fff; border-radius: 999px; padding: 9px 9px 9px 26px;
  box-shadow: 0 18px 44px -22px rgba(12, 39, 36, .34), 0 0 0 1px rgba(12, 39, 36, .05);
}
/* Drei Felder in einer Pille: Gewerk, Ort, Suchbegriff. Dieselben Parameter
   wie auf den Ausschreibungsseiten (gewerk, ort, q). */
.lp-sf { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; padding-inline: 16px; }
.lp-sf:first-child { padding-inline-start: 0; }
.lp-sf-what { flex: 1.05 1 0; border-inline-end: 1px solid #e7ecec; }
.lp-sf-where { flex: .95 1 0; border-inline-end: 1px solid #e7ecec; }
.lp-sf-q { flex: 1.25 1 0; }
.lp-sf > svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--tb-green); }
.lp-search svg.spark { width: 20px; height: 20px; flex: 0 0 20px; color: #2fc4c9; }
.lp-sf-caret { position: absolute; inset-inline-end: 14px; width: 12px; height: 8px; color: var(--tb-muted); pointer-events: none; }
.lp-search input, .lp-search select {
  flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0;
  font-family: inherit; font-size: 16px; color: var(--tb-dark); background: transparent;
}
.lp-search select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 22px; }
.lp-search input::placeholder { color: #9aa7a6; }
.lp-search button {
  flex: 0 0 48px; margin-inline-start: 10px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #eef2f4; color: var(--tb-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-search button:hover { background: var(--tb-green); color: #fff; }
.lp-search button svg { width: 21px; height: 21px; }

/* Gewerke-Chips */
.lp-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0;
}
.lp-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px;
  background: #e8f7f8; border: 1px solid #d8eef0;
  font-size: 15px; font-weight: 500; color: var(--tb-dark);
}
.lp-chip b { font-weight: 600; color: var(--tb-green); }
.lp-chip:hover { background: #fff; border-color: var(--tb-green); }

/* Breiter Streifen am Hero-Fuss */
.lp-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: #fff; border-radius: var(--tb-r-md); padding: 26px 32px;
  margin-top: 56px; text-align: start;
  box-shadow: 0 24px 60px -34px rgba(12, 39, 36, .4), 0 0 0 1px rgba(12, 39, 36, .04);
}
.lp-strip-txt { flex: 1 1 420px; }
.lp-strip h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; }
.lp-strip h2 span { color: var(--tb-orange); }
.lp-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; }
.lp-strip li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--tb-text); }
.lp-strip li svg { width: 17px; height: 17px; color: var(--tb-orange); flex: 0 0 17px; }
.lp-strip-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-pad { height: 56px; }

/* --- Quellenleiste ------------------------------------------------------- */
.lp-sources { background: var(--tb-white); padding: 54px 0 6px; text-align: center; }
.lp-sources p { color: var(--tb-muted); font-size: 15.5px; max-width: 66ch; margin-inline: auto; }
.lp-src-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin-top: 20px; }
.lp-src { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; color: var(--tb-dark); }
.lp-src::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tb-green-mid); }

/* --- Abschnitte ---------------------------------------------------------- */
.lp-sec { padding: 92px 0; }
.lp-sec.steps { background: linear-gradient(180deg, #ffffff 0%, #eff3f3 46%, #eff3f3 100%); }
.lp-sec.tabs { background: #f6f7f9; }
.lp-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.lp-head.start { text-align: start; margin-inline: 0; }
.lp-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--tb-green); margin-bottom: 14px;
}
.lp-head h2 { font-size: clamp(29px, 3.6vw, 46px); line-height: 1.14; }
.lp-head h2 em { font-style: normal; color: var(--tb-green); }
.lp-head > p { margin-top: 16px; color: var(--tb-muted); font-size: 17px; line-height: 1.6; }

/* --- Schritte (5 Karten in einer Reihe) ---------------------------------- */
.lp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.lp-step {
  background: #f7f9f9; border: 1px solid #e6ecec; border-radius: var(--tb-r-md);
  padding: 26px 20px 28px; text-align: center;
}
.lp-step-ic {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid #e6ecec;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.lp-step-ic svg { width: 24px; height: 24px; color: var(--tb-dark); }
.lp-step-n { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.lp-step:nth-child(1) .lp-step-n { color: var(--tb-s1); }
.lp-step:nth-child(2) .lp-step-n { color: var(--tb-s2); }
.lp-step:nth-child(3) .lp-step-n { color: var(--tb-s3); }
.lp-step:nth-child(4) .lp-step-n { color: var(--tb-s4); }
.lp-step:nth-child(5) .lp-step-n { color: var(--tb-s5); }
.lp-step-tag { display: block; font-size: 13.5px; font-weight: 600; color: #2db04e; margin-bottom: 8px; }
.lp-step h3 { font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.lp-step p { color: var(--tb-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.lp-steps-cta { text-align: center; margin-top: 42px; }

/* --- Vorteilskarten (breite Verlaufskarten) ------------------------------ */
.lp-vals { display: grid; gap: 26px; }
.lp-val {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  border-radius: var(--tb-r-lg); padding: 52px 56px;
  background: linear-gradient(100deg, #eeedf3 0%, #f0e9e5 52%, #f3e5db 100%);
}
.lp-val:nth-child(even) {
  background: linear-gradient(100deg, #e9f2f1 0%, #eef1f6 55%, #eeedf7 100%);
}
.lp-val h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.lp-val > div > p { color: #46514f; font-size: 16.5px; line-height: 1.62; margin-bottom: 0; max-width: 46ch; }
.lp-val ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.lp-val li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--tb-dark); }
.lp-val li svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--tb-green); margin-top: 2px; }

/* --- Reiter -------------------------------------------------------------- */
.lp-tablist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.lp-tab {
  display: flex; align-items: center; gap: 13px; text-align: start;
  padding: 16px 20px; border-radius: var(--tb-r-md);
  border: 1px solid transparent; background: #f3f4f7;
  font-family: inherit; font-size: 16.5px; font-weight: 500; color: var(--tb-dark); cursor: pointer;
}
.lp-tab i {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-tab i svg { width: 20px; height: 20px; color: var(--tb-green); }
.lp-tab[aria-selected='true'] {
  background: #fff; border-color: #e7eaee;
  box-shadow: 0 12px 30px -20px rgba(12, 39, 36, .5);
}
.lp-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch;
}
.lp-panel[hidden] { display: none; }
.lp-panel-vis {
  background: linear-gradient(180deg, #ffffff 0%, #eef7f6 100%);
  border: 1px solid #e7eaee; border-radius: var(--tb-r-md); padding: 30px 32px;
}
.lp-panel-vis ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.lp-panel-vis li {
  padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1px solid #e0e7e6; font-size: 14.5px; color: var(--tb-dark);
}
.lp-panel-vis .lp-kpi {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid #e2eae9;
}
.lp-panel-vis .lp-kpi b { font-size: 38px; font-weight: 700; color: var(--tb-dark); letter-spacing: -.03em; }
.lp-panel-vis .lp-kpi span { font-size: 15px; color: var(--tb-muted); }
.lp-panel-txt {
  background: #fff; border: 1px solid #e7eaee; border-radius: var(--tb-r-md); padding: 32px;
}
.lp-panel-txt .lp-eyebrow { text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 600; }
.lp-panel-txt h3 { font-size: 24px; line-height: 1.24; margin-bottom: 14px; }
.lp-panel-txt p { color: var(--tb-muted); font-size: 16px; line-height: 1.62; }
.lp-panel-txt a { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--tb-green); text-decoration: underline; }

/* --- Abschluss ----------------------------------------------------------- */
.lp-final { background: var(--tb-dark); padding: 88px 0; text-align: center; }
.lp-final h2 { color: #fff; font-size: clamp(29px, 3.6vw, 44px); line-height: 1.14; text-wrap: balance; max-width: 20ch; margin-inline: auto; }
.lp-final p { color: #a8bfbc; font-size: 17.5px; margin: 18px auto 32px; max-width: 62ch; line-height: 1.6; }
.lp-final .lp-cta { background: #fff; color: var(--tb-dark) !important; border-color: #fff; }
.lp-final .lp-cta:hover { background: #e8f7f8; border-color: #e8f7f8; }

/* --- Fusszeile ----------------------------------------------------------- */
.lp-foot { background: var(--tb-bg); padding: 58px 0 34px; border-top: 1px solid var(--tb-border); }
.lp-foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.lp-foot h4 { font-size: 15px; font-weight: 700; color: var(--tb-dark); margin: 0 0 14px; }
.lp-foot a { display: block; font-size: 15px; color: var(--tb-muted); margin-bottom: 11px; }
.lp-foot a:hover { color: var(--tb-green); }
.lp-foot .lp-logo { margin-bottom: 14px; }
.lp-foot-note { color: var(--tb-muted); font-size: 14.5px; line-height: 1.6; max-width: 36ch; }
.lp-foot-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--tb-border);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 13.5px; color: var(--tb-muted);
}

/* --- Schmale Bildschirme ------------------------------------------------- */
@media (max-width: 1080px) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-tablist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lp-menu { display: none; }
  .lp-nav-btns { display: none; }
  .lp-burger { display: block; margin-inline-start: auto; }
  .lp-mobile:not([hidden]) {
    display: block; border-top: 1px solid #eef1f3; background: #fff;
    padding: 10px min(20px, 5vw) 18px;
  }
  .lp-mobile a {
    display: block; padding: 13px 2px; font-size: 16.5px;
    color: var(--tb-dark); border-bottom: 1px solid #f0f3f4;
  }
  .lp-mobile a.lp-cta {
    display: flex; justify-content: center; margin-top: 14px;
    border-bottom: 0; color: #fff !important;
  }
  .lp-mobile a:last-child { border-bottom: 0; }
  .lp-val { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; border-radius: var(--tb-r-md); }
  .lp-panel { grid-template-columns: 1fr; }
  .lp-strip { text-align: center; justify-content: center; }
  .lp-strip ul { justify-content: center; }
  .lp-strip-btns { width: 100%; justify-content: center; }
}
@media (max-width: 820px) {
  /* Auf schmalen Geraeten stapeln die drei Felder; der Knopf wird breit. */
  .lp-search { flex-direction: column; align-items: stretch; border-radius: var(--tb-r-md); padding: 10px; }
  .lp-sf, .lp-sf:first-child { padding-inline: 14px; border-inline-end: 0; border-bottom: 1px solid #e7ecec; }
  .lp-sf-q { border-bottom: 0; }
  .lp-search button {
    flex: 0 0 auto; width: 100%; height: 50px; border-radius: var(--tb-r-sm);
    margin: 8px 0 0; background: var(--tb-green); color: #fff;
  }
}
@media (max-width: 720px) {
  .lp-hero { padding-top: 48px; }
  .lp-sec { padding: 64px 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-search { padding-inline-start: 18px; }
  .lp-final { padding: 64px 0; }
  .lp-foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .lp-tablist { grid-template-columns: 1fr; }
  .lp-foot-cols { grid-template-columns: 1fr; }
  .lp-val { padding: 30px 22px; }
}
