/* CSS RESET & BASE TYPOGRAPHY
----------------------------*/
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2A2A2A;
  background: #F4F5EF;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary: #23425C;
  --secondary: #E3BC8E;
  --accent: #F4F5EF;
  --neutral: #FBFBFA;
  --text: #2A2A2A;
  --muted: #77818b;
  --radius: 14px;
  --shadow-s: 0 2px 8px rgba(55,70,90,0.06);
  --shadow-m: 0 4px 22px rgba(35,66,92,0.10);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}


/* FONTS ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p, ul, ol { font-family: 'Roboto', Arial, sans-serif; color: var(--text); font-size: 1rem; margin-bottom: 18px; }

ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
ul li, ol li { margin-bottom: 6px; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}


/* LAYOUT & CONTAINERS -------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.text-section {
  margin-bottom: 40px;
}
.cta-section {
  background: var(--neutral);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 40px 24px;
  margin-bottom: 40px;
  align-items: center;
  text-align: center;
}
@media (max-width: 768px) {
  .cta-section { padding: 32px 12px; }
}


/* HEADER --------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 4px 16px rgba(50,60,80,0.075);
  position: relative;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 12px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 10px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav .btn-primary {
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  margin-left: 14px;
  box-shadow: 0 2px 12px rgba(35,66,92,0.07);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.main-nav .btn-primary:hover,
.main-nav .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.045);
}

/* Burger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 1002;
  padding: 4px 12px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #eaeaea;
  border-radius: 6px;
  color: var(--secondary);
}

/* MOBILE NAVIGATION ---------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 66, 92, 0.95);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(.7,0,.3,1), opacity 0.23s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 30px 34px 0 0;
  cursor: pointer;
  z-index: 1111;
  padding: 4px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 40px 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  width: 100%;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}


/* HERO SECTION --------------------------------------------- */
.hero {
  background: var(--neutral);
  border-bottom: 1px solid #e7e7e7;
  padding: 56px 0 46px 0;
  margin-bottom: 38px;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  padding: 0 0;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
}
.hero .subheadline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 22px;
  font-family: 'Roboto', Arial, sans-serif;
}
.hero .btn-primary {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .hero {
    padding: 38px 0 16px 0;
    margin-bottom: 18px;
  }
  .hero h1 { font-size: 1.45rem; }
  .hero .subheadline { font-size: 1rem; }
}


/* FEATURE GRID & CARDS  -------------------------------------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 30px 0 10px 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 28px 22px 20px 22px;
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 270px;
  flex: 1 1 220px;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.feature-item img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  margin-bottom: 5px;
  filter: grayscale(20%) brightness(0.7);
}
.feature-item h3 {
  font-size: 1.18rem;
  color: var(--primary);
}
.feature-item p {
  font-size: 0.98rem;
  color: var(--text);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px) scale(1.013);
  background: var(--accent);
}
@media (max-width: 900px) {
  .features-grid {
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
  }
  .feature-item {
    min-width: 160px;
    max-width: 100%;
    flex: 1 1 140px;
  }
}
@media (max-width: 600px) {
  .features-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 19px 12px 15px 12px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 0 220px;
  min-width: 210px;
  max-width: 280px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-m);
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 700px) {
  .card-container { gap: 12px; }
  .card { min-width: 110px; }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}

.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: flex-start; gap: 14px; }
}

/* TESTIMONIAL CARD ------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-s);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  min-width: 0;
  max-width: 600px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--muted);
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 18px;
}
@media (max-width: 650px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px 11px; }
  .testimonial-meta { margin-left: 0; }
}

/* BUTTONS ---------------------------------------------------- */
.btn-primary, a.btn-primary {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 18px rgba(35,66,92,0.09);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
}
.btn-primary:hover,
.btn-primary:focus,
a.btn-primary:hover,
a.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary) !important;
  transform: translateY(-2px) scale(1.038);
  box-shadow: var(--shadow-m);
  text-decoration: none;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 16px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px) scale(1.025);
}

.btn-muted {
  background: #ECE8DF;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  cursor: pointer;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition);
}
.btn-muted:hover,
.btn-muted:focus {
  background: #DFD7CA;
  color: var(--primary);
}


/* FOOTER ---------------------------------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #e2e2e2;
  padding: 36px 0 22px 0;
  margin-top: 65px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.02rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--secondary);
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  color: var(--muted);
  font-family: 'Roboto', Arial, sans-serif;
}
.footer-info img {
  height: 19px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
  filter: grayscale(40%) brightness(0.7);
}
@media (max-width: 800px) {
  .footer-nav { gap: 14px; }
  .footer-info { gap: 10px; flex-direction: column; align-items: flex-start; }
  footer { padding: 22px 0 16px 0; }
}


/* COOKIE CONSENT BANNER & MODAL ---------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fffbe7;
  border-top: 1px solid #ECE8DF;
  box-shadow: 0 -4px 16px rgba(35,66,92,0.07);
  padding: 18px 22px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), opacity var(--transition);
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-content {
  color: var(--primary);
  font-size: 1.04rem;
  margin-bottom: 2px;
  text-align: center;
}
.cookie-consent-actions {
  display: flex;
  gap: 12px;
}
.cookie-consent-banner .btn-primary {
  padding: 9px 22px;
  font-size: 0.98rem;
}
.cookie-consent-banner .btn-muted,
.cookie-consent-banner .btn-secondary {
  font-size: 0.98rem;
  padding: 8px 20px;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,66,92,0.82);
  z-index: 2002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity var(--transition), transform var(--transition);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.cookie-modal-content {
  background: #fffbe7;
  border-radius: 18px;
  box-shadow: var(--shadow-m);
  padding: 34px 30px 26px 30px;
  min-width: 320px;
  max-width: 96vw;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
}
.cookie-modal-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.18rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal-category input[type='checkbox'] {
  accent-color: var(--secondary);
  height: 16px;
  width: 16px;
  margin-right: 2px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary,
.cookie-modal .btn-muted {
  font-size: 0.94rem;
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 5px;
  transition: background var(--transition);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus { background: #ECE8DF; }

@media (max-width: 500px) {
  .cookie-modal-content { padding: 21px 7vw 18px 7vw; min-width: 0; }
}

/* MISCELLANEOUS ---------------------------------------------- */
hidden { display: none!important; }

/* Blockquote style for testimonials, if ever used */
blockquote { font-style: italic; color: var(--primary); border-left: 3px solid var(--primary); padding-left: 16px; margin-bottom: 18px; }

strong { font-weight: 600; color: var(--primary); }

hr { border: none; border-top: 1px solid #ececec; margin: 30px 0; }


/* SPACING & ALIGNMENT ---------------------------------------- */
section { margin-bottom: 60px; padding: 40px 20px; }
@media (max-width: 700px) {
  section { padding: 26px 4vw; margin-bottom: 40px; }
}


/* UTILITIES ------------------------------------------------- */
.centered { text-align: center; align-items: center; justify-content: center; }
.rounded { border-radius: var(--radius); }
.shadow-s { box-shadow: var(--shadow-s); }
.shadow-m { box-shadow: var(--shadow-m); }


/* FORMS (For Kontakt page Quick-Request indication) --------- */
input[type=text], input[type=email], textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #d8dad7;
  border-radius: 6px;
  padding: 10px 13px;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px #E3BC8E22;
}


/* RESPONSIVE DESIGN ------------------------------------------ */
@media (max-width: 900px) {
  .container { max-width: 100vw; padding: 0 12px; }
}
@media (max-width: 700px) {
  .container { padding-left: 6px; padding-right: 6px; }
  .footer-info { font-size: 0.91rem; }
}

/* Accessibility: Focus outline */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 3px;
}


/* VISUAL MICRO-INTERACTIONS ----------------------------------- */
.card, .feature-item, .testimonial-card, .btn-primary {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}

/* Utility for visually hidden (e.g. a11y) */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; border: 0 !important; }

/* ENFORCE FLEX UTILITIES: No grid anywhere! */
/* All layouts use flex only as above. */
