/* ==========================================================================
   Alfred Kaut GmbH & Co. – Basis-Stylesheet
   Farben und Schrift laut Styleguide Web 2026
   Regel: Auf hellem Grund dunkles Blau (Blau 1), auf dunklem Grund helles
   Blau (Blau 2). Ausnahme: Hauptmenü.
   ========================================================================== */

/* Schrift lokal eingebunden (DSGVO) – Cabin, SIL Open Font License 1.1, siehe fonts/OFL-Cabin.txt */
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cabin-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cabin-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cabin-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cabin-latin-700-normal.woff2") format("woff2");
}

:root {
  --blau-1: #0e4194;      /* Dunkles Blau – auf hellem Grund */
  --blau-2: #2896ff;      /* Helles Blau – auf dunklem Grund, Aktiv-Leiste */
  --dunkelgrau: #3c3c3c;
  --rot: #e30613;
  --weiss: #ffffff;

  --schwarz-topbar: #2a2a2a;
  --grau-hell: #f4f5f7;
  --grau-linie: #e3e5e8;
  --text: #3c3c3c;
  --text-hell: #6b6f75;

  --font: "Cabin", Arial, Helvetica, sans-serif;
  /* Maße angelehnt an kaut-hitachi.de */
  --container: 1488px;    /* inkl. 20px Innenabstand = 1448px Inhalt */
  --radius: 20px;
  --schatten: 0 4px 14px rgba(0, 0, 0, .09);
  --sperrung: .085em;     /* Laufweite Navigation */
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;  /* Footer immer am Seitenende */
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--weiss);
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau-1); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--dunkelgrau); }
h1 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.21; }  /* 52/63 */
h2 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); }
main p { font-size: 18px; line-height: 1.4; }  /* Fließtext 18/25 */
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blau-1); color: var(--weiss); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--schwarz-topbar);
  color: var(--weiss);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--sperrung);
}
.topbar .container { display: flex; align-items: stretch; justify-content: space-between; }
.topbar a { color: var(--weiss); text-decoration: none; }
.topbar a:hover { color: var(--blau-2); }
.topbar__phone { display: flex; align-items: center; gap: 6px; min-height: 56px; color: var(--blau-2) !important; }
.topbar__phone svg { width: 14px; height: 14px; }
.topbar__links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.topbar__zielgruppen { display: flex; list-style: none; margin: 0; padding: 0; background: #111; }
.topbar__zielgruppen a { display: block; padding: 10px 28px; }

/* ---------- Header / Hauptnavigation ---------- */
.header {
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-linie);
  position: sticky; top: 0; z-index: 50;
}
.header .container { display: flex; align-items: stretch; min-height: 80px; }
.header__logo { display: flex; align-items: center; padding-right: 28px; }
.header__logo img { width: 153px; }

.nav { flex: 1; display: flex; justify-content: flex-end; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: flex; align-items: center; height: 100%;
  padding: 0 20px;
  font-size: 14px;
  letter-spacing: var(--sperrung);
  color: var(--dunkelgrau);
  text-decoration: none;
  position: relative;
  transition: background .2s, color .2s;
}
.nav__list a:hover { color: var(--blau-1); }
/* Aktive Seite: helle Aktiv-Leiste unten */
.nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px; background: var(--blau-2);
}
/* Hervorgehobener Menüpunkt (Hauptmenü-Ausnahme) */
.nav__list a.nav__highlight { background: var(--blau-1); color: var(--weiss); font-weight: 600; }
.nav__list a.nav__highlight:hover { background: #0b3478; }

.header__tools { display: flex; list-style: none; margin: 0; padding: 0; }
.header__tools a {
  display: flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 18px; border-left: 1px solid var(--grau-linie);
  font-size: 14px; color: var(--dunkelgrau); text-decoration: none;
}
.header__tools a:hover { color: var(--blau-1); }
.header__tools svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; margin-left: auto; align-self: center;
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--dunkelgrau);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: 1920px;  /* wie kaut-hitachi.de: auf breiten Schirmen mittig begrenzt */
  margin: 0 auto;
  color: var(--weiss);
  background: var(--dunkelgrau) url("../img/Header_Klima_01_1920x600.webp") center / cover no-repeat;
  padding: 110px 0 190px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,30,30,.85) 0%, rgba(30,30,30,.55) 55%, rgba(30,30,30,.2) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--weiss); max-width: 704px; margin-bottom: 16px; }
.hero__text {
  max-width: 704px;
  border-left: 6px solid var(--blau-2);
  padding-left: 12px;
  margin-bottom: 36px;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 30px;
  font-family: var(--font); font-size: 18px; font-weight: 400; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--blau-2); color: var(--weiss); }
.btn--primary:hover { background: #1580e6; }
.btn--outline { border-color: rgba(255,255,255,.8); color: var(--weiss); }
.btn--outline:hover { background: var(--weiss); color: var(--dunkelgrau); }
.btn--dunkel { background: var(--blau-1); color: var(--weiss); }
.btn--dunkel:hover { background: #0b3478; }

.link-pfeil {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 18px; font-weight: 500; color: var(--blau-1); text-decoration: none;
}
.link-pfeil::after { content: "→"; transition: transform .2s; }
.link-pfeil:hover::after { transform: translateX(4px); }

/* ---------- Karten über dem Hero ---------- */
.intro-cards { margin-top: -120px; position: relative; z-index: 2; }
.card-grid { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 52px 40px 60px;
  display: flex; flex-direction: column;
}
.card h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 700; line-height: 1.22; margin-bottom: 40px; }  /* 36/44 */
.card__text {
  border-left: 3px solid var(--blau-1);
  padding-left: 22px;
  flex: 1;
}

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; }
.section--grau { background: var(--grau-hell); }
.section__head { text-align: center; max-width: 1180px; margin: 0 auto 60px; }
.section__head h2 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 400; line-height: 1.21; }  /* 48/58 */
.section__head p { color: var(--text-hell); }

/* Text + Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
.akzent-text { border-left: 3px solid var(--blau-1); padding-left: 14px; }

/* Produktkacheln */
.tile-grid { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.tile {
  background: var(--weiss); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--schatten); text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
a.tile:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile__body { padding: 28px 32px 36px; }
.tile__body h3 { color: var(--blau-1); font-size: clamp(1.4rem, 1.8vw, 1.75rem); font-weight: 700; line-height: 1.21; margin-bottom: 16px; }  /* 28/34 */
.tile__body p { margin: 0; color: var(--text-hell); }

/* News */
.news-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.news img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 18px; }
.news__datum { font-size: 13px; color: var(--text-hell); margin-bottom: 4px; }

/* Kontaktstreifen (dunkler Grund → helles Blau) */
.kontakt-streifen { background: var(--blau-1); color: var(--weiss); padding: 48px 0; }
.kontakt-streifen .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.kontakt-streifen h2 { color: var(--weiss); margin: 0; }
.kontakt-streifen a { color: var(--weiss); font-size: 24px; font-weight: 700; text-decoration: none; }
.kontakt-streifen a:hover { color: var(--blau-2); }
.kontakt-streifen__daten { display: flex; flex-wrap: wrap; gap: 36px; }

/* ---------- Unterseiten ---------- */
.page-head { background: var(--dunkelgrau); color: var(--weiss); padding: 64px 0 56px; }
.page-head h1 { color: var(--weiss); margin: 0; }
.breadcrumb { font-size: 13px; margin-bottom: 10px; }
.breadcrumb a { color: var(--blau-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.content { padding: 64px 0 88px; }
.content .container { max-width: 860px; }
.content h2 { font-size: 1.5rem; margin-top: 1.8em; color: var(--blau-1); }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.4em; }
.content ul { padding-left: 1.2em; }
.page-head__sub { margin: 10px 0 0; font-size: 1.1rem; color: #d6d6d6; }
.content__meta { font-size: 14px; color: var(--text-hell); }
.hinweis { margin-top: 2.5em; padding: 20px 24px; background: var(--grau-hell); border-left: 3px solid var(--blau-1); font-size: 15px; }
.hinweis p:last-child { margin-bottom: 0; }
/* Markierung offener Punkte – vor Livegang entfernen */
.offen { background: #fff3a8; padding: 0 4px; font-weight: 600; }

/* ---------- Kontakt ---------- */
.kontakt-haupt { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.kontakt-haupt__daten p { margin-bottom: 14px; font-size: 18px; }
.kontakt-haupt__daten a { font-weight: 600; text-decoration: none; }
.kontakt-haupt__daten a:hover { text-decoration: underline; }
.label { display: block; font-size: 13px; color: var(--text-hell); }
.standort-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.standort { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); padding: 26px 26px 20px; }
.standort h3 { color: var(--blau-1); font-size: 1.15rem; }
.standort p { font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .kontakt-haupt { grid-template-columns: 1fr; gap: 24px; }
  .standort-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .standort-grid { grid-template-columns: 1fr; }
}

/* ---------- Infoseite (fileadmin/kaut-info) ---------- */
.infoseite__karte { max-width: 760px; }
.infoseite__karte .card__text { margin-bottom: 28px; }
.infoseite__karte .card__text a { font-weight: 700; }

/* ---------- Footer (dunkler Grund → helles Blau) ---------- */
.footer { background: var(--dunkelgrau); color: #d6d6d6; font-size: 12px; line-height: 1.4; }
.footer__main { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer__logo { width: 170px; margin-bottom: 20px; }
.footer__main > div:first-child p { max-width: 280px; }
.footer h4 { color: var(--weiss); font-size: 14px; font-weight: 700; margin-bottom: 1.2em; }
.footer a { color: #d6d6d6; text-decoration: none; }
.footer a:hover { color: var(--blau-2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 12px; }
.footer address { font-style: normal; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12px; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .topbar__links { gap: 18px; }
}

@media (max-width: 900px) {
  .card-grid, .tile-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer__main { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .header .container { flex-wrap: wrap; }
  .header__logo { border-right: 0; padding: 12px 0; }
  .header__tools { display: none; }
  .nav { display: none; flex-basis: 100%; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding-bottom: 12px; }
  .nav__list a { padding: 12px 0; border-top: 1px solid var(--grau-linie); }
  .nav__list a.nav__highlight { padding-left: 12px; }
  .nav__list a[aria-current="page"]::after { top: 0; bottom: 0; left: -20px; right: auto; width: 4px; height: auto; }
}

@media (max-width: 600px) {
  .topbar__zielgruppen a { padding: 10px 14px; }
  .hero { padding: 72px 0 150px; }
  .card { padding: 32px 24px 36px; }
  .card h2 { margin-bottom: 24px; }
  .tile__body { padding: 22px 22px 28px; }
  .card-grid, .tile-grid, .news-grid, .footer__main { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
