/* === CSS RESET & BOX MODEL === */
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 {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  background: #F5F5F5;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #314659;
  font-size: 16px;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #314659;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #C3B091;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 22px;
}

/* === FONTS === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: #314659;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 26px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.1rem;
}

p, li {
  font-size: 1rem;
  color: #314659;
  line-height: 1.7;
  margin-bottom: 12px;
}
b, strong {
  font-weight: bold;
}

/* === CONTAINERS & GENERAL LAYOUT === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:last-child {
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(49,70,89,0.07);
  padding: 30px 24px;
  min-width: 260px;
  flex: 1 1 260px;
}

.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(49,70,89,0.10);
  min-height: 120px;
  font-size: 1.1rem;
}
.testimonial-card blockquote {
  color: #314659;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  display: block;
  color: #777;
  font-size: 0.97rem;
  margin-top: 6px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(49,70,89,0.09);
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 220px;
}
.feature-item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  margin-bottom: 6px;
}

/* Feature grid container (specific to index) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  justify-content: flex-start;
}

/* Services Listing (angebote) */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(49,70,89,0.09);
  padding: 26px 24px;
  min-width: 240px;
  flex: 1 1 240px;
  margin-bottom: 20px;
}

/* List reset styles for content lists */
ul {
  list-style: disc inside;
  margin-bottom: 18px;
}
li {
  margin-bottom: 6px;
}

/* === BUTTONS AND INTERACTIVES === */
.btn-primary {
  display: inline-block;
  background: #314659;
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  border: none;
  border-radius: 28px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 14px 34px;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(49,70,89,0.09);
  margin: 12px 0 0 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #C3B091;
  color: #314659;
  box-shadow: 0 4px 16px rgba(195,176,145,0.12);
  outline: none;
}
.button, button {
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

/* === HEADER, NAVIGATION & BRAND === */
header {
  background: #fff;
  border-bottom: 1px solid #e4e8ed;
  margin-bottom: 0;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 51;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  display: block;
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  color: #314659;
  font-weight: 600;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: #C3B091;
  color: #fff;
}

/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #314659;
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 10px;
  cursor: pointer;
  display: none;
  transition: background 0.15s;
  z-index: 102;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #C3B091;
  color: #fff;
}

/* === MOBILE NAVIGATION === */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F5F5;
  box-shadow: 0 2px 20px rgba(41,39,35,0.14);
  z-index: 1050;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.49,.08,.49,1.01);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #314659;
  font-size: 2.1rem;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 1080;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #C3B091;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  width: 100%;
  gap: 0;
}
.mobile-nav a {
  display: block;
  padding: 20px 26px;
  font-size: 1.22rem;
  color: #314659;
  border-bottom: 1px solid #e4e8ed;
  transition: background 0.18s, color 0.15s;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus, .mobile-nav a.active {
  background: #C3B091;
  color: #fff;
}

/* Responsive reveal */
@media (max-width: 1024px) {
  header .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }
  section, .section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .services-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-item, .card {
    min-width: unset;
    padding: 18px 12px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.08rem;
  }
  h3 {
    font-size: 1rem;
  }
  .testimonial-card {
    min-height: 80px;
    padding: 14px 8px;
    font-size: 0.99rem;
  }
}


/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #e4e8ed;
  padding: 32px 0 16px 0;
  margin-top: 0;
  font-size: 0.99rem;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-nav a {
  color: #314659;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  font-size: 0.97rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #C3B091;
  color: #fff;
}
footer p {
  color: #959595;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #314659;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 24px 20px 24px;
  z-index: 9999;
  box-shadow: 0 -2px 18px rgba(0,0,0,0.09);
  font-size: 1rem;
  transition: transform 0.29s cubic-bezier(.38,.9,.68,1.01);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 8px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  margin-left: 0;
  box-shadow: 0 1px 3px rgba(195,176,145,0.09);
}
.cookie-banner .accept {
  background: #C3B091;
  color: #314659;
}
.cookie-banner .accept:hover {
  background: #fff;
  color: #314659;
}
.cookie-banner .reject {
  background: #F5F5F5;
  color: #314659;
  border: 1px solid #C3B091;
}
.cookie-banner .reject:hover {
  background: #e4e8ed;
}
.cookie-banner .settings {
  background: #314659;
  color: #fff;
  border: 1px solid #C3B091;
}
.cookie-banner .settings:hover {
  background: #C3B091;
  color: #314659;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20,23,26,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10080;
  transition: opacity 0.22s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  min-width: 220px;
  width: 95%;
  box-shadow: 0 3px 32px rgba(49,70,89,0.16);
  padding: 32px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: none;
  border: none;
  color: #314659;
  font-size: 2rem;
  cursor: pointer;
  z-index: 12001;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #C3B091;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.02rem;
  margin-bottom: 18px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  color: #314659;
}
.cookie-switch {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}
.cookie-switch input[type="checkbox"] {
  opacity: 0; width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #C3B091;
  border-radius: 40px;
  transition: background 0.14s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #314659;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
}
.cookie-category .locked {
  color: #bdbdbd; font-size: 1.2rem; margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 22px;
  padding: 8px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  border: none;
  background: #C3B091;
  color: #314659;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.cookie-modal button.save {
  background: #314659;
  color: #fff;
}
.cookie-modal button.save:hover {
  background: #C3B091;
  color: #314659;
}
.cookie-modal button.cancel {
  background: #F5F5F5;
  color: #314659;
}
.cookie-modal button.cancel:hover {
  background: #e4e8ed;
}

/* === MISC STYLES & EFFECTS === */
.text-section {
  padding: 0;
}
blockquote {
  border-left: 3px solid #C3B091;
  margin-left: 0;
  padding-left: 18px;
  font-style: italic;
  background: none;
}

@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 8px 14px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-banner-buttons {
    gap: 8px;
  }
  .cookie-modal-content {
    padding: 19px 6px 8px 6px;
  }
}

/* === UTILITIES === */
.hide {
  display: none !important;
}
.text-center {
  text-align: center !important;
}
.maxw-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {opacity:0; transform:translateY(14px);}
  to {opacity:1; transform:translateY(0);}
}
.section, section {
  animation: fadeInUp 0.55s cubic-bezier(0.45, 0.04, 0.55, 1) both;
}
.card, .feature-item, .service-item {
  transition: box-shadow 0.13s;
}
.card:hover, .feature-item:hover, .service-item:hover {
  box-shadow: 0 6px 22px rgba(49,70,89,0.12);
}

/* === ACCESSIBILITY FOCUS === */
a:focus, button:focus {
  outline: 2px solid #C3B091;
  outline-offset: 1px;
}

/* === SPECIAL: THANK-YOU PAGE === */
body:has(.text-section h1:contains('Vielen Dank')) .text-section {
  text-align: center;
}

/* === SPECIAL: NOT RESPONSIVE via GRID/COLUMNS === */
/* All layouts use only flexbox, per instructions; no CSS grid or columns are used. */
