/* ===== Olvie Renovierungsexperten – style.css ===== */
/* --- CSS Reset & Normalize --- */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F3F6F9;
  color: #22405C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #22405C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2990C;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(34, 64, 92, 0.07);
}
th, td {
  padding: 14px 12px;
  text-align: left;
}
th {
  background: #FAF4EA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #22405C;
  font-size: 18px;
}
td {
  font-size: 16px;
  border-bottom: 1px solid #F3F6F9;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* --- Typography Scale and Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22405C;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 32px;
  margin-bottom: 18px;
}
h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 18px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #6B899E;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 400;
}

@media (min-width: 600px) {
  h1 {
    font-size: 48px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 24px;
  }
}

/* --- Container and Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(245, 170, 40, 0.07), 0 1.5px 7px rgba(34, 64, 92, 0.04);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(34, 64, 92, 0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.24s, transform 0.24s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(242, 153, 12, 0.19);
  transform: translateY(-2px) scale(1.011);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FAF4EA;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(34, 64, 92, 0.03);
  padding: 20px 16px;
  flex: 1 1 260px;
  min-width: 230px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border-color 0.2s;
  border: 1px solid #F3F6F9;
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(242, 153, 12, 0.17);
  border-color: #F2990C;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(90deg, #FFF8F0 0%, #F3F6F9 100%);
  padding: 60px 0 50px 0;
  margin-bottom: 45px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 2px 18px rgba(242,153,12,0.08);
}
.hero h1 {
  color: #22405C;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .hero {
    padding: 38px 0 30px 0;
    border-radius: 0 0 20px 20px;
  }
  .content-wrapper {
    padding: 0;
    gap: 18px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    margin-bottom: 18px;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: #FAF4EA;
  padding: 38px 0 38px 0;
  margin-bottom: 60px;
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(245,170,40,0.06);
}
.cta-banner .cta-button {
  margin-top: 18px;
}

/* --- Buttons --- */
.cta-button, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: #F2990C;
  color: #fff !important;
  border-radius: 100px;
  border: none;
  box-shadow: 0 0.5px 5px rgba(242,153,12,0.11);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.2s, transform 0.16s;
  margin-right: 8px;
  text-align: center;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: #d18400;
  color: #fff;
  box-shadow: 0 4px 16px rgba(242,153,12,0.17);
  transform: translateY(-1px) scale(1.03);
}

/* --- Price Tag in Features --- */
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #d18400;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  background: #FDF0DB;
  border-radius: 100px;
  padding: 4px 12px;
  display: inline-block;
}

/* --- Footer --- */
footer {
  background: #22405C;
  color: #FAF4EA;
  padding: 42px 0 28px 0;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.footer-logo img {
  max-width: 68px;
  border-radius: 14px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: #fff;
  font-size: 16px;
  opacity: 0.89;
  transition: color 0.2s, opacity 0.2s;
}
.footer-menu a:hover {
  color: #F2990C;
  opacity: 1;
}
.footer-contact {
  font-size: 15px;
  opacity: 0.9;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FDF0DB;
  padding: 4px;
  transition: box-shadow 0.24s;
  box-shadow: 0 0.5px 2px rgba(242,153,12,0.15);
}
.footer-social a:hover img {
  box-shadow: 0 2px 12px rgba(242,153,12,0.21);
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- Mobile Navigation & Hamburger Menu --- */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
nav a {
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.14s;
}
nav a:hover, nav a:focus {
  background: #FDF0DB;
  color: #d18400;
}
.mobile-menu-toggle {
  display: none;
  background: #F2990C;
  color: #fff;
  font-size: 32px;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  border: none;
  margin-left: 16px;
  transition: background 0.14s;
  z-index: 1201;
}
.mobile-menu-toggle:active {
  background: #d18400;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,64,92,0.92);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.5,0,0.3,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 38px;
  border: none;
  margin: 22px 22px 0 0;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover {
  color: #F2990C;
}
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 0;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F2990C;
  background: #fff2e0;
}
@media (max-width: 1050px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1050px) {
  .mobile-menu {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* --- Header --- */
header {
  background: #fff;
  box-shadow: 0 1.5px 10px rgba(34,64,92,0.08);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1200;
  transition: box-shadow 0.2s;
}
header .container {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img {
  max-width: 62px;
  border-radius: 12px;
}

/* --- Cards & Feature Items --- */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(224,158,44,0.07),0 1.5px 7px rgba(34,64,92,0.04);
  margin-bottom: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- Testimonial Cards --- */
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 19px;
  color: #22405C;
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.65;
}
.client-info {
  font-size: 16px;
  color: #6B899E;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}

/* --- Info and Text Blocks --- */
.text-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px rgba(224,158,44,0.04);
  padding: 28px 20px;
  margin-bottom: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 500px) {
  .text-section {
    padding: 16px 8px;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section {
    padding: 22px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 8px;
  }
  table {
    font-size: 14px;
  }
  th, td {
    padding: 12px 8px;
    font-size: 14px;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff6eb;
  color: #22405C;
  box-shadow: 0 -2px 18px rgba(224,158,44,0.08),0 -1.5px 7px rgba(34,64,92,0.07);
  z-index: 3000;
  padding: 22px 18px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 20px 20px 0 0;
  animation: slideUp 0.35s cubic-bezier(0.5,0,0.3,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-consent-banner p {
  flex: 1 1 210px;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: #F2990C;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 0.5px 5px rgba(242,153,12,0.11);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn.secondary {
  background: #F3F6F9;
  color: #22405C;
  border: 1px solid #F2990C;
}
.cookie-btn.secondary:hover {
  background: #f0ece5;
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,64,92,0.25);
  z-index: 4000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.23s cubic-bezier(0.55,0.03,0.67,0.97);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 36px rgba(242,153,12,0.13);
  padding: 30px 20px 24px 20px;
  width: 94%;
  max-width: 400px;
  margin-bottom: 0;
  animation: slideModalUp 0.39s cubic-bezier(0.5,0,0.3,1);
}
@keyframes slideModalUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-modal h2 {
  font-size: 22px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}
.cookie-modal label {
  font-size: 16px;
  color: #22405C;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #F3F6F9;
  border-radius: 24px;
  transition: background 0.14s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #F2990C;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
  box-shadow: 0 0.5px 2.5px rgba(34,64,92,0.07);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
}

/* --- Note Paragraph --- */
.note {
  background: #FAF4EA;
  color: #884900;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  margin-top: 8px;
}

/* --- Utility --- */
::-webkit-input-placeholder { color: #B1B7BE; }
::-moz-placeholder { color: #B1B7BE; }
:-ms-input-placeholder { color: #B1B7BE; }
::placeholder { color: #B1B7BE; }

/* --- Animations / Microinteractions --- */
.cta-button, .cookie-btn {
  transition: background 0.15s, color 0.14s, box-shadow 0.2s, transform 0.16s;
}
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.23s, border 0.2s, transform 0.14s;
}
.feature-item:active {
  transform: scale(0.98);
}

/* --- Accessibility & Contrast for Testimonials & Reviews --- */
.testimonial-card, .testimonial-card blockquote, .testimonial-card .client-info {
  background: #fff !important;
  color: #22405C !important;
}
blockquote, .testimonial-card blockquote {
  color: #22405C;
  font-size: 19px;
}

/* --- Spacing between all cards/sections --- */
section, .text-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
section:last-child, .text-section:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

/* --- Remove overlapping: always keep at least 20px margin between key elements --- */
.card-container > *, .features-grid > *, .content-grid > * {
  margin-bottom: 0 !important;
}

/* --- Print friendly --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay, .cta-button {
    display: none !important;
  }
  nav, .footer-menu {
    display: none !important;
  }
  footer, header {
    box-shadow: none !important;
  }
}
