/* ==========================================================================
   TSC Berghaus – Onepager
   Designsystem: Industrie / technisches Datenblatt
   Farben:  Anthrazit #20262e | Stahlgrau #3c4653 | Logo-Grün #94ba0f
            Hellgrau #f2f4f6  | Linien #d8dee4
   Schrift: Barlow Condensed (Display) / Barlow (Fließtext) – lokal gehostet
   ========================================================================== */

/* ---- Schriften (lokal) -------------------------------------------------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-condensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}

/* ---- Token ---------------------------------------------------------------- */
:root {
  --tsc-ink: #20262e;
  --tsc-steel: #3c4653;
  --tsc-steel-dark: #2d353f;
  --tsc-signal: #94ba0f;
  --tsc-signal-dark: #76940c;
  --tsc-signal-ink: #1e2405;
  --tsc-bg: #f2f4f6;
  --tsc-line: #d8dee4;
  --tsc-muted: #5b6674;
  --tsc-radius: 2px;

  --bs-primary: var(--tsc-steel);
  --bs-body-font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--tsc-ink);
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--tsc-ink);
  background: #fff;
}

/* Anker liegen unter der fixen Navbar */
section[id] {
  scroll-margin-top: 72px;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---- Technik-Eyebrow (Signatur: Datenblatt-Beschriftung) ----------------- */
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tsc-signal);
}
.tech-label::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--tsc-signal);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700;
  margin: .35rem 0 0;
}
.section-head .lead {
  color: var(--tsc-muted);
  max-width: 46rem;
}

/* ---- Navbar --------------------------------------------------------------- */
.navbar-tsc {
  background: rgba(32, 38, 46, .96);
  transition: box-shadow .2s ease, background .2s ease;
}
.navbar-tsc.is-scrolled {
  background: rgba(32, 38, 46, 1);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.navbar-tsc .navbar-brand img {
  height: 40px;
  width: auto;
  background: #fff;
  padding: 3px 8px;
  border-radius: var(--tsc-radius);
}
.navbar-tsc .nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cfd6dd;
  padding: .55rem .85rem;
  border-bottom: 2px solid transparent;
}
.navbar-tsc .nav-link:hover,
.navbar-tsc .nav-link:focus {
  color: #fff;
}
.navbar-tsc .nav-link.active {
  color: #fff;
  border-bottom-color: var(--tsc-signal);
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('../img/hero-silos.webp') center right / cover no-repeat;
  background-color: #12181f;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Bild ist links bereits dunkel – nur leicht nachdunkeln für Textkontrast */
  background: linear-gradient(100deg, rgba(10, 14, 19, .55) 0%, rgba(10, 14, 19, .25) 50%, rgba(10, 14, 19, 0) 75%);
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero .tech-label {
  color: #c8e15c;
}
.hero .tech-label::before {
  background: var(--tsc-signal);
}
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  max-width: 26ch;
}
.hero h1 .accent {
  color: #c8e15c;
}
.hero p.hero-sub {
  color: #dbe4ec;
  font-size: 1.15rem;
  max-width: 40rem;
}
.hero .btn {
  min-width: 12rem;
}

/* Kennzahlen im Hero */
.hero-facts {
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: #cfd9e2;
}
.hero-facts .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.hero-facts .lbl {
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  border-radius: var(--tsc-radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 1.02rem;
  padding: .6rem 1.4rem;
}
.btn-signal {
  background: var(--tsc-signal);
  border-color: var(--tsc-signal);
  color: var(--tsc-signal-ink);
}
.btn-signal:hover, .btn-signal:focus {
  background: var(--tsc-signal-dark);
  border-color: var(--tsc-signal-dark);
  color: #fff;
}
.btn-outline-light:hover {
  color: var(--tsc-ink);
}
.btn-steel {
  background: var(--tsc-steel);
  border-color: var(--tsc-steel);
  color: #fff;
}
.btn-steel:hover, .btn-steel:focus {
  background: var(--tsc-steel-dark);
  border-color: var(--tsc-steel-dark);
  color: #fff;
}

/* ---- Sektionen --------------------------------------------------------------- */
.section {
  padding: 5.5rem 0;
}
.section-alt {
  background: var(--tsc-bg);
}
.section-dark {
  background: var(--tsc-ink);
  color: #d8dfe6;
}
.section-dark h2, .section-dark h3 {
  color: #fff;
}

/* ---- Karten (Produkte) -------------------------------------------------------- */
.card-tsc {
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card-tsc::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--tsc-signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  z-index: 1;
}
.card-tsc:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(32, 38, 46, .12);
}
.card-tsc:hover::before {
  transform: scaleX(1);
}
.card-tsc .ratio img {
  object-fit: cover;
}
.card-tsc .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.75rem 1.5rem 1.5rem;
}
.card-tsc .card-title {
  font-size: 1.32rem;
  font-weight: 600;
  hyphens: auto;
  overflow-wrap: break-word;
  margin-bottom: .75rem;
}
.card-tsc .card-text {
  color: var(--tsc-muted);
  font-size: .95rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}
.card-tsc .btn {
  align-self: flex-start;
}

/* ---- Leistungs-Teaser ----------------------------------------------------------- */
.service-item {
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  background: #fff;
  padding: 1.6rem 1.5rem;
  height: 100%;
}
.service-item .icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tsc-steel);
  color: #fff;
  font-size: 1.25rem;
  border-radius: var(--tsc-radius);
  margin-bottom: 1rem;
}
.service-item h3 {
  font-size: 1.25rem;
}
.service-item p {
  color: var(--tsc-muted);
  font-size: .95rem;
  margin: 0;
}

/* ---- Unternehmen / Timeline ------------------------------------------------------- */
.portrait-frame {
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  padding: .5rem;
  background: #fff;
  max-width: 280px;
}
.portrait-frame img {
  width: 100%;
  border-radius: var(--tsc-radius);
}
.portrait-frame figcaption {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .92rem;
  color: var(--tsc-muted);
  padding: .6rem .35rem .2rem;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--tsc-line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.15rem 1.4rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .42rem;
  width: 10px;
  height: 10px;
  background: var(--tsc-signal);
  border-radius: 50%;
}
.timeline .t-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.timeline .t-sub {
  color: var(--tsc-muted);
  font-size: .95rem;
}

/* ---- Branchen ------------------------------------------------------------------------ */
.branche-tile {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tsc-radius);
  padding: 1.5rem 1.4rem;
  height: 100%;
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s ease, background .18s ease;
}
.branche-tile:hover {
  border-color: var(--tsc-signal);
  background: rgba(255, 255, 255, .06);
}
.branche-tile i {
  color: var(--tsc-signal);
  font-size: 1.6rem;
}
.branche-tile h3 {
  font-size: 1.3rem;
  margin: .8rem 0 .35rem;
}
.branche-tile p {
  color: #a9b4bf;
  font-size: .92rem;
  margin: 0;
}

/* ---- Referenzen -------------------------------------------------------------------------- */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}
.partner-logos .p-logo {
  flex: 1 1 140px;
  max-width: 180px;
  min-height: 76px;
  background: #fff;
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
}
.partner-logos .p-logo img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .18s ease, opacity .18s ease;
}
.partner-logos .p-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Projektliste im Datenblatt-Stil */
.ref-table {
  border-top: 2px solid var(--tsc-ink);
}
.ref-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--tsc-line);
  align-items: baseline;
}
.ref-row .year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tsc-signal);
}
.ref-row .proj {
  font-weight: 500;
}
.ref-row .client {
  color: var(--tsc-muted);
  font-size: .92rem;
  text-align: right;
}
@media (max-width: 575.98px) {
  .ref-row {
    grid-template-columns: 4rem 1fr;
  }
  .ref-row .client {
    grid-column: 2;
    text-align: left;
  }
}

/* ---- Kontakt --------------------------------------------------------------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  padding: 2rem;
  height: 100%;
}
.contact-card .icon {
  width: 2.6rem;
  height: 2.6rem;
  background: var(--tsc-bg);
  color: var(--tsc-steel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tsc-radius);
  font-size: 1.1rem;
}
.contact-card a {
  color: var(--tsc-steel);
  text-decoration: none;
  font-weight: 500;
}
.contact-card a:hover {
  color: var(--tsc-signal);
}

/* ---- Modals (Datenblatt-Stil) ------------------------------------------------ */
.modal-tsc .modal-content {
  border-radius: var(--tsc-radius);
  border: none;
}
.modal-tsc .modal-header {
  background: var(--tsc-ink);
  color: #fff;
  border-radius: 0;
  border-bottom: 3px solid var(--tsc-signal);
  padding: 1.25rem 2.25rem;
}
.modal-tsc .modal-body {
  padding: 2.25rem;
}
@media (max-width: 575.98px) {
  .modal-tsc .modal-header { padding: 1rem 1.25rem; }
  .modal-tsc .modal-body { padding: 1.25rem; }
}
.modal-tsc .modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.modal-tsc .modal-header .btn-close {
  filter: invert(1) grayscale(1);
}
.modal-tsc h4 {
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--tsc-steel);
  border-bottom: 1px solid var(--tsc-line);
  padding-bottom: .4rem;
  margin: 1.4rem 0 .8rem;
}
.modal-tsc h4:first-child {
  margin-top: 0;
}
.modal-tsc ul.spec {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}
.modal-tsc ul.spec li {
  padding: .22rem 0 .22rem 1.4rem;
  position: relative;
  break-inside: avoid;
  font-size: .95rem;
}
.modal-tsc ul.spec li::before {
  content: "\f00c";
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--tsc-signal);
  font-size: .8rem;
  top: .38rem;
}
@media (max-width: 575.98px) {
  .modal-tsc ul.spec { columns: 1; }
}
.modal-tsc .modal-img {
  border: 1px solid var(--tsc-line);
  border-radius: var(--tsc-radius);
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ---- Footer -------------------------------------------------------------------- */
.footer {
  background: #171c22;
  color: #97a2ad;
  font-size: .92rem;
}
.footer a {
  color: #cfd6dd;
  text-decoration: none;
}
.footer a:hover {
  color: var(--tsc-signal);
}
.footer .brandline {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
}

/* ---- Nach-oben-Button ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  width: 2.8rem;
  height: 2.8rem;
  border: none;
  border-radius: var(--tsc-radius);
  background: var(--tsc-signal);
  color: var(--tsc-signal-ink);
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.back-to-top.show {
  display: inline-flex;
}
.back-to-top:hover {
  background: var(--tsc-signal-dark);
  color: #fff;
}

/* ---- Unterseiten (Impressum / Datenschutz) ----------------------------------------- */
.subpage-header {
  background: var(--tsc-ink);
  padding: 7.5rem 0 3rem;
  color: #fff;
}
.subpage-main h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}
.subpage-main {
  padding: 3rem 0 5rem;
}

/* Sichtbarer Tastatur-Fokus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--tsc-signal);
  outline-offset: 2px;
}
