/* fit4heat — Farben aus der bestehenden onepage.me-Seite übernommen:
   Türkis #15b0bb (Marke), helles Türkis #e3fafb (Flächen), Gelb #f7c10b (Akzent/Hitze),
   Dunkel #303036 (Text und dunkle Sektionen). */
:root {
  --brand: #15b0bb;
  --brand-dark: #0e8b94;
  --tint: #e3fafb;
  --accent: #f7c10b;
  --ink: #303036;
  --ink-soft: #5a5a63;
  --line: #e4e6e8;
  --bg: #ffffff;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--brand-dark); }
.nav__cta { color: #fff !important; }
.navtoggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.navtoggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .97rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .18s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--brand); color: var(--brand-dark); background: transparent; }
.btn--ghost:hover { background: var(--tint); }
.btn--lg { padding: 15px 30px; font-size: 1.03rem; }
.btn--block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--tint) 0%, #fff 70%); padding: 64px 0 72px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .78rem;
  font-weight: 700; color: var(--brand-dark); margin-bottom: 14px; }
.eyebrow--light { color: var(--accent); }
.hl { color: var(--brand-dark); }
.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 34em; }
.kicker { font-weight: 600; color: var(--brand-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 30px; }
.stat { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.stat strong { font-size: 1.5rem; color: var(--ink); display: inline-block; margin-right: 8px; }
.hero__media { margin: 0; }
.hero__media img { border-radius: 22px; box-shadow: 0 24px 60px rgba(21,176,187,.22); object-fit: cover; }

/* ---------- Sektionen ---------- */
.section { padding: 76px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h2 { color: #fff; }
.section__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 62ch; margin-bottom: 40px; }
.section--dark .section__lead { color: #c9cad0; }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.fact { background: #fff; border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--accent); }
.fact h3 { color: var(--brand-dark); }
.fact p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.svc__no { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .1em;
  color: var(--brand); margin-bottom: 10px; }
.svc p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Team ---------- */
.person { background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; }
.person__photo { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--tint); }
.person h3 { margin: 20px 22px 4px; }
.person__role { margin: 0 22px 12px; font-size: .87rem; color: var(--brand-dark); font-weight: 600; }
.person__more { margin: 0 22px 22px; }
.person__more summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); font-size: .93rem; }
.person__more p { font-size: .93rem; color: var(--ink-soft); margin-top: 12px; }
.person__skills { font-size: .9rem; color: var(--ink-soft); }
.person__skills li { margin-bottom: 4px; }

/* ---------- Fachwissen ---------- */
.articles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article a { display: block; background: var(--tint); border-radius: var(--radius); padding: 22px 24px;
  text-decoration: none; color: var(--ink); border-left: 4px solid var(--brand); transition: .18s; }
.article a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,176,187,.18); }
.article__title { display: block; font-weight: 700; }
.article__sub { display: block; font-size: .93rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Quick Check ---------- */
.qc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.qc__item { background: rgba(255,255,255,.07); border-radius: var(--radius); }
.qc summary { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px;
  cursor: pointer; font-weight: 600; list-style: none; }
.qc summary::-webkit-details-marker { display: none; }
.qc__no { color: var(--accent); font-weight: 800; flex: 0 0 auto; }
.qc__body { padding: 0 24px 22px 64px; color: #c9cad0; font-size: .96rem; }
.qc__body strong { color: #fff; }
.qc__cta { color: var(--accent); font-weight: 600; }

/* ---------- Angebote ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.offer { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: #fff; box-shadow: 0 2px 10px rgba(48,48,54,.04); }
.offer__kind { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem;
  font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.offer__label { font-weight: 700; margin: 18px 0 6px; font-size: .92rem; }
.offer ul { font-size: .94rem; color: var(--ink-soft); }
.offer__intro { color: var(--ink-soft); }
.offer__facts { display: grid; gap: 8px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.offer__facts > div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.offer__facts dt { color: var(--ink-soft); margin: 0; }
.offer__facts dd { margin: 0; font-weight: 600; text-align: right; }
.offer__hint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__person { display: flex; align-items: center; gap: 14px; }
.contact__person img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.contact__form { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.contact__lead { color: var(--ink-soft); }
.contact__form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.contact__form input[type=text], .contact__form input[type=email], .contact__form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .87rem !important; }
.check input { margin-top: 4px; }
.formstatus { margin: 12px 0 0; font-size: .92rem; min-height: 1.4em; }
.formstatus[data-state="error"] { color: #b3261e; }
.formstatus[data-state="ok"] { color: var(--brand-dark); }

/* ---------- Fußzeile ---------- */
.footer { background: var(--ink); color: #c9cad0; padding: 56px 0 40px; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer nav { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 900px) {
  .hero__inner, .contact, .grid--3, .grid--4, .offers, .articles, .footer__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .navtoggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 14px; border-bottom: 0; }
  .qc__body { padding-left: 24px; }
}

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

/* ---------- Fachartikel (/fachwissen/) ---------- */
.wrap--narrow { max-width: 760px; }
.fachnav { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 40px; }
.fachnav li { margin-bottom: 10px; break-inside: avoid; }
.fachnav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.fachnav a:hover { color: var(--brand-dark); text-decoration: underline; }
.fachartikel { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.fachartikel:last-of-type { border-bottom: 0; }
.fachartikel h2 { scroll-margin-top: 90px; }
.fachartikel__sub { font-size: 1.08rem; color: var(--brand-dark); font-weight: 600; margin-top: -.3em; }
.fachartikel p { color: var(--ink-soft); }
.fachartikel ul { color: var(--ink-soft); }
/* Der Schlusssatz jedes Artikels ist die eigentliche Botschaft — er darf nicht wie Fließtext aussehen. */
.fachartikel__cta { border-left: 4px solid var(--brand); background: var(--tint);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink) !important; }
.fachartikel__top { font-size: .88rem; }
.fachartikel__top a { text-decoration: none; }
.fachartikel__literatur { text-align: center; font-weight: 600; }
@media (max-width: 700px) { .fachnav { columns: 1; } }
/* Sichtbarer Entwurfshinweis auf Impressum und Datenschutz — die Seiten dürfen so nicht live gehen. */
.entwurf { background: #fff6d8; border-left: 4px solid var(--accent); padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Bild-/Text-Abschnitte ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { margin: 0; }
.split__media img { border-radius: 22px; box-shadow: 0 18px 44px rgba(48,48,54,.16);
  object-fit: cover; width: 100%; max-height: 460px; }
.split__text .section__lead { margin-bottom: 0; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__media { order: 0; }
}
/* Das echte Logo trägt seinen Namen selbst — die Wortmarke daneben wäre doppelt. */
.brand img { height: 46px; width: auto; }
.footer img { height: 52px; width: auto; }

/* ---------- Team als Spur statt Liste ---------- */
.teamhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.teamnav { display: flex; gap: 10px; flex: 0 0 auto; margin-bottom: 40px; }
.teamnav__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--brand);
  background: #fff; color: var(--brand-dark); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: .18s; }
.teamnav__btn:hover:not(:disabled) { background: var(--brand); color: #fff; }
.teamnav__btn:disabled { opacity: .35; cursor: default; }
.teamnav__btn--pause { font-size: .95rem; letter-spacing: -1px; }
.teamnav__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* Die Spur scrollt waagrecht und rastet je Karte ein. `scroll-padding` sorgt dafür, dass die
   erste Karte nicht am Rand klebt, wenn man zurückblättert. */
.teamtrack {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px);
  gap: 26px; overflow-x: auto; padding: 4px 2px 22px; margin: 0 -2px;
  scrollbar-width: thin; scrollbar-color: var(--brand) transparent;
}
/* Kein `scroll-snap`: Einrasten und stetiges Rollieren schließen einander aus — die Spur
   würde bei jedem Bildaufbau in die nächste Karte gezogen und ruckelte statt zu fließen.
   `scroll-behavior: smooth` steht aus demselben Grund nur an den Pfeilen (scrollBy). */
.teamtrack::-webkit-scrollbar { height: 8px; }
.teamtrack::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
.teamtrack::-webkit-scrollbar-track { background: rgba(48,48,54,.08); border-radius: 4px; }
/* Eine Karte in der Spur wächst nicht mit dem Text: sonst wären sieben Karten sieben Höhen. */
.teamtrack .person__more[open] { max-height: 340px; overflow-y: auto; }
.teamhint { font-size: .86rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 700px) {
  .teamhead { flex-direction: column; align-items: stretch; }
  .teamnav { margin-bottom: 24px; }
  .teamtrack { grid-auto-columns: 82%; }
}
/* Wer Bewegung abgeschaltet hat, bekommt die Rollierung gar nicht erst (das Skript prüft
   dieselbe Einstellung) — hier bleibt nur die Spur, die man selbst bewegt. */
