/* Pearly Repair Reisen – Modern Gradient Style – Responsive Flexbox CSS
   -----------------------------------------------------
   CRITICAL: NO CSS GRID. NO COLUMNS. ONLY FLEXBOX LAYOUTS!
   -----------------------------------------------------
   Fonts used: Lora (display), Montserrat (body)
   Colors: #24556D (primary), #FFD066 (secondary), #F7F4EF (accent)
*/

/* =======================
   CSS RESET & BASE STYLES
   ======================= */

html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: linear-gradient(120deg, #f7f4ef 0%, #ffe28c 100%);
  color: #24556D;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
  transition: background 0.4s cubic-bezier(.4,0,.2,1);
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
lol
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
ul {
  padding-left: 1em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: #24556D;
  font-weight: 700;
  margin-bottom: 0.7em;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.12rem;
}
p {
  margin-bottom: 1.25em;
}
a {
  color: #24556D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD066;
}
strong {
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
header {
  background: linear-gradient(90deg, #f7f4ef 65%, #ffd066 100%);
  box-shadow: 0 6px 20px 0 rgba(36,85,109,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header a img {
  height: 46px;
  margin-right: 28px;
  width: auto;
  transition: filter 0.25s;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #24556D;
  font-weight: 500;
  letter-spacing: 0;
  padding: 8px 0;
  border-radius: 4px;
  position: relative;
  transition: color 0.18s, background 0.22s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin-top: 2px;
  background: #FFD066;
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
  border-radius: 2px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 70%;
}
.main-nav .btn-primary {
  background: #24556D;
  color: #fff;
  border-radius: 7px;
  padding: 8px 22px;
  margin-left: 18px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
  box-shadow: 0px 2px 14px rgba(36,85,109,0.09);
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: #FFD066;
  color: #24556D;
}

/* MOBILE BURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #24556D;
  padding: 6px 14px;
  margin-left: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
  z-index: 150;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #FFD066;
  color: #24556D;
}

/* =======================
   MOBILE SLIDE-IN MENU
   ======================= */
.mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(36,85,109,0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.33s cubic-bezier(.4,0,.2,1), transform 0.33s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  margin: 22px 28px 6px 0;
  align-self: flex-end;
  border-radius: 6px;
  transition: background 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FFD066;
  color: #24556D;
}
.mobile-nav {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 0 32px 40px 32px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: #fff;
  padding: 16px 0 4px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  display: block;
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD066;
  color: #24556D;
  border-radius: 6px;
  padding-left: 10px;
}

/* Hide main nav & show burger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================
   MAIN CONTENT SPACING
   ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section,
.text-image-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ====================================
   BUTTONS
   ==================================== */
.btn-primary, .btn-secondary {
  appearance: none;
  display: inline-block;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  box-shadow: 0px 3px 16px rgba(36,85,109,0.10);
  text-align: center;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.17s, border 0.15s;
}
.btn-primary {
  background: #24556D;
  color: #fff;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFD066;
  color: #24556D;
  box-shadow: 0 4px 24px #FFD06633;
}
.btn-secondary {
  background: #FFD066;
  color: #24556D;
  letter-spacing: 0.03em;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #24556D;
  color: #FFD066;
  box-shadow: 0 4px 24px #24556d22;
}

/* =======================
   FLEX LAYOUT PATTERNS
   ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(36,85,109,0.06);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .card:focus{
  box-shadow: 0 8px 36px #24556d24;
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =======================
   FEATURE/VALUES GRID & LISTS
   ======================= */
.feature_grid, .value_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.feature_grid li,
.value_grid li {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 15px 0 #24556d0c;
  padding: 32px 22px 24px 22px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 200px;
  max-width: 300px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.21s, transform 0.17s;
}
.feature_grid li:hover, .value_grid li:hover {
  box-shadow: 0 8px 36px #24556d22;
  transform: translateY(-4px) scale(1.02);
}
.feature_grid li img,
.value_grid li img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 2px rgba(36,85,109,0.07));
}

.feature_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 16px 0;
}
.feature_list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #24556D;
  gap: 12px;
}
.feature_list img {
  margin-right: 6px;
  width: 24px;
  height: 24px;
}

.service_list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 22px 0;
}
.service_list li {
  background: #fff;
  box-shadow: 0 2px 14px #24556d0b;
  border-radius: 10px;
  padding: 24px 22px 18px 22px;
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.15s;
}
.service_list li:hover {
  box-shadow: 0 12px 32px #ffd06622;
  transform: translateY(-3px) scale(1.019);
}
.price {
  margin-top: auto;
  color: #24556D;
  background: #FFD066;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1.07rem;
  padding: 4px 12px;
  align-self: flex-start;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

/* =========================
   TESTIMONIALS (CRITICAL CONTRAST)  
   ========================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 3px 16px #24556d10;
  border-radius: 14px;
  max-width: 560px;
  color: #24556D;
  font-size: 1.07rem;
  transition: box-shadow 0.18s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px #ffd06622;
  transform: translateY(-2px) scale(1.013);
}
.testimonial-details {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #24556D;
  font-weight: 600;
  font-size: 1rem;
}
.testimonial-details span:first-child {
  color: #FFD066;
  font-size: 1.25rem;
  letter-spacing: 1px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* ==================================
   FOOTER
   ================================== */
footer {
  background: #24556D;
  color: #fff;
  padding: 38px 0 24px 0;
  box-shadow: 0 -4px 16px #24556d15;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #FFD066;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
  padding-bottom: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #FFD066;
}
.footer-info {
  font-size: 0.99rem;
  font-family: 'Lora', serif;
  color: #fff;
  margin-top: 8px;
  opacity: 0.9;
}

/* ===========================
   COOKIE CONSENT BANNER/MODAL
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #24556D;
  color: #fff;
  padding: 25px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 5000;
  box-shadow: 0 -1px 22px #24556d3d;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-banner-text {
  font-size: 1.02rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  max-width: 600px;
  margin-right: 10px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  font-size: 0.99rem;
  border: none;
  background: #FFD066;
  color: #24556D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  padding: 8px 18px;
  margin: 0;
  box-shadow: 0 2px 12px #FFD06622;
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.15s;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #fff;
  color: #24556D;
  outline: none;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: #24556D;
  border: 2px solid #FFD066;
  font-weight: 600;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #FFD066;
  color: #24556D;
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,85,109,0.86);
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #24556D;
  border-radius: 16px;
  box-shadow: 0 8px 48px #24556d3c;
  padding: 40px 28px 30px 28px;
  min-width: 330px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  text-align: left;
  font-size: 1rem;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: #24556D;
  font-size: 1.7rem;
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.16s;
  border-radius: 8px;
}
.cookie-modal .cookie-modal-close:hover {
  background: #FFD066;
}
.cookie-modal .cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category-row input[type=checkbox] {
  accent-color: #24556D;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category-row .always-on {
  color: #24556D;
  background: #FFD066;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.92rem;
  margin-left: 8px;
  font-weight: 600;
}
.cookie-modal .cookie-preference-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal button {
  background: #FFD066;
  color: #24556D;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  font-size: 1.02rem;
  padding: 8px 22px;
  box-shadow: 0 1px 8px #FFD06622;
  transition: background 0.14s, color 0.13s, box-shadow 0.12s;
  cursor: pointer;
}
.cookie-modal button:hover,
.cookie-modal button:focus {
  background: #24556D;
  color: #FFD066;
}

/* ===========================
   TYPOGRAPHY & HIERARCHY
   =========================== */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  .main-nav a,
  .footer-nav a,
  .btn-primary, .btn-secondary {
    font-size: 1rem;
  }
  .feature_grid li,
  .value_grid li,
  .service_list li {
    min-width: 120px;
    padding: 18px 10px 12px 10px;
    font-size: 0.97rem;
  }
  .testimonial-card {
    padding: 14px 10px;
    font-size: 1rem;
  }
  .cookie-modal .cookie-modal-content {
    padding: 18px 11px 18px 13px;
  }
  .container { padding-left: 10px; padding-right: 10px; }
  section { padding: 20px 8px; }
}

/* ===========================
   RESPONSIVE LAYOUTS
   =========================== */
@media (max-width: 850px) {
  .feature_grid, .value_grid, .service_list {
    flex-direction: column;
    gap: 18px;
  }
  .feature_grid li, .value_grid li, .service_list li {
    max-width: 99%;
    min-width: 150px;
  }
}
@media (max-width: 575px) {
  .feature_grid li, .value_grid li, .service_list li {
    padding: 15px 5px 10px 10px;
  }
  .testimonial-card, .card {
    padding: 10px 5px 10px 10px;
    font-size: 0.99rem;
  }
}

/* =======================
   SPACING & ALIGNMENT VERIFICATION
   ======================= */
section, .feature_grid li, .service_list li, .testimonial-card, .card {
  margin-bottom: 20px;
}
.content-wrapper, .feature_grid, .value_grid, .service_list, .feature_list {
  gap: 20px;
}

/* =======================
   FORM (generic, contact links)
   ======================= */
input, select, textarea {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1px solid #24556D;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #FFD066;
  outline: none;
}

/* =======================
   ACCESSIBILITY
   ======================= */
:focus {
  outline: 2px solid #FFD066;
  outline-offset: 1.5px;
}

/* =======================
   MICRO-INTERACTIONS/ANIMATION
   ======================= */
.btn-primary, .btn-secondary, .main-nav a, .mobile-nav a, .cookie-banner button, .cookie-modal button {
  transition: background 0.16s, color 0.17s, box-shadow 0.18s, border 0.13s, transform 0.14s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}
.card:active, .feature_grid li:active, .value_grid li:active, .service_list li:active {
  transform: scale(0.985);
}

/* =======================
   UTILITY CLASSES
   ======================= */
.hide {
  display: none !important;
}
.stack-vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack-horizontal {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =======================
   END OF CSS
   ======================= */

/*
Fonts should be loaded in HTML <head> (e.g. via Google Fonts):
<link href="https://fonts.googleapis.com/css?family=Lora:700|Montserrat:400,500,700&display=swap" rel="stylesheet">
*/
