/* ==========================================================================
   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, 
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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #20446B;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: #20446B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B0601A;
  outline: none;
}
img, picture {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20446B;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}

/* ===================
   BRAND COLORS & VARS
   =================== */
:root {
  --color-primary: #20446B;
  --color-secondary: #EAEAEA;
  --color-accent: #B0601A;
  --color-bg: #FFFFFF;
  --color-text: #20446B;
  --color-muted: #757575;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(32, 68, 107, 0.08);
  --shadow-subtle: 0 1.5px 6px rgba(32,68,107,0.06);
  --focus-outline: 2px solid var(--color-accent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}
main {
  width: 100%;
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1096px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========================================
   HEADER, NAVIGATION, & CTA BUTTON
   ======================================== */
header {
  background: #fff;
  border-bottom: 1px solid #EAEAEA;
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
  transition: box-shadow 0.2s;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 20px 16px 20px;
  position: relative;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 0;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.15s, color 0.18s;
}
nav a:hover, nav a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  outline: none;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.18s, color 0.14s;
  margin-left: 18px;
  text-align: center;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: #20446B;
  color: #fff;
  box-shadow: 0 4px 18px rgba(32,68,107,0.14);
  outline: var(--focus-outline);
}

/* Burger menu button on mobile */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  display: none;
  margin-left: 8px;
  padding: 6px 12px;
}
@media (max-width: 1020px) {
  header .container nav:not(.mobile-nav) {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-button {
    display: none;
  }
}

/* =============================
     MOBILE NAV OVERLAY
   ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 40px rgba(32,68,107,0.19);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  padding: 12px 18px 12px 10px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 20px 32px 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 12px 0 10px 0;
  border-bottom: 1px solid #ECECEC;
  transition: color 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ====================
   HERO & MAJOR SECTIONS
   ==================== */
.hero {
  background: #F8FAFB;
  box-shadow: var(--shadow-subtle);
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  padding: 40px 0 35px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.hero .subheadline {
  font-size: 1.28rem;
  color: #395373;
  margin-bottom: 18px;
}

/* ================================
   FLEX LAYOUT HELPERS (MANDATORY)
   ================================ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-subtle);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(32,68,107,0.13);
  transform: translateY(-4px) scale(1.01);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 460px;
  color: var(--color-primary);
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #1a304d;
  line-height: 1.6;
}
.testimonial-card strong {
  color: #395373;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feature-item,
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  transition: box-shadow 0.19s;
}
.feature:hover {
  box-shadow: 0 6px 18px rgba(32,68,107,0.12);
}
.feature img {
  height: 36px;
  margin-bottom: 4px;
}
.feature h3 {
  color: var(--color-primary);
  margin-bottom: 4px;
  font-size: 1.15rem;
}
.feature p {
  font-size: 1rem;
  color: #46628b;
}

/* ========= Index: Features grid ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

/* ========= Index: Testimonials =========== */
.testimonials {
  background-color: #F6F9FA;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}

/* =========== Project/Referenzen cards =========== */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.project {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 24px 22px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
}

.comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
  margin-top: 10px;
}
.before, .after {
  flex: 1 1 200px;
  background: #f9fafc;
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-subtle);
}
.before h3, .after h3 {
  margin-bottom: 8px;
}

/* ========== Services: Category grid ========== */
.service-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.service-category {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  min-width: 260px;
  flex: 1 1 320px;
  padding: 26px 22px 18px 22px;
}

/* =========== About: Team bios grid ========== */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.bio {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  padding: 20px 20px 16px 20px;
  min-width: 220px;
  flex: 1 1 250px;
  font-size: 1rem;
  color: #33496d;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.trust-badges img {
  height: 40px;
  width: auto;
}

/* =========== FAQ LIST ============= */
.faq-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faq-block ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-block li {
  font-size: 1.03rem;
  color: #33496d;
}
.faq-contact p {
  margin-bottom: 14px;
}

/* =========== Kontakt Info & Map =========== */
.contact-info img {
  height: 19px;
  width: 19px;
  vertical-align: middle;
  margin-right: 4px;
}
.directions-map {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 13px;
  color: #706d6d;
  font-size: 0.95rem;
  background: #FAF8F7;
  border-radius: var(--radius);
  padding: 10px 13px;
  box-shadow: 0 2px 10px rgba(32,68,107,0.04);
}
.directions-map img {
  height: 23px;
  width: 23px;
  opacity: 0.73;
}

.business-hours p {
  font-size: 1.05rem;
  color: #395373;
  background: #F8FAFB;
  padding: 10px 13px;
  border-radius: var(--radius);
  display: inline-block;
}

/* ========= General Section Styling ========== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
.section:last-child {
  margin-bottom: 0;
}
.content-wrapper h1, .content-wrapper h2 {
  margin-top: 0;
  margin-bottom: 18px;
}
.content-wrapper > ul, .content-wrapper > ol {
  margin-bottom: 18px;
  padding-left: 1.2em;
}
.content-wrapper li {
  margin-bottom: 4px;
  font-size: 1rem;
  color: #46628b;
}

/* ============== Footer ================= */
footer {
  background: #F8FAFB;
  border-top: 1px solid #EAEAEA;
  padding: 38px 0 15px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}
footer nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #50689c;
  font-size: 1rem;
  padding: 3px 0;
  border-bottom: 1.5px solid transparent;
}
footer nav a:hover {
  color: var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
}
.footer-info {
  color: #577099;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== Cookie Consent Banner ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: rgba(240,243,247,0.98);
  color: #20446B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 22px 20px 22px;
  box-shadow: 0 -2px 15px rgba(32,68,107,0.09);
  border-top: 1px solid #EAEAEA;
  font-size: 1rem;
  transition: bottom 0.3s;
}
.cookie-banner.hide {
  bottom: -200px;
}
.cookie-banner .cookie-banner-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  margin-bottom: 4px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 1px;
  transition: background 0.18s, color 0.16s;
  background: #20446B;
  color: #fff;
  box-shadow: 0 1px 6px rgba(32,68,107,0.06);
}
.cookie-btn.accept {
  background: #B0601A;
}
.cookie-btn.reject {
  background: #fff;
  color: #20446B;
  border: 1.5px solid #20446B;
}
.cookie-btn.settings {
  background: #EAEAEA;
  color: #20446B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #20446B;
  color: #fff;
  outline: var(--focus-outline);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #20446B;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #EAEAEA;
}

/* Cookie modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 3100;
  left: 0; top: 0; right: 0; bottom: 0;
  justify-content: center;
  align-items: center;
  background: rgba(38,48,66,0.27);
  backdrop-filter: blur(2px);
  animation: fadeInBG 0.22s;
}
@keyframes fadeInBG {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 390px;
  width: 97vw;
  padding: 42px 26px 29px 26px;
  box-shadow: 0 10px 40px rgba(32,68,107,0.20);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleIn 0.22s cubic-bezier(.53,.22,.36,1.22);
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1.0); opacity: 1; }
}
.cookie-modal-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #20446B;
  margin: -18px -9px 0 0;
  cursor: pointer;
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 12px 0 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F7F9FA;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #1a304d;
  box-shadow: 0 0.5px 2px rgba(32,68,107,0.03);
}
.cookie-category input[type="checkbox"]:disabled+label {
  color: #9099a8;
  font-style: italic;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 1.1rem;
  height: 1.1rem;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}
@media (max-width: 900px) {
  .content-grid,
  .feature-grid,
  .project-list,
  .service-category-grid,
  .team-bios,
  .testimonial-grid,
  .comparison {
    gap: 16px;
  }
  section {
    padding: 28px 0;
  }
  .section {
    margin-bottom: 29px;
    padding: 28px 10px;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 210px;
    padding: 28px 0px 15px 0px;
  }
  .content-grid,
  .feature-grid,
  .project-list,
  .service-category-grid,
  .team-bios,
  .testimonial-grid,
  .comparison {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  section {
    margin-bottom: 30px;
    padding: 26px 0 19px 0;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }
}
@media (max-width: 520px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .hero h1 {
    font-size: 1.14rem;
  }
  .bio, .project, .service-category, .testimonial-card, .feature {
    min-width: auto;
    padding: 14px 9px;
  }
  .cookie-modal-content {
    padding: 20px 5vw 21px 5vw;
    min-width: 0;
    max-width: 99vw;
  }
}

/* ========== Animations & Effects ========== */
a, button, .cta-button, .cookie-btn {
  transition: color 0.19s, background 0.14s, box-shadow 0.17s, transform 0.14s;
}
.card, .feature, .testimonial-card, .bio, .project, .service-category {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .bio:hover, .project:hover, .service-category:hover {
  box-shadow: 0 6px 18px rgba(32,68,107,0.12);
  transform: translateY(-2px) scale(1.01);
}

/* =========== Form Styles ========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1.2px solid #c9cfd7;
  background: #fafbfc;
  padding: 12px 16px;
  color: #20344b;
  margin-bottom: 18px;
  width: 100%;
  outline: none;
  transition: border-color 0.17s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(176, 96, 26, 0.07);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #20446B;
  font-weight: 500;
}

/* ========== Utility & Misc ========== */
strong {
  font-weight: 600;
}
::-moz-selection {
  background: #D88834;
  color: #fff;
}
::selection {
  background: #D88834;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  background: #F0F4F7;
}
::-webkit-scrollbar-thumb {
  background: #EAEAEA;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D0D6DE;
}

/* =========== Hide elements for accessibility or state =========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* =========== Modal Backdrop and Transitions =========== */
@media (max-width: 400px) {
  .cookie-modal-content {
    padding: 10px 0 14px 0;
  }
}
