/* ----------------------------------------------------------
   CSS RESET & NORMALIZE (modern, for cross-browser support)
----------------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #fff;
  color: #171717;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}
a:focus {
  outline: 2px solid #212121;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}
button {
  cursor: pointer;
  background: none;
}

/* -----------------------
   COLOR PALETTE & FONTS
------------------------- */
:root {
  --color-bg: #fff;
  --color-bg-soft: #f7f7f7;
  --color-main: #171717;
  --color-contrast: #fff;
  --color-primary: #212121;
  --color-secondary: #424242;
  --color-accent: #bdbdbd;
  --color-accent-strong: #111;
  --color-border: #CCCCCC;
  --color-shadow: rgba(34, 34, 34, 0.13);
  --color-shadow-strong: rgba(34, 34, 34, 0.20);

  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #181818;
    --color-bg-soft: #222226;
    --color-main: #F5F5F5;
    --color-contrast: #19191b;
    --color-primary: #f5f5f5;
    --color-secondary: #bdbdbd;
    --color-accent: #333;
    --color-accent-strong: #222;
    --color-border: #303038;
    --color-shadow: rgba(0,0,0,0.23);
    --color-shadow-strong: rgba(0,0,0,0.25);
  }
}

/* --------------------------------
   TYPOGRAPHY & HEADING HIERARCHY
---------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #382828;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
  line-height: 1.12;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 8px;
  line-height: 1.2;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
  font-weight: 500;
}

.text-section h1, .text-section h2, .text-section h3, .text-section h4 {
  color: #382828;
}

p, li {
  font-family: var(--font-body);
  color: #382828;
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 18px;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 18px;
  font-size: 1rem;
}
li {
  margin-bottom: 8px;
}

strong, b {
  font-weight: 600;
}

hr {
  border: none;
  border-bottom: 1.5px solid var(--color-accent);
  margin: 36px 0;
}

/* --------------------------------------------------
   LAYOUT: CONTAINERS & SPACING (FLEX, NO GRID!)
--------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  max-width: 770px;
  margin: 0 auto;
}
.features-grid,
.case-studies-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-container {
  margin-bottom: 0px;
}
.card {
  background: var(--color-bg);
  border-radius: 20px;
  box-shadow: 0 6px 28px var(--color-shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  position: relative;
  /* No absolute positioning for content! */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #171717;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 24px var(--color-shadow-strong);
  min-width: 250px;
  max-width: 370px;
  margin-right: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.2s;
}
.testimonial-card strong { font-size: 1em; color: #212121; margin-top: 4px; font-family: var(--font-display); }
.testimonial-card p { font-size: 1.1em; font-style: italic; color: #232323; }
.testimonial-card:hover {
  box-shadow: 0 6px 28px var(--color-shadow-strong);
  transform: translateY(-5px) scale(1.02);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 2px 8px var(--color-shadow);
  flex: 1 1 250px;
  min-width: 220px;
  padding: 28px 24px 20px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 45px;
  height: 45px;
  margin-bottom: 6px;
}
.feature-item:hover  {
  box-shadow: 0 7px 24px var(--color-shadow-strong);
  transform: translateY(-4px) scale(1.01);
  background: #fff;
}

.case-studies-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.case-study-teaser {
  flex: 1 1 320px;
  background: #fafafa;
  border-radius: 13px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 26px 22px 20px;
  margin-bottom: 20px;
  min-width: 230px;
}

/* ----------------------------------------------
   BUTTONS, CTA, LINKS WITH MICRO-INTERACTIONS
----------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  background: #171717;
  color: #fff;
  padding: 13px 38px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 12px rgba(26,26,26,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.22s, transform 0.18s;
  margin-top: 18px;
  margin-bottom: 4px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #232323;
  color: #fff;
  box-shadow: 0 5px 18px var(--color-shadow);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

button, .button, .btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 11px 28px;
  margin-right: 15px;
  background: #222;
  color: #fff;
  border-radius: 28px;
  border: none;
  box-shadow: 0 1px 7px var(--color-shadow-strong);
  transition: background 0.19s, color 0.16s, box-shadow 0.2s;
}
button:hover, .button:hover, .btn:hover {
  background: #3B3B3B;
  color: #fff;
  box-shadow: 0 3px 14px var(--color-shadow);
}

a {
  transition: color 0.18s, text-decoration-color 0.2s;
}
a:hover, a:focus {
  color: #000;
  text-decoration: underline solid #bdbdbd 2px;
  outline: none;
}

/* ------------------------------------------------------
   HEADER + NAVIGATION (desktop & responsive mobile menu)
------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid #e5e5e5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0 0 0 0;
  min-height: 80px;
}
.logo-link {
  display: flex;
  align-items: center;
  margin-right: 28px;
  padding: 16px 5px 16px 0;
}
.logo-link img {
  height: 42px;
  width: auto;
  aspect-ratio: 2/1;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  margin-right: 16px;
}
.main-nav a {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.04rem;
  color: #19191b;
  padding: 7px 14px;
  border-radius: 14px;
  transition: background 0.14s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e5e5e5;
  color: #000;
}
header .cta-btn {
  margin-left: auto;
  margin-right: 18px;
  z-index: 2;
}
.mobile-menu-toggle {
  display: none;
}

/* MOBILE NAV INITIALLY HIDDEN (handled by JS + CSS) */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100vw;
  background: rgba(15, 15, 15, 0.96);
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(.72,.2,.37,1.13) 0s;
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fafafa;
  background: none;
  border: none;
  margin: 22px 32px 22px 0;
  z-index: 210;
  cursor: pointer;
  padding: 0 0 4px 0;
  transition: color 0.17s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  color: #FFEB3B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  padding: 32px 36px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fafafa;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 14px 0;
  transition: color 0.17s, background 0.15s;
  width: 100%;
  border-radius: 10px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFEB3B;
  background: #19191b;
}


/* Only show burger on small screens */
@media (max-width: 1050px) {
  header {
    flex-wrap: wrap;
    align-items: center;
    min-height: 62px;
    padding: 0 11px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #232323;
    position: relative;
    z-index: 220;
    margin: 0 8px 0 auto;
    padding: 8px 8px 8px 8px;
    border-radius: 11px;
    transition: background 0.19s, color 0.14s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #232323;
    color: #fff;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .content-wrapper, .features-grid, .content-grid, .case-studies-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .testimonial-slider, .news-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card, .feature-item, .case-study-teaser, .card {
    max-width: 100%;
    min-width: unset;
    margin-right: 0;
    padding: 18px 12px 18px 16px;
  }
}

@media (max-width: 525px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .logo-link img { height: 30px; }
  .cta-btn, button, .btn, .button { font-size: 1rem; padding: 10px 20px; }
}

/* -------------------
   HERO SECTIONS
--------------------- */
.hero {
  min-height: 340px;
  background: #fff;
  border-bottom: 2px solid #ececec;
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .text-section h1 {
  font-size: 2.75rem;
}

@media (max-width: 768px) {
  .hero {
    min-height: 200px;
  }
  .hero .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .hero .text-section h1 {
    font-size: 1.65rem;
  }
}

/* -----------------------------
   TESTIMONIAL SLIDER (horizontal)
------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .testimonial-slider {
    gap: 14px;
  }
}

/* ---------------------------
   NEWS LISTS & BLOG ARTICLES
----------------------------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item {
  background: #f4f4f4;
  border-radius: 13px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 18px 18px 14px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.19s, background 0.14s;
  position: relative;
}
.news-item:hover {
  box-shadow: 0 5px 22px var(--color-shadow-strong);
  background: #fff;
}
.news-date {
  color: #757575;
  font-size: 0.96em;
  font-style: italic;
  margin-top: 7px;
  display: block;
}
.featured-articles ul li {
  margin-bottom: 8px;
}
.featured-articles ul li a {
  color: #171717;
  font-weight: 500;
  border-bottom: 1.5px dotted #bdbdbd;
  padding-bottom: 2px;
  transition: border-color 0.16s, color 0.18s;
}
.featured-articles ul li a:hover {
  color: #19191b;
  border-bottom: 1.5px solid #232323;
}

/* ----------------------------------------
   SPECIAL ELEMENTS: BENEFITS, JOB CARDS
----------------------------------------- */
.benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.benefits-list li {
  background: #f6f6f6;
  border-radius: 12px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 11px 14px 11px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 200px;
  font-size: 1.03em;
  font-family: var(--font-body);
}
.benefits-list img {
  width: 24px;
  height: 24px;
}
.job-openings-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.job-openings-list li {
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 18px 16px 16px 18px;
}
.job-openings-list a.cta-btn {
  margin-left: 0;
  margin-top: 8px;
}

/* ----------------------------------------------
   MAP/LOCATION block on kontakt.html
------------------------------------------------ */
.map-location {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 1.05em;
  font-style: italic;
  margin-bottom: 20px;
}

/* -------------------------
   FOOTER
--------------------------- */
footer {
  width: 100%;
  background: #181818;
  color: #fafafa;
  border-top: 2px solid #222;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 0 18px 0;
}
.footer-main .logo-link img {
  filter: grayscale(1) brightness(100);
  opacity: .92;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 14px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: #dfdfdf;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 2px 0;
  border-radius: 7px;
  transition: color 0.16s, background 0.16s;
}
.footer-nav a:hover {
  color: #fff;
  background: #232323;
}
.contact-info {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #bdbdbd;
}
.contact-info a {
  color: #fff;
  text-decoration: underline dotted #fff 1.5px;
}
.footer-bottom {
  border-top: 1.5px solid #232323;
  text-align: center;
  padding: 12px 0 4px;
  font-size: 0.98em;
  color: #bdbdbd;
  background: #161616;
}
@media (max-width: 950px) {
  .footer-main {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ----------------------------------------
   COOKIE BANNER & MODAL
------------------------------------------ */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #232323;
  color: #fff;
  border-top: 2px solid #171717;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.21);
  font-size: 1.06em;
  padding: 18px 32px;
  min-height: 64px;
  transition: transform .36s cubic-bezier(.77,.22,.37,1.08) 0s, opacity 0.22s;
  opacity: 1;
  transform: translateY(0%);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner .cookie-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  font-size: 1em;
  background: #fff;
  color: #232323;
  border: none;
  border-radius: 27px;
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 0px;
  box-shadow: 0 1px 7px var(--color-shadow);
  transition: background 0.19s, color 0.18s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #181818;
  color: #fff;
}
.cookie-banner .cookie-btn.secondary {
  background: #232323;
  color: #fff;
  border: 1.5px solid #bdbdbd;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #fff;
  color: #1a1a1a;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 900;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,18,18,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  padding: 38px 34px 24px;
  border-radius: 18px;
  min-width: 340px;
  max-width: 97vw;
  box-shadow: 0 11px 54px rgba(18,18,18,0.25);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.38em;
  margin-bottom: 11px;
  font-family: var(--font-display);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #d8d8d8;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle[data-enabled="true"] {
  background: #232323;
}
.cookie-toggle-thumb {
  position: absolute;
  left: 2px; top: 2.5px;
  width: 18px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: left 0.21s;
}
.cookie-toggle[data-enabled="true"] .cookie-toggle-thumb {
  left: 18px;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 18px;
  right: 19px;
  background: none;
  color: #232323;
  border: none;
  font-size: 1.7em;
  z-index: 910;
  transition: color 0.15s;
  font-family: var(--font-display);
}
.cookie-modal .modal-close-btn:hover {
  color: #FFEB3B;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
  margin-bottom: 0;
}
@media (max-width: 650px) {
  .cookie-modal {
    padding: 16px 10px 10px;
    min-width: 90vw;
  }
}

/* --------------------------------------------------
   UTILITY CLASSES & SCROLLBARS
--------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #bdbdbd;
}

/* Utility for spacing */
.mt-8 { margin-top: 8px!important; }
.mt-16 { margin-top: 16px!important; }
.mb-16 { margin-bottom: 16px!important; }
.mb-24 { margin-bottom: 24px!important; }
.gap-8 { gap: 8px!important; }
.gap-16 { gap: 16px!important; }

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

/* Selection highlight */
::selection {
  background: #232323;
  color: #fff;
}

/* --------------------------------------------------
   END MONOCHROME SOPHISTICATED CSS SYSTEM
--------------------------------------------------- */
