/* 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  background: #FCFCFD;
  color: #204055;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #249483;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #144166;
  text-decoration: none;
}

ul, ol {
  margin-left: 1.8em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
  padding-left: 0;
  font-size: 16px;
}

address {
  font-style: normal;
  color: #144166;
  font-size: 15px;
  margin-bottom: 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #144166;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }

p, small {
  font-family: 'Open Sans', Arial, sans-serif;
}
p {
  font-size: 1rem;
  margin-bottom: 16px;
}
small {
  font-size: 0.92em;
  color: #4988b6;
}
strong {
  color: #2AB89C;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 30px 0 rgba(68,120,168,0.07);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.content-wrapper:last-child { margin-bottom: 0; }

.text-section {
  padding: 0 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Section Spacing */
section {
  width: 100%;
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* Pastel Soft Effects */
body, .section, section {
  background: linear-gradient(129deg, #f4fafe 0%, #fdfbfa 100%);
}
.content-wrapper, .text-section {
  background: linear-gradient(156deg, #ffffff 60%, #eaf2fb 100%);
}

/* Features Flex Layouts */
.features-grid, .features, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 18px;
}
.card-container { gap: 24px; }
.content-grid { gap: 20px; }
.card {
  flex: 1 1 250px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 5px 16px 0 rgba(44,78,153,0.04);
  padding: 24px 20px;
  min-width: 230px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(44,78,153,0.13);
  transform: translateY(-4px) scale(1.01);
}

.feature-item {
  background-color: #f4fbf8;
  border-radius: 18px;
  padding: 24px 18px 16px 18px;
  box-shadow: 0 4px 16px 0 rgba(68,120,168,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  min-width: 170px;
  margin-bottom: 20px;
  transition: box-shadow 0.13s, background 0.13s;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0px 2px 7px #EAF2FB);
}
.feature-item:hover {
  background: #e3f7ef;
  box-shadow: 0 8px 24px 0 rgba(40,184,156,0.08);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #f7fafd;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(104,153,197,0.11);
  color: #1d2740;
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.15s;
}
.testimonial-card span {
  font-size: 0.98em;
  color: #249483;
  font-weight: 500;
}
.testimonial-card:hover {
  background: #eaf7ff;
  box-shadow: 0 12px 32px 0 rgba(36,152,131,0.09);
}

/* Spacing Utilities */
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.m-bottom-20 { margin-bottom: 20px; }

/* Header & Main Navigation */
header {
  width: 100%;
  padding: 0;
  margin-bottom: 18px;
  background: rgba(244,250,254,0.98);
  border-bottom: 1px solid #eaeceb;
  position: relative;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 9px 0;
  justify-content: flex-start;
}
.main-nav > a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  color: #144166;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 24px;
  transition: background 0.12s, color 0.2s;
  background: none;
  margin-right: 2px;
}
.main-nav > a img {
  width: 41px;
  height: 41px;
  vertical-align: middle;
  margin-right: 3px;
}
.main-nav > a.cta-nav {
  background: #2AB89C;
  color: #fff;
  font-weight: 600;
  margin-left: auto;
  padding: 10px 24px;
  border: none;
  box-shadow: 0 3px 18px 0 rgba(36,152,131,0.11);
  transition: background 0.15s, color 0.2s, box-shadow 0.18s;
}
.main-nav > a.cta-nav:hover,
.main-nav > a.cta-nav:focus {
  background: #144166;
  color: #fff;
  box-shadow: 0 8px 24px 0 rgba(20,65,102,0.12);
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #e3f7ef;
  color: #2AB89C;
}

/* Hamburger and Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 18px;
  width: 44px;
  height: 44px;
  z-index: 50;
  background: #2AB89C;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  box-shadow: 0 1px 8px 0 rgba(40,184,156,0.06);
  cursor: pointer;
  transition: background 0.12s, box-shadow 0.17s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #144166;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(20,65,102,0.16);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(244,250,254,0.98);
  box-shadow: 0 8px 48px 0 rgba(44,148,131,0.10);
  z-index: 100;
  width: 100vw;
  min-height: 100vh;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 23px;
  background: #2AB89C;
  color: #fff;
  border: none;
  font-size: 2.12rem;
  border-radius: 50%;
  padding: 2px 14px 6px 13px;
  cursor: pointer;
  z-index: 120;
  box-shadow: 0 2px 12px 0 rgba(36,152,131,0.09);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #249483;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 60px 0 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.23rem;
  font-weight: 600;
  color: #144166;
  background: none;
  border: none;
  text-decoration: none;
  padding: 14px 10px;
  border-radius: 24px;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e3f7ef;
  color: #2AB89C;
}

/* CTA Buttons */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Slab', serif;
  font-size: 1.13rem;
  font-weight: 700;
  background: #2AB89C;
  color: #fff;
  padding: 13px 30px;
  border: none;
  border-radius: 26px;
  margin-top: 13px;
  margin-bottom: 11px;
  cursor: pointer;
  box-shadow: 0 3px 18px 0 rgba(36,152,131,0.11);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.18s, color 0.16s, transform 0.13s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #144166;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px 0 rgba(20,65,102,0.12);
  text-decoration: none;
}

/* Footer */
footer {
  background: linear-gradient(129deg, #EAF2FB 0%, #f9fcfa 100%);
  padding: 24px 0 0 0;
  font-size: 1rem;
  color: #144166;
  border-top: 1px solid #eaeceb;
}
.footer-nav {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 1rem;
  color: #249483;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 18px;
  background: none;
  transition: background 0.13s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #e3f7ef;
  color: #144166;
}
footer img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 4500;
  background: #f4fafe;
  color: #204055;
  box-shadow: 0 -4px 32px 0 rgba(68,120,168,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  font-size: 1.03rem;
  gap: 28px;
  border-top: 1px solid #eaf7ff;
  transition: transform 0.36s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.25s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 60%;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  border: none;
  border-radius: 26px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
  cursor: pointer;
  background: #2AB89C;
  color: #fff;
  box-shadow: 0 2px 9px 0 rgba(36,152,131,0.10);
  margin-right: 5px;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn:hover, .cookie-btn:focus {
  background: #144166;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(20,65,102,0.09);
}
.cookie-btn.secondary {
  background: #fff;
  color: #2AB89C;
  border: 1px solid #2AB89C;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  color: #fff;
  background: #2AB89C;
  border: 1px solid #2AB89C;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 65, 102, 0.09);
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 rgba(44,120,153,0.18);
  padding: 34px 30px;
  width: 97vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(80px);
  opacity: 1;
  transition: opacity 0.18s, transform 0.26s;
}
.cookie-modal.hide .cookie-modal-inner {
  opacity: 0;
  transform: translateY(100vh);
  pointer-events: none;
}
.cookie-modal-title {
  font-size: 1.39rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: #144166;
  margin-bottom: 8px;
}
.cookie-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  margin-bottom: 9px;
}
.cookie-option label {
  font-size: 1rem;
  flex: 1 1 80%;
  color: #204055;
  font-weight: 500;
  cursor: pointer;
}
.cookie-option input[type="checkbox"] {
  accent-color: #2AB89C;
  width: 21px;
  height: 21px;
}
.cookie-option .always-on {
  color: #34A97F;
  background: #f2faf7;
  font-size: 0.92em;
  border-radius: 13px;
  padding: 4px 8px;
  margin-left: 8px;
}
.close-modal-btn {
  position: absolute;
  top: 17px;
  right: 22px;
  background: #fff;
  color: #2AB89C;
  border-radius: 50%;
  border: none;
  font-size: 1.95rem;
  padding: 2px 11px 1px 13px;
  cursor: pointer;
  box-shadow: 0 1px 9px 0 rgba(36,152,131,0.04);
  transition: background 0.09s;
}
.close-modal-btn:hover, .close-modal-btn:focus {
  background: #2AB89C;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container { max-width: 92vw; }
}
@media (max-width: 950px) {
  .main-nav { flex-wrap: wrap; }
  .content-wrapper { padding: 24px 10px; }
  .feature-item { min-width: 150px; padding: 18px 12px; }
  .testimonials, .features-grid, .features, .content-grid { gap: 14px; }
}
@media (max-width: 820px) {
  .container { max-width: 98vw; }
  .main-nav { font-size: 0.97em; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper { padding: 20px 8px; font-size: 1rem; }
  .features-grid, .features, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .feature-item { flex-direction: column; gap: 10px; align-items: flex-start; }
  section, .section {
    padding: 24px 0 0 0;
    margin-bottom: 36px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.19rem; }
  .card, .feature-item { min-width: 90%; }
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 21px 11px 13px 11px;
    font-size: 1rem;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 510px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .content-wrapper, .text-section { border-radius: 15px; }
}
@media (max-width: 430px) {
  .content-wrapper { padding: 12px 3px; }
  .feature-item { padding: 14px 7px; }
  .cookie-modal-inner { padding: 19px 5px; }
}

/* Utilities and Micro-Effects */
::-webkit-input-placeholder { color: #adc9da; }
::placeholder { color: #adc9da; }

.card, .feature-item, .testimonial-card, .content-wrapper {
  transition: box-shadow 0.15s, background 0.15s, transform 0.13s;
}

input[type="text"], input[type="email"], textarea {
  border-radius: 18px;
  border: 1px solid #e4ecfa;
  background: #f4fafe;
  padding: 12px 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.12s, box-shadow 0.13s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: #2AB89C;
  box-shadow: 0 3px 12px 0 rgba(36,152,131,0.08);
}

/* ALERTS & STATE CLASSES (used for forms, modals, etc.) */
.alert-success {
  background: #e4f6f0;
  color: #249483;
  border-radius: 12px;
  padding: 11px 17px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.alert-error {
  background: #ffeaea;
  color: #d13030;
  border-radius: 12px;
  padding: 11px 17px;
  font-size: 1rem;
  margin-bottom: 18px;
}

/* ICON ADJUSTMENTS (for inline img icons in .text-section)
--------------------------------------------------- */
.text-section img[alt*="Telefon"],
.text-section img[alt*="Mail"],
.text-section img[alt*="Adresse"],
.text-section img[alt*="Öffnungszeiten"] {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  margin-bottom: -4px;
}

/* LISTS with Icons (ul > li > img) */
ul li img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: -4px;
}
/* Style numbered list for soft look */
ol {
  background: #f9fbfd;
  border-radius: 11px;
  padding: 15px 18px 15px 26px;
  border-left: 3px solid #2AB89C;
  margin-bottom: 20px;
  box-shadow: 0 2px 7px 0 rgba(44,78,153,0.04);
}
ol li {
  margin-bottom: 0.7em;
}

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

/* Prevent unwanted absolute positioning in cards etc. */
.card, .feature-item, .testimonial-card, .text-section, .content-wrapper {
  position: relative;
  z-index: 1;
}

/* Z-Index layering for overlays and banners */
.mobile-menu { z-index: 1010; }
.cookie-modal { z-index: 4600; }
.cookie-banner { z-index: 4500; }

/* Remove outline and add custom focus (accessibility improved) */
a:focus, button:focus, .cta-primary:focus, .cookie-btn:focus {
  outline: 2px solid #2AB89C;
  outline-offset: 2px;
}

/* Hide .mobile-menu by default */
.mobile-menu { display: flex; }
@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}
