/* ═══════════════════════════════════════════
   HALLAC Heizung & Sanitär – Shared Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  --black:      #1a1a1a;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --grey:       #666;
  --light-grey: #ebebeb;
  --mid-grey:   #aaa;
  --dark-grey:  #333;
  --section-gap: 90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--black); color: #ccc;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  z-index: 9999; flex-wrap: wrap; font-size: 14px;
  border-top: 2px solid #444;
}
#cookie-banner p { flex: 1; min-width: 220px; }
#cookie-banner a { color: #ccc; text-decoration: underline; }
.btn-cookie-accept {
  background: var(--black); color: #fff; border: 1px solid #555;
  padding: 10px 22px; cursor: pointer; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-cookie-accept:hover { background: #333; }

/* ── NAV ── */
nav {
  position: sticky; top: 0;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  z-index: 200; border-bottom: 1px solid #2e2e2e;
}
.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 26px; letter-spacing: 0.06em;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 44px; width: auto; background: #fff; padding: 4px 8px; }
.nav-logo-text { display: none; }
.nav-logo-text span { color: #aaa; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: #bbb; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 15px; letter-spacing: 0.07em; text-transform: uppercase;
  transition: color 0.2s; padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; border-bottom-color: #fff; }
.nav-cta {
  background: #fff; color: var(--black);
  padding: 10px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: 0.07em;
  text-decoration: none; text-transform: uppercase;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: #ddd; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 26px; height: 2px; background: #fff; display: block; transition: 0.3s; }
.mobile-menu {
  display: none; flex-direction: column;
  background: var(--black); border-top: 1px solid #2a2a2a;
  position: sticky; top: 68px; z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #bbb; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 24px; border-bottom: 1px solid #222;
}
.mobile-menu a:hover { color: #fff; background: #222; }

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  background: var(--off-white);
  padding: 70px 48px 60px;
  border-bottom: 1px solid var(--light-grey);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  font-size: 13px; color: var(--mid-grey); margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.breadcrumb a { color: var(--mid-grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(38px, 6vw, 72px);
  line-height: 1; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--black);
}
.page-hero p {
  font-size: 18px; color: var(--grey); margin-top: 16px; max-width: 600px;
}

/* ── SECTIONS ── */
section { padding: var(--section-gap) 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid-grey); font-weight: 700; margin-bottom: 12px;
}
h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em;
}
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em;
}
.section-intro { max-width: 580px; color: var(--grey); margin-top: 16px; font-size: 17px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--black); color: #fff;
  padding: 16px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 17px; letter-spacing: 0.06em;
  text-decoration: none; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s; display: inline-block;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--dark-grey); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid #ccc; color: #555;
  padding: 14px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 17px; letter-spacing: 0.06em;
  text-decoration: none; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: var(--black); color: var(--black); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--light-grey); max-width: 1200px; margin: 0 auto; }

/* ── DARK SECTION ── */
.section-dark { background: var(--black); }
.section-dark h2 { color: #fff; }
.section-dark .section-label { color: #666; }
.section-dark .section-intro { color: #888; }
.section-grey { background: var(--off-white); }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--black);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { padding: 28px 24px; text-align: center; border-right: 1px solid #2e2e2e; }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 38px; color: #fff; line-height: 1;
}
.stat-label { font-size: 13px; color: #888; margin-top: 5px; font-weight: 500; }

/* ── NOTDIENST BANNER ── */
.notdienst-banner { background: var(--black); padding: 0 48px; }
.notdienst-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 64px 0; flex-wrap: wrap;
}
.notdienst-left h2 { color: #fff; }
.notdienst-left p { color: #888; margin-top: 12px; max-width: 500px; font-size: 17px; }
.notdienst-badge {
  background: #fff; color: var(--black);
  padding: 32px 40px; text-align: center; min-width: 200px;
}
.notdienst-badge .badge-24 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 56px; line-height: 1;
}
.notdienst-badge .badge-label { font-size: 13px; letter-spacing: 0.1em; font-weight: 700; margin-top: 4px; color: #666; }

/* ── CARDS ── */
.card-grid { display: grid; gap: 2px; margin-top: 54px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--off-white); padding: 36px 32px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-left-color: var(--black); background: #fff; }
.card-icon { font-size: 36px; margin-bottom: 18px; display: block; line-height: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15px; line-height: 1.65; }

/* ── DARK CARDS ── */
.card-dark { background: #1e1e1e; border-left-color: transparent; }
.card-dark:hover { background: #242424; border-left-color: #555; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #888; }
.card-dark .card-icon { filter: none; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 54px; }
.step { padding: 32px 28px; border-right: 1px solid var(--light-grey); }
.step:last-child { border-right: none; }
.step-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 64px; line-height: 1; color: var(--light-grey); margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 14px; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 54px; align-items: start; }
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-info-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--off-white); border-left: 3px solid var(--black);
}
.ci-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mid-grey); font-weight: 600; margin-bottom: 4px; }
.ci-value { font-weight: 600; font-size: 16px; color: var(--black); }
.ci-value a { color: var(--black); text-decoration: none; }
.ci-value a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
input, textarea, select {
  background: var(--off-white); border: 1px solid #ddd;
  padding: 13px 16px; font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--black);
  transition: border-color 0.2s; outline: none; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--black); background: #fff; }
textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--black); }
.form-check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; color: var(--grey); }
.form-check a { color: var(--black); text-decoration: underline; }
button[type="submit"] {
  background: var(--black); color: #fff; border: none;
  padding: 18px 32px; cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s; align-self: flex-start;
}
button[type="submit"]:hover { background: var(--dark-grey); }
.form-note { font-size: 12px; color: var(--mid-grey); }
.form-success {
  display: none; background: #e8f5e8; color: #2a6b2a; border: 1px solid #b8d8b8;
  padding: 16px 20px; font-weight: 600;
}

/* ── FOOTER ── */
footer { background: #111; color: #888; padding: 64px 48px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1200px; margin: 0 auto;
  padding-bottom: 48px; border-bottom: 1px solid #222;
}
.footer-logo-wrap { margin-bottom: 16px; }
.footer-logo-img { height: 56px; width: auto; background: #fff; padding: 6px 10px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: #888; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 13px; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: #666; text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #ccc; }
.footer-legal-links { display: flex; gap: 24px; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 9998; padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); max-width: 800px; width: 100%;
  padding: 52px; position: relative; margin: auto;
  max-height: calc(100vh - 80px); overflow-y: auto;
  box-shadow: 0 40px 120px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px; cursor: pointer; color: #aaa; line-height: 1;
}
.modal-close:hover { color: var(--black); }
.modal-box h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 28px; }
.modal-box h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em;
  margin: 28px 0 8px; color: var(--black);
}
.modal-box p { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 10px; }
.modal-box a { color: var(--black); text-decoration: underline; }
.modal-box ul { padding-left: 20px; margin-bottom: 12px; }
.modal-box ul li { font-size: 14px; color: #444; line-height: 1.75; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin-top: 48px; }
.faq-item { border-top: 1px solid var(--light-grey); }
.faq-item:last-child { border-bottom: 1px solid var(--light-grey); }
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; text-align: left; gap: 24px;
}
.faq-question span:first-child {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--black);
}
.faq-toggle { font-size: 22px; color: var(--mid-grey); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--black); }
.faq-answer { display: none; padding: 0 0 20px; color: var(--grey); font-size: 15px; line-height: 1.7; max-width: 680px; }
.faq-item.open .faq-answer { display: block; }

/* ── TEAM / ABOUT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col-text .section-label { margin-bottom: 10px; }
.two-col-text h2 { margin-bottom: 20px; }
.two-col-text p { color: var(--grey); margin-bottom: 16px; font-size: 16px; }
.visual-block {
  background: var(--off-white); padding: 60px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.visual-block .big-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 120px; line-height: 1; color: var(--light-grey);
}
.visual-block p { color: var(--grey); font-size: 15px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--grey); }
.check-list li::before { content: '✓'; font-weight: 700; color: var(--black); flex-shrink: 0; margin-top: 1px; }

/* ── SERVICE DETAIL ── */
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; margin-top: 54px; align-items: start; }
.service-detail-content h3 { font-size: 24px; margin: 32px 0 12px; }
.service-detail-content h3:first-child { margin-top: 0; }
.service-detail-content p { color: var(--grey); margin-bottom: 14px; font-size: 16px; line-height: 1.75; }
.service-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-box { background: var(--off-white); padding: 28px; border-left: 3px solid var(--black); }
.sidebar-box h4 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}
.sidebar-box p { font-size: 14px; color: var(--grey); line-height: 1.65; }
.sidebar-box a.big-phone {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 28px; color: var(--black); text-decoration: none;
  margin-top: 10px; letter-spacing: 0.02em;
}
.sidebar-box a.big-phone:hover { text-decoration: underline; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.price-list li { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; }
.price-list li:last-child { border-bottom: none; }
.price-list .price { font-weight: 700; white-space: nowrap; }

/* ── SERVICE NAV (on service pages) ── */
.service-nav { background: var(--off-white); border-bottom: 1px solid var(--light-grey); padding: 0 48px; }
.service-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 0; overflow-x: auto; }
.service-nav a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--grey); text-decoration: none; padding: 16px 20px;
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.2s, border-color 0.2s;
}
.service-nav a:hover { color: var(--black); }
.service-nav a.active { color: var(--black); border-bottom-color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--light-grey); }
  .step:nth-child(even) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 56px 20px; }
  .page-hero { padding: 48px 20px 40px; }
  .notdienst-banner { padding: 0 20px; }
  .service-nav { padding: 0 20px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 0 0 40px; }
  footer { padding: 48px 20px 0; }
  .modal-box { padding: 32px 20px; }
  .notdienst-inner { flex-direction: column; padding: 48px 0; }
}

/* ── Form Error ── */
.form-error {
  background: #fce8e8; color: #8b1a1a;
  border: 1px solid #f5c6c6;
  padding: 16px 20px; font-weight: 600;
}
