/* ===================================================================
   RESET & NORMALIZATION
=================================================================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #181C22;
  color: #F6EFE7;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

/* ------------------------------------------------------------------
   FONTS (Google Fonts recommended)
------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary: #204060;
  --secondary: #A54227;
  --accent: #F6EFE7;
  --metal: #888E98;
  --surface-dark: #23282F;
  --surface-light: #22262B;
  --card-bg: #22262B;
  --shadow: 0 4px 24px 0 rgba(32,40,56,0.15);
  --radius: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ===================================================================
   GENERAL LAYOUT
=================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
main {
  min-height: 400px;
  padding-bottom: 70px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===================================================================
   TYPOGRAPHY
=================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 700;
}
p, ul, ol, li, table, .answer {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
}
strong {
  font-weight: bold;
  color: var(--accent);
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 7px;
}
a {
  color: var(--secondary);
  transition: color 0.18s;
  text-decoration: none;
  font-weight: 600;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.text-section a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 2px;
  transition: border-color 0.18s, color 0.18s;
}
.text-section a:hover {
  border-color: var(--accent);
  color: var(--secondary);
}

/* ===================================================================
   HEADER & NAVIGATION (INDUSTRIAL MODERN)
=================================================================== */
header {
  background: var(--surface-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 24px;
}
header img {
  max-height: 52px;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  text-transform: uppercase;
  padding: 4px 0;
  position: relative;
  transition: color 0.18s;
}
nav a:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--secondary);
  opacity: 0;
  transition: opacity 0.18s;
}
nav a:hover:after, nav a:focus:after { opacity: 1; }
nav a.active, nav a:active {
  color: var(--secondary);
}

.btn-primary {
  background: var(--secondary);
  color: var(--accent) !important;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(32,40,56,0.07);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.13s;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-left: 20px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px 0 rgba(32,40,56,0.14);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.2rem;
  padding: 5px 16px;
  line-height: 1;
  cursor: pointer;
  z-index: 102;
}

/* ================================================================
   MOBILE MENU
================================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,28,34,0.98);
  box-shadow: 0 2px 16px 0 #111c;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 22px 28px 0 0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10vh;
  gap: 22px;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(230,230,230,0.08);
  width: 88%;
  display: block;
  transition: color 0.18s;
}
.mobile-nav a:hover {
  color: var(--secondary);
}

/* Hide desktop nav/menu primary btn on small screens */
@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================================================================
   HERO SECTION & PAGE SECTION LAYOUTS
=================================================================== */
.hero-section {
  background: linear-gradient(145deg, var(--surface-light) 70%, #262c36 100%);
  color: var(--accent);
  padding: 60px 0 40px 0;
  box-shadow: 0 4px 32px 0 rgba(35, 48, 64, 0.08);
  border-bottom: 2px solid var(--metal);
}
.hero-section .content-wrapper {
  max-width: 700px;
  align-items: flex-start;
}
.hero-section h1 {
  color: var(--accent);
  margin-bottom: 14px;
  text-shadow: 1px 2px 16px rgba(40,60,80,0.19);
}
.hero-section p {
  font-size: 1.15rem;
  color: var(--metal);
  margin-bottom: 20px;
}

/* ===================================================================
   FLEXBOX LAYOUTS for CARDS, GRIDS, FEATURES, TESTIMONIALS
=================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid #232737;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(32,34,55,0.11);
  padding: 32px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.16s, transform 0.13s;
  position: relative;
  color: var(--accent);
}
.card:hover, .card:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 4px 22px 0 rgba(164,66,39,0.11);
  transform: translateY(-2px) scale(1.01);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6EFE7;
  color: #22262B;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(60,60,68,0.07);
  flex-direction: column;
  min-width: 220px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #23282F;
}
.testimonial-card strong {
  color: #A54227;
  font-size: 1rem;
  margin-top: 4px;
}
.star-rating img {
  height: 22px;
  filter: grayscale(15%) contrast(120%);
  margin-right: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/*--- Index Features ---*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(32,34,55,0.06);
  padding: 28px 18px 24px 18px;
  border-bottom: 3px solid var(--metal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: border-color 0.18s, box-shadow 0.2s, transform 0.13s;
}
.feature-grid > div:hover {
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 6px 20px 0 rgba(164,66,39,0.10);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  margin-bottom: 14px;
  width: 38px;
}
/*--- Heizsysteme system-overview ---*/
.system-overview-grid, .benefit-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.system-overview-grid > div, .benefit-icons > div {
  background: var(--surface-dark);
  border-radius: var(--radius);
  border: 1px solid #232737;
  min-width: 210px;
  flex: 1 1 220px;
  padding: 18px 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border 0.18s, box-shadow 0.18s, transform 0.11s;
}
.system-overview-grid > div:hover, .benefit-icons > div:hover {
  border: 1px solid var(--secondary);
  box-shadow: 0 8px 22px 0 rgba(164,66,39,0.10);
  transform: scale(1.025);
}
.benefit-icons img {
  margin-bottom: 11px;
  width: 34px;
}

.services-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 14px;
}
.services-overview > div {
  background: var(--surface-dark);
  border-radius: var(--radius);
  border: 1px solid #232737;
  flex: 1 1 220px;
  min-width: 220px;
  padding: 18px 18px 18px 14px;
}
.about-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.text-section {
  flex: 1 1 300px;
  min-width: 0;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.address-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.case-summary-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.case-summary-list .text-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid #232737;
  padding: 12px 20px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--surface-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  padding: 18px 18px 10px 24px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(32,40,56,0.04);
}
.faq-item h3 {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 7px;
}
.faq-item .answer {
  color: var(--accent);
  font-size: 1rem;
}

/* ===================================================================
   TABLES
=================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  margin-bottom: 18px;
  background: var(--surface-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 8px 13px;
  border-bottom: 1px solid #30364a;
}
th {
  background: #23282F;
  color: var(--accent);
  text-align: left;
}
td {
  color: var(--accent);
  background: var(--surface-dark);
  font-family: var(--font-body);
}
tr:last-child td {
  border-bottom: none;
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
  background: var(--surface-dark);
  color: var(--accent);
  padding: 50px 0 18px 0;
  margin-top: 40px;
  border-top: 2px solid #232737;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--metal);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--secondary);
}
.contactdetails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.98rem;
}
.contactdetails img {
  height: 1em;
  margin-right: 8px;
  filter: grayscale(65%) brightness(1.3);
}
.copyright p {
  text-align: center;
  color: var(--metal);
  font-size: 0.93rem;
  margin-top: 8px;
}

/* ===================================================================
   COOKIE CONSENT BANNER
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 220;
  background: linear-gradient(90deg, #22262B 85%, #204060 100%);
  color: var(--accent);
  box-shadow: 0 -2px 18px 0 rgba(35,40,55,0.16);
  padding: 22px 16px 18px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1.01rem;
}
.cookie-banner .banner-text { flex: 1 1 220px; max-width: 640px; }
.cookie-banner .cookie-actions {
  display: flex;
  fluid-direction: row;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .btn {
  border-radius: 7px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  padding: 9px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--secondary);
  color: var(--accent);
  margin-bottom: 0;
  transition: background 0.18s, color 0.15s;
  box-shadow: 0 2px 6px rgba(32,40,56, 0.07);
}
.cookie-banner button.cookie-settings {
  background: var(--metal);
  color: var(--surface-light);
}
.cookie-banner button:hover, .cookie-banner .btn:hover {
  background: var(--primary);
  color: var(--accent);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 250;
  background: rgba(24,28,34,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.41s cubic-bezier(0.66,0.11,0.4,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--surface-light);
  color: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px 0 rgba(35,40,55,0.22);
  padding: 36px 32px 30px 32px;
  min-width: 320px;
  max-width: 98vw;
  width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  position: absolute;
  top: 20px; right: 24px;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-title {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 8px;
  padding: 9px 0 3px 0;
}
.cookie-category .cookie-switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--metal);
  border-radius: 22px;
  transition: background 0.19s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  top: 2px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-legend {
  font-size: 0.98rem;
  color: var(--metal);
  margin-bottom: 6px;
}

/* ===================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST)
=================================================================== */
@media (max-width: 1280px) {
 .container {
    max-width: 98vw;
 }
}
@media (max-width: 1024px) {
  .content-grid, .feature-grid, .services-overview, .case-summary-list, .system-overview-grid, .benefit-icons{
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 6px;
  }
}
@media (max-width: 768px) {
  .section, .hero-section {
    padding: 34px 5px;
  }
  .feature-grid > div, .system-overview-grid > div, .services-overview > div, .benefit-icons > div {
    min-width: 150px;
    padding: 18px 10px;
  }
  .testimonial-card {
    min-width: 180px;
    padding: 15px 8px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .case-summary-list {
    gap: 12px;
  }
  .footer-nav {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 2px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .feature-grid, .system-overview-grid, .services-overview, .benefit-icons, .content-grid, .case-summary-list {
    gap: 10px;
  }
}
@media (max-width: 520px) {
  .btn-primary, .cookie-banner button, .cookie-banner .btn {
    padding: 8px 12px;
    font-size: 0.89rem;
  }
  .cookie-modal-content {
    min-width: 98vw;
    width: 98vw;
    padding: 20px 8px;
  }
}
@media (max-width: 430px) {
  .testimonial-card {
    min-width: 100px;
  }
}
/* ================================================================
   VISUAL & MICRO-INTERACTIONS
================================================================ */
.card, .feature-grid > div, .system-overview-grid > div {
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .system-overview-grid > div:hover, .benefit-icons > div:hover {
  box-shadow: 0 8px 28px rgba(32, 64, 98, 0.13);
  border-color: var(--secondary);
  transform: scale(1.015);
}
.btn-primary:active { transform: scale(0.96); }

/* ===================================================================
   SECTION SPACING
=================================================================== */
@media (max-width: 500px) {
  .section, .hero-section {
    padding: 18px 2px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .footer-nav {
    gap: 8px;
  }
}
/* ===================================================================
   OTHER ELEMENTS
=================================================================== */
.form-note {
  background: var(--surface-dark);
  color: var(--metal);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.96rem;
  font-style: italic;
  box-shadow: 0 1px 4px rgba(35,40,55,0.05);
}
.timeline-visual {
  background: var(--surface-dark);
  color: var(--accent);
  border-radius: var(--radius);
  border-left: 5px solid var(--secondary);
  padding: 14px 18px;
  margin: 18px 0 6px 0;
}
.trust-elements {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--surface-dark);
  border-radius: var(--radius);
  padding: 20px 16px 16px 20px;
  color: var(--metal);
}
.confirmation-section .content-wrapper {
  align-items: center;
  text-align: center;
}

/* Fix: generic z-index stacking for mobile nav & cookie modal */
.mobile-menu, .cookie-modal { z-index: 250; }

/* ===================================================================
   END OF FILE
=================================================================== */
