/* =====================================================================
   Scandinavian Clean CSS for Haut & Glanz Ratgeber
   Brand: Modern, minimal, calm, trustworthy
======================================================================= */

/* ---------------------------------------------------------
   RESET & BASELINE
--------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F5F3EF;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #284B63;
  background: #F5F3EF;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
a {
  color: #284B63;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus, a:hover {
  color: #8A7452;
}

ul, ol {
  margin: 16px 0 16px 20px;
}
li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* ---------------------------------------------------------
   TYPOGRAPHY
--------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #284B63;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.1rem; }
.hero-sub, .section-sub { font-size: 1.25rem; color: #8A7452; font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 500; margin-bottom: 20px; letter-spacing: 0.01em; }
p {
  margin-bottom: 16px;
  font-size: 1.04rem;
  color: #284B63;
}
strong, b { font-weight: 600; }

/* ---------------------------------------------------------
   CONTAINER & LAYOUT
--------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(40,75,99,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section:last-child {
  margin-bottom: 0;
}

/* Spacing for visual separation */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(40,75,99,0.08);
  margin-bottom: 20px;
  padding: 24px 18px 20px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(40,75,99,0.15);
  transform: translateY(-3px) scale(1.02);
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  padding: 22px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(40,75,99,0.04);
  gap: 15px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item:hover { box-shadow: 0 4px 14px rgba(40,75,99,0.11); transform: translateY(-2px); }

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.cta {
  background: #284B63;
  color: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  margin-bottom: 60px;
}
.cta .btn {
  margin-top: 14px;
}
.cta h2, .cta p {
  color: #fff;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.testimonials {
  margin-bottom: 60px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF;
  border: 1.5px solid #ECEEF0;
  border-radius: 12px;
  padding: 20px 24px 20px 22px;
  box-shadow: 0 2px 12px rgba(40,75,99,0.11);
  flex: 1 1 290px;
  min-width: 260px;
  max-width: 360px;
  margin-bottom: 20px;
  position: relative;
  color: #284B63;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 7px;
  color: #284B63;
}
.testimonial-name {
  display: block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #8A7452;
  font-size: 1rem;
  font-weight: 600;
}
.testimonial-card:before {
  content: '“';
  color: #B29C7D;
  font-size: 2.3rem;
  position: absolute;
  left: 12px;
  top: 8px;
}

/* ---------------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------------- */
header {
  background: #FFFFFF;
  border-bottom: 1px solid #ECEEF0;
  box-shadow: 0 0px 8px rgba(40,75,99,0.05);
  width: 100%;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 32px;
  margin-left: 0;
  align-self: flex-start;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-right: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #284B63;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:focus, .main-nav a:hover {
  background: #F5F3EF;
  color: #8A7452;
}

.btn {
  display: inline-block;
  background: #284B63;
  color: #FFFFFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px rgba(40,75,99,0.09);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s, box-shadow 0.16s;
  outline: none;
}
.btn-primary {
  background: #284B63;
  color: #fff;
  border: 1.5px solid #284B63;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8A7452;
  color: #FFF;
  border-color: #8A7452;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 22px rgba(137,117,82,0.13);
}
.btn-secondary {
  background: #F5F3EF;
  color: #284B63;
  border: 1px solid #B29C7D;
}

.btn-secondary:hover, .btn-secondary:focus {
  background: #E9E5DB;
  color: #8A7452;
  border-color: #8A7452;
}
/* Buttons in banners/modals */
.cookie-btn {
  margin: 0 7px;
  font-size: 1rem;
  min-width: 120px;
  height: 42px;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #284B63;
  cursor: pointer;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  margin-left: 14px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F5F3EF;
}

/* Mobile menu (overlay) */
.mobile-menu {
  position: fixed;
  z-index: 9900;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,75,99,0.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.68,-0.16,.27,1.25);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 9999;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  transition: background 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #B29C7D;
  color: #fff;
}
.mobile-nav {
  margin-top: 88px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 82%;
  margin-bottom: 4px;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #B29C7D;
}

/* Overlay prevent scroll */
body.mobile-menu-open {
  overflow: hidden;
}

/* ---------------------------------------------------------
   HERO / BANNER
--------------------------------------------------------- */
.hero {
  background: linear-gradient(110deg, #F5F3EF 70%, #E9E5DB 100%);
  padding: 48px 0 24px 0;
  margin-bottom: 40px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 40px rgba(40,75,99,0.06);
}
.hero .container {
  align-items: center;
  flex-direction: column;
  gap: 0;
}
.hero .content-wrapper {
  align-items: center;
}
.hero h1 {
  color: #284B63;
  text-align: center;
  margin-bottom: 12px;
  font-size: 2.35rem;
}
.hero p, .hero-sub {
  text-align: center;
}
.hero .btn {
  margin-top: 24px;
  box-shadow: 0 2px 14px rgba(40,75,99,0.07);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
footer {
  background: #F5F3EF;
  border-top: 1px solid #ECEEF0;
  width: 100%;
  padding: 35px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
footer img {
  height: 38px;
  width: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.footer-nav a {
  font-size: 1rem;
  color: #8A7452;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: color 0.15s;
  margin-right: 8px;
}
.footer-nav a:focus, .footer-nav a:hover {
  color: #284B63;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  font-size: 1rem;
  color: #284B63;
}
.contact-info span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-info img {
  height: 17px;
  width: auto;
}

/* ---------------------------------------------------------
   COOKIE BANNER & MODAL
--------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 2px solid #B29C7D;
  box-shadow: 0 -2px 16px rgba(40,75,99,0.11);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 18px 18px 20px;
  gap: 16px;
  font-size: 1rem;
  transition: transform 0.46s cubic-bezier(.68,-0.16,.27,1.25);
}
.cookie-banner.closed {
  transform: translateY(140%);
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  color: #284B63;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.cookie-btn {
  border: none;
  padding: 0.8em 1.8em;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(40,75,99,0.07);
  transition: background 0.15s, color 0.15s, box-shadow 0.1s;
}
.cookie-btn.accept {
  background: #284B63;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8A7452;
}
.cookie-btn.reject {
  background: #fff;
  color: #284B63;
  border: 1.5px solid #B29C7D;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #EEE;
}
.cookie-btn.settings {
  background: #f5f3ef;
  color: #8A7452;
  border: 1px solid #B29C7D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #ECEEF0;
  color: #284B63;
}

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 100001;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(40,75,99,0.52);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(40,75,99,0.23);
  min-width: 320px;
  max-width: 94vw;
  width: 420px;
  padding: 34px 34px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #284B63;
}
.cookie-modal h2 {
  margin-bottom: 5px;
  font-size: 1.34rem;
}
.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 14px;
}
.cookie-pref-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  background: #F5F3EF;
  border-radius: 7px;
  padding: 9px 11px;
}
.cookie-pref-label { flex: 1; font-weight: 500; min-width: 0; }
.cookie-pref-toggle {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  background: #E1E5EB;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-pref-toggle input { display: none; }
.cookie-pref-toggle .slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #B29C7D;
  border-radius: 50%;
  transition: left 0.17s, background 0.18s;
}
.cookie-pref-toggle input:checked + .slider {
  background: #284B63;
  left: 21px;
}
.cookie-pref-item.essential .cookie-pref-toggle {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}

/* ---------------------------------------------------------
   RESPONSIVENESS (Mobile First)
--------------------------------------------------------- */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 930px) {
  .main-nav { gap: 18px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-info { align-items: flex-start; }
}
@media (max-width: 800px) {
  .feature-grid, .testimonial-slider, .card-container, .content-grid { gap: 16px; }
  .footer-nav { gap: 14px; }
  .section { padding: 28px 8px; }
  .cta, .hero { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 768px) {
  .main-nav, .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin-right: 0;
  }
  .container, .content-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid, .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cta {
    padding: 23px 5px;
    border-radius: 7px;
  }
  .footer-nav { flex-direction: column; gap: 5px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  header .container { flex-wrap: wrap; min-height: 54px; }
}
@media (max-width: 580px) {
  h1 { font-size: 1.60rem; }
  h2 { font-size: 1.24rem; }
  .hero h1 { font-size: 1.34rem; }
  .btn, .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.99rem; }
  .cookie-modal { min-width: 95vw; padding: 16px 7vw 16px 7vw; }
}
@media (max-width: 430px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px 7px 19px 7px; font-size: 0.99rem; }
  .cookie-modal { width: 99vw; }
}

/* ---------------------------------------------------------
   FORM & UTILITY
--------------------------------------------------------- */
input, select, textarea {
  font-family: inherit;
  font-size: 1.01rem;
  border-radius: 6px;
  border: 1px solid #B29C7D;
  padding: 10px 13px;
  outline: none;
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #284B63;
}
.cta-box {
  background: #F5F3EF;
  border-radius: 9px;
  padding: 18px 13px 15px 13px;
  margin-top: 10px;
  box-shadow: 0 1px 8px rgba(40,75,99,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

/* ---------------------------------------------------------
   ACCENT & NAV HIGHLIGHT
--------------------------------------------------------- */
.accent {
  color: #8A7452 !important;
}
.bg-accent {
  background: #B29C7D;
  color: #fff !important;
}

/* ---------------------------------------------------------
   ICONS
--------------------------------------------------------- */
ul li img, .contact-info img, p img {
  height: 21px;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------------------------------------------------------
   MICRO-INTERACTIONS & ANIMATIONS
--------------------------------------------------------- */
.btn, .feature-item, .card, .main-nav a, .footer-nav a {
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, transform 0.14s;
}
.cookie-btn, .cookie-pref-toggle .slider {
  transition: background 0.15s, color 0.12s;
}

.testimonial-card {
  transition: box-shadow 0.16s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(40,75,99,0.17);
  transform: translateY(-3px) scale(1.04);
}

/* ---------------------------------------------------------
   SPECIAL CASES (section naming)
--------------------------------------------------------- */
.privacy, .gdpr, .terms, .about-team, .why-trust, .contact-section, .thank-you-section, .cookie-policy {
  margin-bottom: 60px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(40,75,99,0.07);
  padding: 36px 14px 30px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.services {
  margin-bottom: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(40,75,99,0.08);
  padding: 30px 15px 24px 15px;
}
.services ul {
  margin: 14px 0 18px 20px;
}
.services a.btn {
  margin-top: 8px;
}

/* Visibly mark essential cookie row as such */
.cookie-pref-item.essential .cookie-pref-label {
  color: #9A9280;
  font-style: italic;
  font-size: 0.99rem;
}

/* ---------------------------------------------------------
   CLEARFIX (just in case)
--------------------------------------------------------- */
.clearfix:after {
  content: '';
  display: block;
  clear: both;
}
