/* --- 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 {
  box-sizing: border-box;
  font-size: 16px;
  background: #F4F4F0;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #234158;
  background: #F4F4F0;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
a {
  color: #234158;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #769C85;
  outline: none;
}
ul, ol {
  list-style: none;
  margin-left: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* --- FONT IMPORTS (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* --- GLOBAL COLORS (BRAND) --- */
:root {
  --primary: #234158;
  --secondary: #769C85;
  --accent: #F4F4F0;
  --text-main: #234158;
  --text-light: #506070;
  --bg: #F4F4F0;
  --card-bg: #fff;
  --border: #DFE5DF;
  --shadow: 0 2px 12px rgba(35, 65, 88, 0.06);
  --radius: 16px;
  --section-spacing: 60px;
  --container-max: 1200px;
  --transition: 0.21s cubic-bezier(.4,.1,0,1);
  --mobile-header: 62px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 1.8rem; margin-bottom: 18px; }
h3 { font-size: 1.32rem; margin-bottom: 12px; }
h4 { font-size: 1.12rem; }
p, ul, ol, li, blockquote {
  font-size: 1rem;
  color: var(--text-light);
}
.text-section h1, .text-section h2, .text-section h3 {
  margin-top: 0;
}
blockquote {
  font-style: italic;
  background: var(--accent);
  padding: 18px 24px;
  margin: 0 0 16px 0;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  color: var(--primary);
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
}

/* --- CONTAINERS & SECTION SPACING (FLEXBOX) --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  width: 100%;
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- FLEX UTILITY CLASSES (NO GRID) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px 20px 20px 20px;
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow var(--transition), border var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 4px 18px rgba(35, 65, 88, 0.11);
  border-color: var(--secondary);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border var(--transition);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(35, 65, 88, 0.14);
  border-color: var(--secondary);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  margin-top: 18px;
  width: 100%;
  max-width: 680px;
  transition: box-shadow var(--transition), border var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 5px 16px rgba(35, 65, 88, 0.13);
  border-color: var(--secondary);
}
.testimonial-author {
  color: var(--primary);
  font-weight: 600;
  margin-top: -6px;
}
.testimonial-project-summary {
  color: var(--secondary);
  font-size: 0.98rem;
  margin-top: -8px;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.numbers-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
}
.numbers-highlights > div {
  background: var(--accent);
  color: var(--primary);
  border-radius: 12px;
  padding: 16px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  min-width: 120px;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 14px rgba(35, 65, 88, 0.028);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--mobile-header);
  min-height: 56px;
  gap: 18px;
}
header a img {
  height: 36px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 5px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 28px;
  padding: 11px 32px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  margin-left: 18px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(35,65,88,0.18);
}
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: var(--secondary);
  color: #fff;
  border-radius: 10px;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 400;
  margin-left: 8px;
  border: none;
  box-shadow: 0 1px 8px rgba(35,65,88,0.13);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,244,240,0.98);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.36,1.41,.34,1);
  z-index: 500;
  box-shadow: 0 8px 40px rgba(35,65,88,0.20);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 22px 8px auto;
  font-size: 2.05rem;
  color: var(--primary);
  background: none;
  border: none;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  display: flex;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 8px 32px;
  margin-top: 8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  color: var(--primary);
  padding: 10px 6px;
  width: 100%;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width: 1100px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* MAIN NAV VISIBLE DESKTOP */
@media (min-width: 1101px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
  header nav, .cta-btn {
    display: flex;
  }
}

/* --- HERO SECTION --- */
section:first-of-type {
  background: linear-gradient(180deg, #F4F4F0 80%, #ECF1EB 120%);
  padding-top: 48px;
  padding-bottom: 38px;
}
section .content-wrapper {
  align-items: flex-start;
}
section .cta-btn {
  margin-top: 12px;
}

/* --- CTA SECTION --- */
section:last-of-type .content-wrapper {
  align-items: center;
  text-align: center;
}
section:last-of-type {
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  margin-bottom: 24px;
  padding: 50px 20px;
}
section:last-of-type h2,
section:last-of-type .cta-btn {
  color: #fff;
}
section:last-of-type .cta-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
section:last-of-type .cta-btn:hover,
section:last-of-type .cta-btn:focus {
  background: var(--primary);
  border: 2px solid #fff;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #FAFAF7;
  border-top: 1px solid var(--border);
  padding: 50px 0 22px 0;
  width: 100%;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  max-width: 600px;
}
.footer-brand img {
  height: 40px;
  width: 40px;
}
.footer-brand > div {
  font-size: 0.98rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 0;
}
.footer-nav a {
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  font-size: 0.98rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 22px rgba(35,65,88,0.09);
  z-index: 900;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bannerSlideUp 0.6s cubic-bezier(.35,1.3,.5,1) 1;
}
@keyframes bannerSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  text-align: center;
  color: var(--primary);
}
.cookie-button-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 26px;
  border: none;
  background: var(--secondary);
  color: #fff;
  margin: 0 4px;
  transition: background var(--transition), color var(--transition);
  box-shadow: var(--shadow);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.outline {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.cookie-btn.outline:hover, .cookie-btn.outline:focus {
  background: var(--secondary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,65,88,0.23);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.3s;
}
@keyframes overlayFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(35,65,88,0.14);
  padding: 38px 28px;
  min-width: 340px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1010;
  animation: modalPopIn 0.3s cubic-bezier(.36,1.41,.34,1);
}
@keyframes modalPopIn {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-switch {
  appearance: none;
  width: 42px; height: 24px;
  border-radius: 15px;
  background: var(--accent);
  border: 1px solid var(--border);
  position: relative;
  outline: none;
  box-shadow: 0 1px 2px rgba(35,65,88,0.06);
  transition: background 0.15s, border 0.15s;
}
.cookie-switch:checked {
  background: var(--secondary);
  border: 1px solid var(--primary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.20s;
}
.cookie-switch:checked:before {
  left: 21px;
}
.cookie-modal .cookie-btn {
  margin-top: 8px;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .section { padding: 28px 10px; }
  .text-section { padding: 18px 8px; }
  .feature-grid > div { min-width: 175px; max-width: 99vw; }
  .numbers-highlights > div { min-width: 85px; padding: 12px 11px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .numbers-highlights {
    flex-direction: column;
    gap: 12px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
  }
  .section { margin-bottom: 46px; padding: 24px 4vw; }
  .testimonial-card { padding: 12px 8px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 10px; }
  section:first-of-type { padding-top: 26px; padding-bottom: 24px; }
  section:last-of-type { padding: 30px 5vw; }
}

/* --- UTILITIES AND HELPER CLASSES --- */
.mt-24 { margin-top: 24px !important; }
.mb-20 { margin-bottom: 20px !important; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* --- ADDITIONAL EFFECTS & ANIMATIONS --- */
.cta-btn, .cookie-btn, .feature-grid > div, .card, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), border var(--transition), color var(--transition), transform 0.18s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* --- GENERAL SPACINGS & LAYOUT CORRECTIONS --- */
section, .card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: var(--section-spacing);
}
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 12px;
}

/* --- FORMS (KONTAKT-SEITE) --- */
div[role="form"], form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
input, textarea {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 13px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  background: #FAFAF7;
  margin-bottom: 10px;
  transition: border 0.17s;
}
input:focus, textarea:focus {
  border-color: var(--secondary);
  background: #fff;
}
label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary);
}

/* --- LISTS INSIDE SECTIONS --- */
.text-section ul,
.content-wrapper ul {
  list-style: disc outside;
  margin-left: 22px;
  margin-bottom: 10px;
}
.text-section ul li,
.content-wrapper ul li {
  font-size: 1rem;
  margin-bottom: 7px;
  color: var(--text-light);
}

/* --- SCROLLBAR (Subtle) --- */
::-webkit-scrollbar {
  width: 9px;
  background: none;
}
::-webkit-scrollbar-thumb {
  background: #E1E6E1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 200; }
.mobile-menu { z-index: 500; }
.cookie-banner { z-index: 900; }
.cookie-modal-overlay { z-index: 1000; }

/* --- IMPROVED CONTRAST FOR TESTIMONIALS --- */
.testimonial-card, .testimonial-card blockquote {
  color: var(--primary);
  background: #fff;
}

/* --- PRINT STYLE BASIC (avoid cookie/menus) --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body { background: #fff !important; }
}

/* --- END CSS --- */
