/* =======================
   CSS Reset & Normalize
======================== */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAFBFC;
  color: #283942;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #457B9D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #1D3557;
  outline: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #25304A;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 1em;
  color: #374151;
}
strong { font-weight: 700; }

/* ===============
   Brand Pastel Palette
================== */
:root {
  --primary: #1D3557;
  --secondary: #457B9D;
  --accent: #F1FAEE;
  --pastel-blue: #D0E8FF;
  --pastel-aqua: #B8E1DD;
  --pastel-pink: #FDE5EC;
  --pastel-yellow: #FFF8D6;
  --pastel-mint: #E0FBFC;
  --pastel-lilac: #F3E6FD;
  --pastel-shadow: 0 2px 16px 0 rgba(69,123,157,0.09);
  --card-radius: 18px;
}

/* ===============
   Layout Utilities
================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-mint);
  border-radius: var(--card-radius);
  box-shadow: var(--pastel-shadow);
}

/**** FLEX SPACING PATTERNS ****/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* Do not use absolute for content */
  border-radius: var(--card-radius);
  background: var(--pastel-blue);
  box-shadow: var(--pastel-shadow);
  padding: 24px 20px;
  flex: 1 1 280px;
  min-width: 240px;
}
.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;
  border-radius: var(--card-radius);
  background: var(--pastel-pink);
  box-shadow: var(--pastel-shadow);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 220px;
  flex-direction: column;
  color: #283942;
}
.testimonial-card p,
.testimonial-card span {
  color: #263047;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/***** Pastel Feature Grid Styling *****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  margin-top: 16px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 180px;
  background: var(--pastel-yellow);
  border-radius: var(--card-radius);
  box-shadow: var(--pastel-shadow);
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.23s, transform 0.19s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 28px 0 rgba(69,123,157,0.13);
  transform: translateY(-5px) scale(1.025);
}
.feature-grid img {
  height: 38px;
  margin-bottom: 15px;
  opacity: 0.92;
}
.feature-grid h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: #36446a;
  margin-bottom: 8px;
}
.feature-grid p {
  color: #415465;
  font-size: 15px;
}

/**** Cards & Tables ****/
.card {
  background: var(--pastel-blue);
  box-shadow: var(--pastel-shadow);
  border-radius: var(--card-radius);
}
.preise-tabelle {
  margin: 32px 0 16px 0;
  padding: 24px;
  background: var(--pastel-lilac);
  border-radius: var(--card-radius);
  overflow-x: auto;
  box-shadow: var(--pastel-shadow);
}
.preise-tabelle table {
  width: 100%;
  border-collapse: collapse;
}
.preise-tabelle th, .preise-tabelle td {
  text-align: left;
  padding: 11px 8px;
}
.preise-tabelle th {
  background: var(--pastel-mint);
  font-family: 'Montserrat', Arial, sans-serif;
}
.preise-tabelle tr {
  border-bottom: 1px solid #e9ecef;
}
.preise-tabelle tr:last-child {
  border-bottom: none;
}
.preise-tabelle p {
  font-size: 0.98rem;
  color: #43505e;
  margin-top: 8px;
}

/* =======================
   Header & Navigation
======================== */
header {
  background: linear-gradient(90deg, #F1FAEE 0%, #D0E8FF 100%);
  box-shadow: 0 2px 20px 0 rgba(45,95,130,0.05);
  padding: 14px 0 0 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
  margin-left: auto;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  padding: 0 8px;
  font-size: 1rem;
  line-height: 2.4;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.main-nav a.cta.primary {
  background: var(--secondary);
  color: var(--accent);
  padding: 9px 22px;
  margin-left: 10px;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 100px;
  box-shadow: 0 2px 12px 0 rgba(77,159,170,0.08);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.16s, color 0.16s, box-shadow 0.19s;
}
.main-nav a.cta.primary:hover, .main-nav a.cta.primary:focus {
  background: var(--primary);
  color: #F1FAEE;
  box-shadow: 0 6px 24px 0 rgba(77,159,170,0.18);
}
.main-nav a.cta.secondary {
  background: var(--pastel-mint);
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  padding: 9px 20px;
  border-radius: 100px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .16s, color .16s, border .18s;
}
.main-nav a.cta.secondary:hover,
.main-nav a.cta.secondary:focus {
  background: var(--secondary);
  color: var(--accent);
  border-color: var(--primary);
}
.main-nav a:hover, .main-nav a:focus {
  background: #e2f0fb;
  color: var(--primary);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: transparent;
  border-radius: 8px;
  padding: 7px 14px;
  margin-left: 20px;
  transition: background .18s;
  z-index: 170;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e3e4fa;
}

/**** Burger/Nav Responsive Rules ****/
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/**** MOBILE MENU Overlay ****/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(120deg,#e7ebfc 0%, #effcfa 85%);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.77,0,.18,1), opacity .2s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  background: transparent;
  margin: 24px 26px 0 0;
  color: var(--primary);
  border-radius: 8px;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e5e6fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  padding: 10px 34px 0 34px;
  gap: 0;
}
.mobile-nav a {
  padding: 17px 0;
  width: 100%;
  text-align: left;
  font-size: 1.13rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 0;
  border-bottom: 1px solid #e6edf7;
  transition: background .11s, color .14s;
}
.mobile-nav a.cta.primary {
  background: var(--secondary);
  color: #F1FAEE;
  border-radius: 14px;
  margin: 18px 0;
  padding-left: 20px;
  padding-right: 20px;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f3f8fd;
  color: var(--secondary);
}

/**** Hamburger & Mobile Nav media ****/
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =======================
   Main Layout / Sections
======================== */
main {
  margin-top: 10px;
  margin-bottom: 38px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
  border-radius: 0;
}
.section {
  background: var(--pastel-mint);
}

.text-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.02rem;
}
.text-section img {
  width: 20px;
  height: 20px;
  opacity: .8;
}

/**** Typography Hierarchy ****/
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.1rem; margin-bottom: 10px; }
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.025rem; }
}

/**** FAQ Styling ****/
.faq-list {
  margin-top: 10px;
  margin-bottom: 16px;
}
.faq-list dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 14px;
  font-size: 1rem;
  color: #263047;
}
.faq-list dd {
  margin-left: 1.5em;
  margin-bottom: 8px;
  color: #4E6073;
  font-size: 0.98rem;
}

/**** OL lists with numbers ****/
ol {
  list-style-position: inside;
  margin-bottom: 14px;
}
ol li {
  margin-bottom: 7px;
}

/* =======================
   Buttons & CTAs
======================== */
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  border: none;
  padding: 11px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.075rem;
  transition: background .16s, color .18s, box-shadow .19s;
  margin-top: 10px;
  box-shadow: 0 0.5px 8px 0 rgba(77,159,170,0.06);
  letter-spacing: .01em;
}
.cta.primary {
  background: var(--secondary);
  color: var(--accent);
  position: relative;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 18px 0 rgba(69,123,157,0.2);
}
.cta.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
  margin-top: 2px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: #F1FAEE;
  border-color: var(--primary);
}

/**** General Inputs (for completeness if forms shown) ****/
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 9px 13px;
  border-radius: 17px;
  border: 1.5px solid #D0E8FF;
  background: #FAFAFB;
  margin-bottom: 13px;
  box-shadow: none;
  outline: none;
  width: 100%;
  transition: border-color .17s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  background: #f6f9fd;
  box-shadow: 0 1px 10px 0 rgba(77,159,170,0.08);
}

/* =========================
   Footer
========================= */
footer {
  background: linear-gradient(90deg, #E0FBFC 0%, #F1FAEE 86%);
  border-top: 1.5px solid #EEF1F5;
  padding: 36px 0 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
  justify-content: center;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 0.99rem;
  opacity: .82;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 0.97rem;
  color: #304154;
}
.footer-contact img {
  width: 17px;
  margin-right: 4px;
  opacity: 0.7;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  margin-bottom: 13px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  opacity: .84;
  transition: opacity 0.15s, filter 0.21s;
}
.footer-social img:hover {
  filter: brightness(1.16);
  opacity: 1;
}
.footer-copyright {
  text-align: center;
  font-size: 0.91rem;
  color: #737485;
  opacity: .87;
  margin-bottom: 8px;
  margin-top: 16px;
}

/* =========================
   Cookie Consent Banner & Modal
========================= */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 16px;
  background: #fff8f6;
  border-radius: 17px;
  box-shadow: 0 6px 34px 0 rgba(69,123,157,0.17);
  z-index: 3500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px 20px 24px;
  gap: 20px;
  font-size: 1rem;
  color: #36446a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.77,0,.18,1);
}
#cookie-banner.active, .cookie-banner.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-content {
  flex: 1 1 260px;
  min-width: 220px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 22px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--pastel-aqua);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 5px 0 rgba(76,125,160,0.07);
  transition: background .14s, color .14s, box-shadow .18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
}
.cookie-btn.settings {
  border: 1.5px solid var(--secondary);
  background: #fff;
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #faf2f7;
  color: var(--primary);
  border: 1.5px solid #e19ea9;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ffecef;
  color: #b3294f;
}
/**** Cookie Modal ****/
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4100;
  align-items: center;
  justify-content: center;
  background: rgba(25,43,63,0.23);
  animation: fade-in-bg .22s;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fade-in-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 44px 0 rgba(50,86,110,0.17);
  padding: 32px 28px 26px 32px;
  max-width: 420px;
  width: 98%;
  color: #2a344f;
  font-size: 1.01rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-pop .21s cubic-bezier(0.37,1.37,0.68,1);
}
@keyframes modal-pop {
  from { transform: scale(0.98) translateY(36px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-content h4 {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 12px;
  gap: 15px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.3rem;
  color: #36446a;
  border-radius: 8px;
  background: transparent;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ede7fa;
}

/******* Responsive Cookie Banner ********/
@media (max-width: 600px) {
  #cookie-banner, .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 9px 16px 12px;
    gap: 7px;
    font-size: 0.99rem;
  }
  .cookie-modal-content {
    padding: 19px 6px 20px 13px;
    max-width: 99vw;
  }
}

/* =========================
   Responsive Layouts
========================= */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 28px 10px; }
  .preise-tabelle { padding: 16px; }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .container { padding-left: 8px; padding-right: 8px; }
  header .container { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .section, section, .preise-tabelle, .card, .testimonial-card {
    padding: 18px 8px;
  }
  header { padding-top: 5px; }
}

/* Prevent content overlap for all cards/sections */
.card, .testimonial-card, .preise-tabelle, .feature-grid > div, .section, section {
  margin-bottom: 20px;
}

/**** Micro-interactions ****/
.card, .feature-grid > div, .testimonial-card, .preise-tabelle {
  transition: box-shadow 0.22s, transform 0.14s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(45,95,130,0.10);
  transform: translateY(-2px) scale(1.009);
}

/**** Dreamy/Soft Touches ****/
.card, .feature-grid > div, .preise-tabelle, .testimonial-card, .section {
  background: linear-gradient(135deg, #FDE5EC 0%, #E0FBFC 100%);
  box-shadow: var(--pastel-shadow);
}

/**** Subtle faded pastel in sections ****/
section {
  background: linear-gradient(90deg, #F1FAEE 60%, #e0fbfc 130%);
}
.section {
  background: linear-gradient(120deg, #E0FBFC 40%, #FDE5EC 180%);
}

/**** Modal overlay anim fix on mobile nav ****/
.mobile-menu {
  /* fallback for Safari flicker */
  will-change: transform, opacity;
}

/**** Accessibility/Focus ****/
a, button, .cta, .cookie-btn {
  outline: none;
}
a:focus-visible, .cta:focus-visible, .cookie-btn:focus-visible {
  box-shadow: 0 0 0 3px #BFD7EA;
}

/**** Hide modal scrollbar ****/
.cookie-modal::-webkit-scrollbar {
  display: none;
}
.cookie-modal {
  scrollbar-width: none;
}

/* =========== END CSS =========== */
