/* ================================ */
/*          CSS RESET/BASE           */
/* ================================ */
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, 
main, 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 {
  height: 100%;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #173E43;
  background: #fff;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #3FB8AF;
  text-decoration: none;
  word-break: break-word;
}
a:focus {
  outline: 2px solid #F6E497;
  outline-offset: 2px;
}

ul, ol {
  margin-bottom: 1em;
}
ul {
  list-style: none;
}
li {
  margin-bottom: 12px;
}


/* ================================ */
/*          BRAND VARIABLES         */
/* ================================ */
:root {
  --color-primary: #173E43;
  --color-secondary: #3FB8AF;
  --color-accent: #F6E497;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --color-bg-light: #fff;
  --color-bg-alt: #F7FAFA;
  --shadow-card: 0 4px 16px 0 rgba(23,62,67,0.09);
  --shadow-hover: 0 6px 24px 0 rgba(23,62,67,0.15);
}

/* ================================ */
/*          TYPOGRAPHY SCALE        */
/* ================================ */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--color-primary);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-primary);
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}
p, label, select, input, textarea, li {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

.text-section h2, .text-section h3 {
  margin-top: 18px;
}

/* ================================ */
/*        CONTAINER & LAYOUT        */
/* ================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  font-style: italic;
  border-left: 6px solid var(--color-secondary);
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--color-accent);
}
.testimonial-card p {
  flex: 1 1 auto;
  color: #173E43; /* Ensures dark text for readability */
  font-size: 1.1rem;
}
.testimonial-card span {
  font-style: normal;
  color: #173E43;
  font-weight: 600;
  min-width: 140px;
}

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

/* List-styled feature icons */
.content-wrapper ul,
.text-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 12px 0;
  padding: 0;
}
.content-wrapper ul li,
.text-section ul li {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px 22px 18px 22px;
  min-width: 190px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.content-wrapper ul li img {
  height: 34px;
  width: 34px;
  margin-bottom: 6px;
}

/* ================================ */
/*            HEADER                */
/* ================================ */
header {
  background: #fff;
  border-bottom: 3px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(23,62,67,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
  gap: 24px;
}
header img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.main-nav a {
  color: var(--color-primary);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: rgba(63,184,175,0.08);
}

.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.07rem;
  border: none;
  border-radius: 16px;
  padding: 12px 30px;
  cursor: pointer;
  margin-left: 16px;
  transition: background .15s, box-shadow .22s, color .15s;
  box-shadow: 0 2px 9px 0 rgba(63,184,175, 0.08);
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 24px 0 rgba(23,62,67,0.13);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-secondary);
  display: none;
  margin-left: 24px;
  cursor: pointer;
  transition: color .2s;
  border-radius: 8px;
  width: 44px;
  height: 44px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ================================ */
/*        MOBILE MENU OVERLAY       */
/* ================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,62,67,0.97);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.32,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  align-self: flex-end;
  margin: 30px 32px 18px 0;
  cursor: pointer;
  transition: color 0.18s;
  border-radius: 6px;
  width: 44px;
  height: 44px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
  background: rgba(246,228,151,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 40px 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-bottom .2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* ================================ */
/*             MAIN                 */
/* ================================ */
main {
  margin-top: 20px;
}
.section {
  background: var(--color-bg-alt);
}

/* Style for .team-grid on /team.html */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.team-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 28px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 48%;
  margin-bottom: 20px;
}
.team-grid h3 {
  font-size: 1.14rem;
  margin-bottom: 6px;
}

/* ================================ */
/*           FOOTER                 */
/* ================================ */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0 30px 0;
  margin-top: 50px;
  font-size: 1rem;
}
footer .container {
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  text-decoration: underline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: #fff;
  align-items: flex-start;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 19px;
  width: 19px;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.footer-brand img {
  height: 38px;
}
.footer-brand span {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

/* ================================ */
/*      CONTACT PAGE DETAILS        */
/* ================================ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  margin-top: 12px;
}
.contact-details ul {
  padding: 0;
  gap: 6px;
  flex-direction: column;
}
.contact-details li {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 1rem;
}
.contact-details img {
  height: 20px;
  width: 20px;
  margin-right: 8px;
}
.contact-details strong {
  color: var(--color-primary);
  margin-right: 8px;
}

/* ================================ */
/*        BUTTON COMPONENTS         */
/* ================================ */
button, .cta-btn, select {
  font-family: var(--font-display);
  border: none;
  outline: none;
  font-size: 1rem;
  border-radius: 12px;
  transition: all .17s; 
}
button:active {
  transform: scale(0.98);
}
button:focus {
  outline: 2px solid var(--color-accent);
}


/* Special select styling */
select {
  padding: 7px 18px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  cursor: pointer;
}
select:focus {
  border-color: var(--color-secondary);
}


/* ================================ */
/*        FORM ELEMENTS RESET       */
/* ================================ */
input, textarea {
  border: 2px solid #eaebea;
  background: #fff;
  padding: 13px 14px;
  font-size: 1rem;
  border-radius: 10px;
  margin-bottom: 18px;
  width: 100%;
  outline: none;
  font-family: var(--font-body);
  transition: border-color .16s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
}
label {
  margin-bottom: 6px;
  display: block;
  color: var(--color-primary);
  font-weight: 600;
}

/* ================================ */
/*           UTILITIES              */
/* ================================ */
.bg-primary { background: var(--color-primary)!important; color: #fff!important; }
.bg-secondary { background: var(--color-secondary)!important; color: #fff!important; }
.bg-accent { background: var(--color-accent)!important; }
.no-margin { margin: 0!important; }
.no-padding { padding: 0!important; }
.text-center { text-align: center!important; }
.shadow { box-shadow: var(--shadow-card)!important; }
.rounded { border-radius: 14px!important; }

/* For geometric accents */
.shape-circle { border-radius: 999px; }
.shape-hex { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%); }


/* ================================ */
/*      COOKIE CONSENT BANNER       */
/* ================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--color-primary);
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -2px 24px rgba(23,62,67,.11);
  z-index: 11111;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px 20px 10px;
  gap: 16px;
  transition: transform .35s cubic-bezier(.50,.2,.52,1), opacity .25s;
  font-family: var(--font-body);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: 15px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 700;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  transition: background .18s, color .18s;
  margin-right: 2px;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 20000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(23,62,67,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s cubic-bezier(.5,.2,.5,1);
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 36px 24px 28px 24px;
  min-width: 310px;
  max-width: 95vw;
  box-shadow: 0 8px 44px 0 rgba(23,62,67,0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  align-items: flex-start;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 20px; right: 30px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: 7px;
  transition: background .12s, color .21s;
  padding: 8px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 1.2em;
  height: 1.2em;
  border-radius: 5px;
}
.cookie-toggle input[disabled] {
  opacity: 0.6;
}
.cookie-category-desc {
  margin-left: 38px;
  color: #555;
  font-size: 0.94em;
}


/* ================================ */
/*         RESPONSIVE DESIGN        */
/* ================================ */
@media (max-width: 1012px) {
  .container {
    max-width: 96vw;
  }
  .main-nav {
    gap: 18px;
    font-size: 1rem;
  }
  .team-grid > div {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .content-wrapper ul li,
  .text-section ul li {
    min-width: 150px;
    padding: 18px 12px 18px 12px;
  }
  .team-grid {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.1rem;
  }
  h2, .h2 {
    font-size: 1.4rem;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 7px 10px;
    min-height: 60px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 10px 22px;
    font-size: 1rem;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper,
  .section {
    padding: 16px 8px;
  }
  .card-container, .content-grid, .team-grid, .footer-contact {
    flex-direction: column;
    gap: 16px;
  }
  .team-grid > div {
    min-width: 0;
    padding: 22px 10px;
  }
  .footer-contact {
    gap: 9px;
  }
  footer .container {
    gap: 14px;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }
  .footer-brand {
    margin-top: 10px;
  }
  .cookie-modal-content {
    padding: 23px 8px 18px 8px;
  }
}
/* XS phones */
@media (max-width: 440px) {
  .testimonial-card {
    padding: 10px;
  }
  .cta-btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: .98rem;
  }
}
/* Hide scroll/overflow for open mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* ================================ */
/*      MICRO-INTERACTIONS          */
/* ================================ */
.cta-btn, .cookie-btn {
  transition: background .22s cubic-bezier(.45, .88, .58, 1), color .22s cubic-bezier(.45, .88, .58, 1), box-shadow .17s;
}
.button-animate {
  animation: pulse 1.2s infinite alternate;
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 7px rgba(63,184,175,0.10);
    background: var(--color-secondary);
  }
}
/* Main nav underline animation */
.main-nav a {
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 0% 2px no-repeat;
  transition: color .22s, background-size .22s;
}
.main-nav a:hover, .main-nav a:focus {
  background-size: 100% 2px;
}

/* ================================ */
/*           MISCELLANEOUS          */
/* ================================ */
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/* List element spacing enforcement */
ul, ol {
  margin-bottom: 12px;
  padding-left: 0;
}
.section + .section {
  margin-top: 0;
}

/* List items inside .content-wrapper or .text-section are cards */
.content-wrapper ul li,
.text-section ul li {
  margin-bottom: 0!important;
  margin-right: 0;
}

/* Publication Filter on Veroeffentlichungen */
#publicationFilter {
  margin-left: 6px;
  margin-bottom: 8px;
}

/* Thank You Page spacing */
.thankyou-message {
  margin: 38px 0 0 0;
  text-align: center;
}

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