/* === CSS RESET & NORMALIZE === */
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F1FAEE;
  color: #1D3557;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* Artistic brush background */
  background-image: url('../assets/bg-brush.svg');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 350px 300px;
}
:root {
  --primary: #1D3557;
  --secondary: #F4A261;
  --accent: #F1FAEE;
  --card-bg: #fff;
  --header-bg: #fff;
  --footer-bg: #22325e;
  --shadow: 0 4px 16px rgba(29,53,87,0.07), 0 1.5px 6px rgba(244,162,97,0.06);
  --border-radius: 16px;
  --transition: 0.25s cubic-bezier(0.54,0.18,0.04,1.05);
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.8px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--secondary);
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
p, ul, ol, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
}
p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
ul, ol {
  margin-bottom: 20px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: #e76f51;
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}

/* === CONTAINERS & LAYOUTS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ======== SECTIONS & SPACING ======== */
main {
  margin-bottom: 50px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.about-preview, .contact-teaser, .hero {
  background: linear-gradient(100deg, #F1FAEE 80%, #F4A261 100%);
  border-radius: 0 0 80px 0;
}

/* ===== FLEX LAYOUTS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(29,53,87,0.12);
  transform: translateY(-4px) scale(1.02);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(29,53,87,0.07);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 22px rgba(29,53,87,0.13);
}
.feature-item {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  min-width: 240px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img {
  height: 44px;
  width: 44px;
  filter: drop-shadow(0 2px 3px #F4A26122);
}
.feature-item:hover {
  box-shadow: 0 12px 32px rgba(244,162,97,0.15);
  transform: translateY(-3px) scale(1.03);
}
.features-grid, .features-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}
.features-detail-grid {
  gap: 28px;
}
.feature-detail {
  flex: 1 1 240px;
  min-width: 230px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(31,41,61,0.05);
  padding: 20px 12px 20px 22px;
}
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 14px;
  min-width: 220px;
  flex: 1 1 220px;
  padding: 24px 20px 18px 20px;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s;
}
.step img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px #F4A26125);
}
.step:hover {
  box-shadow: 0 8px 34px rgba(244,162,97,0.18), 0 2px 6px #1D355711;
}
.case-study {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 10px #22325e11;
  margin-bottom: 20px;
  padding: 22px 16px;
}
.static-map {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1D3557;
  font-size: 1.06rem;
}
.contact-details {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 2px 3px #F4A26140);
}

/* CTA BUTTONS and INTERACTIVE ELEMENTS */
.cta-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.17rem;
  border: none;
  border-radius: 10px 30px 16px 30px;
  box-shadow: 0 2px 16px #F4A26125;
  padding: 15px 34px;
  margin-top: 8px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: #fa9900;
  transform: scale(1.04) translateY(-2px) rotate(-1deg);
  box-shadow: 0 4px 32px #F4A26128;
}

/* Header & NAVIGATION */
header {
  width: 100%;
  background: var(--header-bg);
  box-shadow: 0 2px 18px #1D355711;
  position: sticky;
  top: 0;
  z-index: 9100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  text-transform: uppercase;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 6px 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 6px;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a.active {
  background: var(--secondary);
  color: #fff;
}
header img[alt="ProBau Komplett"] {
  height: 54px;
  margin: 0 8px 0 0;
}
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 10px 24px 10px 24px;
  padding: 8px 18px 6px 18px;
  box-shadow: 0 1.5px 10px #F4A26120;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 9999;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #e76f51;
  outline: none;
  transform: scale(1.03) rotate(-3deg);
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #f1faeeee;
  box-shadow: 0 4px 48px #1D355766;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.84,0.15,0.38,1.03), opacity 0.32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 22px 10px 0;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--primary);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  z-index: 9600;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #e76f51;
  transform: rotate(5deg) scale(1.05);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 40px;
  width: 90vw;
  max-width: 360px;
}
.mobile-nav a {
  text-transform: uppercase;
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 0;
  color: var(--primary);
  border-bottom: 1.7px solid #F4A26144;
  width: 100%;
  display: block;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: #fff;
}

/* === HERO === */
.hero {
  padding: 62px 0 48px 0;
  margin-bottom: 0;
  background: linear-gradient(120deg, #F1FAEE 83%, #F4A261 100%);
  border-radius: 0 0 80px 0 / 0 0 52px 0;
  box-shadow: 0 1px 22px #F4A26122;
  overflow: hidden;
}
.hero .text-section h1 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.7rem;
  line-height: 1.07;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
}
.hero .text-section p {
  font-size: 1.25rem;
  color: #1D3557;
  margin-bottom: 24px;
}

/* === FOOTER === */
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 28px 0 36px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  opacity: 0.85;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 9px;
  text-decoration: none;
  padding: 0 3px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #F4A261;
  color: #22325e;
  text-decoration: underline;
  outline: none;
}
footer div > div {
  margin-bottom: 7px;
  font-size: 1.01rem;
  color: #F1FAEE;
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 7px;
  filter: invert(.1) sepia(1) hue-rotate(150deg) saturate(2);
}

/* ===== TESTIMONIALS ======= */
.testimonials .testimonial-card {
  margin-bottom: 24px;
  border-left: 7px solid #F4A261;
  background: #fff;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #1D3557;
  margin-bottom: 9px;
}
.testimonial-card strong {
  color: #F4A261;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
}
.testimonial-card img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 2px;
}

/* === Animations === */
@keyframes slideUp {
  0% { transform: translateY(40px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.section, .feature-item, .testimonial-card, .step, .case-study {
  animation: slideUp 0.6s cubic-bezier(0.47,0.19,0.15,1.12) 0.06s both;
}
.cta-btn, .mobile-menu-toggle {
  animation: fadeIn 0.55s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fffdf6;
  color: #1D3557;
  box-shadow: 0 -1.5px 30px #22325e24;
  z-index: 9700;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  padding: 18px 11vw 18px 5vw;
  font-size: 1rem;
  animation: fadeIn 0.7s;
  border-top: 3px solid #F4A261;
}
.cookie-banner p {
  margin-bottom: 0;
  color: #222;
  flex: 1 1 auto;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: .98rem;
  border: none;
  border-radius: 9px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.17s;
  box-shadow: 0 2px 8px #F4A26122;
  margin-right: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #e76f51;
  outline: none;
}
.cookie-banner .settings-btn {
  background: #22325e;
  color: #fff;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #1D3557;
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(29,53,87,0.15);
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .32s;
}
.cookie-modal {
  background: #fff;
  color: #1D3557;
  border-radius: 16px;
  box-shadow: 0 6px 44px #22325e25;
  min-width: 320px;
  max-width: 95vw;
  width: 430px;
  padding: 36px 32px 26px 32px;
  animation: slideUp .66s;
  position: relative;
  z-index: 9900;
}
.cookie-modal h2 {
  font-size: 1.55rem;
  margin-bottom: 14px;
  color: #1D3557;
}
.cookie-modal ul {
  margin: 0 0 10px 0;
  padding: 0;
  list-style: none;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 1.08rem;
}
.cookie-modal label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: .98rem;
}
.cookie-modal .toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 21px;
}
.cookie-modal .toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ebebeb;
  border-radius: 12px;
  transition: background .18s;
}
.cookie-modal .toggle input:checked + .slider {
  background: var(--secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px #F4A26144;
  transition: transform 0.18s;
}
.cookie-modal .toggle input:checked + .slider:before {
  transform: translateX(21px);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1D3557;
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #e76f51;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.18s;
  box-shadow: 0 1px 8px #F4A26112;
}
.cookie-modal button:hover { background: #e76f51; }

/* === CUSTOM ARTISTIC ELEMENTS === */
.feature-item, .testimonial-card, .step, .case-study {
  /* Artistic colored top border */
  border-top: 4px solid #F4A261;
  position: relative;
}
.feature-item:after, .step:after {
  content: "";
  position: absolute;
  bottom: 10px; left: 24px;
  width: 48px;
  height: 10px;
  background: #F4A26133;
  border-radius: 0 10px 10px 0;
  z-index: 1;
  pointer-events: none;
  opacity: .4;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 99vw;
  }
  header nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .features-grid, .features-detail-grid, .process-steps {
    gap: 20px;
  }
  header .container {
    gap: 8px;
  }
}
@media (max-width: 820px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .features-detail-grid, .process-steps, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .feature-detail, .step {
    min-width: 0;
  }
  .about-preview, .hero, .contact-teaser { border-radius: 0; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    padding: 15px 4vw 16px 4vw;
    font-size: 0.98rem;
  }
}
@media (max-width: 650px) {
  .section, section, .about-preview, .contact-teaser, .hero {
    padding: 26px 4vw;
  }
  .feature-item, .step, .feature-detail {
    padding: 15px 9px 13px 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
}
@media (max-width: 520px) {
  .static-map {
    font-size: .95rem;
  }
  .cta-btn {
    font-size: 1.01rem;
    padding: 13px 20px;
  }
  .cookie-banner {
    gap: 10px;
    padding: 11px 2vw;
    font-size: 0.96rem;
  }
  .cookie-modal {
    padding: 19px 8px 12px 12px;
    width: 97vw;
  }
}
@media (max-width: 400px) {
  h1 { font-size: 1.37rem; }
  h2 { font-size: 1.12rem; }
  .cta-btn {
    font-size: 0.96rem;
    padding: 10px 12px;
  }
}
