/* ===============================
   CSS RESET & NORMALIZE (minimal)
   =============================== */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #23204A;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { border: 0; max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit; 
  font-size: 100%; 
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

/* ===============================
   CSS VARIABLES
   =============================== */
:root {
  --color-primary: #2D2B4F;
  --color-secondary: #E8E6EF;
  --color-accent: #B98319;
  --color-body-bg: #FFFFFF;
  --color-footer-bg: #F8F8FB;
  --color-input: #F3F3F8;
  --text-dark: #23204A;
  --text-muted: #757396;
  --shadow: 0 4px 16px rgba(45,43,79,0.04), 0 1.5px 6px rgba(45,43,79,0.03);
  --radius: 12px;
}

/* ===============================
   TYPOGRAPHY
   =============================== */
body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--color-body-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol {
  color: var(--text-dark);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
}
strong { font-weight: 600; }
small { font-size: 0.875rem; color: var(--text-muted); }

/* ===============================
   GENERAL LAYOUT CONTAINERS
   =============================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-body-bg);
  border-radius: var(--radius);
}

/* ===============================
   FLEXBOX LAYOUTS
   =============================== */
.card-container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  flex: 1 1 240px;
  min-width: 230px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(45,43,79,0.08), 0 3px 16px rgba(45,43,79,0.10);
  transform: translateY(-2px) 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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 540px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom Feature Grid (for index)
   For .feature-grid that contains list items with icon and text */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: box-shadow 0.16s, background 0.22s;
}
.feature-grid li img {
  width: 32px;
  height: 32px;
  margin-right: 4px;
  flex-shrink: 0;
}
.feature-grid li:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(45,43,79,0.06);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
  background: var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 48px 0 44px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===============================
   MAIN NAVIGATION
   =============================== */
header {
  background: #fff;
  box-shadow: 0 1.5px 8px rgba(45,43,79,0.052);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  gap: 10px 36px;
  height: 70px;
  position: relative;
}
.main-nav .logo {
  margin-right: auto;
  height: 42px;
  display: flex;
  align-items: center;
}
.main-nav .logo img {
  display: block;
  height: 38px;
  width: auto;
}
.main-nav a {
  padding: 5px 10px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  border-radius: 6px;
  color: var(--color-primary);
  position: relative;
  transition: background 0.15s, color 0.18s;
}
.main-nav a.cta {
  font-weight: 700;
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  color: #fff;
  background: var(--color-primary);
  padding: 9px 24px;
  border-radius: 24px;
  transition: background 0.19s, color 0.19s, box-shadow 0.22s;
  box-shadow: 0 3px 8px rgba(45,43,79,0.12);
}
.main-nav a.cta.primary:hover,
.main-nav a.cta.primary:focus {
  background: var(--color-accent);
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* ===============================
   CTA BUTTONS
   =============================== */
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 22px;
  background: var(--color-accent);
  color: #fff;
  transition: background 0.19s, color 0.19s, box-shadow 0.22s, transform 0.15s;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 1px 6px rgba(45,43,79,0.10);
}
.cta.primary {
  background: var(--color-primary);
}
.cta:hover, .cta:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 3px 18px rgba(45,43,79,0.20);
  transform: translateY(-2px) scale(1.025);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-accent);
}

/* ===============================
   LISTS (features & services, ul)
   =============================== */
.features ul,
.services ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0;
}
.features ul li,
.services ul li {
  font-size: 1.08rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  color: var(--text-dark);
  transition: box-shadow 0.15s, background 0.18s;
}
.features ul li:hover,
.services ul li:hover {
  background: var(--color-secondary);
  box-shadow: 0 3px 16px rgba(45,43,79,0.09);
}
.services ul li span {
  display: inline-block;
  font-size: 0.98rem;
  color: var(--color-accent);
  margin-left: 10px;
  font-weight: 500;
}

/* ===============================
   TESTIMONIALS
   =============================== */
.testimonials {
  background: var(--color-secondary);
  border-radius: var(--radius);
}
.testimonials h2 {
  text-align: left;
  width: 100%;
}
.testimonial-card {
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  color: var(--color-primary);
  transition: box-shadow 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(45,43,79,0.11);
}
.testimonial-card p {
  font-size: 1.1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.6;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ===============================
   CONTACT & CONFIRMATION SECTIONS
   =============================== */
.contact .content-wrapper,
.confirmation .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.text-section {
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.text-section a {
  color: var(--color-accent);
  border-bottom: 1px dotted var(--color-accent);
  transition: border-bottom 0.17s;
}
.text-section a:hover, .text-section a:focus {
  border-bottom: 1.5px solid var(--color-accent);
}

/* ===============================
   LEGAL PAGES (GDPR + Datenschutz)
   =============================== */
.legal {
  background: #fff;
  border-radius: var(--radius);
}
.legal h1 {
  font-size: 1.85rem;
}
.legal .text-section {
  margin-bottom: 18px;
}
.legal ul {
  margin: 10px 0 15px 18px;
  color: var(--text-dark);
  list-style: disc inside;
}
.legal ul li {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 5px;
  font-size: 1.05rem;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: var(--color-footer-bg);
  margin-top: 60px;
  padding: 38px 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-nav a {
  font-size: 1.02rem;
  color: var(--color-primary);
  padding: 5px 7px;
  border-radius: 6px;
  transition: background 0.13s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.footer-contact {
  text-align: center;
}
.footer-contact address {
  color: var(--text-muted);
  font-size: 0.99rem;
  line-height: 1.5;
  font-style: normal;
}

/* ===============================
   BURGER MENU MOBILE NAVIGATION
   =============================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 120;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,43,79,0.98);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(0.77,0.2,0.05,1.0);
  padding-top: 50px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  z-index: 205;
  padding: 6px 10px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(255,255,255,0.085);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100vw;
  margin-top: 48px;
  padding-left: 34px;
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.013em;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.17s, color 0.23s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: #fff;
}

/* Show/Hide nav on breakpoints */
@media (max-width: 1020px) {
  .main-nav {
    gap: 10px 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px 10px;
  }
}
@media (max-width: 820px) {
  .main-nav a:not(.logo):not(.cta) {
    display: none;
  }
  .main-nav a.cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===============================
   COOKIE CONSENT BANNER + MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -4px 24px rgba(45,43,79,0.09);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 18px 16px 22px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px);
  transition: opacity 0.33s, transform 0.3s;
}
.cookie-banner.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Source Sans Pro', Arial, sans-serif;
  border-radius: 18px;
  margin: 0 2px;
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: 600;
  transition: background 0.17s, color 0.13s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
}
.cookie-btn.reject {
  background: #E8E6EF;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f6f5fa;
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Cookie modal for preferences */
.cookie-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(45,43,79,0.34);
  z-index: 450;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.22s;
}
.cookie-modal-backdrop.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(45,43,79,0.12);
  padding: 38px 28px 32px 28px;
  min-width: 310px;
  max-width: 98vw;
  width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modal-popin 0.29s cubic-bezier(0.66,0.05,0.36,1.1);
}
@keyframes modal-popin {
  from { transform: scale(0.93) translateY(48px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.6rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 50%;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-secondary);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.04rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: var(--color-primary);
}
.cookie-category label {
  font-weight: 600;
  margin-right: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  justify-content: flex-end;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid, .card-container {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .hero h1 { font-size: 2rem; }
  .container { padding-left: 10px; padding-right: 10px; }
  .section, section { padding: 28px 6px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.08rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }
  .main-nav { height: 60px; }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    padding: 14px;
    max-width: 95vw;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 16px 0 24px 0;
    border-radius: 0;
  }
}
@media (max-width: 650px) {
  .hero {
    padding: 30px 0 22px 0;
  }
  .features ul,
  .services ul {
    gap: 10px;
  }
  .feature-grid li,
  .card {
    padding: 15px 10px;
    min-width: unset;
    font-size: 0.99rem;
  }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.22rem; }
  .cta, .cta.primary { padding: 10px 19px; font-size: 0.98rem; }
  .footer-nav { gap: 10px; }
}

/* Adjust flex direction for text-image-sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* Prevent overlapping and maintain minimum spacing */
.section, section {
  box-sizing: border-box;
}
.card, .testimonial-card, .feature-grid li, .features ul li, .services ul li {
  min-height: 40px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* Hide mobile menu when inactive */
.mobile-menu:not(.active) {
  pointer-events: none;
}

/* Subtle focus outlines for accessibility */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ===============================
   MICRO-INTERACTIONS
   =============================== */
.card, .feature-grid li, .testimonial-card, .cta, .cta.primary, .main-nav a, .footer-nav a,
.cookie-btn, .cookie-modal, .mobile-menu {
  transition: box-shadow 0.2s, background 0.17s, color 0.16s, transform 0.13s;
}

/* ===============================
   MISC FIXES/HELPERS
   =============================== */
::-webkit-input-placeholder { color: var(--text-muted); }
::-moz-placeholder { color: var(--text-muted); }
:-ms-input-placeholder { color: var(--text-muted); }
::placeholder { color: var(--text-muted); }

.hide { display: none !important; }

/* ===============================
   END OF STYLE.CSS
   =============================== */
