/* =========================================================================
   Scandinavian Clean Style - Complete Stylesheet for BauMeister Leverkusen
   Brand Colors: #003366 (primary), #F7F7F7 (secondary/background), #D2AD5C (accent)
   Fonts: 'Montserrat' (display), 'Roboto' (body)
   Only Flexbox layout. Responsive & Accessible. 
=========================================================================== */

/* === CSS RESET === */
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, 
main, 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 { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
article, aside, footer, header, nav, section, main { display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; background: transparent; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
button {background:none;border:none;cursor:pointer;font:inherit;}
button:focus {outline: 2px solid #003366;}

/* === RESET FOR FORM ELEMENTS === */
input, textarea, select, button {
  font-family: inherit;
  font-size: 100%;
}

/* === BRAND FONT FACE === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F7F7;
  color: #222;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #003366;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.125rem; }
p, ul, ol, details { margin-bottom: 16px; }

strong, b {font-weight:700;}

/* ============= SPACING SYSTEM ============= */
:root {
  --bm-primary: #003366;
  --bm-secondary: #F7F7F7;
  --bm-accent: #D2AD5C;
  --bm-text: #222;
  --bm-muted: #6B7B8A;
  --bm-shadow: 0 2px 12px rgba(40, 60, 100, 0.07);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--bm-shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* == Utility Flex Containers == */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.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;
  gap: 15px;
  background: #F7F7F7;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 0 0 1.5px #EBEBEB;
  min-width: 230px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--bm-shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #F7F7F7;
  box-shadow: 0 2px 20px rgba(40,60,100,0.06);
  margin-bottom: 20px;
  transition: box-shadow .18s;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(40,60,100,0.13);
}
.testimonial-meta {
  margin-top: 6px;
  font-size: 1rem;
  color: #003366;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* For hero or cards in one column on mobile */
}

/* ====== HEADER & MAIN NAVIGATION ====== */
header {
  background: #fff;
  border-bottom: 1.5px solid #EBEBEB;
  padding: 0;
  box-shadow: 0 1px 8px rgba(40, 60, 100, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 20px 20px;
  position: relative;
}
header img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #003366;
  font-size: 1rem;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  font-weight: 500;
  line-height: 1.35;
  position: relative;
}
nav a:hover,
nav a:focus {
  background: #F1F7FD;
  color: #003366;
}
nav a.primary-cta {
  background: var(--bm-accent);
  color: #003366;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 10px;
  box-shadow: 0 2px 12px rgba(210,173,92,0.09);
  transition: background .16s, box-shadow.14s;
}
nav a.primary-cta:hover, nav a.primary-cta:focus {
  background: #B49543;
  color: #fff;
  box-shadow: 0 6px 14px rgba(210,173,92,0.18);
}

/* MOBILE MENU BUTTONS & OVERLAY */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  font-size: 2rem;
  color: #003366;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 16px;
  border: none;
  transition: background 0.14s;
  z-index: 2001;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E6ECF4;
}
/* Hide burger on desktop */
@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247,247,247, 0.97);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.5,1.43,.72,.98);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  margin: 25px 25px 0 0;
  background: none;
  color: #003366;
  border-radius: 8px;
  transition: background .14s;
  z-index: 4010;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #DFE7EF;
}
.mobile-nav {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.mobile-nav a {
  display: block;
  width: 95%;
  text-align: left;
  font-size: 1.15rem;
  color: #003366;
  background: none;
  padding: 14px 18px;
  border-radius: 7px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .17s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D2AD5C;
  color: #fff;
}

/* Hide desktop nav on mobile; show it on larger screens */
@media (max-width: 999px) {
  nav {
    display: none !important;
  }
}

/* ========== MAIN STYLES FOR PAGE CONTENT ========== */
main {flex:1;display:flex;flex-direction:column;gap:0;}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--bm-shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Remove section background on some simple policy pages for minimalism */
html body.page-policy section {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

ul, ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
}
ul li img {
  width: 28px; height: 28px; flex: none;
  margin-top: 2px;
}
details summary {
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #003366;
  padding: 10px 0;
  font-size: 1.15rem;
  outline:none;
  transition: color 0.14s;
}
details[open] summary {
  color: var(--bm-accent);
}
details {
  background: #F7F7F7;
  padding: 12px 18px;
  border-radius: 9px;
  margin-bottom: 18px;
  transition: box-shadow .12s;
  box-shadow: 0 1px 7px rgba(40,60,100,0.05);
}
details:focus-within,
details:hover {
  box-shadow: 0 2px 13px rgba(40,60,100,0.13);
}
details p {margin-bottom:0; margin-top: 8px; font-size:1rem; color:#222;}

/* CTA Buttons */
a.primary-cta,
button.primary-cta {
  display: inline-block;
  background: var(--bm-accent);
  color: #003366;
  padding: 14px 30px;
  margin-top: 10px;
  border-radius: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 12px rgba(210,173,92,0.10);
  transition: background .16s, box-shadow.16s, color.16s, transform.11s;
  border: none;
  cursor:pointer;
}
a.primary-cta:hover, a.primary-cta:focus,
button.primary-cta:hover, button.primary-cta:focus {
  background: #B49543;
  color: #fff;
  box-shadow: 0 6px 20px rgba(210,173,92,0.19);
  transform: translateY(-1px) scale(1.018);
}

/* === HERO SECTION === */
section:first-of-type {
  background: #F7F7F7;
  box-shadow: none;
  border-radius: 0 0 24px 24px;
  padding-top: 48px;
}
section:first-of-type h1,
section:first-of-type p {
  color: #003366;
}

/* ====== TESTIMONIALS/REVIEWS ====== */
.testimonial-card {
  background: #fff;
  border-left: 6px solid var(--bm-accent);
  color: #003366;
  min-width: 0;
  flex: 1 1 0;
  box-shadow: 0 2px 16px rgba(0,29,50,0.08);
  font-size: 1.1rem;
}
.testimonial-card .testimonial-meta span {
  color: #D2AD5C;
  font-size: 1.15em;
  font-weight: 700;
}
.testimonial-card .testimonial-meta strong {
  color: #003366;
  font-weight: 700;
}
.testimonial-card p {
  color: #222;
  font-size: 1.05rem;
}


/* ==== TEXT-IMAGE SECTION (generic) ==== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > * {
  flex: 1 1 280px;
}

/* ==== FOOTER ==== */
footer {
  background: #F7F7F7;
  border-top: 1.5px solid #E0E4E9;
  padding: 28px 0 10px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
footer nav {
  gap: 20px;
}
footer a {
  color: #003366;
  padding: 6px 6px;
  border-radius: 4px;
  transition: background .13s;
  font-weight: 500;
}
footer a:hover, footer a:focus { background: #E0E8F3; }
footer p { color: #6B7B8A;font-size: .98rem;}

/* ============== COOKIE CONSENT BANNER ============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0,51,102,.07);
  padding: 26px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9000;
  transition: transform .36s cubic-bezier(.5,1.43,.72,.98);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner-content {
  color: #003366;
  text-align: center;
  font-size: 1.08rem;
  padding-bottom: 4px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
}
button.cookie-accept, button.cookie-reject, button.cookie-settings {
  padding: 10px 28px;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  border: none;
  cursor:pointer;
  transition: background .16s, color .13s, box-shadow.13s;
}
button.cookie-accept {
  background: var(--bm-accent);
  color: #003366;
  box-shadow: 0 2px 12px rgba(210,173,92,0.10);
}
button.cookie-accept:hover, button.cookie-accept:focus {
  background: #B49543;
  color:#fff;
  box-shadow: 0 6px 18px rgba(210,173,92,0.18);
}
button.cookie-reject {
  background: #F7F7F7;
  color: #003366;
  box-shadow: 0 1px 5px rgba(0,51,102,.07);
  border: 1px solid #EBEBEB;
}
button.cookie-reject:hover, button.cookie-reject:focus {
  background: #EBEBEB;
}
button.cookie-settings {
  background: #E0E8F3;
  color: #003366;
}
button.cookie-settings:hover, button.cookie-settings:focus {
  background: #D2AD5C;
  color: #fff;
}

/* === COOKIE PREFERENCE MODAL === */
.cookie-modal {
  position: fixed;
  z-index: 9900;
  left: 50%;
  top: 50%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 48px rgba(0,51,102,0.13);
  width: 96%;
  max-width: 440px;
  transform: translate(-50%, -50%) scale(1);
  padding: 36px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .17s, transform .24s;
}
.cookie-modal.hide { opacity:0; pointer-events:none;transform:translate(-50%,-45%) scale(.97); }
.cookie-modal h3 {
  margin: 0 0 8px 0;
  color: #003366;
  font-size: 1.15rem;
  font-weight: 700;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7F7F7;
  border-radius: 8px;
  padding: 13px 8px;
  font-size: 1.01rem;
  font-weight: 500;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: #003366;
  width: 18px; height: 18px;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 16px;
  font-size: 1.6rem;
  background: none;
  color: #003366;
  border: none;
  padding: 4px 7px;
  border-radius: 4px;
  transition: background .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E6E6E6;
}

/* ========== RESPONSIVE DESIGN RULES ========== */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 11px;
  }
  header .container, footer .container {
    padding: 17px 10px;
    gap: 0;
  }
  nav, .card-container, .content-grid {
    gap: 16px !important;
  }
  section, .section {
    margin-bottom: 42px;
    padding: 27px 7px;
    border-radius: 12px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .text-image-section, .content-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .feature-item { min-width: 0; width: 100%; }
  .cookie-modal { padding: 18px 6px 16px 6px; width: 99vw; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1rem; }
  .card, .testimonial-card, .feature-item {
    padding: 14px 8px;
    border-radius: 8px;
  }
  section, .section {
    border-radius: 7px;
    padding: 12px 2.2vw;
  }
  .cookie-banner {padding:12px 2vw;}
}

/* === ACCESSIBLE FOCUS OUTLINES === */
a:focus, button:focus, details[open] summary:focus {
  outline: 2.5px solid #003366;
  outline-offset: 2px;
}

/* === MICRO-INTERACTIONS/TRANSITIONS === */
button, a, details {
  transition: background .15s, color .14s, box-shadow .14s, transform .10s;
}
a.primary-cta, button.primary-cta {
  transition: background .16s, color .14s, box-shadow .15s, transform .15s;
}

/* ==== ADDITIONAL UTILITY STYLES ==== */
.hide { display: none !important; }
.visible { display: flex !important; }
.flex-row { display: flex !important; flex-direction: row !important; }
.flex-column { display: flex !important; flex-direction: column !important; }

/* === Print styles minimal === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none; }
  section, .container {box-shadow: none !important;background: #fff !important;}
}
