/* RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  background: #F9F6EA;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #F9F6EA;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #16A5AB;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #273368;
  text-decoration: underline;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: #273368;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #273368;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #273368;
  margin-bottom: 10px;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 1.4em;
}
li {
  margin-bottom: 10px;
}
blockquote {
  font-style: italic;
  color: #675851;
  border-left: 4px solid #16A5AB;
  margin-left: 0;
  padding-left: 16px;
}
.tagline {
  font-size: 1.25rem;
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  color: #16A5AB;
  margin-bottom: 36px;
  font-weight: 500;
}
strong {
  font-weight: 700;
}

/* BRAND COLORS */
:root {
  --primary: #273368;
  --secondary: #16A5AB;
  --accent: #F9F6EA;
  --bg-light: #FDF8F4;
  --text-dark: #213247;
  --text-body: #222;
  --border: #EEE7DC;
  --orange: #F2A972;
  --yellow: #FFE9A7;
  --shadow: 0 4px 24px rgba(39,51,104,0.07);
}

/* LAYOUT SPACING & CONTAINER */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1100px;
}
main {
  flex: 1 0 auto;
}
.section, 
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  align-items: flex-start;
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(39,51,104, 0.12);
  background: #F9F6EA;
}
.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: #FFF9E2;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(39,51,104,0.09);
  flex-direction: column;
  border: 1.5px solid #FFE9A7;
  color: #213247;
  transition: box-shadow 0.15s, background 0.2s;
}
.testimonial-card:hover {
  background: #FFF3CC;
  box-shadow: 0 4px 32px rgba(39,51,104,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFFCF6;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(39, 51, 104, 0.045);
  min-width: 230px;
  flex: 1 1 215px;
  border: 1.5px solid #F2A97218;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFF6EB;
  box-shadow: 0 2px 6px rgba(242,169,114,0.10);
  object-fit: contain;
}
.feature-item:hover {
  box-shadow: 0 5px 24px rgba(39, 51, 104, 0.13);
  border-color: #F2A97277;
}

/* CONTACT INFO & CTA */
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.075rem;
  color: var(--primary);
}
.contact-info img {
  width: 22px;
  height: 22px;
}

.cta-primary {
  padding: 16px 32px;
  background: var(--secondary);
  color: #fff !important;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(22,165,171,0.08);
  font-size: 1.12rem;
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  border: none;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-top: 12px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #273368;
  color: #FFE9A7 !important;
  box-shadow: 0 6px 28px rgba(39,51,104,0.11);
}
.cta-secondary {
  padding: 12px 26px;
  background: #F2A972;
  color: #273368;
  border-radius: 26px;
  font-size: 1.05rem;
  border: none;
  display: inline-block;
  cursor: pointer;
  font-family: 'Josefin Sans','Roboto',Arial,sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 7px rgba(242,169,114,0.10);
  transition: background 0.2s, color 0.2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #ffc882;
  color: #213247;
}

/* HEADER & NAV */
header {
  width: 100%;
  padding: 18px 20px 14px 20px;
  background: #FFF9F2;
  box-shadow: 0 1px 12px rgba(216, 172, 130, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 102;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 18px;
  border-radius: 12px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Josefin Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.03rem;
  color: #273368;
  font-weight: 500;
  border-radius: 18px;
  padding: 7px 14px;
  transition: background 0.19s, color 0.19s;
}
header nav a:hover, header nav a.active {
  color: var(--secondary);
  background: #F2A97233;
}

/* BURGER MOBILE MENU */
.mobile-menu-toggle {
  background: #16A5AB;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22,165,171,0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.16s;
  margin-left: 5px;
  z-index: 108;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #273368;
  color: #FFE9A7;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,51,104,0.92);
  transform: translateX(102vw);
  transition: transform 0.34s cubic-bezier(0.85,0,0.25,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 34px 22px 28px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.menu-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #F2A972;
  color: #273368;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(242,169,114,0.08);
  transition: background 0.15s, color 0.16s;
  z-index: 1000;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #fff;
  color: #16A5AB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  color: #FFF;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 14px;
  font-size: 1.25rem;
  font-family: 'Josefin Sans', Arial, sans-serif;
  transition: background 0.16s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: #16A5AB;
  background: #FFF9E2;
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 992px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
}

/* FOOTER */
footer {
  background: #FFF9F2;
  padding: 32px 0 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -1px 10px rgba(242,169,114,0.09);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  margin-top: 50px;
  z-index: 95;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 14px;
}
footer nav a {
  color: #273368;
  font-size: 1.01rem;
  font-family: 'Josefin Sans',Arial,sans-serif;
  border-radius: 12px;
  padding: 6px 12px;
  transition: background 0.16s, color 0.15s;
}
footer nav a:hover {
  color: #16A5AB;
  background: #FFE9A7;
}
footer p {
  color: #93745A;
  font-size: 0.94rem;
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #273368;
  color: #fff;
  padding: 28px 20px 18px 20px;
  box-shadow: 0 -2px 24px rgba(39,51,104,0.13);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  z-index: 99999;
  font-size: 1.01rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-consent-banner button,
.cookie-consent-banner .cookie-settings-btn {
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 1.07rem;
  border: none;
  border-radius: 22px;
  padding: 10px 24px;
  margin-left: 8px;
  cursor: pointer;
  margin-bottom: 0;
  margin-right: 2px;
  box-shadow: 0px 2px 8px rgba(39,51,104,0.06);
  transition: background 0.18s, color 0.15s;
}
.cookie-consent-banner .accept-btn {
  background: #16A5AB;
  color: #fff;
}
.cookie-consent-banner .accept-btn:hover,
.cookie-consent-banner .accept-btn:focus {
  background: #273368;
  color: #FFE9A7;
}
.cookie-consent-banner .reject-btn {
  background: #F2A972;
  color: #273368;
}
.cookie-consent-banner .reject-btn:hover,
.cookie-consent-banner .reject-btn:focus {
  background: #FFE9A7;
  color: #273368;
}
.cookie-consent-banner .cookie-settings-btn {
  background: #F9F6EA;
  color: #213247;
  border: 1px solid #F2A972;
}
.cookie-consent-banner .cookie-settings-btn:hover,
.cookie-consent-banner .cookie-settings-btn:focus {
  background: #FFE9A7;
  color: #273368;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0;top:0;right: 0;bottom: 0;
  background: rgba(39,51,104,0.72);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100003;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #213247;
  padding: 32px 26px 30px 26px;
  border-radius: 30px;
  box-shadow: 0 8px 52px rgba(39,51,104,0.19);
  min-width: 320px;
  min-height: 220px;
  max-width: 95vw;
  width: 410px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.03rem;
}
.cookie-modal h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
  color: #273368;
  font-family: 'Josefin Sans', Arial, sans-serif;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #F2A97233;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal-label {
  font-weight: 600;
  color: #273368;
  font-size: 1rem;
  font-family: 'Josefin Sans',Arial,sans-serif;
}
.cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #16A5AB;
}
.cookie-modal input[disabled] {
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 10px; right: 17px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #F2A972;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover {
  color: #16A5AB;
}
.cookie-modal .accept-btn,
.cookie-modal .reject-btn,
.cookie-modal .save-btn {
  font-family: 'Josefin Sans', Arial, sans-serif;
  font-size: 1.06rem;
  border: none;
  border-radius: 22px;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0px 1px 7px rgba(39,51,104,0.07);
  transition: background 0.18s, color 0.13s;
}
.cookie-modal .accept-btn {
  background: #16A5AB;
  color: #fff;
}
.cookie-modal .save-btn {
  background: #F2A972;
  color: #273368;
}
.cookie-modal .accept-btn:hover,.cookie-modal .save-btn:hover {
  background: #273368;
  color: #FFE9A7;
}
.cookie-modal .reject-btn {
  background: #FFF9E2;
  color: #273368;
  border: 1.5px solid #F2A972;
}
.cookie-modal .reject-btn:hover {
  background: #FFE9A7;
  color: #213247;
}

/* HIERARCHY, UTILITIES, SPACING, SHADOWS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.gap-20 { gap: 20px; }
.mt-24 { margin-top: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.bg-accent { background: #F9F6EA; }
.bg-primary { background: #273368; color: #fff; }
.bg-secondary { background: #16A5AB; color: #fff; }
.rounded-20 { border-radius: 20px; }
.shadow-soft { box-shadow: var(--shadow); }

/* RESPONSIVE */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section, .section {
    padding: 26px 5px;
    margin-bottom: 38px;
    border-radius: 16px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card {
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    border-radius: 15px;
  }
  header {
    padding: 15px 10px;
    flex-direction: row;
    gap: 0;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.03rem; }
  .cta-primary, .cta-secondary {
    padding: 11px 14px;
    font-size: 0.99rem;
  }
  .testimonial-card {
    padding: 11px;
    border-radius: 11px;
  }
}

/* SCROLLBAR STYLING (OPTIONAL) */
::-webkit-scrollbar {width: 12px; background: #F9F6EA;}
::-webkit-scrollbar-thumb {background: #F2A972;border-radius: 16px;}

/* ANIMATIONS & TRANSITIONS */
section, .content-wrapper, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.16s, background 0.22s, border-color 0.18s;
}
.cta-primary, .cta-secondary, button {
  transition: background 0.15s, color 0.15s, box-shadow 0.14s;
}
.mobile-menu, .cookie-modal-overlay, .cookie-consent-banner {
  will-change: opacity, transform;
}

/* FOCUS STYLES FOR ACCESSIBILITY */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #F2A972;
  outline-offset: 2px;
}

/* CUSTOM BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* ADDITIONAL: BRAND PERSONALITY & AUTHENTIC WARMTH */
.section, section, .feature-item, .card, .testimonial-card {
  border-radius: 20px !important;
  box-shadow: var(--shadow);
}

/* SPECIAL: FEATURE GRID (on index/angebot) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}

/* Miscellaneous fixes */
.card:last-child, .feature-item:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}
.content-wrapper > h2:first-child {
  margin-top: 0;
}

/* Prevent any content overlapping */
.card, .feature-item, .testimonial-card, .section, section {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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