/* ==========================================================================
   BTS – Bilinski Turbinen Service GmbH
   Stylesheet für die statische, dreisprachige Website
   ========================================================================== */

:root {
  --green: #17984f;
  --green-dark: #0f7a3e;
  --green-soft: #e8f5ee;
  --ink: #0f212c;
  --ink-soft: #1b3644;
  --slate: #506875;
  --line: #dde5e8;
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --white: #ffffff;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 33, 44, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 33, 44, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------- Basis ------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c7d6dd; }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}

.lead { font-size: 1.15rem; color: var(--slate); }
.section--dark .lead { color: #a9bfc9; }

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head--center { margin-inline: auto; text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* --------------------------------------------------------- Buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }

.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

.btn--outline { border-color: var(--green); color: var(--green-dark); background: #fff; }
.btn--outline:hover { background: var(--green); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------- Header ------ */

.topbar {
  background: var(--ink);
  color: #b9ccd5;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
}
.topbar a { color: #dbe7ec; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.topbar__item svg { width: 16px; height: 16px; flex: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}
.logo { display: inline-block; }
.logo img { width: clamp(190px, 24vw, 265px); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  white-space: nowrap;
}
.nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); }

.nav-tools { display: flex; align-items: center; gap: 12px; }

/* Sprachumschalter */
.langs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.langs a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--slate);
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--green); color: #fff; }

.burger {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 4px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 22px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--green);
    background: var(--green-soft);
  }
  .header .wrap { position: relative; }
}

/* --------------------------------------------------------- Hero -------- */

.hero {
  position: relative;
  color: #fff;
  background: var(--ink) center / cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 26, 35, .88) 0%, rgba(9, 26, 35, .68) 45%, rgba(9, 26, 35, .3) 100%);
  z-index: -1;
}
.hero .wrap {
  padding-block: clamp(70px, 11vw, 150px);
  max-width: 1180px;
}
.hero__inner { max-width: 720px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #6fdb9d; }
.hero__text {
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  color: #d7e5ea;
  margin-bottom: 2rem;
}

.hero--page {
  background-image: url(../img/adobestock-224430241.webp);
  background-position: center 35%;
}
.hero--page::after {
  background: linear-gradient(100deg, rgba(9, 26, 35, .95) 0%, rgba(9, 26, 35, .86) 55%, rgba(9, 26, 35, .6) 100%);
}
.hero--page .wrap { padding-block: clamp(52px, 7vw, 96px); }
.hero--page h1 { margin-bottom: .35em; }
.hero--page .hero__text { margin-bottom: 0; }

/* Kennzahlen-Leiste */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats__item { background: #fff; padding: 28px 24px; text-align: center; }
.stats__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.1;
}
.stats__label { font-size: .95rem; color: var(--slate); }

/* --------------------------------------------------------- Cards ------- */

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--slate); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }

.card ul,
.prose ul { margin: 0; padding-left: 1.15em; color: var(--slate); }
.card li,
.prose li { margin-bottom: .4em; }

/* Split-Bereich Text + Bild */
.split {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.split--reverse .split__media { order: -1; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 720px) {
  .split--reverse .split__media { order: 0; }
}

/* --------------------------------------------------------- Tabelle ----- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
th, td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--green-soft);
  color: var(--ink);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: .92rem; color: var(--slate); margin-top: 14px; }

/* --------------------------------------------------------- Akkordeon --- */

.acc { border-top: 1px solid var(--line); }
.acc details {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 1.3rem;
  line-height: 1;
}
.acc details[open] summary::after { content: "–"; }
.acc__body { padding: 0 4px 24px; color: var(--slate); max-width: 900px; }
.acc__source { font-size: .85rem; color: #7c909b; }

/* --------------------------------------------------------- Jobs -------- */

.job {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.job:last-child { margin-bottom: 0; }
.job__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 700;
}
.job__cols {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
}
.job__col h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green-dark);
  margin-bottom: .7em;
}
.job__col ul { margin: 0; padding-left: 1.15em; color: var(--slate); }
.job__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------- Kontakt ----- */

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-list__label { display: block; font-size: .82rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(23, 152, 79, .18); }
.form-note { font-size: .86rem; color: var(--slate); margin-top: 14px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--slate); }
.form-check input { width: auto; margin-top: 5px; }

/* CTA-Band */
.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  display: grid;
  gap: 26px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .9); margin: 0; }
@media (max-width: 780px) {
  .cta-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- Prose ------- */

.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose a { word-break: break-word; }

/* --------------------------------------------------------- Footer ------ */

.footer {
  background: var(--ink);
  color: #a9c0cb;
  padding: clamp(48px, 6vw, 76px) 0 0;
  font-size: .97rem;
}
.footer a { color: #d8e6eb; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 48px;
}
.footer__logo { width: 78px; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6em; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: .9rem;
}

/* --------------------------------------------------------- Utilities --- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media print {
  .header, .topbar, .footer, .cta-band, .burger { display: none; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------- Formular-Status --- */

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
}
.form-status--pending { background: var(--bg-soft); color: var(--slate); }
.form-status--ok { background: var(--green-soft); color: var(--green-dark); }
.form-status--error { background: #fdecec; color: #a32222; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
