/* =========================
   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;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: #F5F6FA;
  color: #234264;
  line-height: 1.65;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol { padding-left: 1.2em; }
a { color: #234264; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #B97A56; text-decoration: underline; }
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* ===============
   RETRO VARIABLES
=============== */
:root {
  --color-primary: #234264;
  --color-secondary: #61B3A2;
  --color-accent: #F5F6FA;
  --color-brown: #B97A56;
  --color-yellow: #FFD37B;
  --color-orange: #ff914d;
  --color-darkbrown: #594535;
  --color-cream: #FEF9EF;
  --color-softmint: #CFE3DA;
  --color-head: #1A3049;
  --color-shadow: rgba(35,66,100,0.12);
  --font-display: 'Montserrat', 'Arial', 'Helvetica', sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  /* Vintage retro patterns */
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --card-shadow: 0 2px 15px 0 var(--color-shadow);
  --button-shadow: 0 4px 18px 0 rgba(185,122,86,0.10);
  --transition: all 0.2s cubic-bezier(.72,.29,.22,.86);
}

/* ===========================
   TYPOGRAPHY RETRO/VINTAGE
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  color: var(--color-head);
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.14; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1rem; margin-bottom: 10px; font-weight: 600; }

p, li, blockquote, span, strong, small {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
blockquote {
  padding: 0 20px;
  border-left: 4px solid var(--color-yellow);
  color: var(--color-darkbrown);
  font-style: italic;
  background: var(--color-cream);
}
strong { color: var(--color-brown); font-weight: bold; }
small { font-size: 0.88rem; }

.subheadline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-brown);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

/* Decorative headline underline (retro bar) */
h1, h2 {
  position: relative;
}
h1:after, h2:after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  background: var(--color-yellow);
  border-radius: var(--border-radius-sm);
  margin-top: 10px;
}

/* =============================
   LAYOUT CONTAINERS (Flexbox!)
============================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section, .about-section, .team-section, .benefits-section,
.services, .steps, .cta, .testimonials, .services-detail-section, .faq-section, .cta-section, .thank-you-section,
.kontakt-section, .testimonials-section, .stats-section, .gdpr-section, .cookie-section, .terms-section, .benefit-highlight-section, .steps-timeline-section, .legal-section, .hero, .hero-search, .beratung-form-section, .explanation-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  background: var(--color-softmint);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 240px;
  flex:1 1 280px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

.feature-grid, .step-list, .service-list-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff6ea;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 12px 0 rgba(89, 69, 53, 0.08);
  padding: 32px 24px;
  min-width: 210px;
  flex: 1 1 210px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
  border: 2px solid #FFD37B55;
}
.feature-item img {
  width: 48px;
  height: 48px;
}
.feature-item:hover {
  box-shadow: 0 4px 30px 0 rgba(35, 66, 100, 0.14);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff6ea;
  border-radius: var(--border-radius-sm);
  padding: 28px 18px;
  box-shadow: 0 1px 8px 0 rgba(188, 149, 105, 0.10);
  min-width: 170px;
  flex: 1 1 170px;
  margin-bottom: 20px;
}
.step-item img {
  margin-bottom: 14px; width: 38px; height: 38px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--color-cream);
  color: #234264;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 8px 30px 0 rgba(35,66,100,0.08);
  border-left: 8px solid var(--color-brown);
  font-size: 1.08rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: scale(1.015) rotate(-1.5deg);
  box-shadow: 0 12px 36px 0 rgba(185,122,86,0.18);
  border-left: 12px solid var(--color-yellow);
}
.testimonial-card strong {
  color: var(--color-brown);
  font-size: 1rem;
  margin-top: 6px;
}
.star-rating {
  display: flex; gap: 3px; margin-bottom: 10px;
}

/* Benefits and Stats */
.stats-list, .benefit-list, .benefits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 0;
}
.stats-list li, .benefit-list li, .benefits-list li {
  background: #fff6ea;
  box-shadow: 0 1px 7px 0 var(--color-shadow);
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-darkbrown);
  min-width: 170px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 13px;
}

/* Lists and Timeline */
ul.service-list, ul.team-list, ol.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
ul.team-list li, ol.timeline-list li, ul.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff6ea;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 1px 7px 0 rgba(89, 69, 53, 0.07);
  padding: 20px 16px;
  font-size: 1rem;
}
.team-list img,
.benefit-list img,
.benefits-list img,
.timeline-list img {
  width: 32px;
  height: 32px;
}
.service-price {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-darkbrown);
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  padding: 2px 10px;
  margin-top: 10px;
  font-weight: 700;
}

/* ===================
   NAVIGATION & HEADER
=================== */
header {
  background: var(--color-primary);
  width: 100%;
  box-shadow: 0 3px 12px 0 rgba(35,66,100,0.09);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container, .footer-container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  justify-content: space-between;
  flex-wrap: wrap;
}
header img {
  height: 52px;
  width: auto;
}
.main-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.main-nav a, .footer-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s, border 0.18s;
}
.main-nav a:hover, .footer-nav a:hover, .main-nav a:focus, .footer-nav a:focus {
  color: var(--color-yellow);
  border-bottom: 2px solid var(--color-yellow);
}

.cta-btn {
  background: var(--color-brown);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 40px;
  padding: 12px 32px;
  margin-left: 12px;
  box-shadow: var(--button-shadow);
  border: 1px solid #b97a566b;
  cursor: pointer;
  display: inline-block;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-yellow);
  color: var(--color-darkbrown);
  transform: scale(1.04) rotate(-1.5deg);
  border-color: #FFD37B;
}

/* Hamburger burger icon */
.mobile-menu-toggle {
  background: var(--color-yellow);
  color: var(--color-darkbrown);
  border-radius: 50%;
  height: 42px;
  width: 42px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-brown);
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
  margin-left: 6px;
  box-shadow: 0 1px 9px 0 var(--color-shadow);
  z-index: 2001;
}
.mobile-menu-toggle:active {
  box-shadow: 0 4px 12px 0 var(--color-brown);
}

/* ===============
   MOBILE NAV MENU
=============== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100%; width: 100vw;
  background: #1A3049ee;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.82,-0.12,.27,1.12);
  box-shadow: -2px 0 20px 1px var(--color-shadow);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  margin: 20px 20px 0 0;
  background: var(--color-yellow);
  color: var(--color-head);
  border-radius: 50%;
  border: 2px solid var(--color-brown);
  width: 44px; height: 44px;
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(255,211,123,0.19);
  transition: background 0.18s, transform 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-orange);
  color: #fff;
  transform: rotate(4deg) scale(1.04);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
  margin-top: 36px;
  padding-right: 34px;
  width: 100%;
  box-sizing: border-box;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.304rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: none;
  padding: 12px 20px;
  border-radius: var(--border-radius);
  transition: background 0.16s, color 0.16s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-yellow);
  color: var(--color-darkbrown);
}

/* =====================
   HERO & CALL TO ACTION
====================== */
.hero, .hero-search {
  background: linear-gradient(90deg,#FFD37B 65%, var(--color-secondary) 100%);
  box-shadow: 0 4px 40px 0 var(--color-shadow);
  padding: 54px 20px 54px 20px;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  border-radius: 0 0 32px 32px;
}
.hero h1, .hero-search h1, .cta h2, .cta-section h2 {
  color: var(--color-head);
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero .cta-btn, .hero-search .cta-btn {
  margin-top: 20px;
}

.cta, .cta-section {
  background: #fff6ea;
  box-shadow: 0 2px 12px 0 rgba(185, 122, 86, 0.06);
  border: 3px dashed var(--color-yellow);
  text-align: center;
  border-radius: 36px;
}
.cta-btn {
  box-shadow: 0 1px 9px 0 rgba(185,122,86,0.18);
  margin-top: 14px;
}

/* ==================
   FOOTER
================== */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  width: 100%;
  padding: 0;
}
.footer-container {
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  padding: 36px 20px 24px 20px !important;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
}
.footer-contact > div {
  margin-bottom: 6px;
  color: var(--color-accent);
  font-size: 0.98rem;
}
.footer-legal {
  margin-top: 18px;
}
.footer-legal small { color: #F5F6FAaa; }
footer img {
  width: 50px; height: auto;
  margin-bottom: 8px;
}

/* =======================
   MISC SECTIONS & CARDS
======================= */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.map-embed {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #F5F6FA;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
}

.faq-item {
  background: #fff6ea;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 1px 9px 0 var(--color-shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.faq-item h3 { margin-bottom: 10px; color: var(--color-brown); font-size: 1.15rem; font-family: var(--font-display); }

.service-list-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #fff6ea;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  min-width: 230px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  border: 2px solid #FFD37B33;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s, background 0.16s;
}
.service-item:hover {
  box-shadow: 0 6px 22px 0 rgba(185,122,86,0.13);
  border-color: var(--color-yellow);
  background: #FFF3C2;
}
.service-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
}

/* =============================
   COOKIE BANNER & COOKIE MODAL
============================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #fff6ea;
  color: var(--color-darkbrown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px;
  box-shadow: 0 -4px 18px 0 rgba(89,69,53,.14);
  border-top: 3px solid var(--color-yellow);
  z-index: 4000;
  animation: cookieSlideIn 0.55s cubic-bezier(.72,.29,.22,.86);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 300px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-banner-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn, .cookie-btn-secondary {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition:background 0.18s, color 0.18s;
  min-width: 120px;
  box-shadow: 0 1px 5px 0 var(--color-shadow);
}
.cookie-btn {
  background: var(--color-brown);
  color: #fff;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-yellow);
  color: var(--color-darkbrown);
}
.cookie-btn-secondary {
  background: transparent;
  border: 2px solid var(--color-brown);
  color: var(--color-brown);
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: var(--color-softmint);
}
/* Cookie pref modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 66, 100, 0.50);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4100;
  animation: fadeInModal 0.32s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff6ea;
  border-radius: 24px;
  box-shadow: 0 8px 36px 0 rgba(185,122,86,0.19);
  padding: 34px 24px 24px 24px;
  min-width: 320px;
  min-height: 220px;
  max-width: 480px;
  color: var(--color-darkbrown);
  animation: slideDownModal 0.33s cubic-bezier(.74,1.62,.22,.86);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 4200;
}
@keyframes slideDownModal {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--color-yellow);
  color: var(--color-head);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  border: 2px solid var(--color-brown);
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-brown);
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  margin: 0.8em 0;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--color-secondary);
  border-radius: 7px;
  margin-right: 3px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--color-brown);
}
.cookie-category.essential label { color: #aaa; font-style: italic; }

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1024px) {
  .container { max-width: 900px; }
  .main-nav, .footer-nav {
    gap: 12px;
  }
  .hero, .hero-search {
    padding: 36px 12px 36px 12px;
  }
}

@media (max-width: 900px) {
  .container { max-width: 95vw; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .feature-grid, .service-list-detail, .step-list { gap: 14px; }
  .section, .about-section, .team-section, .benefits-section, .hero, .hero-search, .services, .steps, .cta, .testimonials, .services-detail-section, .faq-section, .terms-section, .benefit-highlight-section, .legal-section { padding: 26px 10px; }
  .footer-container, .header-container { gap: 15px; }
}
@media (max-width: 768px) {
  .header-container, .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 0 !important;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    font-size: 1rem;
    align-items: flex-start;
  }
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  h1 { font-size: 1.23rem; margin-bottom: 12px; }
  h2 { font-size: 1.05rem; margin-bottom: 12px; }
  .hero, .hero-search {
    flex-direction: column;
    border-radius: 0 0 16px 16px;
    padding: 24px 6px 30px 6px;
    box-shadow: none;
    margin-bottom: 26px;
  }
  .section, .about-section, .team-section, .services, .steps, .cta, .testimonials, .benefits-section, .thank-you-section, .services-detail-section, .faq-section, .terms-section, .benefit-highlight-section, .legal-section {
    padding: 18px 4px;
    margin-bottom: 35px;
    border-radius: 14px;
  }
  .feature-grid, .service-list-detail, .step-list, .stats-list, .benefit-list, .benefits-list {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card, .feature-item, .step-item, .service-item {
    min-width: 0;
    width: 100%;
    padding: 17px 10px;
  }
  .team-list, .service-list, .timeline-list {
    gap: 15px;
  }
  .card-container {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 540px) {
  html { font-size: 15px; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 6px;
    gap: 9px;
  }
  .cookie-banner-btns {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 14px 6px 12px 6px;
  }
  h1, h2 {
    margin-bottom: 9px;
  }
  .footer-container, .header-container {
    padding: 7px 0 !important;
  }
}

/* ===========================
   MICRO-INTERACTIONS & EFFECTS
=========================== */
button, .cta-btn, .main-nav a, .mobile-nav a, .cookie-btn, .cookie-btn-secondary {
  outline: none;
  transition: box-shadow 0.13s, transform .18s, color .19s, background .17s;
}
button:active, .cta-btn:active, .main-nav a:active, .mobile-nav a:active {
  transform: scale(0.98);
}

/* Card hover micro-interactions (Retro "wobble") */
.card:hover {
  box-shadow: 0 5px 35px 0 rgba(35,66,100,0.13);
  background: #fff9ee;
  transform: scale(1.02) rotate(-1.75deg);
}

/* ========================
   PRINT
======================== */
@media print {
  *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  .container, .content-wrapper { max-width: 100% !important; width: 100% !important; }
}
