/* CSS RESET & NORMALIZATION */
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 {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background: #F2F6FA;
}
body {
  color: #263238;
  background: #F2F6FA;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #244B6D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:active {
  color: #007C4D;
  text-decoration: underline;
}

/* BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #244B6D;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-top: 24px; }
h2 { font-size: 2rem; line-height: 1.15; margin-top: 18px; }
h3 { font-size: 1.3rem; line-height: 1.2; margin-top: 14px; }
h4, h5, h6 { font-size: 1.12rem; }
p, ul, ol, blockquote, pre, table { margin-bottom: 16px; }
p, li, blockquote { font-size: 1rem; font-family: Roboto, Arial, Helvetica, sans-serif; }

blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #244B6D;
  border-left: 4px solid #244B6D;
  margin: 20px 0;
  padding: 12px 24px;
  background: #E3EDFA;
  border-radius: 8px;
}

strong {
  font-weight: 700;
  color: #007C4D;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul > li, ol > li {
  margin-bottom: 8px;
  line-height: 1.6;
}

hr {
  border: none;
  border-top: 1px solid #D4DFEA;
  margin: 36px 0;
}

/* CONTAINER & SECTION LAYOUTS */
.container {
  width: 100%;
  max-width: 1152px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(36,75,109,0.06);
}

/* SPACING & FLEX PATTERNS */
.card-container,
.features-grid,
.service-cards,
.testimonials,
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature, .service-card, .testimonial-card, .faq-item {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(36,75,109,0.06);
  padding: 24px;
}
.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: 12px;
  padding: 20px 28px;
  background: #E8F1FA;
  border-left: 5px solid #244B6D;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(36,75,109,0.09);
  color: #1B2838;
}
.testimonial-card p {
  color: #1B2838;
}
.testimonial-card strong {
  margin-top: 8px;
  color: #244B6D;
  font-weight: 600;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(105deg, #244B6D 65%, #F2F6FA 100%);
  color: #fff;
  padding: 60px 0 54px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 650px;
}
.hero h1,
.hero p {
  color: #fff;
}
.hero .btn-primary {
  margin-top: 32px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border: none;
  border-radius: 24px;
  background: #244B6D;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(36,75,109,0.07);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin: 12px 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #007C4D;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  background: #007C4D;
  color: #fff;
  margin-left: 16px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #244B6D;
  color: #fff;
}

/* NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(36,75,109,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  max-height: 48px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
}
.main-nav a {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #244B6D;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #007C4D;
}

.btn-primary {
  margin-left: 36px;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #244B6D;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #007C4D;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 100;
  padding: 32px 24px 24px 32px;
  box-shadow: 0 0 32px 0 rgba(36,75,109,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.32,1.19,.60,.92);
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(.32,1.19,.60,.92);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #244B6D;
  cursor: pointer;
  position: absolute;
  top: 22px; right: 32px;
  z-index: 110;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #007C4D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #244B6D;
  padding: 14px 0;
  border-bottom: 1px solid #F2F6FA;
  transition: background 0.12s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #007C4D;
  border-radius: 6px;
  padding-left: 10px;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #19405D;
  color: #EAEFF5;
  padding: 40px 0 30px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 32px;
}
.footer-logo img {
  max-width: 70px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav a {
  color: #E3EDFA;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #007C4D;
}
.footer-contact {
  color: #B8C5D9;
  font-size: 0.95rem;
  margin-top: 10px;
}
.footer-contact a {
  color: #E3EDFA;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 rgba(36,75,109,0.04);
  background: #fff;
  margin-bottom: 24px;
  font-size: 1rem;
}
th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #E3EDFA;
}
thead tr {
  background: #E3EDFA;
}
th {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #244B6D;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ICON LISTS */
.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.icon-list img {
  width: 28px; height: 28px;
  flex-shrink: 0;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.faq-item {
  background: #FAFBFC;
  border-radius: 10px;
  box-shadow: 0 1px 4px 0 rgba(36,75,109,0.04);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.faq-item h3, .faq-item h2 {
  color: #244B6D;
  font-size: 1.15rem;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}
.faq-item p {
  color: #263238;
  margin-top: 8px;
}

/* SERVICE CARDS & PROCESS */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-card {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(36,75,109,0.07);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 310px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.service-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 6px 24px 0 rgba(36,75,109,0.14);
}
.process-steps {
  padding: 0 0 0 0;
  margin-bottom: 22px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
}
.process-steps li {
  display: flex;
  align-items: center;
  background: #F2F6FA;
  border-radius: 9px;
  padding: 12px 16px;
  gap: 12px;
  min-width: 220px;
  flex: 1 1 220px;
}
.process-steps img {
  width: 32px; height: 32px;
  flex-shrink: 0;
}

/* FEATURES GRID */
.features-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.feature {
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FAFBFC;
  border-radius: 10px;
  box-shadow: 0 1px 6px 0 rgba(36,75,109,0.04);
  padding: 24px 22px 22px 22px;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature:hover {
  box-shadow: 0 6px 24px 0 rgba(36,75,109,0.13);
  transform: translateY(-2px) scale(1.02);
}
.feature img {
  width: 44px; height: 44px;
  margin-bottom: 8px;
}

/* CONTACT SECTION */
.contact-section ul {
  list-style: none;
  padding-left: 0;
}
.contact-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #244B6D;
  margin-bottom: 8px;
}
.contact-section img {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.contact-section .btn-primary, .contact-section .btn-secondary {
  margin-top: 18px;
}

/* THANK YOU SECTION */
.thank-you-section .text-section {
  margin-top: 24px;
  background: #E8F1FA;
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
}

/* LEGAL, DSGVO, DATENSCHUTZ SECTION */
.legal-section, .dsgvo-section, .datenschutz-section, .cookie-policy-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(36,75,109,0.06);
  margin: 48px 0;
  padding: 36px 28px 32px 28px;
}
.text-section {
  margin-bottom: 16px;
}

/* PRICING TABLE */
.pricing-table {
  margin-bottom: 2rem;
}
.pricing-table td, .pricing-table th {
  font-size: 1rem;
}

/* ANFAHRT DETAILS */
.anfahrt-details h3 {
  margin-top: 18px;
}
.anfahrt-details p {
  margin-bottom: 14px;
}

/* TESTIMONIALS (REPEATED) */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(36,75,109,0.16);
  transform: translateY(-4px) scale(1.025);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #244B6D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 10px 18px 10px;
  z-index: 9999;
  font-size: 1rem;
  box-shadow: 0 -2px 24px 0 rgba(36,75,109,0.12);
  animation: cookieSlideIn 0.7s cubic-bezier(.39,1.28,.76,.92);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-banner-text {
  flex: 2 1 300px;
  max-width: 660px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: #fff;
  color: #244B6D;
  border: none;
  border-radius: 22px;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(36,75,109,0.06);
  transition: background 0.17s, color 0.17s, transform 0.18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #007C4D;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: #E8F1FA;
  color: #244B6D;
}
.cookie-banner button.cookie-reject {
  background: #E3EDFA;
  color: #244B6D;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
  font-size: 1rem;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 10001;
  background: rgba(36,75,109, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.25s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #263238;
  border-radius: 17px;
  max-width: 440px;
  width: 95%;
  padding: 36px 30px 30px 36px;
  box-shadow: 0 12px 44px 0 rgba(36,75,109,0.15);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: scaleInCookieModal 0.27s cubic-bezier(.22,1.01,.39,.97);
  position: relative;
  z-index: 10002;
}
@keyframes scaleInCookieModal {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E3EDFA;
  padding: 9px 0 5px 0;
}
.cookie-category .category-label {
  font-size: 1.12rem;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: #244B6D;
}
.cookie-category .category-toggle {
  min-width: 44px;
}
/* Simple toggle switch */
.category-toggle input[type="checkbox"] {
  width: 38px;
  height: 21px;
  appearance: none;
  background: #D1DCEC;
  outline: none;
  border-radius: 22px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.category-toggle input[type="checkbox"]:checked {
  background: #007C4D;
}
.category-toggle input[type="checkbox"]::before {
  content: "";
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.2s;
}
.category-toggle input[type="checkbox"]:checked::before {
  left: 19px;
}
/* Essential cookies always enabled (static) */
.cookie-category.essential .category-toggle::after {
  content: "\2713";
  color: #007C4D;
  font-size: 1.19rem;
  margin-left: 3px;
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 22px;
}
.cookie-modal-actions button {
  background: #244B6D;
  color: #fff;
  padding: 9px 22px;
  border-radius: 19px;
  border: none;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.16s, color 0.18s;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #007C4D;
  color: #fff;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #244B6D;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: #007C4D;
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 1200px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 97vw;
  }
  .footer-nav {
    gap: 18px;
    font-size: 0.98rem;
  }
}
@media (max-width: 900px) {
  .service-cards, .features-grid, .testimonials, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .process-steps {
    flex-direction: column;
    gap: 10px;
  }
  .footer-logo {
    width: 100%;
    margin-bottom: 10px;
  }
  footer .container {
    gap: 28px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section {
    padding: 28px 9px;
    margin-bottom: 36px;
  }
  .content-wrapper, .hero .content-wrapper {
    padding: 0;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .service-cards, .features-grid, .card-container, .testimonials, .faq-accordion {
    flex-direction: column;
    gap: 13px;
  }
  .feature, .service-card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .footer-contact {
    margin-top: 20px;
  }
  .cookie-modal {
    padding: 22px 7vw 24px 7vw;
    max-width: 99vw;
  }
}
@media (max-width: 560px) {
  .hero {
    padding: 30px 0 26px 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
  }
  .footer-logo {
    margin-bottom: 8px;
  }
  .footer-contact {
    margin-top: 15px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6px;
    gap: 7px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-banner-actions {
    gap: 7px;
    margin-top: 8px;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.99rem;
    padding: 12px 16px;
  }
}

/* MICRO-INTERACTIONS */
a, button, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal-actions button, .cookie-modal-close {
  transition: color 0.18s, background 0.18s, box-shadow 0.20s, transform 0.15s;
}
button:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.97) translateY(1px);
}

/* ARIA & UTILITY */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; border: 0;
  padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Prevent unintentional overlaps */
.card, .testimonial-card, .feature, .service-card, .faq-item, .footer-logo, .footer-nav, .footer-contact, .process-steps li {
  z-index: 1;
}

/* Ensure min margin between cards on all layouts */
.card + .card, .testimonial-card + .testimonial-card, .feature + .feature, .service-card + .service-card, .faq-item + .faq-item {
  margin-top: 20px;
}

/* Remove absolute positioning for content blocks */
.card, .testimonial-card, .feature, .service-card, .faq-item {
  position: relative;
}

/* Hide scroll on mobile menu when open */
body.menu-open {
  overflow: hidden;
}
