/* CSS RESET AND BASE ----------------------------- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f9fafc;
  color: #2c3e50;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1952a0;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #48b9a8;
}
ul, ol {
  list-style: none;
}
strong {
  font-weight: 700;
}

/* FONTS -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1952a0;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 16px; }
h4 { font-size: 1.1rem; }
p, li { font-size: 1rem; font-family: 'Roboto', Arial, Helvetica, sans-serif; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}


/* BRAND COLORS ------------------------------------- */
:root {
  --primary: #1952a0;
  --secondary: #48b9a8;
  --accent: #f9fafc;
  --dark: #222c38;
  --border: #e4e9ef;
  --success: #389e6b;
  --error: #b9454a;
}


/* LAYOUT CONTAINERS -------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* FLEXBOX: section spacing (MANDATORY PATTERNS) */
.section, section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 768px) {
  .section, section {
    padding: 24px 0 0 0;
    margin-bottom: 40px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(46,68,91,0.07);
  padding: 32px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(46,68,91,0.12);
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}

/* Content grid for sections with many cards/services */
.content-grid, .service-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.content-grid > *, .service-grid > *, .service-list > * {
  flex: 1 1 260px;
  min-width: 250px;
  max-width: 100%;
}
@media (max-width: 900px) {
  .content-grid, .service-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid > *, .service-grid > *, .service-list > * {
    min-width: 0;
  }
}

/* Text-image layouts */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Feature items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(46,68,91,0.06);
  padding: 24px;
}

/* Testimonial card (single/slider/list) */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  margin-bottom: 20px;
  background: #f4f7fa;
  border-radius: 14px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(25,82,160,0.08);
  color: #222c38;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(25,82,160,0.1);
  transform: scale(1.016);
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card .ratings {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Stepper (Leistungen) */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.step {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(46,68,91,0.07);
  padding: 32px 24px;
  min-width: 130px;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.step span {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  line-height: 38px;
  margin-bottom: 14px;
}
.step:hover {
  box-shadow: 0 8px 24px rgba(25,82,160,0.11);
}
@media (max-width:768px) {
  .stepper {
    flex-direction: column;
    gap: 14px;
  }
  .step {
    min-width: 0;
  }
}

/* FAQ Accordion ------------------------------------ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(46,68,91,0.06);
  padding: 24px;
  transition: box-shadow .2s;
}
.faq-item h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1952a0;
}
.faq-item p {
  color: #222c38;
  font-size: 1rem;
}
.faq-item a {
  color: var(--secondary);
}
.faq-item a:hover {
  text-decoration: underline;
}

/* Cards for service offering ----------------------- */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(25,82,160,0.06);
  min-width: 180px;
  flex: 1 1 220px;
  transition: box-shadow .2s, transform .16s;
}
.service-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.service-item h3, .service-item h2 {
  font-size: 1.17rem;
  color: #1952a0;
  margin-bottom: 8px;
}
.service-item p {
  color: #2c3e50;
  margin-bottom: 2px;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 8px 24px rgba(25,82,160,0.13);
  transform: translateY(-3px) scale(1.02);
  z-index: 2;
}

/* Tables (Preise) ---------------------------------- */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(46,68,91,0.07);
  margin-bottom: 32px;
  font-size: 1rem;
}
th, td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th:first-child, td:first-child {
  padding-left: 24px;
}
th {
  background: #f0f4fa;
  font-family: 'Lato', Arial, Helvetica;
  color: #1952a0;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
tr:last-child td {
  border-bottom: none;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }
  th { background: #eaf0f6; }
  tr { margin-bottom: 18px; }
  td { padding-left: 24px; text-align: left; }
  td:before {
    content: attr(data-label) ": ";
    display: inline-block;
    font-weight: 600;
    color: #1952a0;
    width: 50%;
    min-width: 110px;
  }
}

/* Blockquote (Referenzen) */
blockquote {
  background: #f3f7fa;
  color: #222c38;
  border-left: 4px solid var(--secondary);
  margin: 24px 0;
  padding: 18px 32px;
  border-radius: 10px;
  font-style: italic;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(25,82,160,0.04);
}

/* CTA BUTTONS -------------------------------------- */
.primary-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 88%, var(--secondary) 100%);
  color: #fff;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.14rem;
  padding: 14px 32px;
  border-radius: 24px;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(25,82,160,0.08);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  outline: none;
  text-align: center;
}
.primary-cta:hover, .primary-cta:focus {
  background: linear-gradient(90deg, var(--secondary) 86%, var(--primary) 100%);
  box-shadow: 0 4px 20px rgba(25,82,160,0.14);
  transform: translateY(-2px) scale(1.037);
}

/* LINKS INSIDE BUTTONS/TEXT */
button, .primary-cta, .cookie-consent-btn {
  font-family: inherit;
  font-size: 1rem;
}

/* HEADER/NAVIGATION -------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(25,82,160,.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  color: #1952a0;
  font-weight: 500;
  font-family: 'Lato', Arial, Helvetica;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .14s, color .14s;
}
header nav a:hover, header nav a:focus {
  background: #eaf4fb;
  color: var(--secondary);
}
header nav .primary-cta {
  margin-left: 20px;
  padding: 10px 18px;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1952a0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 14px;
  z-index: 210;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background .14s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #eaf0f6;
}
@media (min-width: 1050px) {
  .mobile-menu-toggle { display: none; }
}

@media (max-width: 1050px) {
  header nav { display: none; }
}

/* MOBILE MENU ------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,82,160,0.91);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.6,0,.43,1);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: #fff;
  color: #1952a0;
  font-size: 1.9rem;
  border: none;
  margin: 24px 28px 12px 0;
  padding: 8px 18px;
  border-radius: 24px;
  cursor: pointer;
  transition: background .14s;
  z-index: 220;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f0f4fa;
}
.mobile-nav {
  width: 95vw;
  max-width: 360px;
  background: #fff;
  border-radius: 18px 0 0 18px;
  min-height: 100vh;
  padding: 40px 32px 32px 32px;
  box-shadow: 0 8px 40px rgba(25,82,160,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow .18s;
}
.mobile-nav a {
  color: #1952a0;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 0 8px 0;
  width: 100%;
  border-radius: 7px;
  transition: background .12s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f2fafc;
  color: var(--secondary);
  text-decoration: underline;
}

/* MAIN -------------------------------------------- */
main {
  min-height: 500px;
  margin-top: 12px;
  margin-bottom: 60px;
}

/* HERO SECTION ------------------------------------- */
main section:first-of-type .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  padding: 36px 0 0 0;
}
main section:first-of-type h1 {
  font-weight: 900;
  font-size: 2.4rem;
}

/* ABOUT TEAM SNIPPET */
.team-snippet {
  background: #f8fcfa;
  border-radius: 12px;
  padding: 24px;
  margin-top: 12px;
  box-shadow: 0 1px 4px rgba(46,68,91,.06);
  border-left: 4px solid var(--secondary);
}

/* MAP/CONTACT */
.contact-info p, .map-embed p {
  margin-bottom: 10px;
  color: #1952a0;
  font-weight: 500;
}

/* FOOTER ------------------------------------------ */
footer {
  background: #fff;
  border-top: 1px solid #eceff2;
  padding: 32px 0 16px 0;
  color: #59708c;
  margin-top: 40px;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand img {
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
}
.footer-menu, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
}
.footer-menu a {
  color: #1952a0;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-menu a:hover {
  color: var(--secondary);
}
.footer-contact {
  color: #55617f;
  flex-direction: column;
  font-style: normal;
  font-size: 0.98rem;
  gap: 4px;
}
@media (min-width: 900px) {
  footer .container {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-menu, .footer-contact {
    margin: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
}


/* COOKIE CONSENT BANNER + MODAL ------------------- */
.cookie-consent-banner {
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1.5px solid #eaf0f6;
  padding: 22px 20px;
  box-shadow: 0 -10px 32px rgba(25,82,160,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  animation: cookieBannerSlideIn 0.5s ease;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-text {
  color: #2c3e50;
  font-size: 1.03rem;
  flex: 1 1 200px;
  min-width: 120px;
}
.cookie-consent-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-consent-btn {
  font-family: 'Lato', Arial, Helvetica;
  border-radius: 18px;
  border: none;
  padding: 10px 22px;
  font-size: 1.08rem;
  min-width: 110px;
  margin: 0 0 0 0;
  background: #f2f7fd;
  color: #1952a0;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(25,82,160,0.06);
  cursor: pointer;
  transition: background .16s, color .14s;
}
.cookie-consent-btn.primary {
  background: var(--primary);
  color: #fff;
}
.cookie-consent-btn.secondary {
  background: var(--secondary);
  color: #fff;
}
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-consent-btn.primary:hover, .cookie-consent-btn.primary:focus {
  background: #143670;
  color: #fff;
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(25,82,160,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .28s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(25,82,160,0.21);
  max-width: 420px;
  width: 95vw;
  padding: 32px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalSlideDown .34s;
}
@keyframes modalSlideDown {
  from { transform: translateY(-80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: #eaf0f6;
  border: none;
  color: #1952a0;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal-close:hover {
  background: #d5ecfa;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  color: #1952a0;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.cookie-category:last-child { margin-bottom: 0; }
.cookie-category .toggle {
  margin-left: auto;
}
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.cookie-toggle-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #dde5ef;
  border-radius: 36px;
  transition: background .2s;
}
.cookie-toggle-switch input:checked + .cookie-slider {
  background: var(--secondary);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(25,82,160,0.04);
  transition: transform .21s;
}
.cookie-toggle-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category label {
  font-size: 1.01rem;
  color: #2c3e50;
  font-weight: 500;
}
.cookie-category .cookie-type-desc {
  font-size: 0.94rem;
  color: #7a889e;
  margin-left: 6px;
}

/* LEGAL TEXT ------------------------------ */
.legal-text {
  background: #f5f8fa;
  border-radius: 12px;
  padding: 28px 22px;
  font-size: 1.03rem;
  color: #2c3e50;
  margin-top: 10px;
  line-height: 1.62;
}
.legal-text h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.09rem;
  color: #1952a0;
  font-weight: 700;
}


/* MISC: Spacing/Lists etc. ------------------ */
ul, ol {
  padding-left: 26px;
  margin-bottom: 16px;
}
ul li, ol li {
  list-style: disc inside;
  margin-bottom: 6px;
  color: #2c3e50;
}

/* Ensure min 20px between cards/sections! */
section + section, .section + .section {
  margin-top: 20px;
}
.content-wrapper > * + * {
  margin-top: 14px;
}

/* Micro-interaction fade-in for cards */
.card, .testimonial-card, .service-item, .step, .faq-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp .7s cubic-bezier(.54,.07,.44,1.15) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1; transform: none;
  }
}
.card:nth-child(2), .testimonial-card:nth-child(2), .service-item:nth-child(2), .step:nth-child(2), .faq-item:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3), .testimonial-card:nth-child(3), .service-item:nth-child(3), .step:nth-child(3), .faq-item:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4), .testimonial-card:nth-child(4), .service-item:nth-child(4), .step:nth-child(4), .faq-item:nth-child(4) { animation-delay: 0.24s; }
.card:nth-child(5), .testimonial-card:nth-child(5), .service-item:nth-child(5), .step:nth-child(5), .faq-item:nth-child(5) { animation-delay: 0.32s; }

/* Mobile responsiveness ---------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  main {
    margin-bottom: 30px;
  }
  .footer-brand img {
    max-width: 140px;
    margin-bottom: 7px;
  }
  .primary-cta {
    width: 100%;
    padding: 12px 0;
    text-align: center;
    font-size: 1.08rem;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.09rem; }
  .content-wrapper {
    gap: 14px;
  }
}

/* Hide desktop nav when mobile menu is open */
body.menu-open header nav {
  display: none !important;
}

/* Util: Hide visually but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Focus accessible outline for keyboard nav */
a:focus, button:focus, .primary-cta:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  z-index: 299;
}

/* SCROLLBAR and SELECTION COLOURS (subtle) */
::-webkit-scrollbar {
  width: 8px;
  background: #eaf0f6;
}
::-webkit-scrollbar-thumb {
  background: #c1dafe;
  border-radius: 4px;
}
::selection {
  background: var(--secondary);
  color: #fff;
}

/* Hide cookie banner on print */
@media print {
  .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
