/* =================== 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;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #FFFDFB;
  color: #15324D;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #15324D;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 8px; color: #27A28E; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, ul, ol, blockquote {
  font-size: 1rem;
  color: #20415E;
}
ul, ol {margin-left: 28px; margin-bottom: 20px;}
li { margin-bottom: 8px; }
blockquote {
  background: #FDF6E8;
  color: #15324D;
  border-left: 6px solid #F4D35E;
  margin-bottom: 10px;
  padding: 16px 20px 16px 24px;
  font-size: 1.1rem;
  font-style: italic;
  border-radius: 14px;
}
a { color: #27A28E; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #1b796e; text-decoration: underline; }

/* =============== Brand Variables & Fallbacks =============== */
:root {
  --color-primary: #15324D;
  --color-secondary: #27A28E;
  --color-accent: #F4D35E;
  --color-bg: #FFFDFB;
  --color-card: #FFF9F1;
  --color-shadow: rgba(21,50,77,0.07);
  --color-shadow-strong: rgba(21,50,77,0.18);
  --color-nav-bg: #FFEBC2;
  --color-cta-bg: #F9EAC6;
  --color-testimonial-bg: #FFF3D2;
  --color-footer-bg: #15324D;
  --color-footer-text: #FFE49A;
  --radius-card: 20px;
  --radius-btn: 40px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --shadow-hover: 0 6px 32px var(--color-shadow-strong);
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ==================== Main Layout & Containers ================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 760px;
  padding-top: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
}

/* ========================= Header & Nav ======================= */
header {
  width: 100%;
  background: var(--color-nav-bg);
  box-shadow: 0 2px 10px rgba(21,50,77,0.13);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  flex-wrap: wrap;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  border-radius: 24px;
  padding: 8px 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  height: 40px;
}
header nav a.button-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  margin-left: auto;
  margin-right: 10px;
  font-size: 1.08rem;
  border-radius: var(--radius-btn);
  padding: 10px 30px;
  box-shadow: 0 2px 8px rgba(244, 211, 94, 0.13);
  transition: var(--transition);
  border: none;
}
header nav a.button-primary:hover {
  background: #ffe073;
  box-shadow: 0 6px 20px rgba(152,128,28,.17);
  color: #10253a;
}
header nav a:hover:not(.button-primary), header nav a:focus:not(.button-primary) {
  background: #FFE49A;
  color: #15324D;
}
header nav img {
  height: 38px;
  margin-right: 8px;
}

@media (max-width: 1024px) {
  header nav {
    gap: 12px;
  }
  header nav a.button-primary {
    padding: 8px 18px;
  }
}

/* Hide mobile burger on desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    font-size: 2rem;
    padding: 10px 22px;
    border-radius: 50%;
    margin: 12px 14px 12px auto;
    box-shadow: 0 1px 4px var(--color-shadow);
    cursor: pointer;
    z-index: 120;
    transition: background 0.18s;
  }
  .mobile-menu-toggle:active, .mobile-menu-toggle:focus {
    background: #FFE49A;
    color: #15324D;
  }
}

/* ========================== Mobile Navigation ======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fffbe9;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.38,.66,.33,1), opacity 0.33s cubic-bezier(.38,.66,.33,1);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 18px 18px 0 auto;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.18s;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #FFE49A;
  color: #15324D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  padding-left: 24px;
  margin-top: 32px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 18px;
  transition: background 0.19s;
  margin-bottom: 8px;
  width: 90%;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #15324D;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none; }
}

/* ============= Section/Spacing & Alignment Patterns ============= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 240px;
  max-width: 420px;
  transition: box-shadow 0.16s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.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 28px;
  background: var(--color-testimonial-bg);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(244, 211, 94, 0.12);
  margin-bottom: 24px;
  transition: box-shadow 0.16s;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  color: #15324D;
  padding: 0;
  margin: 0 0 0 0;
}
.testimonial-card span { font-size: 1rem; color: #20415E; margin-left: 12px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 18px 12px;
  }
  .section {
    margin-bottom: 32px;
    padding: 18px 6px;
  }
}

/* ====================== Feature Grid/Items ====================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
  gap: 12px;
}
.feature-grid > div img {
  height: 40px;
  width: 40px;
  margin-bottom: 6px;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
}
@media (max-width: 950px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

/* =============== Table Styles (Preise etc.) =============== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-card);
}
thead, th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 600;
}
tr:first-child th {
  border: none;
  text-align: left;
  padding: 16px 10px;
}
th, td {
  padding: 16px 10px;
  border-bottom: 1px solid #f3e2b8;
  text-align: left;
}
tr:last-child td { border-bottom: none; }
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {display: block;}
  tr { margin-bottom: 20px; }
  th, td { padding: 12px 8px; }
}

/* ========================= Buttons ========================= */
.button-primary, .cta-box .button-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 36px;
  cursor: pointer;
  font-size: 1.15rem;
  margin-top: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(244, 211, 94, 0.10);
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  outline: none;
}
.button-primary:active,
.button-primary:focus,
.button-primary:hover {
  background: #FFE49A;
  color: #15324D;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.04);
}
.button-secondary {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 11px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(39, 162, 142, 0.12);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}
.button-secondary:hover {
  background: #249686;
  color: #FFE49A;
}

/* ================= CTA & Info =============== */
.cta-box {
  background: var(--color-cta-bg);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--color-shadow);
  padding: 30px 22px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 0 0;
}
.info-box {
  background: #F5F7FD;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(39, 162, 142, 0.06);
  padding: 22px 20px;
  margin-bottom: 30px;
  color: #15324D;
}

/* ================== Footer =================== */
footer {
  background: var(--color-footer-bg);
  padding: 36px 0 22px 0;
  color: var(--color-footer-text);
  font-size: 1.1rem;
  box-shadow: 0 -2px 10px var(--color-shadow);
  width: 100vw;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: var(--color-footer-text);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 16px;
  padding: 7px 18px;
  transition: background 0.16s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: rgba(244, 211, 94, 0.11);
  color: #fff;
}
.footer-info {
  text-align: center;
  color: var(--color-footer-text);
  font-size: 0.95rem;
  opacity: 0.86;
}

/* ================ Cookie Consent Banner ================ */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 24px;
  background: var(--color-testimonial-bg);
  box-shadow: 0 2px 20px rgba(155,120,12,0.14);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  z-index: 3000;
  padding: 22px 26px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: opacity 0.32s, transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 2 1 220px;
  margin-right: 10px;
  color: #15324D;
  font-size: 1rem;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 24px;
  border: none;
  padding: 10px 24px;
  box-shadow: 0 1px 4px rgba(39,162,142,0.09);
  margin-right: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #FFD1B0;
  color: #15324D;
}
.cookie-btn.settings {
  background: #fff5d9;
  color: #C18A07;
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 3px 14px rgba(244,211,94,0.15);
}
.cookie-btn.settings:hover {
  background: #ffefb8;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    right: 8px;
    left: 8px;
    padding: 15px 10px 12px 10px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-banner p {
    margin-right: 0;
  }
}

/* =========== Cookie Consent Modal Popup =========== */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40, 42, 60, 0.32);
  z-index: 4000;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInBg 0.22s;
}
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: #FFF9F2;
  border-radius: 20px;
  box-shadow: 0 6px 34px rgba(21,50,77,0.16);
  max-width: 410px;
  width: 98vw;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInModal 0.28s cubic-bezier(.22,1,.36,1);
}
@keyframes fadeInModal { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cookie-modal-content h3 {
  margin-bottom: 8px;
  color: #15324D;
  font-size: 1.3rem;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-size: 1rem;
}
.cookie-category label {
  font-size: 1rem;
  margin-right: 10px;
  color: #15324D;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
}
.cookie-category .always-enabled {
  color: #bbb;
  font-size: 0.95rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 5px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 25px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #C18A07;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #8a6d09; }

@media (max-width: 480px) {
  .cookie-modal-content {
    max-width: 99vw;
    padding: 18px 4vw 18px 4vw;
  }
  .cookie-modal-close {
    right: 8px;
    top: 10px;
  }
}

/* ========= Typography & Visual Hierarchy ========= */
h1, .h1, .hero-title { font-size: 2.35rem; letter-spacing: -1px; margin-bottom: 22px; }
h2, .h2 { font-size: 1.75rem; letter-spacing: -1px; margin-bottom: 16px; }
h3, .h3 { font-size: 1.22rem; margin-bottom: 8px; }
h4 { font-size: 1.08rem; margin-bottom: 6px; }
strong { color: #15324D; font-weight: 700; }
.section h2 {
  color: #27A28E;
  font-family: var(--font-display);
}
.section h3 {
  color: var(--color-primary);
  font-family: var(--font-display); font-weight: 600; }

@media (max-width:650px) {
  h1, .h1 { font-size: 1.45rem; }
  h2 { font-size: 1.08rem; }
}

/* ========== Microinteractions ========== */
.card, .feature-grid>div, .testimonial-card, .button-primary, .button-secondary {
  transition: var(--transition);
}
.card:hover, .feature-grid>div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(244,211,94,0.18);
  transform: translateY(-3px) scale(1.012);
}
.testimonial-card:hover {
  background: #FFE49A;
}

/* ============= Miscellaneous ============= */
img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 1px 6px var(--color-shadow);
}
li > strong { color: #27A28E; }
::-webkit-scrollbar {
  width: 10px;
  background: #f5eed1;
}
::-webkit-scrollbar-thumb {
  background: #FFD966;
  border-radius: 8px;
}

/* =============== Responsive Table Fixes =============== */
@media (max-width: 650px) {
  .content-wrapper, .card-container, .feature-grid, .content-grid {
    flex-direction: column !important;
    align-items: stretch;
    gap: 14px;
  }
}

/* ============= Page/Section Specific ============= */
.info-box p, .info-box a {
  color: #20415E;
  font-size: 1rem;
}
.info-box a:hover { color: #27A28E; }

/* ========== White Space & Section Spacing ========== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child, section:last-child {
  margin-bottom: 0;
}
@media (max-width:600px) {
  .section, section {
    padding: 20px 4px;
    margin-bottom: 28px;
  }
}

/* ============ Accessibility Tweaks ============ */
a:focus, button:focus, input:focus {
  outline: 2px dashed #27A28E;
  outline-offset: 2px;
}

/* ============= Utility & Helper Classes ============= */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-100 { width: 100% !important; }

/* Prevent absolute for cards -- only decorative allowed. */
/* Only .mobile-menu, .cookie-modal can be fixed/absolute. */

/* ============= End of Style ============= */
