/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
:focus {
  outline: 2px solid #222;
  outline-offset: 2px;
}

/* --- ROOT COLORS & BRAND VARIABLES --- */
:root {
  --black: #111;
  --white: #fff;
  --gray-900: #222;
  --gray-700: #333;
  --gray-400: #909090;
  --gray-100: #f3f3f3;
  --shadow: 0 6px 32px rgba(0,0,0,0.10), 0 1.5px 3px rgba(0,0,0,0.04);
  --primary: #283593; /* Brand deep navy for accents */
  --secondary: #00897B; /* Not used in monochrome style for backgrounds, reserved for hover/details */
  --accent: #f8f8f8; /* Accent off-white for light backgrounds */
  --border-radius: 16px;
}

/* --- TYPOGRAPHY --- */
body {
  background: var(--accent);
  color: var(--gray-900);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, h5 {
  margin-bottom: 0.6em;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--gray-900);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
p, li, ul, ol {
  color: var(--gray-700);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
  line-height: 1.6;
}
strong {
  color: var(--black);
  font-weight: 600;
}
.text-section h2,
.text-section h1 {
  margin-bottom: 12px;
}

/* --- CONTAINER & SECTIONS LAYOUT --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 10px;
}
.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;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0;
}
header a img {
  height: 38px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-900);
  padding: 8px 0;
  transition: color 0.18s;
  opacity: 0.82;
}
nav a:hover,
nav a:focus {
  color: var(--primary);
  opacity: 1;
}
nav a.cta {
  color: var(--white);
  background: var(--gray-900);
  border-radius: 24px;
  padding: 8px 24px;
  margin-left: 12px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background .19s, color .19s, transform .16s;
}
nav a.cta:hover,
nav a.cta:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
}
.mobile-menu-toggle {
  display: none;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.74,0,.36,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
  box-shadow: -6px 0 32px 0 rgba(0,0,0,0.05);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--black);
  background: none;
  border: none;
  margin-bottom: 16px;
  transition: color .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--gray-400);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--black);
  transition: color .17s, background .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--primary);
  background: var(--gray-100);
}

@media (max-width: 1024px) {
  nav {
    gap: 18px;
  }
}

@media (max-width: 850px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2.1rem;
    color: var(--black);
    background: none;
    border: none;
    margin-left: 18px;
    transition: color .15s;
    z-index: 3002;
  }
  .mobile-menu {
    display: flex;
  }
}

/* --- HERO & MAIN CTA --- */
main .content-wrapper > .cta {
  margin-top: 10px;
}
.cta {
  display: inline-block;
  background: var(--gray-900);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 11px 30px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  font-size: 1rem;
  margin-top: 10px;
  transition: background .18s, color .19s, transform .17s, box-shadow .17s;
  letter-spacing: 0.01em;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 48px 0 rgba(40,53,147,0.09);
}

/* --- CARD CONTAINER & CARD STYLES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow .18s, transform .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-2px) scale(1.01);
}
.card h3 {
  font-size: 1.15rem;
  color: var(--gray-900);
}
.card p {
  font-size: 1rem;
  color: var(--gray-700);
}

/* --- FLEX UTILITY PATTERNS PER REQUIREMENTS --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px 0 7px 0;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 440px;
  min-width: 240px;
  border-left: 4px solid var(--black);
  transition: box-shadow .18s;
}
.testimonial-card p {
  color: var(--gray-900);
  font-size: 1.02rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--gray-400);
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 14px 40px 0 rgba(40,53,147,0.11);
  border-left: 4px solid var(--primary);
}

/* --- LISTS, ICONS --- */
li > img, ul > li > img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  margin-bottom: 3px;
  filter: grayscale(1) contrast(1.1);
}
ul {
  list-style: none;
  margin-bottom: 12px;
}
ol {
  list-style: decimal inside;
  margin-bottom: 14px;
}
ol > li {
  margin-bottom: 8px;
}

/* --- QUICK LINKS --- */
.quick-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.quick-links a {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-bottom: 1.5px solid var(--primary);
  transition: color .14s, border-color .14s;
  padding-bottom: 2px;
}
.quick-links a:hover, .quick-links a:focus {
  color: var(--black);
  border-color: var(--gray-700);
}

/* --- FOOTER --- */
footer {
  background: var(--gray-900);
  padding: 28px 0 0 0;
  color: var(--white);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.85;
  transition: color .19s, opacity .19s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  opacity: 1;
}
footer .social-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
footer .social-links img {
  filter: grayscale(1) contrast(1.1);
  opacity: 0.55;
  height: 32px;
  width: 32px;
  transition: opacity .14s;
}
footer .social-links img:hover, footer .social-links img:focus {
  opacity: 0.9;
  filter: grayscale(0) contrast(1.2);
}
footer .legal-disclaimer p {
  color: var(--gray-400);
  font-size: 0.89rem;
  text-align: center;
  padding: 8px 0 6px 0;
}

/* --- COMPANY MAP & INFO BLOCK (Kontakt page) --- */
.company-map {
  width: 100%;
  max-width: 300px;
  margin: 12px auto;
}
.company-info-block {
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 14px 17px;
  font-size: 1rem;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  margin-top: 16px;
}

/* --- MODAL & COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 4000;
  background: var(--gray-900);
  color: var(--white);
  box-shadow: 0 -3px 28px 0 rgba(20,20,20,0.10);
  padding: 18px 28px 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  animation: cookieslidein 0.4s cubic-bezier(.74,0,.32,1);
}
@keyframes cookieslidein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--white);
  color: var(--gray-900);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1.5px 6px 0 rgba(40,53,147,0.06);
  font-size: 1rem;
  margin-right: 2px;
  transition: background .18s, color .17s, transform 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1.5px);
}
.cookie-btn.settings {
  background: var(--gray-100);
  color: var(--gray-700);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--white);
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,24,24,0.49);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s cubic-bezier(.63,0,.36,1.1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-dialog {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 60px rgba(40,53,147,.18);
  padding: 32px 28px 27px 28px;
  max-width: 400px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: modalfadein .25s cubic-bezier(.62,0,.48,1.1);
}
@keyframes modalfadein {
  0% { transform: scale(.96) translateY(32px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-cat span {
  font-weight: 600;
  color: var(--gray-900);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
}
.cookie-switch {
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: var(--gray-400);
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.cookie-switch input {
  display: none;
}
.cookie-switch .switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: left .13s, background .17s;
  box-shadow: 0 1.5px 8px 0 rgba(24,24,24,0.13);
}
.cookie-switch input:checked + .switch-slider {
  left: 22px;
  background: var(--primary);
}
.cookie-cat.disabled {
  opacity: .44;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-modal-dialog {
    padding: 20px 10px 20px 10px;
    width: 98vw;
  }
}

/* --- RESPONSIVE DESIGN & SPACING --- */
@media (max-width: 1400px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.29rem;
  }
  .card {
    padding: 18px 13px;
    min-width: 190px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  .content-wrapper,
  .content-grid {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container {
    min-height: 48px;
  }
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .card,
  .testimonial-card {
    min-width: 120px;
    max-width: 100%;
    padding: 13px 11px;
  }
  .testimonial-card {
    font-size: 0.93rem;
  }
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 3px;
  }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
a, button, .card, .cta, .testimonial-card, .mobile-menu, .mobile-nav a, .cookie-btn, .cookie-banner {
  transition: color .14s, background .18s, box-shadow .18s, transform .14s, opacity .14s;
}

/* --- VISUAL EFFECTS & HIERARCHY --- */
.card, .testimonial-card, .content-wrapper, .text-section, .company-info-block {
  box-shadow: var(--shadow);
}
.card, .testimonial-card, .company-info-block {
  border-radius: var(--border-radius);
  background: var(--white);
}
.card h3, .testimonial-card p {
  color: var(--gray-900);
}

/* --- LINKS IN TEXT --- */
p a, li a {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transition: color .13s, border-color .13s;
}
p a:hover, li a:hover, p a:focus, li a:focus {
  color: var(--gray-900);
  border-color: var(--gray-900);
}

/* --- ACCESSIBILITY HIGHLIGHTS --- */
.cta:focus, a:focus, button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* --- SECTION SPACINGS (MANDATORY) --- */
section {
  margin-bottom: 60px;
  padding-top: 18px;
}
.card-container, .content-grid, .text-image-section, .feature-item, .testimonial-card {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}

/* --- ENSURE MINIMUM GAP BETWEEN CARDS/SECTIONS --- */
section + section,
.content-wrapper + .content-wrapper {
  margin-top: 32px;
}

/* --- Z-INDEX SAFETY --- */
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 2000;
}

/* --- HIDE MOBILE MENU OVERLAY WHEN NOT OPEN --- */
.mobile-menu {
  display: none;
}
@media (max-width: 850px) {
  .mobile-menu {
    display: flex;
  }
  nav {
    display: none;
  }
}

/* --- PREVENT CONTENT OVERLAP --- */
.card, .testimonial-card, .content-wrapper {
  margin-bottom: 20px;
}

/* --- INDIVIDUAL ELEMENT ADJUSTMENTS --- */
ul > li {
  margin-bottom: 12px;
  align-items: flex-start;
  display: flex;
  gap: 12px;
}
ul > li strong {
  min-width: 90px;
}

/* --- PRINT OPTIMIZATION --- */
@media print {
  *, *:before, *:after {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}

/* --- END OF CSS --- */