/* --- 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, 
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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #1d3557;
  background: #fff;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
*, *:before, *:after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:link, a:visited { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

:root {
  --color-primary: #1D3557;
  --color-secondary: #457B9D;
  --color-accent: #F7B32B;
  --color-bg: #fff;
  --color-light: #f7f7f8;
  --color-muted: #EBEFF2;
  --color-text: #1D3557;
  --color-subtle-text: #457B9D;
  --color-footer-bg: #F7F8FA;
  --shadow-sm: 0 2px 10px 0 rgba(29,53,87,0.04);
  --shadow-md: 0 4px 24px 0 rgba(29,53,87,0.08);
  --radius-md: 12px;
  --radius-sm: 6px;
}

/* --- TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 1.8rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, li { font-size: 1rem; color: var(--color-text); }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* --- CONTAINER / LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 6px;
  }
}

/* --- HEADER --- */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-muted);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 120;
}
header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  min-height: 74px;
}
header img[alt="Wachstumsmotor"] {
  height: 40px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  opacity: 0.90;
  transition: color 0.2s, border-bottom 0.2s, opacity 0.3s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  opacity: 1;
}
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #1D3557;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.18s, color 0.2s;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffd88a;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  z-index: 202;
  cursor: pointer;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-muted);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 201;
  background: rgba(29, 53, 87, 0.97);
  color: #fff;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.55,.01,.5,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 0 0 0;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: #fff;
  border: none;
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 204;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding-left: 38px;
  gap: 22px;
  margin-top: 66px;
  width: 80vw;
  max-width: 320px;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: #fff;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  min-width: 100px;
  transition: background 0.2s, color 0.2s;
  opacity: 0.98;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  opacity: 1;
}

@media (max-width: 1100px) {
  header .container nav,
  header .container .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- HERO SECTION --- */
.hero-section {
  background: var(--color-bg);
  padding: 64px 0 52px 0;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
}
.hero-section h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.hero-section p {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 22px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-light);
  padding: 32px 28px 28px 28px;
  border-radius: var(--radius-md);
  min-width: 0;
  max-width: 320px;
  flex: 1 1 260px;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.27s;
}
.feature-item img {
  height: 36px;
  width: 36px;
  margin-bottom: 10px;
}
.feature-item:hover, .feature-item:focus-within {
  background: #fafdff;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px 0;
  }
  .feature-item {
    max-width: 100%;
    min-width: 0;
  }
}

/* --- TESTIMONIALS/CARDS --- */
.testimonials-section .testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  color: var(--color-primary);
  max-width: 700px;
}
.testimonials-section .testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-primary);
  line-height: 1.5;
}
.testimonials-section .testimonial-card strong {
  color: var(--color-secondary);
}
.testimonials-section h2 {
  margin-bottom: 18px;
}

/* --- BUTTONS SHARED --- */
button, .cta-btn {
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
button:active, .cta-btn:active {
  box-shadow: 0 2px 5px rgba(29,53,87,0.09);
}

/* --- CARD, CARD CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: 380px;
  padding: 32px 22px;
  gap: 16px;
}

/* --- TEXT-IMAGE SECTION --- */
.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: 18px;
  }
}

/* --- CONTENT GRID --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- ABOUT SECTION, BENEFITS --- */
.about-section ul, .services-section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 10px;
  list-style-type: none;
}
.about-section li, .services-section li {
  font-size: 1rem;
  color: var(--color-secondary);
  line-height: 1.5;
}

/**** CONTACT PAGE ****/
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  margin-top: 8px;
}
.contact-details > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  min-width: 180px;
  font-size: 1rem;
}
.contact-details a { color: var(--color-primary); text-decoration: underline; }

@media (max-width: 800px){
  .contact-details {
    flex-direction: column;
    gap: 14px;
  }
}

.map-embed {
  background: var(--color-muted);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

/* --- CTA SECTION --- */
.cta-section {
  background: var(--color-light);
  padding: 54px 0;
  text-align: center;
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 18px;
}
.cta-section h2 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-muted);
  font-size: 0.97rem;
  color: var(--color-primary);
}
footer section {
  padding: 38px 0 24px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  opacity: 0.82;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: var(--color-text);
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 3px;
  margin-bottom: -3px;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 4px;
}
.footer-social a img {
  height: 22px;
  width: 22px;
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.16s;
  filter: grayscale(80%);
}
.footer-social a:hover img, .footer-social a:focus img {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2500;
  background: #fff;
  color: var(--color-text);
  padding: 24px 20px;
  box-shadow: 0 0 16px rgba(29,53,87,0.09);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.42s cubic-bezier(.66,-0.01,.23,1), opacity 0.3s;
}
.cookie-consent-banner.hidden {   
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner .cookie-btn-set {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-btn-settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 21px;
  border-radius: var(--radius-md);
  margin: 2px 0;
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-btn-settings:focus, .cookie-btn-settings:hover {
  background: #ffd88a;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.cookie-btn-reject {
  background: var(--color-light);
  color: var(--color-primary);
  border: 1px solid var(--color-muted);
  margin-right: 2px;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #f3f3f7;
  border-color: var(--color-secondary);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2600;
  background: rgba(29,53,87,0.56);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(29,53,87,0.19);
  max-width: 400px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.cookie-category input[type=checkbox] {
  width: 24px;
  height: 24px;
  accent-color: var(--color-accent);
}
.cookie-category input[disabled] {
  accent-color: var(--color-secondary);
}
.cookie-category label {
  font-weight: 500;
  color: var(--color-primary);
}
.cookie-modal section {
  background: var(--color-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  margin-top: 7px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

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

/* --- SPACING PATTERN CLASSES MANDATORY --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- GENERAL SPACING, FORMS, ETC. --- */
main {
  min-height: 60vh;
  padding-bottom: 30px;
}
.section:last-child { margin-bottom: 0; }
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-muted);
  background: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-accent);
  background: #fffbe8;
}

/* --- LISTS / BENEFITS --- */
.benefits-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin: 14px 0 0 0;
}
.benefits-list li {
  color: var(--color-secondary);
}

/* --- UTILITY CLASSES --- */
.hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* --- ANIMATIONS --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fade-in 0.8s cubic-bezier(.36,0,.42,1) both;
  }
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

/* --- FOCUS STATES --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .cookie-btn-settings:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  background: #fffbea;
}

/* --- ACCESSIBILITY --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- RESPONSIVE QUERIES GENERAL --- */
@media (max-width: 700px) {
  .container { padding-left: 10px; padding-right: 10px; }
  main { padding-bottom: 16px; }
}
@media (max-width: 900px) {
  .content-wrapper { gap: 17px; }
  .section { padding: 20px 4px; }
}

/* --- PRINT OVERRIDE FOR CLARITY --- */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
}
