/* ========== 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;
}
html {
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background-color: #F1FAEE;
  color: #20222b;
  -webkit-font-smoothing: antialiased;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  background: transparent;
  color: #1D3557;
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover, a:focus {
  color: #457b9d;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
}

/* ========== FONT DEFINITIONS ========== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

html, body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  background-color: #F1FAEE;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #1D3557;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, ul, ol li, span, label, input, textarea {
  font-family: 'Open Sans', 'Georgia', 'Times New Roman', serif;
  font-size: 1rem;
  color: #20222b;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* ========== BRAND COLOR VARIABLES ========== */
:root {
  --clr-primary: #1D3557;
  --clr-secondary: #A8DADC;
  --clr-accent: #F1FAEE;
  --clr-dark: #20222b;
  --clr-muted: #ececec;
  --clr-light: #fcfcfc;
}

/* ========== LAYOUT CONTAINERS & SPACING ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
  margin-bottom: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(29, 53, 87, 0.08);
  padding: 32px 28px;
  margin-bottom: 20px;
  margin-right: 0;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 30px 0 rgba(29,53,87,0.17);
  z-index: 1;
}
/* Feature Grid (for Schwerpunkte) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(70,86,121,0.07);
  flex: 1 1 250px;
  min-width: 220px;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 28px rgba(110,130,166,0.11);
}
.offerings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.offerings-grid > div {
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px 16px 18px;
  flex: 1 1 240px;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(29,53,87,0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-grid > div {
  background: #fff;
  border-radius: 13px;
  padding: 28px 20px 20px 20px;
  box-shadow: 0 2px 10px rgba(70,86,121,0.07);
  flex: 1 1 250px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detailed-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.detailed-service-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(29,53,87,0.07);
  padding: 22px 18px 14px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.blog-articles {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 24px;
}
.blog-articles li {
  background: #fff;
  border-radius: 10px;
  padding: 22px 18px 12px 18px;
  box-shadow: 0 1.5px 6px rgba(70,86,121,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-details {
  list-style: none;
  margin-top: 8px;
  margin-bottom: 12px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section > .container {
  padding: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #1D3557;
  border-left: 6px solid #A8DADC;
  box-shadow: 0 2px 10px rgba(29,53,87,0.10);
  border-radius: 14px;
  padding: 20px 28px 18px 28px;
  margin-bottom: 24px;
  font-size: 1.075rem;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card p {
  margin-bottom: 0;
  font-style: italic;
  color: #333;
}
.testimonial-card span {
  font-size: 1rem;
  color: #6D6A7A;
  align-self: flex-end;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(29,53,87,0.07);
  position: sticky;
  top: 0;
  z-index: 1004;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0;
}
header nav > a img {
  height: 44px;
  width: auto;
  display: block;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-right: auto;
  margin-left: 32px;
}
header nav ul li a {
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Georgia', serif;
  color: #1D3557;
  padding: 6px 9px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #A8DADC44;
  color: #1D3557;
}
.btn-primary {
  font-family: 'Montserrat', 'Georgia', serif;
  background: var(--clr-primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-left: 18px;
  transition: background 0.16s, box-shadow 0.16s, color 0.16s;
  box-shadow: 0 2px 8px rgba(29,53,87,0.06);
  border: none;
  cursor: pointer;
  outline: none;
  border-bottom: 2px solid #A8DADC;
}
.btn-primary:hover, .btn-primary:focus {
  background: #457B9D;
  color: #fff;
}
.btn-secondary {
  font-family: 'Montserrat', 'Georgia', serif;
  background: #fff;
  color: var(--clr-primary);
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid var(--clr-primary);
  box-shadow: 0 2px 8px rgba(29,53,87,0.04);
  transition: background 0.16s, color 0.16s;
  margin-top: 10px;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--clr-primary);
  color: #fff;
}

/* HAMBURGER & MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1100;
  background: #fff;
  color: var(--clr-primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(29,53,87,0.09);
  border: 2px solid #A8DADC44;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, box-shadow 0.14s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #A8DADC22;
  outline: 2px solid #1D3557;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(29,53,87,0.16);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #1D3557;
  border: none;
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1210;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A8DADC22;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 88px 0 48px 0;
  gap: 24px;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.23rem;
  color: #1D3557;
  padding: 17px 24px;
  border-radius: 8px;
  width: 87vw;
  text-align: center;
  background: #A8DADC33;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A8DADC99;
  color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  box-shadow: 0 -2px 30px rgba(29,53,87,0.07);
  padding: 38px 0 24px 0;
  font-size: 1rem;
  border-top: 1px solid #e7edf0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
  justify-content: center;
}
.footer-contact {
  color: #757891;
  font-size: 0.97rem;
  text-align: center;
  margin-bottom: 4px;
}
.footer-contact a {
  color: #1D3557;
  text-decoration: underline;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #20222b;
  box-shadow: 0 -2px 30px rgba(29,53,87,0.07);
  border-top: 1px solid #A8DADC55;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 24px 32px;
  z-index: 1510;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.38s, opacity 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}
.cookie-banner p {
  margin: 0;
  font-size: 1.02rem;
  max-width: 540px;
  color: #222345;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  border-radius: 24px;
  font-family: 'Montserrat',serif;
  font-weight: 700;
  border: 2px solid transparent;
  font-size: 1rem;
  padding: 10px 24px;
  margin: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border 0.16s;
  background: #F1FAEE;
}
.cookie-btn.accept {
  background: #1D3557;
  color: #fff;
  border-color: #A8DADC;
}
.cookie-btn.reject {
  background: #fff;
  color: #1D3557;
  border: 2px solid #A8DADC;
}
.cookie-btn.settings {
  background: #A8DADC;
  color: #1D3557;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #457B9D;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #457b9d;
  border-color: #457B9D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #87c2cb;
  color: #1D3557;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,44,67,0.12);
  z-index: 1520;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(29,53,87,0.20);
  padding: 36px 32px 28px 32px;
  min-width: 340px;
  max-width: 97vw;
  z-index: 1550;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal 0.32s cubic-bezier(.38,.7,.23,1.1);
}
@keyframes fadeInModal {
  from {transform: scale(0.97) translateY(34px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  font-size: 1.47rem;
  font-family: 'Montserrat',serif;
  color: #1D3557;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-weight: 600;
  font-size: 1.05rem;
  flex: 1;
  color: #1D3557;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  background: #ececec;
  border-radius: 14px;
  position: relative;
  transition: background 0.16s;
  cursor: pointer;
  margin-left: 8px;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #A8DADC;
  border-radius: 50%;
  transition: left 0.15s, background 0.17s;
}
.cookie-modal .cookie-toggle.on {
  background: #A8DADC44;
}
.cookie-modal .cookie-toggle.on:before {
  left: 19px;
  background: #1D3557;
}
.cookie-modal .cookie-category.essential {
  opacity: 0.52;
  filter: grayscale(18%);
}
.cookie-modal .cookie-modal-btn-group {
  display: flex;
  gap: 16px;
}
.cookie-modal .cookie-btn {
  min-width: 110px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #1D3557;
  font-size: 1.8rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.12s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #A8DADC22;
}

/* ========== GENERAL ELEMENTS & UTILITIES ========== */
ul, ol {
  padding-left: 21px;
  margin-bottom: 12px;
}
ul li {
  margin-bottom: 8px;
  padding-left: 8px;
  color: #283246;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
}
ul li::marker, ol li::marker {
  color: #A8DADC;
}
ul.blog-articles {
  padding-left: 0;
}

hr {
  border: none;
  border-top: 1.5px solid #eaeaea;
  margin: 36px 0 26px 0;
}
strong {
  font-weight: 700;
}

/* ========== RESPONSIVE DESIGN BREAKPOINTS ========== */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .offerings-grid,
  .team-grid,
  .detailed-service-list {
    flex-direction: column;
    gap: 20px;
  }
  .card-container
  {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.35rem;}
  .container {padding-left: 8px; padding-right: 8px;}
  .section {
    padding: 32px 10px 24px 10px;
    margin-bottom: 40px;
  }
  .testimonial-card {padding: 16px 8px 12px 12px;}
  .card,
  .feature-grid > div,
  .offerings-grid > div,
  .team-grid > div,
  .detailed-service-list > div,
  .blog-articles li {
    padding: 16px 9px 8px 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer {
    padding: 24px 0 14px 0;
    margin-top: 48px;
  }
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 14px 19px 14px;
  }
  .cookie-banner .cookie-btn-group {
    gap: 10px;
  }
  .cookie-modal {
    padding: 22px 5vw 13px 5vw;
    min-width: 75vw;
  }
}
@media (max-width: 650px) {
  .container {max-width: 98vw;}
}
@media (max-width: 520px) {
  h1, h2 {font-size: 1.14rem;}
  .team-grid > div, .feature-grid > div, .offerings-grid > div, .card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-contact {font-size: 0.83rem;}
}
/* ========== MOBILE NAV SHOW/HIDE ========== */
@media (max-width: 980px) {
  header nav ul, header nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== MICRO-INTERACTIONS + ANIMATIONS ========== */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.19s, color 0.17s, box-shadow 0.16s, border 0.13s;
}
.feature-grid > div, .team-grid > div, .offerings-grid > div, .detailed-service-list > div {
  transition: box-shadow 0.16s, background 0.14s, border 0.13s;
}
.card:hover, .feature-grid > div:hover, .offerings-grid > div:hover, .team-grid > div:hover, .detailed-service-list > div:hover {
  box-shadow: 0 8px 28px rgba(29,53,87,0.16);
  background: #F1FAEE;
}
.testimonial-card:hover {
  box-shadow: 0 6px 20px rgba(29,53,87,0.17);
  background: #F1FAEE;
}

/* ========== FORM ELEMENTS (if needed in future forms) ========== */
input, textarea, select {
  border: 1.2px solid #A8DADC;
  background: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
  font-size: 1.02rem;
  transition: border 0.14s, box-shadow 0.13s;
  color: #222345;
}
input:focus, textarea:focus, select:focus {
  border-color: #1D3557;
  box-shadow: 0 1.5px 4px #A8DADC55;
  outline: none;
}

/* ========== Z-INDEX MANAGEMENT ========== */
header {
  z-index: 1004;
}
.mobile-menu {
  z-index: 1200;
}
.cookie-banner {
  z-index: 1510;
}
.cookie-modal-overlay {
  z-index: 1520;
}
.cookie-modal {
  z-index: 1550;
}

/* ========== ACCESSIBILITY + SELECTION ========== */
*::selection {
  background: #A8DADC;
  color: #1D3557;
}

/* ========== Misc visual fixes for classic elegant style ========== */
section {
  background: transparent;
}

/* ========== END OF CSS ========== */
