/* --- 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f9fafb;
  color: #1a1a1a;
  font-family: 'Roboto', Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* --- Brand Variables ---------------------------------------------------------- */
:root {
  --primary: #094067;
  --primary-dark: #073055;
  --secondary: #044F3F;
  --accent: #F6C576;
  --gray-100: #f9fafb;
  --gray-200: #e9ecef;
  --gray-300: #d1d5db;
  --gray-500: #858b93;
  --black: #1a1a1a;
  --white: #fff;
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- Base Typography --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.19; margin-bottom: 12px; }
h3 { font-size: 1.38rem; line-height: 1.25; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }

p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
}
p { margin-bottom: 1.2em; }
strong { font-weight: bold; }
em { font-style: italic; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 1px 10px 0 rgba(20,32,44,0.04), 0 10px 20px -5px rgba(20,32,44,0.07);
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

/* --- Container & Layout Utility Classes --------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 22px;
  padding-right: 22px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* Flex Utility Patterns per instructions */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(20,32,44,0.05);
  overflow: hidden;
  padding: 28px 22px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 10px 24px 0 rgba(9,64,103,0.07), 0 2px 8px 0 rgba(20,32,44,0.09);
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 18px;
  box-shadow: 0 1px 6px 0 rgba(20,32,44,0.03);
  margin-bottom: 24px;
  min-width: 220px;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card p {
  margin-bottom: 0.5em;
}
.testimonial-card .client {
  font-style: italic;
  font-weight: 500;
  color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 14px 10px;
    margin-bottom: 16px;
  }
}

/* --- Header & Navigation ----------------------------------------------------- */
header {
  background: var(--white);
  box-shadow: 0 1px 8px 0 rgba(9,64,103,0.06);
  position: sticky;
  z-index: 1001;
  top: 0;
}
header .container {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.logo img {
  max-height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.main-nav .cta.primary {
  margin-left: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 24px;
  padding: 9px 26px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(246,197,118,0.07);
  border-bottom: none;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: var(--primary-dark);
  color: var(--accent);
  box-shadow: 0 9px 20px 0 rgba(246,197,118,0.09);
}

/* --- Mobile Navigation (Burger) ---------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 1022;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
}

/* --- Mobile Menu Overlay ---------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 2px 24px 0 rgba(9,64,103,0.16);
  z-index: 1055;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.57,1.16,.6,1);
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.1rem;
  margin: 24px 24px 10px 0;
  color: var(--primary);
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  padding: 18px 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  width: 100%;
  border-radius: 4px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--gray-200);
}
@media (min-width: 971px) {
  .mobile-menu { display: none !important; }
}

/* --- Hero Section ------------------------------------------------------------ */
.hero {
  background: var(--primary);
  color: var(--white);
  border-radius: 0 0 40px 40px;
  margin-bottom: 60px;
  padding-top: 52px;
  padding-bottom: 52px;
  box-shadow: 0 4px 32px 0 rgba(9,64,103,0.08);
}
.hero h1, .hero h2, .hero h3 { color: var(--accent); }
.hero p {
  color: var(--white);
  font-size: 1.19rem;
  margin-bottom: 24px;
  font-weight: 400;
  max-width: 630px;
}
.hero .cta.primary {
  margin-top: 8px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 26px;
  padding: 13px 42px;
  font-size: 1.1rem;
  box-shadow: 0 2px 14px 0 rgba(246,197,118,0.16);
}
.hero .cta.primary:hover, .hero .cta.primary:focus {
  background: var(--primary-dark);
  color: var(--accent);
}
@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 18px 18px;
    padding-top: 26px;
    padding-bottom: 30px;
    margin-bottom: 38px;
  }
  .hero .container {
    padding-left: 8px; padding-right: 8px;
  }
}

/* --- Feature & Grid Layouts ------------------------------------------------- */
.feature-grid, .services-teaser-grid, .services-grid, .industry-grid, .post-list, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div, .services-teaser-grid > div, .services-grid > div, .industry-grid > div, .post-list > div, .team-bios > div {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(9,64,103,0.05);
  padding: 20px 18px;
  flex: 1 1 230px;
  min-width: 200px;
  transition: box-shadow 0.19s, transform 0.18s;
  margin-bottom: 0;
  border-left: 4px solid var(--accent);
}
.feature-grid > div:hover, .services-teaser-grid > div:hover, .services-grid > div:hover, .industry-grid > div:hover, .post-list > div:hover, .team-bios > div:hover {
  box-shadow: 0 10px 32px 0 rgba(9,64,103,0.09);
  transform: translateY(-2px) scale(1.017);
  border-left: 4px solid var(--primary);
}
.feature-grid img, .expertise-icons img, .scientific-rigor-icons img, .text-section img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}
/* Icon Inline in Text (Kontakt page etc.) */
.text-section img {
  width: 21px;
  height: 21px;
  margin-right: 12px;
  margin-bottom: 0;
  vertical-align: -4px;
  display: inline-block;
}
@media (max-width: 900px) {
  .feature-grid, .services-teaser-grid, .services-grid, .industry-grid, .post-list, .team-bios {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Buttons & CTAs ---------------------------------------------------------- */
.cta, .btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 30px;
  padding: 12px 36px;
  background: var(--primary);
  color: var(--white);
  border: none;
  box-shadow: 0 1px 7px 0 rgba(9,64,103,0.12);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  margin: 0 5px 0 0;
  outline: none;
  position: relative;
}
.cta.primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 1px 10px 0 rgba(246,197,118,0.14);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary-dark);
  color: var(--accent);
  box-shadow: 0 10px 24px 0 rgba(246,197,118,0.18);
  transform: scale(1.038);
}
.cta.secondary {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--accent);
  transform: scale(1.022);
}
.btn {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--secondary);
  transition: background 0.20s, color 0.18s;
}
.btn:hover, .btn:focus {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}

/* --- Timeline (Leistungen) -------------------------------------------------- */
.timeline ul {
  list-style: none;
  margin-left: 0;
}
.timeline ul li {
  position: relative;
  padding-left: 33px;
  margin-bottom: 22px;
  font-size: 1rem;
}
.timeline ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 1px 3px 0 rgba(9,64,103,0.09);
}

/* --- Footer ----------------------------------------------------------------- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 36px;
  padding-bottom: 18px;
  border-radius: 32px 32px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.89;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.footer-contact img {
  width: 48px;
  height: 48px;
  margin-right: 13px;
}
.footer-contact p {
  color: var(--accent);
  font-size: 1rem;
}
.footer-copy {
  width: 100%;
  text-align: right;
  margin-top: 20px;
  color: var(--gray-300);
  opacity: 0.83;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  footer {
    border-radius: 12px 12px 0 0;
    padding-top: 18px;
    padding-bottom: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  .footer-copy {
    text-align: left;
    margin-top: 11px;
  }
}

/* --- Expertise Icons, Scientific Rigor Icons -------------------------------- */
.expertise-icons, .scientific-rigor-icons {
  display: flex;
  flex-direction: row;
  gap: 21px;
  margin-top: 16px;
}
.expertise-icons img, .scientific-rigor-icons img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 6px rgba(246,197,118,0.28));
}

/* --- Use Case Descriptions, Category Filter --------------------------------- */
.use-case-descriptions ul, .category-filter p {
  margin-bottom: 2px;
}
.category-filter a {
  color: var(--secondary);
  font-weight: 600;
  margin-right: 13px;
  border-bottom: 1px solid var(--accent);
  border-radius: 2px;
  transition: background 0.18s, color 0.18s;
  font-family: var(--font-display);
}
.category-filter a:hover, .category-filter a:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

/* --- Cookie Consent Banner -------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -2px 16px 0 rgba(9,64,103,0.12);
  z-index: 1200;
  padding: 22px 18px 22px 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.32s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__message {
  font-size: 1rem;
  color: var(--primary);
  margin-right: 14px;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: var(--font-display);
  border-radius: 22px;
  border: none;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary-dark);
}
.cookie-banner .accept:hover {
  background: var(--primary-dark);
  color: var(--accent);
}
.cookie-banner .reject {
  color: var(--secondary);
  background: var(--gray-300);
}
.cookie-banner .reject:hover {
  color: var(--white);
  background: var(--secondary);
}
.cookie-banner .settings {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .settings:hover {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 15px 8px 15px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    gap: 8px;
  }
}

/* --- Cookie Settings Modal -------------------------------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1210;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(9,64,103,0.26);
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeInCookie 0.4s cubic-bezier(.57,1.16,.6,1);
}
@keyframes fadeInCookie {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  padding: 34px 34px 28px 34px;
  border-radius: 23px;
  box-shadow: 0 5px 42px 0 rgba(9,64,103,0.13);
  min-width: 320px;
  max-width: 95vw;
  max-height: 94vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 8px;
  transition: background 0.16s;
}
.cookie-modal__close:hover {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-modal ul {
  list-style: none;
  margin-bottom: 0;
  padding: 0;
}
.cookie-modal li {
  padding: 12px 0 10px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal li:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1.02rem;
  color: var(--secondary);
  font-weight: 500;
}
.cookie-toggle {
  margin-left: auto;
}
.cookie-toggle input[type='checkbox']{
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
}
.cookie-toggle input[type='checkbox'][disabled]{
  accent-color: var(--gray-300);
}

/* --- Micro-Animations -------------------------------------------------------- */
.cta, .btn, .card, .cookie-banner, .feature-grid > div, .testimonials-card, .main-nav a, .mobile-nav a {
  transition: box-shadow 0.23s, color 0.18s, background 0.18s, transform 0.17s;
}

/* --- Responsive TableText/Details -------------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section li {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .text-section {
    gap: 9px;
  }
}

/* --- Margin/Gaps for Cards/Sections ----------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  box-shadow: none;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
  }
}
.card, .testimonial-card, .feature-grid > div, .services-teaser-grid > div, .services-grid > div {
  margin-bottom: 20px;
}

/* --- Accessibility/Focus ----------------------------------------------------- */
a:focus, button:focus, .cta:focus, .btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
}

/* --- Custom Scrollbar for Luxury Feel ---------------------------------------- */
body::-webkit-scrollbar {
  width: 13px;
  background: var(--gray-200);
}
body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 9px;
  border: 3px solid var(--gray-200);
}

/* --- Luxury Gold Accent (subtle details) ------------------------------------- */
.feature-grid > div, .services-teaser-grid > div, .testimonial-card, .team-bios > div {
  border-left: 4px solid var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--accent);
  margin: 28px 0;
}

/* --- Hide visually, not for accessibility ----------------------------------- */
.visually-hidden {  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* --- Font Face Declarations (If Not Hosted) --------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

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