/* --------------------
   CSS RESET & NORMALIZE
---------------------*/
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, 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F0F4F8;
  color: #1B365D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #1B365D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus,
a:hover {
  color: #F29D35;
  outline: none;
}
img {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}
ul, ol {
  margin: 16px 0 16px 18px;
}
li {
  margin-bottom: 8px;
}
button, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ---------------
   BRAND VARIABLES
-----------------*/
:root {
  --color-primary: #1B365D;
  --color-secondary: #F0F4F8;
  --color-accent: #F29D35;
  --color-background: #FFF;
  --color-header-bg: #FFF8F1;
  --color-card-bg: #FFF;
  --color-footer-bg: #F0F4F8;
  --color-testimonial-bg: #FFF;
  --color-button-text: #FFF;
  --color-button-bg: #F29D35;
  --color-button-bg-hover: #d88013;
  --color-link: #1B365D;
  --color-link-hover: #F29D35;
  --color-shadow: rgba(30,32,47, 0.09);
  --radius: 22px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-soft: 0 4px 24px var(--color-shadow);
  --shadow-micro: 0 2px 8px var(--color-shadow);
}

/* ---------------
   STRUCTURAL LAYOUTS
-------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  background: transparent;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-micro);
}
.text-section {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
  padding: 32px;
}
.hero-section {
  background: var(--color-header-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 60px 0 40px 0;
  min-height: 320px;
  border-bottom: 2px solid #f8e8d6;
}
.cta-section {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
  padding: 48px 20px;
  text-align: center;
}

/* Layout: Feature Grids */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  padding: 28px 20px 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 8px 32px rgba(242,157,53, 0.15);
  transform: translateY(-2px) scale(1.01);
}
.feature-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff9f3;
  border-radius: 16px;
  margin-bottom: 6px;
  box-shadow: 0 2px 7px rgba(242,157,53, 0.11);
}

/* Layout: Testimonials */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 30px 22px 24px;
  border-radius: var(--radius);
  background: var(--color-testimonial-bg);
  color: #263248;
  font-size: 18px;
  max-width: 350px;
  min-width: 220px;
  min-height: 120px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow 0.16s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 24px rgba(242,157,53, 0.18);
  border-left: 8px solid #1B365D;
}
.testimonial-card strong {
  color: #1B365D;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-top: 8px;
}

/* Layout: Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  flex: 1 1 350px;
  min-width: 250px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus {
  box-shadow: 0 12px 30px rgba(27,54,93, 0.14);
  transform: translateY(-2px);
}

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

/* Other sections */
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #1B365D;
  letter-spacing: 0.012em;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.18;
}
h1 {
  font-size: 2.625rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: #B96709;
}
h4 {
  font-size: 1.15rem;
}
strong, b {
  font-weight: 700;
  color: #F29D35;
}
p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  margin-bottom: 14px;
  color: #1b365d;
}
ul li, ol li {
  font-size: 1rem;
  color: #31425a;
  margin-left: 8px;
}
.text-section ul {
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 6px;
}

/* -----------
   HEADER
-----------*/
header {
  background: var(--color-header-bg);
  box-shadow: var(--shadow-micro);
  border-bottom: 1.5px solid #F29D3580;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img[alt="WachstumsWerk"] {
  height: 48px;
  margin-right: 18px;
  border-radius: 8px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-primary);
  padding: 9px 14px;
  border-radius: 16px;
  transition: color 0.14s, background 0.17s;
}
header nav a:hover, header nav a:focus {
  color: #fff;
  background: var(--color-accent);
}
.button-primary {
  background: var(--color-button-bg);
  color: var(--color-button-text) !important;
  border: none;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(242,157,53,0.15);
  transition: background 0.15s, color 0.13s, box-shadow .17s, transform .15s;
  outline: none;
  display: inline-block;
}
.button-primary:hover,
.button-primary:focus {
  background: var(--color-button-bg-hover);
  color: #FFF;
  box-shadow: 0 6px 32px rgba(242,157,53,0.22);
  transform: translateY(-2px);
}

/* -----------
   MOBILE NAV MENU
-----------*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-button-bg);
  color: #fff;
  border: none;
  border-radius: 50%;
  height: 46px;
  width: 46px;
  font-size: 2.1rem;
  position: relative;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: var(--shadow-micro);
  transition: background 0.13s;
  z-index: 301;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #1B365D;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 95vw;
  height: 100vh;
  background: #FFF8F1;
  box-shadow: 2px 0 20px rgba(30,32,47,0.12);
  z-index: 9999;
  transform: translateX(-102%);
  transition: transform 0.38s cubic-bezier(.48,.08,.36,1.27);
  display: flex;
  flex-direction: column;
  padding: 0 0 40px 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #FFF;
  border: none;
  border-radius: 50%;
  font-size: 2.0rem;
  width: 44px;
  height: 44px;
  margin: 18px 12px 12px 16px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: var(--shadow-micro);
  transition: background 0.14s;
  z-index: 10002;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1B365D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 22px;
}
.mobile-nav a {
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 16px;
  margin-bottom: 3px;
  border-radius: var(--radius);
  transition: background 0.16s, color 0.13s;
  text-align: left;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #FFF;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 980px) {
  header .container nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .button-primary {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
  .mobile-menu nav {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* -------------
   CTA SECTION
---------------*/
.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.cta-section h2 {
  color: #FFF;
  margin-bottom: 10px;
}
.cta-section p {
  color: #FFF;
}
.cta-section .button-primary {
  margin-top: 18px;
  background: #fff;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-accent);
  box-shadow: 0 6px 36px rgba(27,54,93,0.12);
}
.cta-section .button-primary:hover {
  background: var(--color-accent);
  color: #fff !important;
}

/* -------------
   CONTACT DETAILS
---------------*/
.contact-details {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  margin-bottom: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.12rem;
  color: #19406F;
  background: #fff9f3;
  border-radius: var(--radius);
  padding: 24px 32px 20px 18px;
  box-shadow: var(--shadow-micro);
}
.contact-info img {
  vertical-align: middle;
  height: 22px;
  margin-right: 6px;
  margin-left: 0;
}
.map-placeholder {
  background: #fff7f3;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04em;
  color: #b87318;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(242,157,53,0.09);
}
.map-placeholder img {
  width: 46px;
  height: 46px;
}

/* -------------
   FOOTER
---------------*/
footer {
  background: var(--color-footer-bg);
  padding: 40px 0 20px 0;
  border-top: 2px solid #F29D3526;
  margin-top: 54px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  margin-bottom: 12px;
}
footer nav a {
  color: #B96709;
  font-weight: 600;
  margin-left: 5px;
}
footer nav a:hover,
footer nav a:focus {
  color: #1B365D;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1b365d;
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
}
.footer-hours {
  color: #31425a;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

/* -------------
   COOKIE CONSENT BANNER/MODAL
---------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff6e2;
  color: #1B365D;
  box-shadow: 0 -4px 24px rgba(27,54,93,0.13);
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 12000;
  gap: 24px;
  min-height: 56px;
  font-size: 1em;
  animation: cookieSlideIn 0.55s cubic-bezier(.48,.08,.36,1.12);
}
@keyframes cookieSlideIn {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner-message {
  flex: 1 1 380px;
  color: #5b4322;
  font-size: 1.08em;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color .14s, box-shadow .14s;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(242,157,53,0.15);
}
.cookie-btn.accept:hover { background: #B96709; }
.cookie-btn.reject {
  background: #ffe3d0;
  color: #B96709;
  border: 1.3px solid #f29d3588;
  margin-left: 4px;
}
.cookie-btn.reject:hover {
  background: #fff4ea;
  color: #d88013;
}
.cookie-btn.settings {
  background: #FFF;
  color: #B96709;
  border: 1.3px solid #F29D35BB;
}
.cookie-btn.settings:hover {
  background: #fcf3e4;
  color: #B96709;
}

/* Cookie modal popup */
.cookie-settings-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(27, 54, 93, 0.24);
  z-index: 12001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.42s cubic-bezier(.48,.08,.36,1.12);
}
@keyframes modalFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-settings-content {
  background: #fff8f1;
  padding: 38px 32px 28px 32px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(27,54,93,0.13);
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.cookie-settings-content h3 {
  color: #B96709;
  font-size: 1.315rem;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(242,157,53,0.08);
}
.cookie-category-label {
  color: #6e5640;
  font-weight: 600;
}
.cookie-category-toggle {
  margin-left: 14px;
}
.cookie-category-toggle input[type="checkbox"] {
  accent-color: #B96709;
  width: 21px;
  height: 21px;
}
.cookie-settings-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* -----------
   RESPONSIVE
-----------*/
@media (max-width:1200px) {
  .feature-grid {gap: 16px;}
  .testimonial-grid {gap: 16px;}
  .container {padding-left: 14px; padding-right: 14px;}
  .card-container {gap: 14px;}
}
@media (max-width:1012px) {
  .feature-item,
  .card {
    min-width: 49vw;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  footer .container, .contact-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width:768px) {
  .hero-section {padding: 38px 0 22px 0;}
  .section, .cta-section {
    padding: 26px 7px;
    margin-bottom: 34px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .cta-section, .text-section, .map-placeholder, .feature-item, .testimonial-card, .card {
    padding-left: 13px;
    padding-right: 13px;
  }
  .contact-details {
    gap: 14px;
    flex-direction: column;
  }
  .footer-contact, .footer-hours {
    margin-bottom: 5px;
  }
  h1 {font-size: 2rem;}
  h2 {font-size: 1.55rem;}
}
@media (max-width:520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.96em;
    padding: 22px 10px;
  }
  .container {padding-left: 4px; padding-right: 4px;}
}

/* ---------
   UTILITIES
---------*/
.rounded {
  border-radius: var(--radius);
}
.shadow {
  box-shadow: var(--shadow-soft);
}
.text-center {
  text-align: center;
}
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* ------
   FOCUS
---------*/
a:focus, button:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.button-primary:focus,
.cookie-btn:focus {
  outline: 2.5px solid #F29D35;
  outline-offset: 2px;
}

/* -----------
   ANIMATIONS
-----------*/
.button-primary,
.cookie-btn {
  transition: background 0.17s, color 0.12s, transform.14s, box-shadow 0.13s;
}
.feature-item, .testimonial-card, .card {
  transition: box-shadow 0.17s, border 0.13s, transform 0.14s;
}

/* Hide scroll on modal open */
body.cookie-modal-open {
  overflow: hidden;
}
