/* ============================================================
   Haustechnik Norbert Hülser GmbH – zentrales Stylesheet
   Gilt für: index.html, impressum.html, datenschutz.html
   ============================================================ */

/* ----- Design-Token ----- */
:root {
  /* Farben */
  --color-primary: #344e76;        /* Dunkelblau: Überschriften, Navigation */
  --color-primary-soft: #eef2f8;   /* helles Blau für dezente Flächen */
  --color-accent: #e73640;         /* Rot: nur CTA, Icons, Labels */
  --color-accent-dark: #cf2933;
  --color-accent-soft: #fdecec;    /* helle Icon-Kacheln */
  --color-text: #333333;
  --color-muted: #555555;
  --color-muted-light: #8b909a;
  --color-background: #ffffff;
  --color-background-soft: #fafbfc;
  --color-border: #e6e9ee;
  --color-border-light: #eef0f3;

  /* Layout */
  --container-width: 1200px;
  --section-pad: 112px;            /* vertikaler Sektionsabstand (Desktop) */

  /* Radien */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 18px;

  /* Schatten */
  --shadow-card: 0 10px 30px rgba(52, 78, 118, 0.08);
  --shadow-media: 0 18px 48px rgba(52, 78, 118, 0.12);
  --shadow-btn: 0 4px 14px rgba(231, 54, 64, 0.25);
}

@media (max-width: 860px) {
  :root { --section-pad: 72px; }
}
@media (max-width: 560px) {
  :root { --section-pad: 60px; }
}

/* ----- Basis ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(52, 78, 118, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

::selection { background: var(--color-primary); color: #fff; }

/* overflow-x: clip statt hidden – „hidden" würde hier einen Scroll-Container
   erzeugen und damit position:sticky im Header außer Kraft setzen */
.page-wrap { max-width: 100%; overflow-x: clip; }
.accent { color: var(--color-accent); }

/* Schmaler, zentrierter Inhaltsblock – ca. 70 Zeichen Zeilenlänge */
.content-narrow { max-width: 760px; margin: 0 auto; }

/* ----- Icon-Größen (Font Awesome) ----- */
.icon-tile i { font-size: 19px; }
.card__icon i { font-size: 24px; }
.why-card__icon i { font-size: 22px; }
.contact-item__icon i { font-size: 17px; }
.chip i { font-size: 13px; color: var(--color-accent); }
.btn i { font-size: 15px; }
.nav-burger i { font-size: 22px; }
.nav-phone i { font-size: 13px; color: var(--color-accent); }

/* ----- Header / Navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav--narrow { max-width: 1000px; gap: 24px; }

/* Wortmarke */
.brand { display: flex; align-items: center; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17.5px;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__claim {
  font-size: 11.5px;
  color: var(--color-muted-light);
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .brand__claim { display: none; }
  .brand__name { white-space: normal; font-size: 15px; } /* 15px: Firmierung inkl. "i. Gr." bleibt zweizeilig */
}

.nav-desktop { display: flex; align-items: center; gap: 26px; }

.nav-link, .back-link { color: var(--color-text); font-size: 15px; font-weight: 500; }
.nav-link:hover, .back-link:hover { color: var(--color-accent); }

/* Telefonnummer im Header (Desktop) */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--color-primary);
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .nav-phone { display: none; }
}

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

/* !important nötig: gewinnt gegen die spätere .btn-Regel (display:inline-flex);
   die Media-Query unten überschreibt es wiederum, da sie später im Stylesheet steht */
.nav-mobile-call { display: none !important; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border-light);
  padding: 12px 24px 20px;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}
.mobile-menu.open { display: flex; }

.mnav-link {
  display: block;
  padding: 12px 4px;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid #f2f3f5;
}
.mnav-link:hover { color: var(--color-accent); }

.mnav-cta {
  display: block;
  margin-top: 10px;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.mnav-cta:hover { background: var(--color-accent-dark); color: #fff; }

@media (max-width: 860px) {
  .nav-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-mobile-call { display: inline-flex !important; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn--red { background: var(--color-accent); color: #fff; }
.btn--red:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }

/* Heller Sekundär-Button */
.btn--outline {
  background: #fff;
  border: 1px solid #dfe3ea;
  color: var(--color-primary);
  padding: 15px 26px;
  font-size: 16px;
}
.btn--outline:hover { border-color: #b9c3d4; color: var(--color-primary); transform: translateY(-1px); }
.btn--outline i { color: var(--color-accent); }

.btn--nav {
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  box-shadow: var(--shadow-btn);
}

.btn--nav-call { gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; }

.btn--hero { padding: 15px 28px; font-size: 16px; box-shadow: var(--shadow-btn); }

.btn--contact {
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-btn);
}

.btn--cta {
  gap: 11px;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--shadow-btn);
}

/* Buttons auf schmalen Displays in voller Breite */
@media (max-width: 480px) {
  .hero__actions .btn,
  .contact-actions .btn,
  .btn--cta { width: 100%; }
}

/* ----- Wiederkehrende Elemente ----- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title { font-weight: 800; }
.section-title--xl { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 16px; }
.section-title--lg { font-size: clamp(27px, 3.2vw, 36px); }
.section-title--md { font-size: clamp(25px, 3vw, 33px); }
.section-title--sm { font-size: clamp(23px, 2.8vw, 30px); }

.lead { color: var(--color-muted); font-size: 17px; }

.media-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-media);
}
.media-box--map { min-height: 360px; }
.media-box--map-lg { min-height: 400px; }

/* Bildfläche im Abschnitt „Über uns" */
.media-box--about { aspect-ratio: 4 / 3; }
.media-box--about img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Eingebettete Google-Maps-Karte füllt die Box vollständig */
.media-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- Sektionen ----- */
.section { padding: var(--section-pad) 24px; }

/* Sehr helles Grau als ruhiger Wechsel zu Weiß */
.section--gray {
  background: var(--color-background-soft);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section__inner { max-width: var(--container-width); margin: 0 auto; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head--tight { margin-bottom: 48px; }

/* ----- Hero (hell) ----- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.hero__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 88px 24px 92px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid { padding: 56px 24px 60px; gap: 40px; }
}

.hero__copy { max-width: 600px; }

.hero__badge {
  display: inline-block;
  max-width: 100%;
  line-height: 1.5;
  /* etwas kompakter als die uebrigen Labels, damit die laengere Zeile
     mit dem Standort auf dem Desktop einzeilig bleibt */
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-soft);
  padding: 7px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.hero__title { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; margin-bottom: 16px; }

.hero__subtitle {
  font-family: 'Manrope', sans-serif;
  color: #52607a;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.4;
}

.hero__text { color: var(--color-muted); font-size: 17px; margin-bottom: 14px; max-width: 60ch; }
.hero__text--last { margin-bottom: 32px; }

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

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-media);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Vertrauensleiste (weiß) ----- */
.trust { background: var(--color-background); border-bottom: 1px solid var(--color-border-light); padding: 52px 24px; }

/* Spalten-Mindestbreite 270px, damit die Titel einzeilig bleiben */
.trust__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.trust-item { display: flex; gap: 14px; align-items: flex-start; }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* 15px + nowrap, damit die Titel auf allen Breiten einzeilig bleiben */
.trust-item__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.trust-item__text { color: var(--color-muted); font-size: 14.5px; line-height: 1.5; }

/* ----- Leistungs-Karten ----- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: 0 2px 8px rgba(52, 78, 118, 0.04);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-card);
  border-color: #dfe3ea;
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--color-accent);
}

.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--color-muted); font-size: 16px; }

/* Karten mit Logo: Logo unten buendig, Text darueber */
.card { display: flex; flex-direction: column; }
.card__logo {
  width: 108px;
  height: auto;
  display: block;
  margin-top: auto;
  padding-top: 22px;
  opacity: 0.9;
}

/* Vaillant-Schriftzug im Fliesstext: Hoehe an die Schrift gekoppelt (em),
   damit er in jeder Textgroesse mitskaliert und auf der Grundlinie sitzt */
.vaillant-logo {
  height: 1.05em;
  width: auto;
  display: inline-block;
  vertical-align: -0.22em;
}

/* Haelt Schriftzug und angehaengtes Wort (z. B. -Geraete) in einer Zeile */
.vaillant-word { white-space: nowrap; }

/* ----- Vorteils-Karten „Warum wir?" ----- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.why-card {
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.why-card:hover { box-shadow: var(--shadow-card); border-color: #dfe3ea; }

.why-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--color-muted); font-size: 15.5px; }

/* ----- Textabschnitte (Über uns / Einsatzgebiet) ----- */
.about-copy .section-title--md { margin-bottom: 22px; }
.about-copy p { color: var(--color-muted); font-size: 17px; margin-bottom: 16px; max-width: 70ch; }
.about-copy p:last-child { margin-bottom: 0; }

/* Herstellerhinweis mit Vaillant-Logo */
.partner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}

.partner__logo { width: 190px; height: auto; display: block; flex-shrink: 0; }

.partner__text { color: var(--color-muted); font-size: 15px; max-width: 34ch; margin: 0; }

/* Etwas breiter als die übrigen Textblöcke, damit alle sechs Orte
   in eine Zeile passen – Fließtext bleibt über max-width: 70ch begrenzt */
.region-copy { max-width: 900px; }
.region-copy .section-title--md { margin-bottom: 18px; }
.region-copy .lead { margin-bottom: 28px; max-width: 70ch; }

.region-note {
  color: var(--color-muted-light);
  font-size: 15px;
  margin-top: 28px;
  max-width: 70ch;
}

/* ----- Einsatzgebiet-Chips ----- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-primary);
  transition: border-color 0.2s;
}
.chip:hover { border-color: #c9d2e0; }

/* ----- Kontakt ----- */
.split {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split--contact { gap: 56px; align-items: stretch; }
.split--about { gap: 56px; }

/* Unter 860px würden zwei Spalten zu schmal – Text und Bild dann untereinander */
@media (max-width: 860px) {
  .split--about, .split--contact { grid-template-columns: 1fr; gap: 36px; }
}

.contact-copy { display: flex; flex-direction: column; }
.contact-copy .section-title--md { margin-bottom: 26px; }

.contact-company {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-address { color: var(--color-muted); font-size: 16.5px; margin-bottom: 24px; font-style: normal; }

.contact-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 28px; }

.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item--top { align-items: flex-start; }

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item__label { font-size: 13px; color: var(--color-muted-light); }
.contact-item__value { font-size: 17px; font-weight: 600; color: var(--color-primary); }
.contact-item__value--sm { font-size: 15.5px; }
.contact-item__note { font-size: 14px; color: var(--color-muted); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- Abschluss-CTA (helle Karte) ----- */
.cta { background: var(--color-background-soft); border-top: 1px solid var(--color-border-light); padding: var(--section-pad) 24px; }

.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 60px 44px;
  box-shadow: 0 14px 40px rgba(52, 78, 118, 0.07);
}
@media (max-width: 560px) {
  .cta__inner { padding: 40px 24px; }
}
.cta__inner .section-title--sm { margin-bottom: 14px; }
.cta__inner p { color: var(--color-muted); font-size: 17px; margin-bottom: 30px; }

/* ----- Footer (hell) ----- */
.site-footer { background: var(--color-background); border-top: 1px solid var(--color-border-light); padding: 64px 24px 32px; }

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border-light);
}

.footer-brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.footer-text { color: var(--color-muted); font-size: 14.5px; margin-bottom: 14px; line-height: 1.7; font-style: normal; }
.footer-contact { color: var(--color-muted); font-size: 14.5px; line-height: 1.9; }
.footer-contact .flink { color: var(--color-primary); font-weight: 600; }

.footer-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-light);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 11px; }

.flink { color: var(--color-muted); font-size: 14.5px; }
.flink:hover { color: var(--color-accent); }

.footer-bottom { max-width: var(--container-width); margin: 0 auto; padding-top: 22px; color: var(--color-muted-light); font-size: 14px; }

/* Schlanker Footer der Rechtsseiten */
.site-footer--simple { padding: 40px 24px; }

.footer-simple {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-simple__copy { color: var(--color-muted); font-size: 14.5px; }
.footer-simple__links { display: flex; gap: 28px; }

/* ----- Rechtsseiten (Impressum / Datenschutz) ----- */
.legal { max-width: 780px; margin: 0 auto; padding: 72px 24px 96px; }

.legal h1, .legal h2, .legal h3, .legal h4 { line-height: 1.25; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 36px; }
.legal h2 { font-size: 21px; font-weight: 700; margin-top: 44px; margin-bottom: 14px; }
.legal h3 { font-size: 17.5px; font-weight: 700; margin-top: 30px; margin-bottom: 10px; color: var(--color-primary); }
.legal h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 22px;
  margin-bottom: 8px;
}
.legal h1 + h2, .legal h2 + h3, .legal h3 + h4 { margin-top: 0; }

.legal p { color: var(--color-muted); font-size: 16.5px; margin-bottom: 18px; }
.legal p.spaced { margin-bottom: 32px; }
.legal p.tight { margin-bottom: 20px; }
.legal p.intro { margin-bottom: 8px; }
.legal p:last-child { margin-bottom: 0; }

.legal ul { color: var(--color-muted); font-size: 16.5px; margin: 0 0 18px 22px; }
.legal li { margin-bottom: 8px; }

.legal strong { color: var(--color-text); font-weight: 600; }

/* Lange Links (z. B. Rechtstexte) dürfen umbrechen statt zu überlaufen */
.legal a { color: var(--color-primary); text-decoration: underline; overflow-wrap: anywhere; }
.legal a:hover { color: var(--color-accent); }

/* ----- Scroll-Reveal ----- */
/* Nur aktiv, wenn JS läuft – ohne JS bleibt der Inhalt sichtbar */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .btn, .card, .why-card, .chip { transition: none; }
}

/* Zusatz "i. Gr." (in Gruendung) hinter der Firmierung – entfaellt nach HR-Eintragung */
.igr { font-size: 0.72em; font-weight: 600; color: var(--color-muted-light); letter-spacing: 0; white-space: nowrap; }
