/* ======================================================================
   RESET & BASE LAYER
   ======================================================================
*/
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, menu, 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, 
main, 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 {
  scroll-behavior: smooth;
}
body {
  background: #fff;
  color: #245068;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
a {
  color: #245068;
  text-decoration: none;
  transition: color 0.2s;
  font-family: inherit;
}
a:hover, a:focus {
  color: #FFBE5C;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  font-size: 16px;
}
strong {
  font-weight: 700;
}

/* ======================================================================
   FONT IMPORTS (Montserrat:700/600, Open Sans:400/600)
   ======================================================================
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* ======================================================================
   COLOR VARIABLES (with fallback)
   ======================================================================
*/
:root {
  --color-primary: #245068;
  --color-secondary: #E4F0EE;
  --color-accent: #FFBE5C;
  --color-bg: #fff;
  --color-grey: #F8FAFB;
  --color-text: #245068;
  --shadow: 0 4px 24px rgba(36, 80, 104, 0.09);
  --border-radius: 14px;
}

/* ======================================================================
   CONTAINER & GRID STRUCTURE (FLEXBOX ONLY)
   ======================================================================
*/
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-grey);
  border-radius: var(--border-radius);
}

/* ======================================================================
   HEADER & NAVIGATION
   ======================================================================
*/
header {
  background: #fff;
  border-bottom: 2px solid var(--color-secondary);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 74px;
  position: relative;
}
.logo-link {
  display: flex;
  align-items: center;
  padding: 12px 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.22s, color 0.21s, box-shadow 0.2s;
  position: relative;
}
.main-nav a.cta, .main-nav a.active {
  background: var(--color-accent);
  color: #1d3340;
  box-shadow: 0 2px 8px rgba(255,190,92,0.08);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #ffe3b1;
  color: #24334e;
}

/* ======================================================================
   MOBILE NAVIGATION MENU
   ======================================================================
*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--color-primary);
  align-items: center;
  justify-content: center;
  z-index: 31;
  border: 2px solid var(--color-secondary);
  transition: background 0.22s, color 0.21s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: #fff;
}
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 50;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 24px 28px;
  transform: translateX(-100%);
  box-shadow: 0 0 70px 0 rgba(36,80,104,.13);
  transition: transform 0.4s cubic-bezier(.77,0,.175,1);
  min-width: 240px;
  max-width: 90vw;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  position: absolute;
  top: 28px;
  right: 32px;
  z-index: 51;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-top: 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  padding: 14px 14px 14px 0;
  border-radius: 8px;
  transition: background 0.23s, color 0.20s;
  width: 96%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* ======================================================================
   TYPOGRAPHY
   ======================================================================
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.13;
  text-transform: none;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h4 {
  font-size: 1.18rem;
  font-weight: 700;
}
.subheadline {
  font-size: 1.1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #406c8c;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
p, ul, ol, dl, li, dd, dt {
  margin-bottom: 8px;
  color: var(--color-text);
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
}
li {
  margin-bottom: 7px;
  padding-left: 0;
  position: relative;
  line-height: 1.7;
}
ul > li:before {
  content: '';
  background: var(--color-accent);
  border-radius: 2px;
  width: 10px; height: 10px;
  display: inline-block;
  margin-right: 9px;
  vertical-align: middle;
  shape-outside: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 12px;
}
dd {
  margin-left: 0;
  color: #406c8c;
  margin-bottom: 8px;
}

/* ======================================================================
   BUTTONS & CTAs
   ======================================================================
*/
.cta, .main-cta, button.cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: #24334e;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 10px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 24px rgba(255,190,92,0.07);
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.19s, color 0.21s, box-shadow 0.18s, transform 0.2s;
  outline: none;
  cursor: pointer;
  text-decoration: none;
}
.cta:hover, .main-cta:hover, button.cta:hover,
.cta:focus, .main-cta:focus, button.cta:focus {
  background: #ffe3b1;
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255,190,92,0.13);
}

/* ======================================================================
   FLEX LAYOUTS FOR CARDS & CONTENT
   ======================================================================
*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 29px 23px 26px 23px;
  flex: 1 1 236px;
  min-width: 200px;
  max-width: 320px;
  border: 2px solid var(--color-secondary);
  transition: box-shadow 0.19s, border 0.18s, transform 0.2s;
}
.feature-item img {
  width: 36px; height: 36px;
  margin-bottom: 8px;
  filter: none;
}
.feature-item:hover {
  border: 2px solid var(--color-accent);
  box-shadow: 0 8px 36px rgba(36,80,104,0.12);
  transform: scale(1.025) translateY(-2px);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 18px;
  transition: box-shadow 0.19s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(36,80,104,0.11);
  transform: translateY(-2px);
}

.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-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: 18px;
  box-shadow: 0 6px 30px rgba(36,80,104,0.10);
  min-width: 250px;
  max-width: 360px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, border 0.16s, transform 0.19s;
}
.testimonial-card:hover {
  border: 2px solid var(--color-accent);
  box-shadow: 0 16px 48px rgba(36,80,104,0.16);
  transform: scale(1.02) translateY(-2.5px);
}
.testimonial-card p {
  color: #1d3340;
  font-style: italic;
  font-size: 1rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--color-primary);
}
.star-rating {
  display: flex;
  gap: 3px;
}
.star-rating img {
  width: 18px; height: 18px;
  filter: grayscale(0) brightness(1.08);
}

/* ======================================================================
   TABLES (Preis-Tabelle)
   ======================================================================
*/
.price-table {
  width: 100%;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(36,80,104,0.05);
  overflow: auto;
  border: 2px solid var(--color-secondary);
}
.price-table th {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.price-table tr {
  border-bottom: 1px solid #e6eef3;
}
.price-table td {
  color: var(--color-primary);
  font-size: 1rem;
  background: #fff;
  font-family: 'Open Sans', sans-serif;
}
.price-table tr:last-child {
  border-bottom: none;
}

/* ======================================================================
   CONTACT DETAILS & META SECTIONS
   ======================================================================
*/
.contact-details {
  background: var(--color-secondary);
  border-radius: 10px;
  padding: 22px 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 8px;
  width: 16px; height: 16px;
  display: inline-block;
}
.contact-details p {
  color: var(--color-primary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 2px;
}
.contact-details a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.16s;
}
.contact-details a:hover { color: var(--color-accent); }
.contact-cta {
  margin-bottom: 16px;
}

/* ======================================================================
   FOOTER
   ======================================================================
*/
footer {
  background: var(--color-secondary);
  border-top: 2.5px solid #c3dbd7;
  padding: 30px 0 16px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
}
.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.footer-info img {
  width: 44px;
  height: 44px;
  display: block;
}
.footer-info span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.07rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 3px;
  border-radius: 7px;
  transition: background 0.2s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  background: #fff7ed;
}
.footer-meta {
  width: 100%;
  text-align: center;
  color: #406c8c;
  font-size: 0.97rem;
  margin-top: 12px;
}

/* ======================================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================================
*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 130;
  background: #fff;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 -8px 32px rgba(36,80,104,0.07);
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw 22px 6vw;
  font-family: 'Open Sans', Arial, sans-serif;
  gap: 24px;
  min-height: 72px;
  transition: transform 0.35s;
}
.cookie-banner.hide { transform: translateY(100%); }
.cookie-banner__text {
  flex: 2 1 300px;
  color: #245068;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: #24334e;
  padding: 11px 24px;
  font-size: 1rem;
  transition: background 0.18s, color 0.21s, border 0.14s, transform 0.15s;
  cursor: pointer;
}
.cookie-btn.cookie-btn--reject {
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.cookie-btn.cookie-btn--settings {
  background: var(--color-secondary);
  border: 2px solid var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffe3b1;
  color: var(--color-primary);
  border-color: #ffe3b1;
  transform: translateY(-2px) scale(1.045);
}
.cookie-preferences-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(36,80,104,0.15);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: auto;
}
.cookie-preferences-modal.hide {
  display: none;
}
.cookie-preferences {
  background: #fff;
  border-radius: 16px;
  padding: 38px 32px 28px 32px;
  box-shadow: 0 12px 52px rgba(36,80,104,0.18);
  min-width: 320px;
  max-width: 99vw;
  width: 415px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 2.5px solid var(--color-accent);
  animation: modalScaleIn 0.30s cubic-bezier(.79,.03,.32,1.01);
}
@keyframes modalScaleIn {
  0% { opacity:0; transform: scale(0.92); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-preferences h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: space-between;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}
input[type='checkbox'].cookie-toggle {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-close {
  color: var(--color-primary);
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 151;
  border-radius: 4px;
  transition: background 0.16s, color 0.15s;
}
.cookie-close:hover, .cookie-close:focus {
  color: var(--color-accent);
  background: #f9f8f3;
}

/* ======================================================================
   MEDIA QUERIES - MOBILE FIRST
   ======================================================================
*/
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
    padding: 0 7px;
  }
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 2vw;
  }
  .feature-grid, .testimonial-list, .content-grid {
    gap: 17px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section, .content-wrapper, .container {
    padding-left: 0px;
    padding-right: 0px;
  }
  .feature-grid, .testimonial-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .feature-item, .testimonial-card, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  th, td {
    font-size: 0.95rem;
    padding: 8px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 16px 4vw 18px 4vw;
    align-items: flex-start;
    gap: 9px;
  }
  .cookie-banner__buttons {
    width: 100%;
    gap: 9px;
  }
  .footer-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.08rem; }
  .section {
    padding: 22px 0 22px 0;
    margin-bottom: 28px;
  }
  .footer-info img {
    width: 32px; height: 32px;
  }
  .cookie-preferences {
    min-width: 90vw;
    width: 95vw;
    padding: 16px 8px 20px 8px;
  }
}

/* ======================================================================
   MISCELLANEOUS & MICRO-INTERACTIONS
   ======================================================================
*/
::selection {
  background: var(--color-accent);
  color: #fff;
}
::-webkit-input-placeholder { color: #7da1bc; }
::-moz-placeholder          { color: #7da1bc; }
:-ms-input-placeholder      { color: #7da1bc; }
::placeholder              { color: #7da1bc; }

hr {
  border: 0;
  border-top: 2px solid #c3dbd7;
  margin: 24px 0 24px 0;
}

/* Decorative geometric background shapes (optional, only as decoration) */
.geometric-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.07;
  pointer-events: none;
}
/* Example Usage: rounded geometric SVG blobs in sections, not absolute for content cards */

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