/* ====================================================================
  RESET & BASE STYLES (normalize + custom reset)
==================================================================== */
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.4;
  background: #F7FAFD;
  color: #223A5E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}

/* Font imports: Montserrat for display, Roboto for body */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #223A5E;
  --secondary: #E3EDF7;
  --secondary-alt: #FFFFFF;
  --accent: #267846;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --shadow-card: 0 2px 12px rgba(34,58,94,0.10);
  --radius-card: 18px;
  --radius-btn: 44px;
  --radius-avatar: 50%;
  --transition-main: 0.24s cubic-bezier(.64,.09,.08,.98);
}


/* ====================================================================
  TYPOGRAPHY & HEADINGS
==================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.23rem;
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 12px;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222e44;
  margin-bottom: 14px;
}

strong {
  font-weight: 600;
}

ul, ol {
  margin: 0 0 16px 0;
  list-style: none;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 1.4em;
  position: relative;
}
ul li::before {
  content: '';
  display: inline-block;
  background: var(--accent);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Remove unnecessary margin on last section on page */
.section:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 14px;
}

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

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

.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;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 28px;
  min-width: 240px;
  flex: 1 1 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: 0 4px 30px 0 rgba(34,58,94,0.10);
  border-left: 6px solid var(--accent);
  border-radius: 0 18px 18px 0;
  padding: 20px 28px;
  margin-bottom: 28px;
  flex-direction: row;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card p {
  color: #223A5E;
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin: 0;
}
.testimonial-card span {
  color: #267846;
  font-size: 1rem;
  font-style: italic;
}

/* Footer layout */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0 0 0 0;
}
footer p {
  color: white;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-nav a, .footer-legal a {
  color: #e4eaf2;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition-main), color var(--transition-main);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-legal a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #e8eeff;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 6px;
  width: 1.1em;
}
.footer-contact a {
  color: #e8eeff;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-avatar);
  transition: box-shadow var(--transition-main), background var(--transition-main);
  background: #fff;
}
.footer-social a:hover img {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(38,120,70,0.13);
}
footer .copyright {
  margin-top: 12px;
  font-size: 0.97rem;
  color: #d3e0f3;
}

/* ====================================================================
  NAVIGATION: Main nav + Burger menu (Mobile)
==================================================================== */
header {
  background: #fff;
  box-shadow: 0 4px 28px 0 rgba(34,58,94,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background var(--transition-main), color var(--transition-main);
}
.main-nav a.cta-btn {
  background: var(--accent);
  color: #fff;
  font-size: 1.06rem;
  border-radius: var(--radius-btn);
  padding: 11px 27px;
  margin-left: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 16px 0 rgba(38, 120,70, 0.08);
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav a.cta-btn:hover,
.main-nav a.cta-btn:focus {
  background: #1f6a3e;
  color: #fff;
  box-shadow: 0 2px 22px 0 rgba(38, 120,70, 0.16);
}
.main-nav img {
  height: 37px;
  width: auto;
  margin-right: 16px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 30;
  font-size: 2.1rem;
  color: var(--primary);
  background: rgba(227,237,247,0.72);
  border: none;
  border-radius: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: filter var(--transition-main), background var(--transition-main);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
}

/* Mobile nav overlay & content */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #223A5E;
  transform: translateX(-105vw);
  transition: transform .37s cubic-bezier(.74,.18,.07,1);
  z-index: 5200;
  padding: 0;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 18px 44px 2px rgba(34,58,94,0.22);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 12px 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 900;
  transition: color var(--transition-main); 
}
.mobile-menu-close:focus {
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100vw;
  padding: 34px 46px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 15px 10px 15px 0;
  border-bottom: 1.5px solid #325381;
  transition: color var(--transition-main), background var(--transition-main);
}
.mobile-nav a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 13px;
  }}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }}
@media (max-width: 840px) {
  .main-nav {
    font-size: 0.97rem;
  }
  .main-nav a {
    padding: 5px 7px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}

/* ====================================================================
  SECTIONS & CARDS
==================================================================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 260px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px 36px 22px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border: 2.5px solid #e8eef7;
  transition: box-shadow var(--transition-main), border-color var(--transition-main), transform var(--transition-main);
}
.feature img {
  margin-bottom: 15px;
  height: 48px;
  width: 48px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 32px rgba(38, 120, 70, 0.11);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.018) rotate(-1.5deg);
}
/* Team/Expert cards */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 22px;
  flex: 1 1 200px;
  min-width: 190px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow var(--transition-main), border-color var(--transition-main), transform var(--transition-main);
}
.team-member:hover, .team-member:focus-within {
  box-shadow: 0 4px 32px rgba(34,58,94,0.10);
  border-color: var(--accent);
  transform: scale(1.025) rotate(0.8deg);
}

.card-container, .content-grid, .features-grid, .team-grid {
  gap: 24px;
}

/* Contact Info (Kontakt) */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 27px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  min-width: 260px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1.09rem;
  color: #223A5E;
}
.contact-info img {
  vertical-align: middle;
  margin-right: 6px;
  width: 1.0em;
}
.cta-link {
  display: flex;
  justify-content: flex-end;
}

/* ====================================================================
  BUTTONS & LINKS
==================================================================== */
.cta-btn,
.cta-link .cta-btn {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: none;
  display: inline-block;
  font-size: 1.10rem;
  padding: 13px 36px 13px 36px;
  cursor: pointer;
  margin-top: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 18px 0 rgba(38, 120, 70, 0.14);
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
}
.cta-btn:hover, .cta-btn:focus {
  background: #1f6a3e;
  color: #fff;
  box-shadow: 0 4px 38px 0 rgba(38, 120, 70, 0.22);
  transform: scale(1.045) skew(-2.7deg, 0.7deg);
}

button:active, .cta-btn:active {
  filter: brightness(0.96);
}

/* ====================================================================
  COOKIE BANNER & MODAL
==================================================================== */
/* Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -4px 28px 0 rgba(34,58,94,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 30px 32px;
  gap: 24px;
  border-top: 4px solid var(--accent);
  font-size: 1.1rem;
  transition: transform 0.36s cubic-bezier(.7, .07,.18,.94);
}
.cookie-banner.hidden {
  transform: translateY(115%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner-text {
  color: #223A5E;
  flex: 1 1 400px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.cookie-banner .accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #1f6a3e;
}
.cookie-banner .reject {
  background: #e3edf7;
  color: #223A5E;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ccd9e5;
}
.cookie-banner .settings {
  background: transparent;
  color: var(--primary);
  text-decoration: underline;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  color: var(--accent);
  background: #f6f6f6;
}

/* Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,58,94,0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 50px rgba(34,58,94,0.32);
  min-width: 340px;
  max-width: 92vw;
  padding: 45px 32px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: #223A5E;
}
/* Custom toggle switches */
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #CCD9E5;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.23s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.23s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:focus {
  outline: 2px solid var(--accent);
}

/* ====================================================================
  RESPONSIVE MEDIA QUERIES (Mobile first)
==================================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 850px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 700px;
  }
  h1 {
    font-size: 2.15rem;
  }
  h2 {
    font-size: 1.42rem;
  }
  .feature, .team-member {
    min-width: 160px;
    padding: 18px 11px 20px 11px
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .container {
    max-width: 99vw;
    padding: 0 6px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }

  .content-wrapper, .text-section {
    gap: 16px;
  }
  .features-grid, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature, .team-member {
    margin-bottom: 14px;
    min-width: 99px;
    padding: 13px 8px 15px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px 8px;
    margin-bottom: 15px;
    gap: 10px;
    border-radius: 0 11px 11px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 18px 10px;
  }
  .contact-section {
    padding: 18px 10px;
  }
  .cta-link {
    justify-content: stretch;
  }
  .footer-nav, .footer-legal {
    flex-direction: column;
    gap: 6px;
  }
  .footer-contact {
    font-size: 0.98rem;
    gap: 2.5px;
  }
  .footer-social {
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .mobile-menu {
    padding: 0;
  }
  .mobile-nav {
    padding: 28px 12px;
    font-size: 1.12rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 11px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-banner-actions {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }
  .cookie-modal-content {
    min-width: 92vw;
    padding: 24px 9px 22px 9px;
    font-size: 1rem;
  }
}
@media (max-width: 520px) {
  .main-nav img {
    height: 28px;
    margin-right: 7px;
  }
  .footer-social img {
    width: 24px;
    height: 24px;
  }
}

/* ====================================================================
  GEOMETRIC STRUCTURED DECORATIVE EFFECTS
==================================================================== */
/* Subtle geometric lines/shadows for sections */
.section {
  position: relative;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  left: 10px;
  top: 8px;
  width: 48px;
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg,#267846,#e3edf7);
  opacity: 0.19;
  z-index: 0;
}
.section:nth-child(even)::before {
  left: unset;
  right: 10px;
  background: linear-gradient(90deg,#e3edf7,#267846);
}
@media (max-width:768px){
  .section::before {
    width: 28px; height: 4px; top: 5px; left: 4px; }
  .section:nth-child(even)::before { right: 4px; }
}

/* Button shadow for geometric effect */
.cta-btn{
  box-shadow: 2px 4px 0 #e3edf7, 0 5px 18px rgba(34,58,94,0.08);
  border: 2px solid transparent;
}
.cta-btn:active {
  box-shadow: 0 2px 4px #e3edf7 inset;
}

/* Borders & angles for feature cards */
.feature,
.team-member {
  border-radius: 0 20px 12px 0/20px 32px 12px 12px;
}

/* Inputs, if any */
input, textarea {
  font-family: var(--font-body);
  box-sizing: border-box;
  border-radius: 8px;
  border: 1.5px solid #cfd8e8;
  padding: 11px 12px;
  margin-bottom: 18px;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* Table styles (for policy pages if tables used in future) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
th, td {
  border-bottom: 1.5px solid #e3edf7;
  padding: 9px 14px;
  text-align: left;
  font-family: var(--font-body);
}

/* Misc helpers */
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ====================================================================
  PRINT OPTIMIZATION
==================================================================== */
@media print {
  .main-nav, .footer-nav, .footer-legal, .footer-social, .mobile-menu,
  .cookie-banner, .cookie-modal { display: none !important; }
}

/* ====================================================================
  HIDE/SHOW for INTERACTIVE JS CONTROL
==================================================================== */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
}
.cookie-modal { display: none; }
.cookie-modal.active { display: flex; }

/* ====================================================================
  ACCESSIBILITY FOCUS STYLES
==================================================================== */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ====================================================================
  END
==================================================================== */
