/* ==========================================================================  
   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 {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F6FB;
  color: #28415D;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: 80px; /* For cookie banner space on mobile */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.25em;
}
a {
  color: #C18B48;
  text-decoration: none;
  transition: color .2s cubic-bezier(.5,1,.5,1);
}
a:hover, a:focus {
  color: #A16C2A;
  text-decoration: underline;
  outline: none;
}
strong {
  font-weight: 700;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 0.6em;
  letter-spacing: -.01em;
  color: #28415D;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.08;
  color: #C18B48;
  text-shadow: 2px 4px 20px rgba(40,65,93,0.10);
}
h2 {
  font-size: 2rem;
  color: #28415D;
  margin-bottom: 0.7em;
}
h3 {
  font-size: 1.3rem;
  color: #A16C2A;
  margin-bottom: 0.6em;
}
h4, h5, h6 { font-size: 1.1rem; }

/* BUTTONS */
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: #C18B48;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  border: none;
  border-radius: 36px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(161,108,42,0.09);
  margin-top: 2em;
  transition: background .15s, box-shadow .18s, transform .12s;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #A16C2A;
  box-shadow: 0 4px 30px rgba(40,65,93,0.16), 0 0 0 4px #ffeca8c4;
  transform: translateY(-2px) scale(1.04);
}

.btn-secondary {
  display: inline-block;
  background: #28415D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 36px;
  padding: 14px 28px;
  margin-top: 1.2em;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(40,65,93,0.08);
  transition: background .15s, box-shadow .18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #C18B48;
  color: #fff;
}

/* ==========================================================================  
   CONTAINER & GLOBAL LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 7px;
  }
}

/* ==========================================================================  
   FLEXBOX & SPACING PATTERNS 
   ========================================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(161,108,42,0.06), 0 1.5px 7px rgba(40,65,93,0.03);
  padding: 32px 22px 28px 22px;
  transition: box-shadow .21s cubic-bezier(.65,.75,.32,1);
}
.card:hover, .card:focus {
  box-shadow: 0 10px 36px 0 rgba(40,65,93,0.15), 0 3px 15px 0 rgba(193,139,72,0.10);
}

.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;
}
@media (max-width: 900px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 19px rgba(40,65,93,0.07);
  border: 2px solid #F4F6FB;
  transition: box-shadow .17s, border-color .19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #A16C2A;
  box-shadow: 0 5px 30px 0 rgba(193,139,72,0.10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px rgba(40,65,93,0.05);
  padding: 30px 20px 24px 20px;
  min-width: 265px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.feature-item img {
  height: 48px;
  width: 48px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 7px 22px 0 rgba(161,108,42,0.08);
  transform: scale(1.025) translateY(-4px);
}

.feature-grid, .service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 16px;
}
.service-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px rgba(40,65,93,0.06);
  padding: 28px 20px 22px 20px;
  min-width: 240px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.11s;
}
.service-item img {
  height: 44px;
  width: 44px;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 6px 18px 0 rgba(193,139,72,0.08);
  transform: scale(1.025) translateY(-3px);
}

.project-summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 16px;
}
.project-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 19px rgba(40,65,93,0.07);
  padding: 28px 18px 22px 18px;
  min-width: 250px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.project-card:hover {
  box-shadow: 0 8px 24px rgba(161,108,42,0.10);
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.usp-list, .benefit-list, .guarantee-list, .contact-details-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.usp-list li, .benefit-list li, .guarantee-list li, .contact-details-list li {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1.1rem;
  box-shadow: 0 1.5px 6px rgba(40,65,93,0.04);
  color: #28415D;
  margin-bottom: 8px;
  flex: 1 1 270px;
}
.usp-list img, .benefit-list img, .guarantee-list img, .contact-details-list img {
  width: 30px;
  height: 30px;
}

.opening-hours {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #A16C2A;
  background: #fff;
  padding: 13px 16px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 1.5px 7px rgba(193,139,72,0.05);
  margin-top: 8px;
}

.star-rating, .star-rating-summary {
  color: #C18B48;
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-top: 0.55em;
}
.star-rating-summary p {
  color: #28415D;
  font-size: 1rem;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 18px;
}
.faq-item {
  background: #fdfdfd;
  border-radius: 13px;
  box-shadow: 0 1.5px 7px rgba(40,65,93,0.04);
  padding: 19px 18px 10px 18px;
  transition: box-shadow .13s;
}
.faq-item h3 {
  cursor: pointer;
  color: #C18B48;
  font-size: 1.15rem;
}
.faq-item .faq-answer {
  margin-top: 7px;
  font-size: 1rem;
}

/* ==========================================================================  
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(90deg, #fff 65%, #F4F6FB 100%);
  padding: 60px 0 48px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}
.hero h1 {
  color: #C18B48;
  margin-bottom: 12px;
  font-size: 2.5rem;
}
.hero p {
  color: #28415D;
  font-size: 1.18rem;
  margin-bottom: 20px;
  font-weight: 400;
}
@media (max-width: 768px) {
  .hero {
    padding: 38px 0 22px 0;
  }
  .hero h1 {
    font-size: 1.45rem;
    margin-bottom: 9px;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ==========================================================================  
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  box-shadow: 0 1.5px 7px rgba(40,65,93,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

header img[alt="Magyra Renovierung"] {
  display: block;
  height: 42px;
  width: auto;
  margin-right: 36px;
}
nav.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #28415D;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  border-radius: 22px;
  transition: background .16s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #C18B48;
  color: #fff;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #C18B48;
  padding: 7px 14px 7px 7px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  z-index: 201;
  transition: background .14s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #f9e6c7;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #28415D;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(100vw);
  transition: transform 0.5s cubic-bezier(.6,-0.1,.01,1.22);
  box-shadow: 0 7px 26px rgba(40,65,93,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #fff;
  align-self: flex-end;
  margin: 32px 24px 18px 0;
  cursor: pointer;
  transition: color .16s;
  z-index: 202;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #C18B48;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  gap: 17px;
  padding-top: 35px;
  transition: opacity .18s;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: none;
  padding: 13px 16px;
  border-radius: 14px;
  width: 100%;
  display: inline-block;
  transition: background .16s, color .14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #C18B48;
  color: #fff;
}

@media (max-width: 1024px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 3px;
  }
  header img[alt="Magyra Renovierung"] {
    height: 33px;
    margin-right: 10px;
  }
  .btn-primary {
    margin-top: 13px;
    padding: 11px 18px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================  
   FOOTER
   ========================================================================== */
footer {
  background: #28415D;
  color: #fff;
  margin-top: 80px;
  padding: 46px 0 24px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
}
.footer-branding img {
  height: 46px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  opacity: 0.93;
  transition: color .17s, opacity .12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C18B48;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
}
.footer-contact p img {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-contact a {
  color: #fff;
  font-weight: 500;
  border-bottom: 1.5px dashed #C18B48;
  transition: color .17s, border-color .12s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #C18B48;
  border-color: #fff;
}
.footer-social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.footer-social a img {
  height: 29px;
  width: 29px;
  opacity: 0.87;
  transition: opacity .1s, filter .11s;
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 0 8px #C18B48);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .footer-branding img {
    height: 34px;
  }
}

/* ==========================================================================  
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 3px solid #C18B48;
  box-shadow: 0 -2px 18px rgba(40,65,93,0.13);
  padding: 22px 14px 22px 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  transition: transform .33s cubic-bezier(.7,.09,.47,1.19), opacity .3s;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(90px);
}
.cookie-banner__content {
  color: #28415D;
  max-width: 690px;
  font-size: 1.03rem;
  font-weight: 400;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner__btn,
.cookie-banner__btn--settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 36px;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .13s, color .12s, box-shadow .14s, opacity .11s;
  outline: none;
}
.cookie-banner__btn {
  background: #C18B48;
  color: #fff;
  margin-right: 2px;
}
.cookie-banner__btn--reject {
  background: #f5e9da;
  color: #A16C2A;
  border: 1.5px solid #C18B48;
}
.cookie-banner__btn--settings {
  background: #fff;
  color: #28415D;
  border: 2px solid #C18B48;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #A16C2A;
  color: #fff;
  opacity: 1;
}
.cookie-banner__btn--reject:hover, .cookie-banner__btn--reject:focus {
  background: #fff1e3;
  color: #C18B48;
  opacity: 1;
}
.cookie-banner__btn--settings:hover, .cookie-banner__btn--settings:focus {
  background: #F4F6FB;
  color: #A16C2A;
  border: 2px solid #A16C2A;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 7px 18px 7px;
    font-size: 0.97rem;
  }
  .cookie-banner__content {
    max-width: unset;
    font-size: 1rem;
  }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(40,65,93,0.91);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity .23s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 22px;
  padding: 36px 26px 26px 26px;
  max-width: 480px;
  width: 96vw;
  box-shadow: 0 10px 34px rgba(40,65,93,0.23);
  font-size: 1.06rem;
  color: #28415D;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.cookie-modal__close {
  position: absolute;
  top: 8px;
  right: 17px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #C18B48;
  cursor: pointer;
  opacity: 0.93;
  transition: color .16s, opacity .13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #A16C2A;
  opacity: 1;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 600;
}
.cookie-modal__toggle {
  width: 40px;
  height: 22px;
  background: #F4F6FB;
  border-radius: 20px;
  border: 1.5px solid #C18B48;
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background .16s;
}
.cookie-modal__toggle input {
  appearance: none;
  width: 100%;
  height: 100%;
  margin: 0;
  outline: none;
}
.cookie-modal__toggle span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C18B48;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .22s, background .15s;
}
.cookie-modal__toggle input:checked + span {
  left: 21px;
  background: #A16C2A;
}
.cookie-modal__category--essential label {
  color: #a3a6ab;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cookie-modal__category--essential .cookie-modal__toggle {
  background: #fff5d6;
  border: 1.5px solid #C18B48;
  opacity: 0.68;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}

/* ==========================================================================  
   RESPONSIVE: LAYOUTS AND TYPOGRAPHY
   ========================================================================== */
@media (max-width: 1050px) {
  .feature-grid, .service-tabs, .testimonial-list, .project-summary-cards {
    gap: 14px;
  }
  .usp-list, .benefit-list, .guarantee-list, .contact-details-list {
    gap: 11px;
  }
}
@media (max-width: 900px) {
  .feature-item, .service-item, .project-card {
    flex: 1 1 99%;
    min-width: 180px;
  }
  .feature-grid, .service-tabs, .testimonial-list, .project-summary-cards {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
}
@media (max-width: 650px) {
  .usp-list li, .benefit-list li, .guarantee-list li, .contact-details-list li {
    flex: 1 1 97%;
    font-size: 0.98rem;
    padding: 12px 9px;
  }
  .footer-branding {
    gap: 7px;
    font-size: 0.97rem;
  }
  .footer-branding img {
    height: 25px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
  .footer-social a img { height: 20px; width: 20px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.08rem; }
}

/* ==========================================================================  
   UTILITIES & MICRO-INTERACTIONS
   ========================================================================== */
::-webkit-input-placeholder { color: #adb6c2; }
:-ms-input-placeholder { color: #adb6c2; }
::placeholder { color: #adb6c2; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}

[tabindex]:focus-visible {
  outline: 2px solid #A16C2A;
  outline-offset: 2px;
}

/* Subtle fade/slide in for cards & sections */
.card, .feature-item, .service-item, .testimonial-card, .project-card, .faq-item {
  opacity: 0;
  transform: translateY(20px);
  animation: slideinCard 0.85s cubic-bezier(.65,.39,.3,.99) forwards;
}
@keyframes slideinCard {
  to { opacity: 1; transform: none; }
}

/* Loader overlay for cookie consent modal */
.cookie-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(40,65,93,0.85);
  z-index: 2400;
  backdrop-filter: blur(0.5px);
}

/* General animation class for Javascript toggling (smooth reveal) */
.js-slide-in {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity .29s, transform .25s;
}

/* ==========================================================================  
   ACCESSIBILITY & MISC
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* End of stylesheet */