/* -------------------------
   Traumepita Fensterbau – ELEGANT CLASSIC CSS
   Author: Professional Website Developer
   Brand: Traumepita Fensterbau | www.traumepita.com
------------------------- */

/*-------------------
 CSS RESET & BASE STYLES
-------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Times, 'Times New Roman', serif;
  background: #F7F7F7;
  color: #222;
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #145374;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #EAA135;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/*-------------------
  TYPOGRAPHY SCALE
-------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, 'Times New Roman', serif;
  color: #145374;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
  margin-bottom: 18px;
  font-weight: 600;
}
h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  font-weight: 500;
}
.section h2, .content-wrapper > h2 {
  margin-bottom: 24px;
}
p, .section p, .content-wrapper p {
  margin-bottom: 18px;
}
.rating-summary {
  color: #333;
  font-size: 1.1rem;
  margin-top: 18px;
}

/*-----------------
  SPACING & CONTAINER
-------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px 0 rgba(61,70,94,.06);
}
.section:last-of-type, section:last-of-type {
  margin-bottom: 0;
}

/*---------------------
  ELEGANT FLEXBOX GRIDS
----------------------*/
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card-container, .feature-grid {
  justify-content: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #E3E6ED;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(61,70,94,.07);
  color: #163148;
  font-size: 1rem;
  flex-direction: row;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(61,70,94,.10);
  min-width: 240px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .18s;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(230, 161, 53, 0.14);
  transform: translateY(-4px) scale(1.02);
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(20,83,116,.08);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(20,83,116,0.14);
  transform: translateY(-4px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/*---------------------
  NAVIGATION
---------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(20,83,116,0.04);
  position: sticky;
  top: 0;
  z-index: 998;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  max-width: 1160px;
  margin: 0 auto;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 20px;
  align-items: center;
}
.main-nav li {
  margin-bottom: 0;
}
.main-nav a {
  font-family: 'Montserrat', Times, 'Times New Roman', serif;
  font-size: 1.05rem;
  color: #163148;
  padding: 5px 0;
  transition: color .18s;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #EAA135;
  border-bottom:2px solid #EAA135;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}
.cta-btn {
  font-family: 'Montserrat', Times, 'Times New Roman', serif;
  display: inline-block;
  background: #EAA135;
  color: #fff !important;
  padding: 11px 28px;
  border-radius: 28px;
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 24px;
  box-shadow:0 2px 10px -6px #b06c03;
  border: none;
  cursor: pointer;
  transition: background .18s, box-shadow .26s, color .2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #145374;
  color: #fff!important;
  box-shadow:0 4px 12px -4px #145374;
}

/*-------------------------
  MOBILE NAV, HAMBURGER
-------------------------*/
.mobile-menu-toggle {
  display: none;
  background: #EAA135;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 7px 18px 7px 12px;
  cursor: pointer;
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 1060;
  transition: background .18s;
  box-shadow: 0 2px 12px 0 rgba(20,83,116,.11);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #b06c03;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F7F7F7;
  z-index: 1100;
  transform: translateX(-105vw);
  transition: transform .36s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: 0 6px 24px 0 rgba(20, 83, 116, 0.16);
  padding-top: 46px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: #EAA135;
  color: #fff;
  font-size: 1.8rem;
  border: none;
  border-radius: 7px;
  padding: 6px 16px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(230,161,53,.13);
  transition: background .18s;
  z-index: 1110;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #b06c03;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 44px;
  padding-left: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Times, 'Times New Roman', serif;
  color: #145374;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 0;
  border-radius: 4px;
  transition: color .18s, background .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #EAA135;
  background: #e3e6ed;
}

/* Mobile-only nav */
@media (max-width: 1020px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/*-------------------------
  HERO, CTA, SECTION STYLES
-------------------------*/
.hero, .hero-product {
  background: #E3E6ED;
  padding: 60px 0 54px 0;
  margin-bottom: 44px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 30px 0 rgba(20,83,116,0.08);
}
.hero .content-wrapper,
.hero-product .content-wrapper {
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}
.cta {
  background: #145374;
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(20,83,116,.10);
  border-radius: 21px;
  text-align: center;
  margin-bottom: 44px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .cta-btn {
  background: #EAA135;
  color: #fff !important;
  margin-top: 10px;
}
.cta .cta-btn:hover {
  background: #fff;
  color: #145374 !important;
  box-shadow:0 4px 16px 0 #EAA13544;
}

/*---------------------
  TESTIMONIALS
---------------------*/
.testimonials {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(61,70,94,0.05);
  color: #163148;
}
.testimonials h2 {
  margin-bottom: 20px;
}
.testimonial-card {
  background: #E3E6ED;
  color: #163148;
  border-left: 5px solid #145374;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 28px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  font-style: italic;
  position: relative;
}
.testimonial-card span {
  font-style: normal;
  font-family: 'Montserrat', Times, serif;
  color: #145374;
  font-size: 1.08rem;
  margin-left: 24px;
  font-weight: 500;
}

/*---------------------
  FOOTER
---------------------*/
footer {
  background: #163148;
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 80px;
  border-radius: 30px 30px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #EAA135;
  font-family: 'Montserrat', Times, serif;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: color .18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 0.99rem;
  opacity: 0.92;
  margin-bottom: 15px;
  line-height: 1.7;
}
.footer-contact a {
  color: #EAA135;
  transition: color .2s;
  word-break: break-all;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 5px;
  vertical-align: text-bottom;
  display: inline-block;
}

/*---------------------
  CARDS, LISTS
---------------------*/
ul, ol {
  margin-bottom: 18px;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}
.card-container {
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(20,83,116,0.06);
  border-radius: 14px;
}

/*---------------------
  TABLES (for legal)
---------------------*/
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 18px;
}
th, td {
  border: 1px solid #e3e6ed;
  padding: 14px;
  text-align: left;
}
th {
  background: #E3E6ED;
  color: #145374;
  font-family: 'Montserrat', serif;
}

/*-----------------------
  COOKIES CONSENT BANNER
------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff6e6;
  color: #3b3a34;
  border-top: 2px solid #EAA135;
  box-shadow: 0 -2px 24px 0 rgba(20,83,116,0.10);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px 20px 15px;
  gap: 16px;
  transition: transform .35s cubic-bezier(.82,0,.18,1), opacity .24s;
}
.cookie-banner.hidden {
  display: none !important;
  opacity: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  border: none;
  font-family: 'Montserrat', serif;
  padding: 8px 26px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  background: #EAA135;
  color: #fff;
  margin-right: 6px;
  box-shadow:0 2px 10px -8px #b06c03;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #145374;
  color: #fff;
}
.cookie-btn.secondary {
  background: #E3E6ED;
  color: #145374;
  border: 1px solid #eaa135;
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: #b06c03;
  color: #fff;
  border-color: #b06c03;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,38,54,.50);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s cubic-bezier(.82,0,.18,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  padding: 36px 28px 28px 28px;
  width: 92%;
  max-width: 420px;
  border-radius: 19px;
  box-shadow: 0 6px 32px 0 rgba(22,49,72,.19);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal-content h2 {
  margin-bottom: 10px;
  color: #145374;
  font-size: 1.3rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 0;
}
.cookie-category label {
  font-size: 1.07rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #e3e6ed;
  border-radius: 13px;
  position: relative;
  outline: none;
  transition: background .18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #EAA135;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform .19s;
  box-shadow:0 1px 3px rgba(0,0,0,.07);
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 1.6rem;
  color: #b06c03;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:focus,
.cookie-modal-close:hover {
  color: #145374;
}

/*--------------------
   RESPONSIVE DESIGN
--------------------*/
@media (max-width: 1020px) {
  header, .main-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .container {
    padding: 0 10px;
    max-width: 96vw;
  }
  .footer-nav {
    gap: 18px;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 900px) {
  .section, section {
    padding: 28px 8px;
  }
  .feature-grid, .content-grid {
    gap: 12px;
    flex-wrap: wrap;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 11px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .section, section, .hero, .hero-product {
    padding: 18px 0 14px 0;
    border-radius: 12px;
  }
  .feature-item, .card {
    min-width: 72vw;
    max-width: 99vw;
    padding: 18px 10px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .mobile-menu-toggle {
    top: 13px;
    right: 13px;
  }
  .mobile-menu-close {
    top: 13px;
    right: 14px;
  }
  .mobile-menu {
    padding-top: 33px;
  }
  .mobile-nav {
    margin-top: 24px;
    gap: 17px;
    padding-left: 18px;
  }
}
@media (max-width: 480px) {
  .hero, .hero-product, .section, section {
    padding: 8px 0;
    border-radius: 8px;
  }
  .feature-item, .card, .testimonial-card {
    padding: 14px 4px;
  }
  .container {
    padding: 0 3px;
  }
  .cookie-modal-content {
    padding: 15px 6px 16px 11px;
  }
  .footer-contact {
    font-size: 0.92rem;
  }
}

/*----------------------------
 Micro-interactions & Effects
----------------------------*/
.cta-btn, .cookie-btn {
  transition: background .19s, color .19s, border .16s, box-shadow .21s;
}
.feature-item img {
  width: 36px; height: 36px;
  margin-bottom: 3px;
  filter: grayscale(22%) contrast(1.1);
  opacity: 0.96;
}
.feature-item:hover img {
  filter: none;
  opacity: 1;
}

input[type='text'], input[type='email'], input[type='tel'], textarea {
  font-family: 'Roboto', serif;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #E3E6ED;
  border-radius: 6px;
  margin-bottom: 18px;
  max-width: 480px;
  background: #fcfcfc;
  transition: border-color .16s;
}
input:focus, textarea:focus {
  border-color: #EAA135;
  background: #fff;
  outline: none;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #EAA135;
}

/*-------------------
  Accessibility
--------------------*/
:focus-visible {
  outline: 2px solid #EAA135;
  outline-offset: 1px;
}

[aria-current], .main-nav a:active, .footer-nav a:active {
  color: #eaa135;
}

/* Utility Spacing */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/*---------------------
 Hide elements utility
----------------------*/
.d-none { display: none !important; }
.d-block { display: block !important; }

/*---------------------
  Print Styles
----------------------*/
@media print {
  header, .footer-nav, .cookie-banner, .mobile-menu { display: none !important; }
  .section, section { background: #fff; box-shadow: none; }
  body, html { background: #fff; }
}

/*-------------------
 END - Traumepita Fensterbau CSS
-------------------*/
