/* ==========================================================================  
  CSS RESET & NORMALIZATION 
========================================================================== */
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: #fff;
  color: #181818;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
*, *:before, *:after { box-sizing: inherit; }
ul,ol{ list-style: none; }
a{ text-decoration: none; color: inherit; transition: color .2s; }
button,input,select,textarea{ font-family: inherit; font-size: inherit; outline: none; }
img { max-width: 100%; display: block; height: auto; }

:root {
  --primary: #181818;
  --secondary: #333;
  --mono-black: #0d1121;
  --mono-gray-1: #34363b;
  --mono-gray-2: #58595d;
  --mono-gray-3: #bfc2c7;
  --mono-gray-4: #e5e7ea;
  --white: #fff;
  --accent: #f4f7fa;
  --brand-blue: #13426c;
  --brand-cyan: #4ca2a8;
  --radius: 10px;
  --shadow: 0 3px 28px 0 rgba(24,24,24,0.10), 0 1.5px 4.5px 0 rgba(56,56,56,0.02);
  --shadow-light: 0 2px 10px 0 rgba(170, 170, 170, 0.07), 0 0.5px 1.5px 0 rgba(56,56,56,0.03);
  --transition: all .22s cubic-bezier(.28,.85,.42,1);
}

body {
  background: var(--accent);
  color: var(--mono-black);
}

/* ==========================================================================  
  TYPOGRAPHY
========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--mono-black);
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.1rem; }
.main-nav a, .footer-nav a, .footer-links a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.subtitle {
  font-size: 1.25rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--mono-gray-2);
  margin-bottom: 20px;
}

p, li {
  font-size: 1.04rem;
  margin-bottom: 10px;
  color: var(--secondary);
}
ul li::marker { color: var(--brand-blue); }
.text-section li, .features li, .about li, .legal li {
  margin-bottom: 8px;
  font-size: 1.06rem;
  color: var(--mono-gray-1);
}
strong,b {
  font-weight: 700;
  color: var(--mono-black);
}

/* Typography adjustments for strong header contrast */
h1, h2, h3, h4, h5, h6, .cta-btn {
  text-shadow: 0 2px 5px rgba(24,24,24,0.07);
}

/* ==========================================================================  
  LAYOUT
========================================================================== */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  position: relative;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section,
.services,
.features,
.about,
.legal,
.call-to-action,
.cta,
.contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
}
.section:last-child,
footer {
  margin-bottom: 0;
}

/* Card patterns, always flexbox based */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 32px 28px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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 {
  background: var(--white);
  color: #181818;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--brand-blue);
  min-width: 0;
  max-width: 690px;
  transition: box-shadow .2s, border-left-color .2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(33,33,33,0.13);
  border-left-color: var(--brand-cyan);
}
.testimonial-author {
  font-size: 1.08em;
  font-style: italic;
  color: var(--brand-blue);
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 22px 16px 22px 18px;
  min-width: 210px;
  margin-bottom: 20px;
  flex: 1 1 220px;
  transition: box-shadow .2s, transform .2s;
}
.feature-item img,
.service-card img {
  height: 38px;
  width: 38px;
  margin-bottom: 4px;
  opacity: 0.98;
  filter: grayscale(0.7);
  transition: filter .18s;
}
.feature-item:hover,
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px) scale(1.0125);
  z-index: 1;
}
.feature-item:hover img,
.service-card:hover img { filter: grayscale(0.1) brightness(1.25); }

/* ==========================================================================  
  HOMEPAGE, HERO, FEATURES, SERVICES, CTA
========================================================================== */
.hero {
  width: 100%;
  background: linear-gradient(100deg, var(--white) 70%, var(--mono-gray-4) 100%);
  border-bottom: 2px solid var(--mono-gray-4);
  padding: 68px 0 58px 0;
  min-height: 370px;
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 8px;
}
.hero h1 {
  font-size: 2.2rem;
}
@media (min-width:900px) {
  .hero h1 { font-size: 2.8rem; }
}

.features .feature-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.features .feature-item {
  flex: 1 1 240px;
  min-width: 215px;
  max-width: 330px;
}

/* Services cards (dienstleistungen.html) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 30px 0;
  justify-content: flex-start;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 26px 18px;
  min-width: 240px;
  margin-bottom: 20px;
  flex: 1 1 230px;
  transition: box-shadow .2s, transform .22s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.service-card strong {
  font-size: 1.09em;
  color: var(--brand-blue);
}

/* Call-To-Action Section */
.call-to-action, .cta {
  background: var(--mono-gray-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-top: 48px;
  margin-bottom: 48px;
  text-align: center;
  padding: 38px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-to-action .content-wrapper, .cta .content-wrapper {
  align-items: center;
}
.call-to-action h2, .cta h2 {
  margin-bottom: 18px;
  color: var(--mono-black);
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
  background: var(--mono-black);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 34px;
  box-shadow: 0 1.5px 14px rgba(24,24,24,0.14);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 15px;
  cursor: pointer;
  transition: background .18s, color .15s, box-shadow .17s, transform .16s;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-blue);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(19,66,108,0.10);
}

/* ==========================================================================  
  HEADER & NAVIGATION
========================================================================== */
header {
  background: var(--white);
  border-bottom: 1.5px solid var(--mono-gray-4);
  min-height: 74px;
  box-shadow: 0 0.5px 1.5px 0 rgba(48,56,52,0.03);
  position: relative;
  z-index: 150;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
header img {
  height: 40px;
  width: auto;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: 18px;
}
.main-nav a {
  color: var(--mono-gray-2);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background .15s, color .16s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-blue);
  background: var(--mono-gray-4);
}
header .cta-btn {
  margin-left: 28px;
  margin-right: 0;
  padding: 10px 26px;
  font-size: 0.99rem;
  border-radius: 7px;
}

/* Mobile Header
========================================================================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 201;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--brand-blue);
  cursor: pointer;
  transition: color .15s, background .12s;
  padding: 4px 7px;
  border-radius: 4px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus{
  color: var(--mono-black);
  background: var(--mono-gray-4);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(40,44,55,0.10);
  z-index: 250;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.58,.08,.31,1.09);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none; border: none; position: absolute; right: 28px; top: 22px;
  font-size: 2.1rem; color: var(--mono-black); cursor: pointer;
  z-index: 260;
  transition: color .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 88px 34px 34px 34px;
}
.mobile-nav a {
  font-size: 1.23rem;
  color: var(--mono-black);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--mono-gray-4);
  width: 100%;
  font-weight: 600;
  transition: color .18s, background .13s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-blue);
  background: var(--mono-gray-4);
}

/* Mobile Nav Trigger */
@media (max-width: 980px) {
  .main-nav,
  header .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* ==========================================================================  
  FOOTER
========================================================================== */
footer {
  background: var(--mono-black);
  color: var(--mono-gray-3);
  padding: 64px 0 22px 0;
  border-top: 3px solid var(--brand-blue);
  font-size: 1.08rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 48px; margin-bottom: 16px;
}
.footer-nav, .footer-links, .footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav {
  gap: 5px;
}
.footer-nav a {
  color: var(--mono-gray-3);
  font-weight: 600;
  padding: 2px 0;
  border-bottom: 1.2px solid transparent;
  transition: color .18s, border-color .17s;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  border-color: var(--brand-blue);
}
.footer-links a {
  color: var(--mono-gray-3);
  font-size: 1.01em;
  letter-spacing: 0.01em;
  transition: color .18s;
}
.footer-links a:hover { color: #fff; }
.footer-contact p, .footer-contact a {
  color: var(--mono-gray-3);
  font-size: 0.99em;
}
.footer-contact a:hover { color: #fff; }
.footer-social {
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.footer-social img {
  height: 28px; width: 28px;
  opacity: 0.82;
  filter: grayscale(1);
  transition: filter .17s, opacity .17s;
  cursor: pointer;
}
.footer-social img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1.15);
}
.copyright {
  color: var(--mono-gray-2);
  font-size: 0.97em;
  margin-top: 32px;
  width: 100%;
}

/* ==========================================================================  
  LEGAL/CONTENT PAGES
========================================================================== */
.legal .text-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  margin-top: 12px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
.legal h2 { margin-top: 24px; }
.legal ul { margin-bottom: 14px; }
.legal a { color: var(--brand-blue); text-decoration: underline; }
.legal a:hover { color: var(--brand-cyan); }
/* ==========================================================================  
  CONTACT SECTION
========================================================================== */
.contact .text-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}
.contact .cta-btn {
  margin-top: 12px;
  width: fit-content;
}

/* ==========================================================================  
  RESPONSIVE: MOBILE-FIRST
========================================================================== */
@media (max-width: 980px) {
  .container {
    max-width: 99vw;
    padding: 0 12px;
  }
  .content-wrapper {
    padding: 0;
    gap: 18px;
  }
  .section, .services, .features, .about, .legal, .call-to-action, .cta, .contact {
    padding: 26px 0;
    margin-bottom: 38px;
  }
  .card, .testimonial-card, .feature-item, .service-card {
    min-width: 90vw;
    max-width: 97vw;
    padding: 18px 11px;
  }
  .features .feature-grid,
  .service-list,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .hero, .hero .content-wrapper {
    padding: 30px 0 30px 0;
    align-items: flex-start;
    min-height: 210px;
  }
  footer .container {
    flex-direction: column;
    gap: 10px 0;
    align-items: flex-start;
    padding: 0 7px 0 12px;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 1.65rem;
  }
  h2 {
    font-size: 1.34rem;
  }
  .hero h1, .hero .subtitle { font-size: 1.11rem; }
  .footer-logo img { height: 36px; }
}
@media (max-width: 500px) {
  .footer-nav, .footer-links, .footer-contact, .footer-social {
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================  
  HOVER/MICRO-INTERACTIONS
========================================================================== */
.card, .service-card, .feature-item, .testimonial-card {
  transition: box-shadow .18s, transform .17s;
}
.card:hover, .service-card:hover, .feature-item:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 6px 28px 0 rgba(24,24,24,0.12);
  z-index: 3;
}
a, .cta-btn, button {
  transition: var(--transition);
}

/* ==========================================================================  
  COOKIE CONSENT BANNER & MODAL
========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--mono-gray-4);
  color: var(--mono-black);
  box-shadow: 0 -2px 20px 0 rgba(45,45,45,0.08), 0 1.5px 2.5px 0 rgba(56,56,56,0.02);
  padding: 30px 16px 22px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity .35s, transform .35s;
  min-height: 0;
  font-size: 1rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner__text {
  max-width: 600px;
  margin-right: 26px;
  font-size: 1rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--mono-black);
  color: var(--white);
  font-weight: 600;
  margin-right: 3px;
  box-shadow: 0 2px 8px 0 rgba(22,22,22,0.06);
  transition: background .18s, color .17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-blue);
  color: #fff;
}
.cookie-settings-btn {
  background: var(--mono-gray-3);
  color: var(--mono-black);
  border: none;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--brand-cyan);
  color: var(--white);
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(24,24,24,0.38);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal__box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 40px rgba(0,0,0,0.17);
  padding: 34px 30px 22px 30px;
  max-width: 420px;
  min-width: 270px;
  color: var(--mono-black);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  color: var(--brand-blue);
  font-size: 1.28em;
  margin-bottom: 12px;
}
.cookie-modal__options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-toggle {
  display: flex; align-items: center; gap: 10px;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  accent-color: var(--brand-blue);
  width: 18px; height: 18px;
}
.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal__close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: var(--mono-gray-2);
  font-size: 1.6em;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal__close:hover {
  color: var(--brand-blue);
}

/* ==========================================================================  
  MISC
========================================================================== */
::-webkit-scrollbar { width: 12px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: #d2d6dd; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bcc2c7; }

::selection { background: var(--brand-cyan); color: #fff; }

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