/* === 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;
}
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.22s cubic-bezier(.4,.2,.3,1);
}

/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #101010;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.22;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 12px;
  line-height: 1.25;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, ul, ol {
  margin-bottom: 12px;
}
strong, b {
  font-weight: 600;
}

/* === CONTAINER & SECTIONS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section:not(.hero) {
  margin-bottom: 60px;
  padding: 40px 20px;
}

main > section.hero {
  padding: 32px 0 48px 0;
  margin-bottom: 10px;
  background: #fff;
  border-bottom: 1px solid #e6e7e9;
}

.content-wrapper,
.content-grid,
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* === HEADER === */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 0 0 0 0;
  position: relative;
  z-index: 200;
}
.header-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px 10px 20px;
}
.header-branding img {
  height: 48px;
  width: auto;
}
.tagline {
  font-size: 1rem;
  color: #555;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  max-width: 400px;
  line-height: 1.4;
  opacity: 0.78;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px 10px 20px;
  font-size: 1rem;
}
.main-nav a {
  padding: 6px 15px;
  border-radius: 24px;
  font-weight: 500;
  color: #101010;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #101010;
  color: #fff;
}
.main-nav .cta.primary {
  background: #101010;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 10px;
  font-weight: 600;
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.15s;
}
.main-nav .cta.primary:hover,
.main-nav .cta.primary:focus {
  background: #fff;
  color: #101010;
  border: 1.5px solid #101010;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: transparent;
  color: #101010;
  position: absolute;
  top: 24px;
  right: 26px;
  z-index: 302;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #e8e8e8;
}

/* === MOBILE NAVIGATION === */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.90);
  color: #fff;
  z-index: 5002;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.4,.2,.3,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  margin: 24px 24px 0 0;
  border-radius: 44px;
  padding: 4px 14px 2px 14px;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #101010;
  color: #acceff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  width: 100%;
  user-select: none;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.19rem;
  background: none;
  padding: 10px 30px;
  border-radius: 32px;
  width: 90%;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #fff;
  color: #181818;
}

/* === HERO === */
.hero {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.030), 0 1.5px 2px rgba(0,0,0,0.04);
  border-top: 1px solid #E6E8EA;
  margin-bottom: 28px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  justify-content: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero h1 {
  color: #111;
  margin-bottom: 16px;
  font-size: 2.1rem;
}
.hero p {
  max-width: 620px;
  color: #444;
  font-size: 1.15rem;
  margin-bottom: 22px;
}
.hero .cta.primary {
  margin-top: 4px;
}


/* === CARD + GRID LAYOUTS === */
.feature-box, .service-box, .pricing-plan, .testimonial-card {
  background: #fcfcfc;
  border: 1px solid #E3E3E7;
  border-radius: 18px;
  padding: 28px 32px 22px 32px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 275px;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.18s, border 0.18s, background 0.18s;
}
.feature-box:hover, .service-box:hover, .pricing-plan:hover, .testimonial-card:hover {
  box-shadow: 0 8px 38px rgba(20,20,20,0.09);
  border-color: #BDBDBF;
  background: #fafafa;
}
.pricing-plan.best {
  border: 2.5px solid #111;
  background: #f4f4f4;
  box-shadow: 0 10px 34px rgba(18,18,18,0.13);
  position: relative;
}
.pricing-plan.best::after {
  content: 'Empfohlen';
  position: absolute;
  right: 20px;
  top: 18px;
  background: #101010;
  color: #fff;
  font-size: 0.76rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.03em;
  border-radius: 16px;
  padding: 2px 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.content-grid.grid, .content-wrapper.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.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;
  border-radius: 18px;
  background: #fafafd;
  border: 1px solid #e2e2e7;
  color: #161618;
  min-width: 240px;
}
.testimonial-card .customer {
  color: #555;
  font-style: italic;
  font-size: 1.06rem;
  opacity: 0.78;
}
.testimonial-card .stars {
  font-size: 1.14rem;
  letter-spacing: 2px;
  color: #101010;
  font-weight: 700;
}

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

.benefits-list, .faq-list ul {
  margin-bottom: 0;
}
.benefits-list li, .faq-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.benefits-list li::before, .faq-list li::before {
  content: '–';
  color: #101010;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* === ABOUT, CONTACT, FAQ, LEGAL, TABLE === */
.about ul, .features ul, .faq-list ul {
  margin-bottom: 18px;
  margin-top: 6px;
}

.contact-info .content-wrapper p, .form .content-wrapper p {
  margin-bottom: 10px;
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 40px 4px rgba(30,32,35,0.04);
  padding: 32px 20px;
}
.service-comparison {
  overflow-x: auto;
  /* Table needs to not overflow scroll area */
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.018);
  margin-bottom: 34px;
}
.service-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  color: #101010;
}
.service-comparison th,
.service-comparison td {
  border-bottom: 1px solid #ddd;
  padding: 12px 8px;
  min-width: 90px;
  text-align: center;
}
.service-comparison th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #eee;
}
.service-comparison tr:last-child td {
  border-bottom: none;
}

/* === CALL TO ACTION === */
.cta.primary, a.cta.primary, button.cta.primary {
  background: #101010;
  color: #fff !important;
  padding: 13px 34px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1.5px solid #101010;
  transition: background 0.19s, color 0.19s, box-shadow 0.2s;
  margin-top: 6px;
  outline: none;
  display: inline-block;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #fff;
  color: #101010 !important;
  box-shadow: 0 6px 16px rgba(18,18,18,0.13);
  border: 1.5px solid #18181d;
}


/* === FOOTER === */
footer {
  background: #181818;
  color: #fafafd;
  padding: 36px 0 18px 0;
  border-top: 2px solid #101010;
  margin-top: 72px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fafafd;
  opacity: 0.8;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.21s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #101010;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin-bottom: 18px;
  color: #d2d2d6;
  font-size: 1rem;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  color: #c8c8cc;
}
.footer-branding img {
  height: 38px;
  margin-bottom: 8px;
  filter: grayscale(75%) brightness(0.74);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(25,25,25,0.99);
  color: #fafafd;
  width: 100vw;
  z-index: 9800;
  box-shadow: 0 -3px 30px 0 rgba(10,10,10,0.12);
  padding: 24px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  font-size: 1.08rem;
  animation: slideUp 0.33s cubic-bezier(.4,.3,.3,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 4px 0;
  max-width: 650px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  padding: 10px 18px;
  border-radius: 18px;
  border: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  margin-bottom: 0;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background 0.19s, color 0.13s;
}
.cookie-btn.accept {
  background: #101010;
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #fff;
  color: #101010;
  border: 1.5px solid #19191d;
}
.cookie-btn.reject {
  background: #fff;
  color: #222;
  border: 1.5px solid #dadada;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #222;
  color: #fff;
  border: 1.5px solid #101010;
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #fff;
  color: #101010;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,18,0.82);
  z-index: 9991;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.21s cubic-bezier(.4,.3,.3,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 36px 26px 26px 26px;
  min-width: 300px;
  max-width: 94vw;
  box-shadow: 0 12px 40px 8px rgba(30,32,35,0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 0.2em;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 1.09rem;
}
.cookie-modal .toggle {
  appearance: none;
  display: inline-block;
  width: 36px; height: 18px;
  background: #d9dadc;
  outline: none;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
  vertical-align: middle;
}
.cookie-modal .toggle:checked {
  background: #101010;
}
.cookie-modal .toggle::before {
  content: '';
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 14px; height: 14px;
  border-radius: 7px;
  background: #fff;
  transition: left 0.2s;
}
.cookie-modal .toggle:checked::before {
  left: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 21px; top: 14px;
  background: none;
  color: #181818;
  font-size: 1.6rem;
  border: none;
  padding: 0 6px;
  cursor: pointer;
  border-radius: 12px;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  background: #eee;
}

/* === SPACING & FLEXBOX ENFORCEMENT === */
.section, section:not(.hero) { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* CRITICAL: MINIMUM MARGIN BETWEEN FLEX ITEMS */
.card, .feature-box, .service-box, .pricing-plan, .testimonial-card, .projects > .content-wrapper > div, .about > .content-wrapper > div, .team > .content-wrapper.grid > div {
  margin-bottom: 20px;
}

/* === MICRO INTERACTIONS === */
a, button, .cta.primary, .mobile-menu-toggle {
  transition: color 0.2s, background 0.2s, border 0.2s, box-shadow 0.18s;
}
.feature-box:hover img, .service-box:hover img {
  filter: grayscale(1) brightness(0.6) contrast(1.4);
  transform: scale(1.07) rotate(-2deg);
  transition: filter 0.23s, transform 0.23s;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 968px) {
  .main-nav {
    gap: 10px;
    font-size: 0.96rem;
  }
  .container {
    max-width: 98vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .feature-box, .service-box, .pricing-plan {
    min-width: 220px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-branding {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 0;
    align-items: flex-start;
  }
  section.hero .container {
    min-height: 180px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .section, section:not(.hero) {
    padding: 24px 7vw 24px 7vw;
    margin-bottom: 38px !important;
  }
  .content-wrapper.grid, .content-grid.grid {
    gap: 18px;
  }
  .features .content-wrapper, .about .content-wrapper, .team .content-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card, .feature-box, .service-box, .pricing-plan {
    width: 100%;
    min-width: 130px;
    max-width: 100vw;
    margin-right: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-contact,
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .footer-branding {
    margin-top: 28px;
  }
  .cookie-banner {
    padding: 20px 10px;
    font-size: 0.97rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1.01rem; }
  .feature-box, .service-box, .pricing-plan, .testimonial-card {
    padding: 17px 8px 17px 12px;
    font-size: 0.97rem;
  }
  .tagline {
    font-size: 0.83rem;
    max-width: 96vw;
  }
  .footer-branding img { height: 26px; }
}

/* === MONOCHROME SOPHISTICATED VISUAL HIERARCHY === */
h1, h2, h3, h4, h5, h6 {
  color: #111;
}
.hero {
  border-bottom: 1.5px solid #e2e2e7;
  background: #fff;
}
.section {
  background: #fff;
}
.feature-box, .service-box, .pricing-plan {
  background: #fafafa;
  border: 1px solid #d9d9dc;
}
.testimonial-card {
  background: #fafbfd;
  border: 1px solid #dddfe3;
  color: #161618;
}
footer {
  background: #181818;
  color: #fafafd;
  border-top: 2.5px solid #101010;
}
footer a {
  color: #fafafd;
}

/* === SCROLLBAR STYLES (SOPHISTICATED) === */
::-webkit-scrollbar {
  width: 7px;
  background: #eee;
}
::-webkit-scrollbar-thumb {
  background: #181818;
  border-radius: 5px;
}
::-webkit-scrollbar-track {
  background: #fcfcfc;
}

/* === ACCESSIBILITY & FOCUS === */
a:focus, button:focus, input:focus, .cta:focus {
  outline: 2.5px solid #19191d;
  outline-offset: 2px;
  background: #f7f7f7;
}
a:active, button:active, .cta:active {
  background: #ededed;
}

/* === PRINT (optional, minimal) === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
