/* 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, main, 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #f6f6f6;
  color: #141414;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

:root {
  --brand-primary: #141414;
  --brand-secondary: #44474A;
  --brand-accent: #E7E7E7;
  --brand-white: #fff;
  --brand-light: #F6F6F6;
  --brand-border: #dedede;

  --font-display: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --shadow-card: 0 2px 20px 0 rgba(30,30,40,0.08);
  --shadow-elevated: 0 8px 48px 0 rgba(30,30,40,0.13);
  --radius: 12px;
  --radius-sm: 8px;

  --transition-fast: 0.18s ease;
  --transition: 0.3s cubic-bezier(.52,.07,.13,1.12);
}

/********** TYPOGRAPHY ********/
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--brand-primary);
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-secondary);
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--brand-secondary);
}
p, li, dd {
  font-size: 16px;
  color: var(--brand-secondary);
  margin-bottom: 12px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}
a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}
a:hover, a:focus {
  color: #000;
  text-decoration: none;
}

/********* CONTAINER, SPACING & LAYOUT (FLEXBOX ONLY) *********/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/******** HEADER & NAVIGATION *********/
header {
  background: var(--brand-white);
  box-shadow: 0 1px 16px 0 rgba(60,60,80,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-secondary);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}

.cta-btn {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 11px 32px;
  color: var(--brand-white);
  background: var(--brand-primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #000;
  box-shadow: var(--shadow-elevated);
}


/*******  MOBILE BURGER ******/
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--brand-primary);
  margin-left: 10px;
  transition: color var(--transition-fast);
  line-height: 1;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20,20,20,0.97);
  box-shadow: 0 0 0 9999px rgba(10,10,10,0.40);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform var(--transition);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 10px 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-white);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 4px 8px;
}
.mobile-menu-close:focus {
  outline: 2px solid #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding-left: 32px;
  padding-right: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  padding: 12px 0 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #7FB069;
}

/******** HERO ********/
.hero {
  min-height: 320px;
  background: var(--brand-white);
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  padding: 0;
}
.hero .container {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 650px;
  gap: 19px;
}
.hero h1 {
  color: #000;
  font-size: 2.6rem;
  line-height: 1.12;
}
.hero p {
  font-size: 1.21rem;
  color: #44474A;
}
.hero .cta-btn {
  margin-top: 18px;
}

/******* FEATURE GRID/ITEMS ********/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 12px;
}
.feature-item {
  flex: 1 1 min(270px,44vw);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition-fast);
  border: 1.5px solid #e8e8e8;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}
.feature-item h3 {
  color: var(--brand-primary);
  font-size: 1.2rem;
}
.feature-item p {
  color: var(--brand-secondary);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px) scale(1.01);
}

/********* TESTIMONIALS *********/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 26px 20px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: #f6f6f6;
  border: 1.5px solid #e7e7e7;
  box-shadow: 0 2px 8px 0 rgba(40,40,40,0.10);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #181818;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #555;
  font-family: var(--font-body);
  font-weight: 400;
  padding-top: 6px;
}

/******* CARD CONTAINER/CARDS *******/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

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

/******* TEXT-IMAGE SECTION *******/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section .image {
  flex: 0 0 240px;
  width: 240px;
  min-width: 160px;
}
.text-image-section .text {
  flex: 1 1 300px;
}

/******* ICON ROW *******/
.icon-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 16px 0 8px 0;
  align-items: center;
}
.icon-row img {
  width: 34px;
  height: 34px;
  filter: grayscale(1) brightness(0.7);
}

/************* DL (Kontakt) ***********/
dl {
  margin-bottom: 18px;
  font-size: 1rem;
}
dl dt {
  font-weight: 700;
  color: #232323;
  margin-top: 8px;
}
dl dd {
  margin-left: 0;
  color: #565656;
  margin-bottom: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
dl img {
  height: 20px;
  width: 20px;
}

/********** FOOTER **********/
footer {
  background: #171A1D;
  color: #fff;
  padding: 40px 0 28px 0;
  box-shadow: 0 -1px 10px 0 rgba(34,34,34,0.10);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-branding img {
  height: 38px;
  width: 38px;
  filter: grayscale(0.9);
}
.footer-branding span {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: #fff;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.footer-nav, .footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a, .footer-legal-nav a {
  color: #E7E7E7;
  font-size: 1rem;
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-bottom: 4px;
}
.footer-nav a:hover, .footer-legal-nav a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}
.footer-contact img {
  height: 18px;
  width: 18px;
}

/********** COOKIE BANNER ***********/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: rgba(24,24,28,0.985);
  color: #fff;
  box-shadow: 0 -2px 32px 0 rgba(20,20,20,0.21);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 22px 18px 22px;
  gap: 36px;
  font-size: 1rem;
  animation: fadeInUp 0.6s var(--transition-fast) backwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px);} to {opacity:1;transform:translateY(0);}
}
.cookie-banner__text {
  max-width: 480px;
  line-height: 1.55;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  margin-right: 5px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-btn--accept {
  background: #121212;
  color: #fff;
}
.cookie-btn--accept:hover {
  background: #000;
  color: #fff;
}
.cookie-btn--reject {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn--reject:hover {
  background: #242424;
}
.cookie-btn--settings {
  background: #44474A;
  color: #fff;
}
.cookie-btn--settings:hover {
  background: #171A1D;
}

/***** COOKIE MODAL *****/
.cookie-modal-overlay {
  position: fixed;
  z-index: 3500;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(12,12,18,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0;} to {opacity:1;}
}
.cookie-modal {
  background: #fff;
  color: #141414;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 38px 27px 28px 27px;
  max-width: 430px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalIn 0.22s cubic-bezier(.42,.09,.16,1.19);
}
@keyframes modalIn {
  from {transform:scale(0.95) translateY(32px);opacity:0;} to{transform:scale(1) translateY(0);opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.28rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cookie-option strong {
  font-size: 1rem;
  font-family: var(--font-display);
}
.cookie-option .cookie-switch {
  margin-left: 10px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

/***** Switches for cookies *****/
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #d7d7d7;
  border-radius: 16px;
  position: relative;
  transition: background .16s;
  outline: none;
  margin: 0 0 0 6px;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #212125;
}
.cookie-switch:before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}
.cookie-switch[disabled] {
  opacity: 0.62;
  pointer-events: none;
  background: #aaa;
}

/********** MEDIA QUERIES (RESPONSIVE - FLEX ONLY) **********/
@media (max-width: 1100px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  header .container, footer .container {
    gap: 14px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .content-grid,
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 4px;
  }
  .hero .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .footer-branding img {
    height: 30px;
    width: 30px;
  }
  .feature-item {
    padding: 20px 12px 13px 12px;
  }
  dl, dl dt, dl dd { font-size: 0.98rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 17px 8px 12px 8px;
  }
  .cookie-banner__text {
    max-width: 96vw;
  }
}
@media (max-width: 430px) {
  .feature-item img {
    width: 32px;
    height: 32px;
  }
  .footer-branding {
    gap: 6px;
  }
}

/******** MISC *********/
hr {
  border: none;
  height: 1px;
  background: #e2e2e2;
  margin: 32px 0 14px 0;
}
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }

/********* VISUAL HIERARCHY & Microinteractions **********/
.card, .feature-item, .testimonial-card {
  transition: box-shadow var(--transition), transform 0.16s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 5px 25px 0 rgba(30,30,40,0.13);
  transform: translateY(-2px) scale(1.01);
}

/****** Focus *******/
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #141414;
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Hide mobile menu by default (JS will .open it) */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/************ Z-INDEX LAYERING CLEARANCE ************/
header { z-index: 100; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3500; }

/**** Hide cookie modal & banner by default (Use .open via JS) ****/
.cookie-modal-overlay, .cookie-modal {
  display: none;
}
.cookie-modal-overlay.open, .cookie-modal.open {
  display: flex;
}
.cookie-banner {
  display: flex;
}

/**** Util classes for spacing ****/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 32px !important; }
.mb-lg { margin-bottom: 32px !important; }
.mt-xl { margin-top: 52px !important; }
.mb-xl { margin-bottom: 52px !important; }

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