/* --------------------------------------------
  CSS RESET & BASE STYLES (normalize + reset)
--------------------------------------------- */
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFC;
  color: #222931;
  font-family: 'Open Sans', Arial, sans-serif;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul {
  list-style: disc inside;
}

/* --------------------------------------------
   CSS CUSTOM PROPERTIES (Fallbacks provided)
--------------------------------------------- */
:root {
  --color-primary: #1B263B;
  --color-secondary: #415A77;
  --color-accent: #F7C873;
  --color-bg: #F8FAFC;
  --color-hero-gradient-start: #F7C873;
  --color-hero-gradient-end: #415A77;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(27, 38, 59, 0.09), 0 1.5px 6px rgba(65, 90, 119, 0.05);
  --transition: 0.22s cubic-bezier(.29,.64,.48,1);
  --gradient-main: linear-gradient(90deg, #F7C873 0%, #415A77 100%);
}

/* --------------------------------------------
  TYPOGRAPHY
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.08rem;
  font-weight: 500;
}
p, ul, ol, li, a {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #222931;
}
strong {
  font-weight: 700;
}
blockquote {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  color: var(--color-secondary);
  background: #F3F6FB;
  border-left: 5px solid var(--color-accent);
  padding: 16px 24px;
  margin-bottom: 6px;
  font-size: 1.12rem;
  border-radius: var(--radius);
}
.subheadline {
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--color-secondary);
  margin-bottom: 24px;
}
.cta-text {
  font-size: 1.13rem;
  margin-bottom: 20px;
  color: #33415c;
}

/* Typography scale for different screens */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.44rem; }
  h3 { font-size: 1.13rem; }
  .subheadline, .cta-text { font-size: 1rem; }
}

/* --------------------------------------------
  CONTAINER & LAYOUT STRUCTURE
--------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Feature/Card/Testimonial Layouts */
.feature-grid, .pricing-table, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: box-shadow var(--transition);
}
.card:hover {
  box-shadow: 0 12px 32px rgba(27,38,59,0.14), 0 7px 16px rgba(65,90,119,0.12);
}
.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: #FEFEFE;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  border: 1px solid #EEF0F3;
  color: #1B263B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 26px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------
  HERO SECTION & CTA
--------------------------------------------- */
.hero {
  background: linear-gradient(90deg, #F7C873 0%, #F2EDD6 50%, #415A77 100%);
  padding: 70px 0 50px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
}

.cta {
  background: linear-gradient(85deg, #F7C873 0%, #415A77 100%);
  color: #1B263B;
  padding: 40px 0;
  border-radius: var(--radius);
  margin-bottom: 0;
}
.cta h2, .cta p, .cta a {
  color: #1B263B;
}

@media (max-width: 768px) {
  .hero, .cta {
    padding: 35px 0 30px 0;
  }
}

/* --------------------------------------------
  CARD/FEATURE/PRICING TABLES
--------------------------------------------- */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.pricing-table > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 25px;
  flex: 1 1 220px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
}
.pricing-table > div:hover {
  box-shadow: 0 18px 48px rgba(27,38,59,0.18), 0 10px 24px rgba(65,90,119,0.16);
  transform: translateY(-4px) scale(1.02);
}
.pricing-table h2 {
  color: var(--color-secondary);
}
.pricing-table p {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-accent);
}
.pricing-table ul {
  margin-bottom: 0;
  color: #293753;
}

/* --------------------------------------------
  BUTTONS & INTERACTIVES
--------------------------------------------- */
.cta-button, .cta .cta-button, .text-section .cta-button, a.cta-button {
  background: linear-gradient(90deg, #F7C873 0%, #415A77 100%);
  color: #222931;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  border-radius: 24px;
  padding: 14px 36px;
  margin-top: 13px;
  margin-bottom: 13px;
  display: inline-block;
  box-shadow: 0 3px 12px 0 rgba(65,90,119,0.03);
  transition: box-shadow .18s var(--transition), transform .16s var(--transition), background .12s;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #415A77 0%, #F7C873 100%);
  color: #fff;
  box-shadow: 0 7px 24px 0 rgba(27,38,59,0.14);
  transform: translateY(-1.5px) scale(1.01);
}

button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: var(--font-display);
  font-size: 1.6rem;
  border-radius: 50%;
  background: #fff;
  color: var(--color-secondary);
  width: 48px; height: 48px;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(65,90,119,0.04);
  margin-left: auto;
  margin-top: 5px;
  transition: background .16s, box-shadow .14s;
}
.mobile-menu-toggle:hover, .mobile-menu-close:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --------------------------------------------
  MAIN NAVIGATION (DESKTOP)
--------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(65,90,119,0.07);
  position: sticky;
  top: 0;
  z-index: 65;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 18px;
}
.main-nav img {
  height: 44px;
  margin-right: 24px;
}
.main-nav a {
  padding: 5px 11px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.main-nav .cta-button {
  margin-left: 14px;
  background: linear-gradient(90deg, #F7C873 0%, #415A77 100%);
  color: #1B263B;
  box-shadow: 0 3px 12px 0 rgba(65,90,119,0.07);
}
.main-nav .cta-button:hover, .main-nav .cta-button:focus {
  background: linear-gradient(90deg, #415A77 0%, #F7C873 100%);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* --------------------------------------------
  MOBILE NAVIGATION – Hamburger Menu
--------------------------------------------- */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    top: 14px;
    right: 22px;
    z-index: 90;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: #fff;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(27,38,59,0.17);
    padding-top: 14px;
    padding-right: 24px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(.85,.02,.18,1), opacity 0.26s;
  }
  .mobile-menu.open {
    transform: translateX(0%);
    opacity: 1;
  }
  .mobile-menu-close {
    align-self: flex-end;
    margin-bottom: 9px;
    background: #F3F6FB;
    color: #415A77;
    position: relative;
    z-index: 120;
  }
  .mobile-nav {
    margin-top: 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mobile-nav a {
    padding: 16px 10px;
    font-size: 1.16rem;
    color: var(--color-primary);
    border-bottom: 1px solid #F0F3F9;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 500;
    transition: background .15s, color .15s;
  }
  .mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
    background: var(--color-accent);
    color: #fff;
  }
}

/* --------------------------------------------
  FOOTER
--------------------------------------------- */
footer {
  background: #F3F6FB;
  margin-top: 60px;
  padding: 34px 0 10px 0;
  font-size: 0.98rem;
  color: #415A77;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer img {
  height: 38px;
  margin-bottom: 13px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #415A77;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color .17s;
  padding: 3px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}

/* --------------------------------------------
  COOKIE CONSENT BANNER
--------------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #1B263B;
  color: #fff;
  padding: 25px 20px 21px 20px;
  z-index: 120;
  box-shadow: 0 -4px 28px rgba(27,38,59,0.22);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.38s cubic-bezier(.8,.02,.18,1), opacity 0.23s;
  opacity: 0;
  transform: translateY(180%);
}
#cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}
#cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
#cookie-banner button {
  font-size: 1rem;
  background: var(--color-accent);
  color: #1B263B;
  border-radius: 20px;
  padding: 8px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 0;
  transition: background .17s, color .13s;
  box-shadow: 0 2px 10px rgba(65,90,119,0.08);
}
#cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #1B263B;
  border: 1px solid var(--color-accent);
}
#cookie-banner button:focus, #cookie-banner button:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  z-index: 150;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,38,59,0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
#cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(65,90,119,0.18);
  padding: 38px 26px 30px 26px;
  width: 98%;
  max-width: 425px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: modalIn 0.39s cubic-bezier(.7,.02,.18,1);
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(30px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: var(--color-accent);
  margin-right: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
#cookie-modal .modal-close-btn {
  position: absolute; top: 8px; right: 12px;
  background: transparent;
  color: var(--color-secondary);
  font-size: 1.45rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  transition: background .14s;
}
#cookie-modal .modal-close-btn:hover {
  background: #f3f6fb;
}

/* --------------------------------------------
  RESPONSIVE BREAKPOINTS & FLEX ADJUSTMENTS
--------------------------------------------- */
@media (max-width: 990px) {
  .feature-grid, .pricing-table, .card-container, .content-grid, .footer-nav, .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav, .footer-nav, .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .pricing-table > div {
    padding: 18px 10px;
  }
  .feature-grid, .pricing-table, .card-container, .content-grid, .footer-nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid, .feature-grid { justify-content: flex-start; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    gap: 9px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --------------------------------------------
  TABLE STYLES (Cookie Policy)
--------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px rgba(65,90,119,0.04);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #EEF0F3;
}
th {
  background: #F7C873;
  color: #1B263B;
  font-weight: 700;
}
tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------
  MISCELLANEOUS
--------------------------------------------- */
::-webkit-scrollbar { width: 10px; background: #eaeaea; }
::-webkit-scrollbar-thumb { background: #e0e4ed; border-radius: 10px; }

li {
  margin-bottom: 6px;
}
.text-section ul, .text-section ol {
  margin-left: 22px;
}
.text-section li {
  color: #444d62;
}

.map-section {
  margin-top: 10px;
  margin-bottom: 16px;
}

/* Icon helpers (Kontakt page icons in li) */
.text-section li img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 7px;
}

/* Link styles in blocks */
a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color .13s;
}
a:hover, a:focus {
  color: var(--color-accent);
}

/* Utility: visually hidden */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Specific margins for title blocks */
main section > .container > .content-wrapper {
  margin-top: 18px;
}

/* Ensure no element overlaps and add extra margin for bottom elements */
main section:last-of-type {
  margin-bottom: 0;
}

/* --------------------------------------------
  GRADIENT DECORATIONS & MODERN TOUCHES
--------------------------------------------- */
.hero, .cta {
  /* subtle diagonal lines with alpha for modern look */
  position: relative;
  overflow: hidden;
}
.hero::after, .cta::after {
  content: '';
  position: absolute;
  right: -70px; top: -60px;
  width: 200px; height: 200px;
  background: linear-gradient(140deg, #F7C873cc 0%, #415A77 100%);
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1.5px);
}

/* Responsive table scroll */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }
}
