/* =========================================================
   CSS RESET & BASELINE
   =========================================================*/
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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #232B32;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s cubic-bezier(.23,1,.32,1);
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
}
:focus {
  outline: 2px solid #9BBCCA;
  outline-offset: 2px;
}

/* =========================================================
   FONT IMPORTS
   =========================================================*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* =========================================================
   COLOR VARIABLES + FALLBACKS
   =========================================================*/
:root {
  --color-primary: #232B32;
  --color-secondary: #9BBCCA;
  --color-accent: #E5E8E8;
  --color-heading: #232B32;
  --color-bg: #fff;
  --color-shadow: rgba(35,43,50,0.07);
  --color-btn-hover: #232B32;
}

/* =========================================================
   LAYOUT: CONTAINER, SECTIONS, CONTENT WRAPPER
   =========================================================*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================================================
   TYPOGRAPHY - Heading/Bold, Hierarchy, Paragraphs
   =========================================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-heading);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: none;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.1rem;
}
p, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 8px;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
strong {
  font-weight: 900;
  color: var(--color-primary);
}
.price {
  color: var(--color-secondary);
  font-weight: 700;
  margin-left: 12px;
}

/* =========================================================
   HERO SECTION
   =========================================================*/
.hero-section {
  background: var(--color-accent);
  border-radius: 0 0 42px 0;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 56px 0 42px 0;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
}
.hero-section h1 {
  font-size: 2.7rem;
  font-weight: 900;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 36px 0 28px 0;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* =========================================================
   NAVIGATION & HEADER
   =========================================================*/
header {
  background: var(--color-bg);
  border-bottom: 2.5px solid var(--color-accent);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--color-primary);
  transition: background 0.15s, color 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  background: var(--color-primary);
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 14px var(--color-shadow);
  margin-left: 20px;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(.23,1,.32,1), transform 0.19s;
  text-align: center;
  letter-spacing: 0.03em;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}

/* =========================================================
   MOBILE MENU
   =========================================================*/
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 14px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 2100;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.39, .575, .565, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 42px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-top: 36px;
  width: 90vw;
  max-width: 350px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
  background: var(--color-accent);
  border-radius: 9px;
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 22;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================================
   FOOTER
   =========================================================*/
footer {
  background: var(--color-accent);
  border-top: 2.5px solid var(--color-secondary);
  padding: 32px 0 18px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  padding: 5px 11px;
  border-radius: 6px;
  transition: background 0.14s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
footer p {
  font-size: 0.94rem;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =========================================================
   CARDS, FEATURES, PROJECTS, TESTIMONIALS
   =========================================================*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.feature-card {
  background: #fff;
  border-radius: 18px;
  min-width: 242px;
  flex: 1 1 240px;
  box-shadow: 0 4px 24px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  transition: transform 0.18s cubic-bezier(.47,1.64,.41,.8),
    box-shadow 0.16s;
}
.feature-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-10px) scale(1.022);
  box-shadow: 0 8px 36px var(--color-secondary);
  z-index: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 38px;
}
.service-list li {
  background: #fff;
  box-shadow: 0 4px 16px var(--color-shadow);
  border-radius: 14px;
  padding: 22px 21px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.service-list h3 {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-size: 1.13rem;
  font-weight: 900;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.case-study {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 24px 20px 16px 20px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.case-study:hover {
  box-shadow: 0 8px 28px var(--color-secondary);
  z-index: 1;
}

/* Testimonials (Kundenerfahrungen) */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  color: #232B32;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 650px;
  font-size: 1.1rem;
  /* Ensures strong contrast for readability */
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* =========================================================
   GENERIC FLEX CARD CONTAINERS & ALIGNMENTS
   =========================================================*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--color-shadow);
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================================================
   LISTS, LINKS, GENERIC ELEMENTS
   =========================================================*/
ul li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 0.1em;
}
ul li strong {
  font-weight: 800;
  color: var(--color-secondary);
}
a {
  color: var(--color-secondary);
  transition: color 0.17s cubic-bezier(.23,1,.32,1);
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =========================================================
   FORMS & CTA
   =========================================================*/
input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 11px 18px;
  margin-bottom: 14px;
  background: #fafbfb;
  box-shadow: 0 1px 5px rgba(35,43,50,0.04);
  transition: border 0.14s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  background: #fff;
}

button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 11px 26px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 16px var(--color-shadow);
  transition: background 0.17s, color 0.17s, transform 0.15s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: scale(1.04);
}

/* =========================================================
   RESPONSIVE DESIGN
   =========================================================*/
@media (max-width: 900px) {
  .features-grid, .project-list, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-card, .case-study {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 44px;
    padding: 28px 6px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* =========================================================
   SPACING UTILITIES (useful for breathing room)
   =========================================================*/
.mt-32 { margin-top: 32px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-60 { margin-bottom: 60px; }

/* =========================================================
   MICRO-INTERACTIONS (SHADOWS, ANIMATIONS, etc)
   =========================================================*/
.card, .feature-card, .service-list li, .testimonial-card, .case-study {
  transition: box-shadow 0.17s cubic-bezier(.23,1,.32,1), transform 0.16s;
}
.card:hover, .feature-card:hover, .service-list li:hover,
.card:focus-within, .feature-card:focus-within, .case-study:hover, .testimonial-card:hover {
  box-shadow: 0 10px 32px var(--color-secondary);
  z-index: 10;
  transform: translateY(-7px) scale(1.025);
}

/* =========================================================
   COOKIE CONSENT BANNER & PREFERENCES MODAL
   =========================================================*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3050;
  background: #232B32;
  color: #fff;
  box-shadow: 0 -6px 32px rgba(35,43,50,0.23);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  transition: transform 0.28s;
}
.cookie-consent-banner.hidden {
  transform: translateY(120%);
}
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 7px;
  border: none;
  padding: 10px 18px;
  margin: 0;
  background: var(--color-secondary);
  color: #232B32;
  cursor: pointer;
  box-shadow: 0 1px 10px var(--color-shadow);
  transition: background .15s, color .13s, transform .12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: var(--color-primary);
  transform: scale(1.06);
}
.cookie-btn.reject {
  background: #e94e4e;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b02c2c;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,43,50,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal {
  background: #fff;
  color: #232B32;
  border-radius: 22px;
  max-width: 400px;
  width: 96vw;
  box-shadow: 0 6px 44px var(--color-shadow);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popInModal .32s cubic-bezier(.39,.575,.565,1);
}
@keyframes popInModal {
  from { transform: scale(0.85) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal label {
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
}
.cookie-toggle {
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  color: #232B32;
  font-weight: 900;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

/* =========================================================
   MISC & UTILITY
   =========================================================*/
::-webkit-scrollbar {
  width: 7px;
  background: #ebf1f4;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* Main error, warning or info classes (for accessibility) */
.error {
  color: #b02c2c;
  font-weight: 900;
}
.info {
  color: var(--color-secondary);
}

/* Shadow for effect on floating modals/buttons */
.floating-shadow {
  box-shadow: 0 6px 28px var(--color-shadow);
}

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