/* ========================
   CSS RESET & BASE STYLES
   ======================== */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: linear-gradient(135deg, #E8EDEB 0%, #FFFFFF 100%);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #203340;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #347a5c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #203340;
  outline: none;
}
img {
  max-width: 100%;
  vertical-align: middle;
  display: block;
}
ul, ol {
  list-style: none;
}


/* ========================
     TYPOGRAPHY SCALE
   ======================== */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.375rem;
  line-height: 1.15;
  color: #203340;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.18;
  color: #203340;
  margin-bottom: 18px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #347A5C;
  margin-bottom: 14px;
}
p, li, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #203340;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* ========================
     CONTAINER & SECTIONS
   ======================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(32, 51, 64, 0.09);
  transition: box-shadow 0.25s;
  position: relative;
  gap: 0 !important;
}
.section:last-child {
  margin-bottom: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================
     NAVIGATION BAR
   ======================== */
header {
  width: 100%;
  background: #E8EDEB;
  border-bottom: 1px solid #e0e5e3;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #203340;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  background: #347A5C;
  color: #fff;
}
.cta-primary {
  padding: 11px 30px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #347A5C 0%, #203340 100%);
  color: #fff;
  font-size: 1.09rem;
  line-height: 1.1;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(52, 122, 92, 0.08);
  transition: background 0.26s, box-shadow 0.22s, color 0.2s, transform 0.08s;
  cursor: pointer;
  display: inline-block;
  margin-left: 16px;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #203340 0%, #347A5C 100%);
  color: #E8EDEB;
  box-shadow: 0 4px 22px rgba(52, 122, 92, 0.14);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 1000px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  header nav {
    gap: 10px;
  }
}

/* ===============
  MOBILE NAV MENU
  =============== */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #203340;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-left: 8px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2050;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E8EDEB;
  color: #347A5C;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,51,64,0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.7,.22,.26,1);
  z-index: 2100;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 22px 0 0;
  cursor: pointer;
  z-index: 2150;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #E8EDEB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 34px 0 34px;
  width: 100vw;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #fff;
  padding: 9px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.14s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #347A5C;
  color: #E8EDEB;
}
@media (max-width: 1020px) {
  header nav,
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* ========================
       MAIN SECTIONS
   ======================== */
section {
  width: 100%;
  margin: 0 auto 60px auto;
  padding: 0;
  background: transparent;
  border: none;
}

/* ========================
   FLEXBOX LAYOUT PATTERNS
   ======================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(32, 51, 64, 0.10);
  transition: box-shadow 0.2s, transform 0.18s;
  position: relative;
  padding: 28px 22px;
  flex: 1 1 280px;
  min-width: 220px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(32, 51, 64, 0.20);
  z-index: 2;
  transform: translateY(-2px) scale(1.02);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #E8EDEB;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px rgba(32, 51, 64, 0.05);
  color: #181919;
  flex-direction: column;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #181919;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: #347A5C;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.blog-teaser {
  margin-bottom: 28px;
  padding: 20px 18px;
  border-radius: 12px;
  background: #E8EDEB;
  box-shadow: 0 2px 10px rgba(32, 51, 64, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.blog-teaser:hover {
  box-shadow: 0 8px 30px rgba(32, 51, 64, 0.08);
}
.project-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(52, 122, 92, 0.07);
  margin-bottom: 20px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid #347A5C;
  transition: box-shadow 0.2s, border-color 0.24s;
}
.project-card:hover {
  box-shadow: 0 6px 24px rgba(52, 122, 92, 0.11);
  border-left-color: #203340;
}

/* Kontaktseite extra text-sections */
.text-section {
  padding: 22px 18px;
  margin-bottom: 20px;
  background: #E8EDEB;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(32,51,64,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================
     FOOTER STYLES
   ======================== */
footer {
  background: #203340;
  color: #fff;
  width: 100%;
  padding-top: 48px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid #445463;
}
.footer-logo img {
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #E8EDEB;
  font-size: 0.98rem;
  transition: color 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #347A5C;
}
.footer-contact p {
  font-size: 0.98rem;
  margin-bottom: 3px;
  color: #fff;
}
.footer-copy {
  color: #E8EDEB;
  font-size: 0.94rem;
  text-align: center;
  padding: 18px 0 6px 0;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
}
@media (max-width: 800px) {
  .footer-row {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #347A5C;
  box-shadow: 0 -1px 12px rgba(32, 51, 64, 0.09);
  padding: 20px;
  z-index: 2200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.69,.1,.31,1), opacity 0.19s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  color: #203340;
  font-size: 1rem;
  margin: 0;
  flex: 1 1 220px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  background: #E8EDEB;
  color: #347A5C;
  transition: background 0.14s, color 0.14s, box-shadow 0.18s;
  cursor: pointer;
  margin-left: 0;
  min-width: 108px;
}
.cookie-btn.accept {
  background: #347A5C;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #203340;
  color: #fff;
}
.cookie-btn.reject {
  background: #E8EDEB;
  color: #203340;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #347A5C;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #347A5C;
  border: 1px solid #347A5C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #347A5C;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  background: rgba(32,51,64,0.26);
  width: 100vw;
  height: 100vh;
  z-index: 2220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  min-width: 310px;
  max-width: 95vw;
  border-radius: 16px;
  box-shadow: 0 2px 24px rgba(32,51,64,0.14);
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 20px;
  background: none;
  border: none;
  color: #347A5C;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #203340;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.cookie-category label {
  font-size: 1.00rem;
  color: #203340;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #347A5C;
  width: 19px;
  height: 19px;
}
.cookie-category.disabled label {
  color: #b0bab5 !important;
}

/* =============================
        BUTTONS & FORMS
   ============================= */
button, .btn, .cta-primary, .cookie-btn {
  transition: background 0.21s, color 0.15s, box-shadow 0.18s, transform 0.13s;
}
button:active, .cta-primary:active, .btn:active {
  transform: scale(0.98);
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid #a5b8b0;
  background: #F7F9F7;
  color: #203340;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #347A5C;
  border-color: #347A5C;
  background: #fff;
}

/* =============================
         ICONS IN LISTS
   ============================= */
li img {
  height: 32px;
  width: 32px;
  margin-right: 10px;
  vertical-align: middle;
}

/* =============================
        RESPONSIVE DESIGN
   ============================= */
@media (max-width: 1199px) {
  .container {
    max-width: 840px;
  }
}
@media (max-width: 950px) {
  .container {
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0 9px;
  }
  .section {
    padding: 30px 6px;
    margin-bottom: 36px;
  }
  h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .section {
    padding: 18px 2px;
    border-radius: 14px;
  }
  .card, .project-card, .blog-teaser, .text-section {
    padding: 14px 6px;
    border-radius: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.98rem;
    padding: 12px 4px;
  }
  .cookie-modal-content {
    padding: 19px 7px 15px 7px;
  }
}

/* ==========================
      MICRO-INTERACTIONS
   ========================== */
.card, .project-card, .blog-teaser, .testimonial-card, .cta-primary, .cookie-btn, .footer-nav a {
  will-change: transform, box-shadow, background, color;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover, .project-card:hover, .blog-teaser:hover {
    box-shadow: 0 10px 42px rgba(32, 51, 64, 0.13);
  }
  .testimonial-card:hover {
    box-shadow: 0 2px 16px rgba(32, 51, 64, 0.18);
  }
}

/* ============================
    VISUAL HIERARCHY & BRAND
   ============================ */
hr {
  border: none;
  border-top: 1px solid #E8EDEB;
  margin: 30px 0;
}
::-webkit-scrollbar {
  width: 10px;
  background: #E8EDEB;
}
::-webkit-scrollbar-thumb {
  background: #347A5C;
  border-radius: 12px;
}

/* ============
   PRINT
   ============ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .container { box-shadow: none !important; background: #fff !important; }
}
