/* TRANSPORT BRIDGE — additions for the multi-page site.
   The approved design lives untouched in style.css; this file only adapts it to real links
   and styles the new pieces (form, skip link) with the same palette and components. */

/* Buttons from the mockup became links: keep their exact look. */
a.brand, a.nav-link, a.area-card, a.primary-button,
a.infra-home-btn, a.log-back, a.dig-back, a.sp-back, a.soc-back { text-decoration: none; }
a.infra-home-btn, a.log-back, a.dig-back, a.sp-back, a.soc-back { display: inline-flex; align-items: center; justify-content: center; }
a.brand { color: inherit; }
.infra-breadcrumb a { color: inherit; text-decoration: none; }
.infra-breadcrumb a:hover, .infra-breadcrumb a:focus-visible { color: #fff; }

/* Sticky header on new inner pages, like the approved direction pages. */
.page.show-sub .site-header { position: sticky; top: 0; }

/* Accessibility: skip link, visible only on keyboard focus. */
.tb-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: #0d1d2a; color: #f3d18c; border: 1px solid #e8be6c; border-radius: 5px; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.tb-skip:focus { top: 10px; }

/* Directions page reuses the home "areas" block. */
.tb-areas { padding-top: 28px; padding-bottom: 10px; }

/* About page metrics strip inside a container. */
.tb-metrics { padding-left: 0; padding-right: 0; margin-top: 30px; }

/* "Section in preparation" panel (infra-vision without image). */
.tb-prep { grid-template-columns: 1fr; }
.tb-vision-action { margin-top: 22px !important; }

/* Company contact details (rendered only when filled in config/site.config.json). */
.tb-contacts { display: grid; gap: 14px; }
.tb-contact-row { display: grid; gap: 4px; }
.tb-contacts dt { color: #e6bd71; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tb-contacts dd { margin: 0; color: #f6f7fa; }
.tb-contacts a { color: #f5c767; text-decoration: none; }
.tb-contacts a:hover, .tb-contacts a:focus-visible { text-decoration: underline; }

/* Contact form — card colours of .infra-card, button = approved .primary-button. */
.tb-form-wrap { padding-bottom: 10px; }
.tb-form { background: linear-gradient(145deg, #11283d, #071622); border: 1px solid #9e854e83; border-radius: 11px; box-shadow: 0 14px 40px #0006; padding: 28px; display: grid; gap: 18px; }
.tb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tb-field { display: grid; gap: 8px; color: #e6bd71; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tb-field input, .tb-field textarea { font: inherit; font-size: 15px; letter-spacing: normal; text-transform: none; color: #f6f7fa; background: #081521; border: 1px solid rgba(201, 155, 65, .45); border-radius: 6px; padding: 12px 14px; width: 100%; }
.tb-field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.tb-field input:focus, .tb-field textarea:focus { outline: 2px solid #f5c767; outline-offset: 1px; border-color: #f5c767; }
.tb-consent { display: flex; gap: 12px; align-items: flex-start; color: #cbd5de; font-size: 14px; line-height: 1.55; }
.tb-consent input { margin-top: 4px; accent-color: #c99b41; width: 18px; height: 18px; flex-shrink: 0; }
.tb-consent a { color: #f5c767; }
.tb-form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tb-form-actions .primary-button:disabled { opacity: .6; cursor: wait; }
.tb-form-status { margin: 0; color: #f0c16c; font-size: 14px; line-height: 1.5; }
.tb-form-status.ok { color: #9fdcaa; }
.tb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Long translations (e.g. DE "ÜBER DAS UNTERNEHMEN") must not overflow narrow phones. */
/* Home "about" button on narrow phones: the one-line label of the mockup would be cut off by the
   screen edge (EN "ABOUT THE COMPANY" below 387px, DE "ÜBER DAS UNTERNEHMEN" below 445px).
   Only the label (25px in the mockup) scales down so the button stays on one line and ends at the
   12px gutter of the header; padding, height, arrow, colours and position are those of the mockup.
   Label width ≈ 12.5 × font-size (EN) / 14.8 × font-size (DE); 88px = 25px left offset + 12px gutter
   + 51px padding, gap and arrow. Wider screens are untouched. */
@media (max-width: 386px) {
  html[lang="en"] .intro .primary-button span:first-child { font-size: clamp(14px, calc((100vw - 88px) / 12.5), 25px); }
}
@media (max-width: 444px) {
  html[lang="de"] .intro .primary-button span:first-child { font-size: clamp(14px, calc((100vw - 88px) / 14.8), 25px); }
}

@media (max-width: 640px) {
  .tb-form { padding: 20px; }
  .tb-form-grid { grid-template-columns: 1fr; }
  .tb-form-actions .primary-button { width: 100%; }
}
