/* ====================
   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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #214056;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
ul, ol {
  list-style: none;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #214056;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
}
p {
  margin-bottom: 16px;
}

b, strong {
  font-weight: 700;
}

small {
  font-size: 0.9em;
  color: #4c6176;
}

/* =====================
   LAYOUT & CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  background: #fff;
  border-bottom: 2px solid #D9E7EF;
  position: relative;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img[alt*="Renovierung"] {
  height: 48px;
  width: auto;
  margin-right: 24px;
  vertical-align: middle;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  font-size: 1rem;
  color: #214056;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav a:not(.btn-primary):hover, nav a:not(.btn-primary):focus {
  background: #D9E7EF;
  color: #214056;
}
nav .btn-primary {
  margin-left: 16px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}

/* ========================
   BUTTONS & CTAs
   ======================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 2px 10px rgba(33,64,86,0.07);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn-primary {
  background: #214056;
  color: #fff;
  border: 2px solid #214056;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FDB84C;
  border-color: #FDB84C;
  color: #214056;
}
.btn-secondary {
  background: #D9E7EF;
  color: #214056;
  border: 2px solid #214056;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FDB84C;
  color: #214056;
  border-color: #FDB84C;
}

/* ====== FLEXBOX LAYOUTS ======= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.features-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(33,64,86,0.07);
  padding: 28px 24px 24px 24px;
  flex: 1 1 230px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.features-grid img {
  width: 44px;
  height: 44px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 10px rgba(33,64,86,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: #D9E7EF;
  border-radius: 16px;
  margin-bottom: 20px;
  min-width: 235px;
  box-shadow: 0 3px 14px rgba(33,64,86,0.09);
  transition: box-shadow 0.17s;
}
.testimonial-card:hover { box-shadow: 0 7px 24px rgba(33,64,86,0.14); }

.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.rating {
  display: flex;
  gap: 3px;
}
.rating img {
  width: 22px;
  height: 22px;
}

/* Feature items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact details */
.contact-details, .working-hours {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.contact-details p,
.working-hours span {
  margin-bottom: 0 !important;
}

/* Map placeholder */
.map-embed .map-placeholder {
  background: #F9FBFD;
  border: 2px dashed #D9E7EF;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  color: #547088;
}

/* Main CTAs */
.content-wrapper > .btn-primary, .content-wrapper > .btn-secondary {
  margin-top: 24px;
}

/* ===========
   FOOTER
   =========== */
footer {
  background: #214056;
  color: #fff;
  padding: 40px 0 0 0;
}
.footer-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #32577b;
}
.footer-navigation nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-navigation nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  opacity: 0.86;
  padding: 4px 7px;
  transition: opacity 0.18s, background 0.16s;
  border-radius: 6px;
}
.footer-navigation nav a:hover, .footer-navigation nav a:focus {
  background: #FDB84C;
  color: #214056;
  opacity: 1;
}
.footer-navigation .btn-primary {
  background: #FDB84C;
  color: #214056;
  border: 2px solid #FDB84C;
  margin-left: 14px;
}
.footer-navigation .btn-primary:hover, .footer-navigation .btn-primary:focus {
  background: #fff;
  color: #214056;
  border-color: #fff;
}
.contact-info {
  margin-top: 28px;
  display: flex;
  flex-direction: row;
  gap: 38px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
  color: #D9E7EF;
}
.contact-info img {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  vertical-align: bottom;
}
.legal {
  margin: 30px 0 0 0;
  text-align: center;
  opacity: 0.86;
}
.legal small {
  color: #B9CFE2;
}

/* ============
   MOBILE MENU
   ============ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #214056;
  font-size: 2.15rem;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 102;
  transition: color 0.18s;
  line-height: 1;
  padding: 0 5px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FDB84C;
}
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: #214056;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0,0.26,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  box-shadow: -3px 0 40px rgba(33,64,86,0.19);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 15px 24px;
  font-size: 2.15rem;
  background: none;
  border: none;
  color: #FDB84C;
  cursor: pointer;
  align-self: flex-start;
  z-index: 205;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 0 44px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  padding: 16px 0px 12px 0px;
  margin-bottom: 3px;
  border-radius: 6px 0 0 6px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FDB84C;
  color: #214056;
}
.mobile-menu.open {
  display: flex;
}

@media (max-width:768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .footer-navigation, .footer-navigation nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .contact-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 18px;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: #214056;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  box-shadow: 0 -4px 24px rgba(33,64,86,0.05);
  border-radius: 18px 18px 0 0;
  z-index: 1001;
  animation: bannerSlideIn 0.65s cubic-bezier(0.6,0.05,0.36,1);
}
@keyframes bannerSlideIn {
  from { transform: translateY(60px); opacity: 0; }
  to {transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 0%;
  margin-bottom: 0;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-banner button {
  padding: 9px 19px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: 2px solid #214056;
  background: #D9E7EF;
  color: #214056;
  cursor: pointer;
  font-size: 0.97rem;
  transition: background 0.18s, color 0.15s;
}
.cookie-banner button.accept {
  background: #FDB84C;
  border: 2px solid #FDB84C;
  color: #214056;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #214056;
  color: #fff;
  border-color: #214056;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #efefef;
  color: #214056;
}
.cookie-banner button.settings {
  background: #D9E7EF;
  color: #214056;
  border-color: #214056;
}
.cookie-banner button.settings:hover {
  background: #FDB84C;
  color: #214056;
  border-color: #FDB84C;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 11px 15px 11px;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }
}

/* =========== COOKIE MODAL =========== */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(33,64,86,0.48);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #214056;
  border-radius: 19px;
  box-shadow: 0 10px 40px rgba(33,64,86,0.21);
  padding: 36px 32px 26px 32px;
  width: 98vw;
  max-width: 410px;
  animation: modalUp 0.44s cubic-bezier(0.55,0.08,0.24,1.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modalUp {
  from { transform: translateY(52px) scale(0.97); opacity: 0.6; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: #214056;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  flex: 1;
}
.cookie-category input[type="checkbox"] {
  accent-color: #214056;
  width: 17px;
  height: 17px;
}
.cookie-category input[disabled] {
  outline: 0;
  opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 24px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 8px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  border: 2px solid #214056;
  background: #D9E7EF;
  color: #214056;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.18s, color 0.15s;
}
.cookie-modal-actions .accept {
  background: #FDB84C;
  border-color: #FDB84C;
  color: #214056;
}
.cookie-modal-actions .accept:hover {
  background: #214056;
  color: #fff;
  border-color: #214056;
}
.cookie-modal-actions .reject:hover {
  background: #efefef;
  color: #214056;
}

@media (max-width:440px) {
  .cookie-modal, .cookie-banner {
    font-size: 0.96em;
    padding: 12px 7px 16px 7px !important;
  }
}

/* =============
   VISUAL CARD STYLES
   ============= */
.card,
.features-grid > div,
.testimonial-card {
  border-radius: 16px;
  box-shadow: 0 5px 28px rgba(33,64,86,0.10);
}

ul {
  margin-bottom: 21px;
  padding-left: 30px;
  list-style-type: disc;
}
ol {
  margin-bottom: 21px;
  padding-left: 32px;
  list-style-type: decimal;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: #214056;
}

/* Icon Alignment */
.features-grid img, .contact-details img, .working-hours img {
  margin-right: 7px;
  vertical-align: middle;
}

/* =============
   RESPONSIVE FLEXBOX CHANGES
   ============= */
@media (max-width: 960px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* =============
   MICRO-ANIMATIONS & HOVER EFFECTS
   ============= */
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .features-grid > div:hover {
  box-shadow: 0 8px 30px rgba(33,64,86,0.20);
  transform: translateY(-4px) scale(1.01) rotate(-0.35deg);
}

.btn-primary, .btn-secondary {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, border 0.18s, transform 0.11s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* =============
   GEOMETRIC STRUCTURED ACCENTS
   ============= */
.features-grid > div, .card, .testimonial-card {
  border-bottom: 7px solid #FDB84C;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}
.features-grid > div:last-child, .card:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* Bold angular shapes (decorative only) */
.section {
  position: relative;
}
.section::after {
  content: '';
  display: block;
  width: 65px;
  height: 7px;
  background: #FDB84C;
  border-radius: 18px 2px 18px 2px;
  margin: 32px 0 0 0;
}
.section:last-child::after { display: none; }
@media (max-width:640px){ .section::after { margin-top: 17px; width: 45px; } }

/* Remove after if visually colliding with CTAs or footers on single-section pages */

/* Typography tweaks for geometric_structured */
h1,h2,h3,h4 { text-transform: none; font-stretch: semi-expanded; }
h1,h2 { letter-spacing: 0.01em; }
h2 { border-bottom: 3.5px solid #D9E7EF; display: inline-block; padding-bottom: 6px; }
@media (max-width: 480px) { h1 { font-size: 1.6rem; } h2 { font-size: 1.13rem; } }

/* =============
   FOCUS STATES
   ============= */
a, button, input, select, textarea {
  outline: none;
}
a:focus, button:focus {
  box-shadow: 0 0 0 2.4px #FDB84C44;
  border-radius: 6px;
}

/* =============
   UTILITIES
   ============= */
.text-center { text-align: center !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-16 { gap: 16px !important; }

/* =============
   PRINT
   ============= */
@media print {
  .cookie-banner, .mobile-menu, header, footer { display: none !important; }
  body { color: #111 !important; background: #fff !important; font-size: 11pt !important; }
}

/* =============
   END
   ============= */
