/* ========================================================
   Cryon Shift Renovierungen – Minimalist Flexbox CSS
   Modern, clean, consistent with brand guidelines
   Responsive, mobile-first, Flexbox ONLY, NO Grid/Columns
   ========================================================*/

/* ---- CSS RESET & BASE TYPOGRAPHY ---- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #22416C;
  line-height: 1.6;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #22416C;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #84A98C;
  outline: none;
  text-decoration: underline;
}
strong {
  font-weight: 600;
}

/* ---- TYPOGRAPHY SCALE ---- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h3, .h3 {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #22416C;
}
.section ul, .section ol {
  margin-bottom: 20px;
}

/* ===== BASE LAYOUT CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---- MAIN SECTIONS ---- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---- CARDS & FLEX CONTAINERS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  min-width: 260px;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34, 65, 108, 0.06);
  padding: 32px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(34, 65, 108, 0.09);
  transform: translateY(-4px) scale(1.016);
}

.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #F6F3EE;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(34,65,108, 0.06);
  padding: 24px;
  margin-bottom: 20px;
  max-width: 560px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(34,65,108, 0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 12px;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(34,65,108, 0.06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 32px rgba(34, 65, 108, 0.08);
  transform: translateY(-2px) scale(1.012);
}
.features-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.text-section {
  margin-bottom: 24px;
}

/* -------- BUTTONS -------- */
.button-primary {
  display: inline-flex;
  align-items: center;
  background: #22416C;
  color: #fff;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 30px;
  margin-top: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(34,65,108, 0.06);
  transition: background 0.18s, box-shadow 0.25s, transform 0.16s;
  outline: none;
}
.button-primary:focus, .button-primary:hover {
  background: #84A98C;
  color: #22416C;
  box-shadow: 0 4px 24px rgba(34,65,108, 0.16);
  transform: translateY(-1px) scale(1.03);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  background: #84A98C;
  color: #22416C;
  border-radius: 30px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 30px;
  margin-top: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(34,65,108,0.06);
  outline: none;
  transition: background 0.15s, color 0.2s, transform 0.16s;
}
.button-secondary:focus, .button-secondary:hover {
  background: #22416C;
  color: #fff;
  box-shadow: 0 4px 24px rgba(34,65,108, 0.13);
  transform: translateY(-1px) scale(1.025);
}


/* ---- HEADER & NAVIGATION ---- */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(34,65,108,0.03);
  position: sticky;
  top: 0;
  z-index: 22;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 6px;
  color: #22416C;
  transition: background 0.13s, color 0.19s;
}
header nav a.button-primary {
  margin-left: 20px;
  padding-left: 22px;
  padding-right: 22px;
}
header nav a:focus, header nav a:hover {
  background: #F6F3EE;
  color: #84A98C;
}

header img[alt="Cryon Shift Renovierungen"] {
  height: 40px;
  max-width: 140px;
  margin-right: 36px;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #22416C;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 18px;
  display: none;
  transition: background 0.2s;
  border-radius: 8px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6F3EE;
}

/* ---- MOBILE NAV ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 32px;
  box-shadow: 0 8px 36px rgba(34,65,108, 0.18);
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.55, 0, 0.1, 1), opacity 0.2s;
  will-change: transform, opacity;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #22416C;
  cursor: pointer;
  margin-bottom: 16px;
  margin-right: 24px;
  align-self: flex-end;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6F3EE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 40px 20px 32px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 10px 4px;
  color: #22416C;
  background: none;
  border-radius: 6px;
  width: 100%;
  transition: background 0.12s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F6F3EE;
  color: #84A98C;
}

@media (max-width: 1024px) {
  header nav {
    gap: 12px;
  }
  header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ---- MAIN ---- */
main {
  display: flex;
  flex-direction: column;
  min-height: 68vh;
  background: #fff;
}

/* --- CTA / HERO --- */
.hero {
  background: #F6F3EE;
  padding: 60px 0;
  text-align: left;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(34,65,108,0.08);
}

/* ---- FOOTER ---- */
footer {
  background: #F6F3EE;
  border-top: 1px solid #E5E5E5;
  padding: 32px 0 18px 0;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
footer nav a {
  color: #22416C;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.8;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #84A98C;
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  color: #22416C;
  font-size: 0.97rem;
  opacity: 0.93;
  margin-top: 8px;
}
.footer-info img {
  vertical-align: middle;
  width: 18px;
  margin-right: 8px;
  opacity: 0.82;
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.45rem; }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .container {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px;
  }
  .footer-info {
    flex-direction: column;
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 480px) {
  h1, .h1 { font-size: 1.35rem; }
  h2, .h2 { font-size: 1.07rem; }
  .button-primary, .button-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 0;
  }
}

/* ---- MISC ELEMENTS ---- */
ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}

/* ---- MICRO-INTERACTIONS ---- */
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close, header nav a, .mobile-nav a {
  transition: background 0.15s, color 0.14s, box-shadow 0.17s, transform 0.13s;
}

/* ---- ACCENTS & SUBTLE SHADOWS ---- */
.card, .features-grid > div, .testimonial-card {
  box-shadow: 0 2px 12px rgba(34,65,108,0.06);
}

/* ---- ENSURE SPACING BETWEEN ALL CARDS/SECTIONS ---- */
section > .container + .container, section + section, .section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px !important;
}

/* ---- COOKIE CONSENT BANNER & MODAL ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #22416C;
  color: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 32px rgba(34,65,108,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 40px;
  z-index: 150;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.32s, transform 0.34s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-message {
  flex: 1;
  padding-right: 12px;
  color: #fff;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-btn {
  background: #fff;
  color: #22416C;
  border-radius: 22px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.19s, transform 0.14s;
  min-width: 44px;
}
.cookie-btn.accept {
  background: #84A98C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #22416C;
  color: #fff;
}
.cookie-btn.reject {
  background: #F6F3EE;
  color: #22416C;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E5E5E5;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #22416C;
  color: #84A98C;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner-message {
    padding-right: 0;
  }
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(34,65,108,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #22416C;
  border-radius: 20px;
  box-shadow: 0 14px 44px rgba(34,65,108,0.10);
  padding: 38px 32px 24px 32px;
  min-width: 340px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #22416C;
  min-width: 110px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #F6F3EE;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: background 0.15s;
}
.cookie-toggle:checked {
  background: #84A98C;
}
.cookie-toggle::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(34,65,108,0.08);
  position: relative;
  left: 0; top: 1px;
  transition: left 0.2s;
}
.cookie-toggle:checked::-webkit-slider-thumb {
  left: 18px;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  color: #22416C;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 6px;
  transition: background 0.15s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #F6F3EE;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 18px 6px 14px 6px;
    min-width: 94vw;
  }
}

/* -- ACCESSIBLE FOCUS STYLES -- */
a:focus, button:focus, .cookie-btn:focus {
  outline: 2px dashed #84A98C;
  outline-offset: 2px;
}

/* ---- CUSTOM SCROLLBARS ---- */
::-webkit-scrollbar {
  width: 8px;
  background: #F6F3EE;
}
::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 6px;
}

/* ---- FORM ELEMENTS (if any forms added) ---- */
input, textarea, select {
  background: #F6F3EE;
  border-radius: 8px;
  padding: 10px 14px;
  border: 1px solid #E5E5E5;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #22416C;
  width: 100%;
  transition: border 0.16s, background 0.22s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #84A98C;
  background: #fff;
  outline: none;
}

/* ---- CARDS FOR TEXT/IMAGE/GENERAL ---- */
.text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(34,65,108, 0.06);
  padding: 24px 18px;
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  margin-bottom: 10px;
}

/* --- UTILITY CLASSES --- */
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.text-center { text-align: center; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }

/* --- ICONS INSIDE LI/TEXT --- */
ul li img, ol li img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  position: relative;
  top: 2px;
}

/* --- FAQ ACCORDION STYLE (if implemented JS) --- */
.faq-question {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  margin-bottom: 6px;
  transition: color 0.18s;
}
.faq-question:hover { color: #84A98C; }
.faq-answer {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #22416C;
}


/* ---- PRINT OPTIMIZATION ---- */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  section, .section, .container, .content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
}

/* ---- END OF CSS ---- */
