/*--------------------------------------------------
  KristallHaus Bremen Minimalist Style CSS
  Author: Professional Web Developer / Senior CSS
  For: css/style.css -- ALL PAGES
--------------------------------------------------*/
/* -------------------------
  CSS RESET + BASE NORMALIZE
--------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  color: #233D4D;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #233D4D;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #A9D6E5;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  color: #233D4D;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}
p {
  margin-bottom: 16px;
  color: #25333B;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  font-weight: 600;
}

/* ---------------------------
  LAYOUT CONTAINERS
-----------------------------*/
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*------------------------
  SECTION SPACING RULES
------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(33,38,44,0.03);
  border-radius: 14px;
  transition: box-shadow 0.2s;
}
section:last-child {
  margin-bottom: 0;
}

/*------------------------
  HEADER / NAVIGATION
------------------------*/
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F4F4F2;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 12px 0 rgba(33,61,77,0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
  position: relative;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 28px;
}
nav ul {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #233D4D;
  letter-spacing: 0.01em;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover,
nav ul li a:focus {
  background: #F4F4F2;
  color: #346989;
}
nav .btn-primary {
  margin-left: 22px;
}

/*----------------------
  BUTTON STYLES
-----------------------*/
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #233D4D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(33,61,77,0.05);
  transition: background 0.16s, box-shadow 0.16s, transform 0.11s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #A9D6E5;
  color: #233D4D;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px 0 rgba(33,61,77,0.09);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #A9D6E5;
  color: #233D4D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(33,61,77,0.06);
  transition: background 0.16s, color 0.16s, transform 0.11s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #233D4D;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px 0 rgba(33,61,77,0.13);
}
/* Standard for all buttons */
button, .btn-primary, .btn-secondary {
  outline: none;
  min-width: 44px;
  min-height: 36px;
}

/*----------------------------
  MOBILE NAVIGATION MENU
-----------------------------*/
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  color: #233D4D;
  font-size: 2rem;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(33,61,77,0.07);
  margin-left: 12px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #A9D6E5;
  color: #233D4D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px 0 rgba(33,61,77,0.18);
  z-index: 99;
  transition: transform 0.38s cubic-bezier(.67,0,.23,1), right 0s 0.38s;
  pointer-events: none;
}
.mobile-menu.open {
  right: 0;
  pointer-events: auto;
  transition: transform 0.38s cubic-bezier(.67,0,.23,1);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 28px 0 0;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #233D4D;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #A9D6E5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 48px;
  margin-left: 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: #233D4D;
  padding: 8px 0;
  font-weight: 500;
  border-radius: 5px;
  min-width: 140px;
  transition: background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F4F4F2;
  color: #346989;
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  nav ul {
    display: flex;
  }
}
/* Show burger on mobile */
@media (max-width: 1023px) {
  header .container {
    flex-wrap: wrap;
    gap: 0;
  }
  nav ul, nav .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu {
    display: flex;
  }
}

/*----------------------
  SECTIONS & CARDS
----------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 15px rgba(38,56,73,0.04);
  transition: box-shadow 0.18s, transform 0.12s;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(33,61,77,0.09);
  transform: translateY(-4px) scale(1.015);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 24px;
  background: #F4F4F2;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 240px;
  box-shadow: 0 1px 8px 0 rgba(33,61,77,0.03);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 9px;
  margin-bottom: 20px;
  background: #F4F4F2;
  color: #233D4D;
  box-shadow: 0 2px 12px 0 rgba(38,56,73,0.031);
  font-size: 1.03rem;
}
.testimonial-card p {
  color: #233D4D;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: #233D4D;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 8px;
}

.blog-preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(33,61,77,0.05);
  padding: 26px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.11s;
  display: flex;
  flex-direction: column;
}
.blog-preview:hover,
.blog-preview:focus-within {
  box-shadow: 0 8px 32px 0 rgba(33,61,77,0.09);
  transform: translateY(-3px) scale(1.008);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/*----------------------
  CUSTOM ICONS IN LISTS
----------------------*/
ul li,
ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: #233D4D;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

/*----------------------
  FOOTER
----------------------*/
footer {
  background: #F4F4F2;
  padding: 40px 0 18px 0;
  border-top: 1px solid #E3E3E1;
  box-shadow: 0 -2px 18px 0 rgba(33,61,77,0.041);
  margin-top: 32px;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 8px;
}
footer nav {
  flex-wrap: wrap;
  font-size: 0.98rem;
  margin-bottom: 8px;
  gap: 8px;
}
footer nav a {
  color: #233D4D;
  opacity: 0.83;
  transition: color 0.14s, opacity 0.14s;
  font-family: 'Montserrat', Arial, sans-serif;
}
footer nav a:hover,
footer nav a:focus {
  color: #A9D6E5;
  opacity: 1;
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 10px;
}
footer ul li {
  color: #233D4D;
  font-size: 1rem;
  align-items: center;
  gap: 7px;
}
footer .social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
footer .social-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.76;
  transition: opacity 0.15s;
  cursor: pointer;
}
footer .social-icons img:hover,
footer .social-icons img:focus {
  opacity: 1;
}
@media (max-width: 600px) {
  footer ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/*----------------------
  COOKIES CONSENT BANNER
----------------------*/
#cookie-banner,
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #233D4D;
  box-shadow: 0 -2px 24px 0 rgba(33,61,77,0.14);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: 32px 20px 24px 20px;
  z-index: 199;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity 0.28s, transform 0.28s;
}
#cookie-banner.active,
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner__text {
  max-width: 520px;
  line-height: 1.4;
  color: #233D4D;
  margin-bottom: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn,
.cookie-banner button {
  min-width: 44px;
  min-height: 36px;
  margin-right: 4px;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 20px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.13s, box-shadow 0.13s;
  box-shadow: 0 2px 8px 0 rgba(33,61,77,0.08);
}
.cookie-banner .btn-accept {
  background: #233D4D;
  color: #fff;
}
.cookie-banner .btn-accept:hover,
.cookie-banner .btn-accept:focus {
  background: #A9D6E5;
  color: #233D4D;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #233D4D;
  border: 1.5px solid #A9D6E5;
}
.cookie-banner .btn-reject:hover,
.cookie-banner .btn-reject:focus {
  background: #A9D6E5;
  color: #233D4D;
}
.cookie-banner .btn-settings {
  background: #F4F4F2;
  color: #233D4D;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #A9D6E5;
}
@media (max-width: 600px) {
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 5px 18px 5px;
    font-size: 0.97rem;
  }
}

/* Cookie Settings Modal */
#cookie-modal,
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 222;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(33,61,77, 0.17);
  align-items: center;
  justify-content: center;
}
#cookie-modal.open,
.cookie-modal.open {
  display: flex;
  animation: fadeIn 0.25s;
}
@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 44px 0 rgba(33,61,77,0.14);
  padding: 32px 22px 20px 22px;
  min-width: 324px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #233D4D;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.cookie-modal__category label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233D4D;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}
.cookie-modal__footer {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
  margin-top: 16px;
  justify-content: flex-end;
}
/* Toggle switches for analytics/marketing cookies */
.switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
}
.switch input {
  display: none;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #E3E3E1;
  border-radius: 22px;
  transition: background 0.18s;
}
.switch input:checked + .slider {
  background: #A9D6E5;
}
.switch .slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px 0 rgba(33,61,77,0.12);
  transition: transform 0.18s cubic-bezier(.6,0,.2,1);
}
.switch input:checked + .slider:before {
  transform: translateX(16px);
}

/*----------------------
  RESPONSIVE TYPOGRAPHY
----------------------*/
@media (max-width: 768px) {
  h1 {
    font-size: 2.05rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  section {
    padding: 28px 5px;
    margin-bottom: 32px;
    border-radius: 10px;
  }
  .content-wrapper {
    gap: 12px;
  }
}

/*---------------------
  OTHER UTILITIES
---------------------*/
.gap-xs { gap: 6px !important; }
.gap-sm { gap: 12px !important; }
.gap-md { gap: 20px !important; }
.gap-lg { gap: 32px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 14px !important; }
.mt-2 { margin-top: 22px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 18px !important; }
.mb-2 { margin-bottom: 28px !important; }

/* Ensuring minimum card/section spacing */
.card, .testimonial-card, .blog-preview, .feature-item, section, .card-container > *, .content-grid > *, .text-image-section > * {
  margin-bottom: 20px;
}

/*---------------------
  FORMS (for contact form)
---------------------*/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 12px;
  border: 1.5px solid #E3E3E1;
  border-radius: 8px;
  background: #F7FBFC;
  color: #233D4D;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #A9D6E5;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  color: #233D4D;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
  display: block;
}

/*-------------------
  MISC
--------------------*/
::-webkit-input-placeholder { color: #A1A7B3; }
::-moz-placeholder { color: #A1A7B3; }
:-ms-input-placeholder { color: #A1A7B3; }
::placeholder { color: #A1A7B3; }

hr {
  border: none;
  border-top: 1px solid #F4F4F2;
  margin: 32px 0 22px 0;
}

/*---------------------
  PRINT SANITIZER
---------------------*/
@media print {
  *, *:before, *:after { box-shadow: none !important; background: #fff !important; color: #111 !important; }
  section, header, footer { page-break-inside: avoid; }
}

/*------- END --------*/
