/* =========================================================
   Ruoss Haustechnik GmbH – Stylesheet Version 2 (aufgefrischt)
   ========================================================= */

/* ---------- Schriften (lokal) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/dm-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format("woff2"); }

:root {
  --blau: #2354A2;
  --blau-hell: #2C63BC;
  --navy: #0F172A;
  --navy-tief: #0A0F1D;
  --rot: #E74C3C;
  --rot-dunkel: #C9372A;
  --text: #3A3F4B;
  --text-hell: #5B6475;
  --hell: #F4F6FA;
  --linie: #E3E8F0;
  --weiss: #FFFFFF;
  --font-text: "DM Sans", system-ui, sans-serif;
  --font-titel: "Outfit", system-ui, sans-serif;
  --container: 1200px;
  --radius: 16px;
  --schatten: 0 18px 40px -20px rgba(15, 23, 42, .35);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.75; color: var(--text); background: var(--weiss); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-decoration: none; }
a:hover { color: var(--rot); }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-family: var(--font-titel); font-weight: 600; color: var(--navy); line-height: 1.15; }
p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 700; color: var(--navy); }
ul { margin: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--rot); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Bausteine ---------- */
.eyebrow { font-family: var(--font-titel); font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 2px; text-transform: uppercase; color: var(--rot); }
.section-head { margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.2vw, 38px); }
.divider { width: 56px; height: 3px; background: var(--rot); border-radius: 2px; margin-top: 20px; }
.section-head--center { text-align: center; }
.section-head--center .divider { margin-left: auto; margin-right: auto; }
.section-head--hell .section-title { color: var(--weiss); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; line-height: 1.2;
  padding: 15px 24px; border-radius: 10px; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--rot { background: var(--rot); color: var(--weiss); }
.btn--rot:hover { background: var(--rot-dunkel); color: var(--weiss); }
.btn--outline { border-color: rgba(255, 255, 255, .5); color: var(--weiss); }
.btn--outline:hover { border-color: var(--weiss); background: rgba(255, 255, 255, .08); color: var(--weiss); }
.btn--blau { background: var(--blau); color: var(--weiss); }
.btn--blau:hover { background: var(--navy); color: var(--weiss); }
.btn--gross { font-size: 17px; padding: 17px 28px; }

.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { width: 24px; height: 24px; padding: 4px; margin-top: 2px; border-radius: 50%; background: #FDE9E6; color: var(--rot); }
.checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }

.note { margin-top: 24px; padding: 20px 24px; background: var(--hell); border-left: 4px solid var(--blau); border-radius: 0 12px 12px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img { width: 64px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--text-hell); }
.logo-text strong { font-family: var(--font-titel); font-size: 18px; font-weight: 600; }
.menu-toggle { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: 16px; }
.main-nav > ul > li > a:hover { background: var(--hell); color: var(--blau); }
.main-nav li.active > a { color: var(--rot); }
.main-nav .icon { width: 14px; height: 14px; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy); font-size: 15px; }
.sub-menu a:hover { background: var(--hell); color: var(--blau); }

.header-call { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--rot); color: var(--weiss); font-weight: 700; white-space: nowrap; }
.header-call:hover { background: var(--rot-dunkel); color: var(--weiss); }
.header-call .icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--blau); min-height: 580px; }
.hero-text {
  padding: 80px 64px 80px max(24px, calc((100vw - var(--container)) / 2));
  color: rgba(255, 255, 255, .9);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: var(--weiss); font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; max-width: 620px; }
.hero-lead { margin-top: 22px; max-width: 580px; font-size: 18px; line-height: 1.7; }
.hero-lead strong { color: var(--weiss); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.hero-phone { display: inline-flex; align-items: center; gap: 12px; color: var(--weiss); }
.hero-phone:hover { color: var(--weiss); }
.hero-phone > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.hero-phone .eyebrow { color: rgba(255, 255, 255, .7); font-size: 11px; }
.hero-phone strong { color: var(--weiss); font-size: 22px; font-weight: 600; }
.hero-phone-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--weiss); }
.hero-phone-icon .icon { width: 18px; height: 18px; }
.hero-phone:hover .hero-phone-icon { background: var(--rot); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 14px; color: var(--weiss); }
.chips .icon { width: 16px; height: 16px; color: #FFB4AA; }
.price-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--rot); color: var(--weiss); font-family: var(--font-titel); font-weight: 600; font-size: 16px; }
.price-badge .icon { width: 18px; height: 18px; }
.hero-image { background: url(../img/firmenfahrzeug.webp) center / cover no-repeat; }

/* ---------- Seitenkopf ohne Bild ---------- */
.page-header { background: var(--blau); color: var(--weiss); padding: 72px 0 64px; }
.page-header h1 { color: var(--weiss); font-size: clamp(34px, 4vw, 50px); }
.page-header .eyebrow { color: #FFB4AA; margin-bottom: 10px; }

/* ---------- Abschnitte ---------- */
.section { padding: 96px 0; }
.section--hell { background: var(--hell); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section + .section:not(.section--hell):not(.section--navy) { padding-top: 0; }
.section--hell + .section, .section--navy + .section { padding-top: 96px !important; }
.section-intro { max-width: 720px; margin-bottom: 40px; }

.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--img-right .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--schatten); }
.split-media--cover img { aspect-ratio: 4 / 3; object-fit: cover; }
.split-media--contain { background: var(--hell); border-radius: var(--radius); padding: 32px; }
.split-media--contain img { box-shadow: none; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; mix-blend-mode: multiply; }
.split-text .btn { margin-top: 28px; }
.split-text .checklist { margin-top: 4px; }
.split-text > .section-head:not(:first-child) { margin-top: 56px; }
.split-text h3 { font-size: 22px; margin: 28px 0 12px; }

/* ---------- Leistungskarten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column;
  background: var(--blau); color: rgba(255, 255, 255, .88);
  border-radius: 20px; padding: 28px 28px 24px;
  transition: transform .25s, background-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); background: var(--blau-hell); color: rgba(255, 255, 255, .95); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }
.card-nr { font-family: var(--font-titel); font-size: 13px; font-weight: 600; letter-spacing: 2px; color: #FF9A8D; }
.card h3 { color: var(--weiss); font-size: 25px; margin: 14px 0 12px; }
.card-text { font-size: 16px; line-height: 1.65; }
.card-more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--weiss); font-weight: 600; font-size: 15px; }
.card-more .icon { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card-more .icon { transform: translateX(4px); }

/* ---------- Startseite: Über uns ---------- */
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-images img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten); }
.about-images img:last-child { margin-top: 48px; }
.about-images--3 { grid-template-rows: 1fr 1fr; }
.about-images--3 img:first-child { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; }
.about-images--3 img:not(:first-child) { aspect-ratio: 4 / 5; margin-top: 0; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.facts li { padding: 16px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); }
.facts strong { display: block; font-family: var(--font-titel); font-size: 22px; font-weight: 600; color: var(--blau); line-height: 1.2; }
.facts span { font-size: 14px; color: var(--text-hell); line-height: 1.4; display: block; margin-top: 4px; }

/* ---------- Kundenstimmen ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 16px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.testimonial > .icon { width: 30px; height: 30px; color: var(--rot); }
.testimonial blockquote { margin: 0; font-size: 17px; color: var(--navy); }
.testimonial figcaption { margin-top: auto; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rot); }
.testimonial figcaption a { color: inherit; }

/* ---------- Preise (Heizung) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; box-shadow: inset 0 4px 0 var(--blau); }
.price-card--hervor { box-shadow: inset 0 4px 0 var(--rot); }
.price-label { font-family: var(--font-titel); font-weight: 600; color: var(--navy); font-size: 18px; }
.price-value { margin-top: 8px; font-family: var(--font-titel); font-weight: 700; font-size: 34px; color: var(--blau); line-height: 1.15; }
.price-value small { font-size: 16px; font-weight: 600; color: var(--text-hell); }
.price-text { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text-hell); }

/* ---------- Notfall-Hinweis ---------- */
.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px; border-radius: var(--radius); background: #FDF1EF; border: 1px solid #F6CFC9; }
.callout-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rot); color: var(--weiss); }
.callout-icon .icon { width: 26px; height: 26px; }
.callout h2 { font-size: 26px; }
.callout p { margin-top: 6px; }

/* ---------- Warnzeichen-Kacheln ---------- */
.signs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.signs li { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 20px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.signs li span { display: block; font-family: var(--font-titel); color: var(--rot); font-size: 28px; line-height: 1; margin-bottom: 10px; }

/* ---------- Kontaktband ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); }
.contact-image { background: linear-gradient(90deg, rgba(15, 23, 42, 0) 60%, var(--navy)), url(../img/firmenfahrzeug.webp) center / cover no-repeat; min-height: 480px; }
.contact-text { padding: 88px max(24px, calc((100vw - var(--container)) / 2)) 88px 64px; color: rgba(255, 255, 255, .85); }
.contact h2 { color: var(--weiss); font-size: clamp(28px, 3.2vw, 38px); margin-top: 10px; }
.contact .divider { margin-bottom: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact-meta { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 8px; font-size: 15px; }
.contact-meta li { display: flex; align-items: center; gap: 10px; }
.contact-meta .icon { width: 18px; height: 18px; color: #FF9A8D; }

/* ---------- Text-Seiten ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.about-aside img { border-radius: var(--radius); box-shadow: var(--schatten); }
.about-aside figcaption { font-size: 14px; color: var(--text-hell); }
.pullquote { margin: 40px 0 0; padding: 28px 32px; background: var(--blau); color: var(--weiss); border-radius: var(--radius); font-family: var(--font-titel); font-size: 24px; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-tief); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { width: 72px; border-radius: 50%; background: #fff; margin-bottom: 16px; }
.footer-brand strong { color: var(--weiss); }
.footer-title { color: var(--weiss); font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--weiss); text-decoration: underline; }
.footer-contact { margin-top: 12px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bar-inner a + a { margin-left: 20px; }

.mobile-bar { display: none; }

/* =========================================================
   Tablet / Handy
   ========================================================= */
@media (max-width: 1100px) {
  .header-call span { display: none; }
  .header-call { padding: 12px; }
  .logo-text { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .signs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header-inner { gap: 12px; }
  .logo img { width: 48px; }
  .logo-text { display: flex; }
  .header-call { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px; margin-left: auto;
    width: 44px; height: 44px; padding: 0 12px; border-radius: 10px;
    background: var(--rot); border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--weiss); border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); padding: 8px 24px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--linie); }
  .main-nav > ul > li > a:hover { background: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 16px; min-width: 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px 24px 48px; }
  .hero-image { aspect-ratio: 16 / 10; }
  .hero-lead { font-size: 17px; }

  .split-inner, .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .split--img-right .split-media { order: 0; }
  .about-aside { position: static; }
  .price-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; text-align: left; }

  .contact { grid-template-columns: 1fr; }
  .contact-image { min-height: 0; aspect-ratio: 16 / 9; background: url(../img/firmenfahrzeug.webp) center / cover no-repeat; }
  .contact-text { padding: 56px 24px; }

  /* feste Leiste unten */
  body { padding-bottom: 64px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .3); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding-bottom: env(safe-area-inset-bottom); font-weight: 700; color: var(--weiss); }
  .mobile-bar .icon { width: 18px; height: 18px; }
  .mobile-bar-call { background: var(--rot); }
  .mobile-bar-mail { background: var(--navy); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section--hell + .section, .section--navy + .section { padding-top: 64px !important; }
  .cards, .cards--2, .testimonial-grid, .facts, .checklist--2 { grid-template-columns: 1fr; }
  .signs { grid-template-columns: 1fr 1fr; }
  .about-images img { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: 1fr; padding-top: 56px; }
  .btn--gross { width: 100%; }
}

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

/* ---------- Ergänzungen ---------- */
.about-aside figure { margin: 0; display: grid; gap: 10px; }
.mt { margin-top: 32px; }
.split-text > .facts + .btn, .split-inner .facts + .btn { margin-top: 32px; }
.split-inner > div > .btn { margin-top: 32px; }
.card--bild img { width: 100%; height: 220px; object-fit: contain; background: var(--weiss); border-radius: 12px; padding: 16px; margin-bottom: 20px; }

/* ---------- Referenzen ---------- */
.ref-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.ref { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ref img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--schatten); }
.ref figcaption { font-size: 15px; color: var(--text-hell); line-height: 1.5; }
@media (max-width: 900px) {
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .ref--gross { grid-column: 1 / -1; }
  .ref img { height: 320px; }
}
@media (max-width: 640px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref img { height: auto; aspect-ratio: 4 / 3; }
}
