/* ===================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F4EF;
  color: #183152;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
ul, ol { list-style: disc inside; margin-bottom: 16px; }
a { text-decoration: none; color: #183152; transition: color 0.2s; }
a:hover, a:focus { color: #47A476; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit; }

/* ============================================
   BRAND FONTS, COLORS, & TYPOGRAPHY
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --color-primary: #183152;
  --color-secondary: #47A476;
  --color-accent: #F7F4EF;
  --color-grey-100: #E5E3DC;
  --color-grey-200: #D0CCC5;
  --color-grey-300: #B0A99E;
  --color-dark: #15151B;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius: 10px;
  --shadow-elevate: 0 2px 12px rgba(24,49,82,0.09);
  --transition: all 0.22s cubic-bezier(0.39,0.575,0.565,1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.16;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  line-height: 1.3;
}
p, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 400;
}
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  background: var(--color-grey-100);
  border-left: 5px solid var(--color-secondary);
  padding: 16px 22px 16px 24px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.subheadline {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}

.cta-text {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 14px 0 24px 0;
  font-family: var(--font-display);
  font-weight: 400;
}

/********************************************
 * CONTAINERS & SECTIONS
 *******************************************/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ============================================
   HEADER & NAVIGATION
============================================ */
header {
  background: var(--color-accent);
  border-bottom: 1px solid var(--color-grey-100);
  box-shadow: 0 1px 12px 0 rgba(24,49,82,0.07);
  position: relative;
  z-index: 1030;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
}
.main-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-navigation a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 6px 8px;
  color: var(--color-primary);
  position: relative;
  transition: color .19s;
}
.main-navigation a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: width 0.25s;
  margin: 0 auto -3px auto;
}
.main-navigation a:hover:after, .main-navigation a:focus:after {
  width: 60%;
}
.main-navigation .cta-primary {
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 8px 20px;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 1px 6px rgba(24,49,82, 0.07);
}
.main-navigation .cta-primary:hover, .main-navigation .cta-primary:focus {
  background: #32925d;
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.18s;
  z-index: 1100;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-grey-100);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 1200;
  box-shadow: -6px 0 24px rgba(24,49,82,0.09);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 28px 20px 28px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  padding: 8px 8px 8px 12px;
  margin-bottom: 16px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-size: 1.25rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-grey-100);
  color: var(--color-primary);
  transition: color .18s;
}
.mobile-nav a:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
}

/* ============================================
   HERO SECTIONS
============================================ */
.hero {
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 56px 0 44px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.hero h1 {
  color: #fff;
}
.hero .subheadline {
  color: #fff;
  opacity: .85;
}
.hero .cta-primary {
  margin-top: 24px;
}

/* Hero variants by inline background-color */
.hero[style*="#47A476"] {
  background: var(--color-secondary) !important;
}
.hero[style*="#47A476"] h1, .hero[style*="#47A476"] .subheadline {
  color: #fff;
}

/* ============================================
   BUTTONS & CTA LINKS
============================================ */
.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 10px 26px;
  background: var(--color-secondary);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: 0 1px 8px rgba(71,164,118,0.07);
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #32925d;
  color: #fff;
  box-shadow: 0 2px 16px rgba(71,164,118,0.14);
}
.cta-link {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  letter-spacing: .01em;
  transition: color .18s;
}
.cta-link:hover, .cta-link:focus {
  color: #32925d;
  text-decoration: underline dashed;
}

/********************************************
* CARDS & FLEX CONTAINERS
********************************************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  padding: 24px 22px;
  flex: 1 1 315px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(24,49,82,0.14);
  transform: translateY(-3px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  max-width: 680px;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  margin-bottom: 0;
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-card .client-name {
  font-family: var(--font-display);
  color: var(--color-secondary);
  margin-left: 14px;
  font-size: 1rem;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature/case/service/industry custom flex wrappers */
.feature-grid, .service-teasers, .service-cards, .industry-grid, .team-members, .blog-teasers, .case-study-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature, .service, .industry, .blog-post, .team-member, .case {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  padding: 22px 20px 26px 20px;
  flex: 1 1 320px;
  min-width: 255px;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .18s;
}
.feature:hover, .service:hover, .industry:hover, .blog-post:hover, .team-member:hover, .case:hover {
  box-shadow: 0 4px 18px rgba(24,49,82,0.14);
  transform: translateY(-3px) scale(1.01);
}
.blog-post a {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 700;
  margin-top: 8px;
  font-size: 1rem;
  display: inline-block;
  text-decoration: underline;
  transition: color .18s;
}
.blog-post a:hover, .blog-post a:focus { color: #32925d; }

/* Section supporting text */
.supporting-text {
  font-size: 1.03rem;
  color: var(--color-dark);
  margin-top: 8px;
  margin-bottom: 0;
}

/* Badges, partner logos and trust-stats */
.trust-badges, .partner-logos, .social-media-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.trust-stats {
  font-family: var(--font-display);
  font-size: 1.07rem;
  color: var(--color-secondary);
  margin: 10px 0;
}

.core-values-list, .values-list, .certifications-list, .service-categories, .qualifications-list {
  margin-bottom: 14px;
  padding-left: 16px;
  font-size: 1rem;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 18px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: var(--font-body);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  width: 100%;
}
.footer-logo img {
  height: 42px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: #fff;
  font-size: 1rem;
  opacity: 0.85;
  transition: color .17s, opacity .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.mini-contact-info {
  font-size: 0.98rem;
  opacity: 0.94;
  line-height: 1.65;
  color: #f5f5f5;
}
.mini-contact-info img { vertical-align: middle; height: 16px; margin-right: 4px; }
.privacy-statement {
  width: 100%;
  margin-top: 20px;
  font-size: .95rem;
  opacity: 0.75;
}
.social-media-links a {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.social-media-links a:last-child { margin-right: 0; }
.social-media-links img { height: 24px; width: 24px; opacity: 0.95; transition: opacity .18s; }
.social-media-links img:hover { opacity: 0.65; }

/********************************************
   MISC/UTILITY
*******************************************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 6px;
}
.office-hours {
  margin: 10px 0 0 0;
  font-size: 0.95em;
  color: var(--color-primary);
  opacity: 0.94;
}
.map-embed {
  margin: 12px 0 0 0;
  font-size: .98em;
  color: var(--color-dark);
}

/********************************************
   COOKIE BANNER + MODAL
*******************************************/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-grey-100);
  box-shadow: 0 -2px 12px rgba(24,49,82,0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  z-index: 1550;
  padding: 24px 14px;
  gap: 20px;
  animation: cookie-slidein .65s;
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: var(--color-primary);
  flex: 1 1 240px;
  margin-bottom: 0;
  font-family: var(--font-body);
  max-width: 420px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-secondary);
  background: #fff;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: none;
  transition: background .18s, color .18s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid var(--color-secondary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #32925d;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #ae3223;
  border: 1px solid #ae3223;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ae3223;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-grey-100);
  color: var(--color-secondary);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(24,49,82,0.25);
  justify-content: center;
  align-items: center;
  transition: background 0.22s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInBg 0.45s;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 38px rgba(24,49,82,0.15);
  padding: 34px 28px 28px 28px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPopScale .29s cubic-bezier(.64,0,.78,1.4);
  position: relative;
}
@keyframes modalPopScale {
  from { transform: scale(.93); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-grey-100);
  border-radius: 7px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.cookie-category.essential input[type='checkbox'] {
  display: none;
}
.cookie-category.essential label:after {
  content: '(immer erforderlich)';
  color: #8aa78c;
  font-size: 0.97em;
  margin-left: 7px;
  font-style: italic;
}
.cookie-toggle {
  width: 34px; height: 20px;
  background: #D0CCC5;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px; left: 1px;
  transition: left .2s, background .18s;
  border: 1px solid #B0A99E;
}
.cookie-toggle input:checked + span {
  left: 15px;
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.5rem;
  opacity: .8;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { opacity: 1; }

/********************************************
   RESPONSIVE DESIGN (MOBILE FIRST)
*******************************************/
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
  .feature, .service, .industry, .blog-post, .team-member, .case {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .main-navigation {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero {
    padding: 38px 0 28px 0;
  }
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
  .card-container, .content-grid, .feature-grid, .service-teasers, .service-cards, .industry-grid, .team-members, .blog-teasers, .case-study-snippets {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer .container, .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 6px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.2rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  .hero { padding: 22px 0 12px 0; }
  .footer { padding: 24px 0 14px 0; }
  .cookie-consent-banner p { font-size: 0.97rem; }
}
/********************************************
   PRINT COLORSAFE
*******************************************/
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  a, a:visited { color: #000 !important; text-decoration: underline; }
}
