/* ---------------------------------------------------------------
   RESET & NORMALIZATION
-----------------------------------------------------------------*/
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-size: 100%; font: inherit; 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: #fff;
}
ul, ol {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
a:focus { outline: 2px solid #24497c; outline-offset: 2px; }
button, input, select, textarea {
  font: inherit;
  border: none; background: none;
  color: inherit;
}
img, svg {
  display: block; max-width: 100%; height: auto;
}

/* ---------------------------------------------------------------
   ROOT & BRAND VARIABLES (with fallbacks)
-----------------------------------------------------------------*/
:root {
  --color-primary: #24497c;
  --color-secondary: #5e917a;
  --color-accent: #f4f7fa;
  --color-background: #fff;
  --color-text: #1a2537;
  --color-text-soft: #5a6a80;
  --color-border: #e4e9ee;
  --color-shadow: rgba(36,73,124,0.06);

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* ---------------------------------------------------------------
   BASE TYPOGRAPHY      
-----------------------------------------------------------------*/
html {
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background: var(--color-background);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.8rem; line-height: 1.22; margin-top: 32px; }
h3 { font-size: 1.3rem; line-height: 1.4; margin-top: 24px; }
h4, h5, h6 { font-size: 1.06rem; margin-top: 20px; }
p, ul, ol, dl, table, pre {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
strong { font-weight: 700; }
em { font-style: italic; }
a { color: var(--color-primary); transition: color 0.2s; }
a:hover, a:active {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   CONTAINER & LAYOUT SYSTEM
-----------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(36,73,124,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;
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 1.5px 10px var(--color-shadow);
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 1.1rem;
  position: relative;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Lists & Tables */
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
  color: var(--color-text-soft);
  font-size: 1rem;
}
dt { font-weight: 600; margin-top: 12px; color: var(--color-primary); }
dd { margin-left: 0; margin-bottom: 14px; color: var(--color-text-soft); }

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 1rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--color-shadow);
}
th, td {
  padding: 15px 10px;
  text-align: left;
}
th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
td {
  border-bottom: 1px solid var(--color-border);
}
tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------
   HEADER & NAVIGATION
-----------------------------------------------------------------*/
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 20;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.main-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.main-nav > a img {
  height: 36px;
  width: auto;
  margin-right: 30px;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.main-nav li {
  display: flex;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: -0.2px;
  padding: 4px 5px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .button.primary {
  margin-left: 30px;
}

/* Mobile Burger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
  margin-left: 14px;
  cursor: pointer;
  z-index: 105;
  width: 44px;
  height: 44px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,73,124, 0.98);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.77,0,0.18,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 800px rgba(36,73,124,0.96);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  padding: 18px 22px 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 30px 30px 0 50px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 10px 0;
  border-radius: 5px;
  transition: background 0.16s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(94,145,122,0.08);
  color: var(--color-secondary);
}

/* Hide desktop nav on mobile */
@media (max-width: 900px) {
  .main-nav ul,
  .main-nav .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    padding: 0 7px;
    min-height: 60px;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------------------------------------------------------
   BUTTONS
-----------------------------------------------------------------*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 600;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 2px 10px var(--color-shadow);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.button.primary {
  background: var(--color-primary);
  color: #fff;
}
.button.secondary {
  background: var(--color-secondary);
  color: #fff;
}
.button.primary:hover, .button.secondary:hover {
  background: #153360;
  color: #fff;
  box-shadow: 0 4px 18px rgba(36,73,124,0.13);
  transform: translateY(-2px) scale(1.03);
}
.button.secondary:hover {
  background: #416b5a;
}
.button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1.5px;
}

/* ---------------------------------------------------------------
   HERO & SECTION STYLES
-----------------------------------------------------------------*/
main > section {
  margin-bottom: 60px;
  padding: 40px 0 42px 0;
}
main > section:first-of-type {
  margin-top: 4px;
}
@media (max-width: 700px) {
  main > section {
    padding: 30px 0 32px 0;
    margin-bottom: 42px;
  }
}

/* Short highlight color blocks when needed */
.purpose-statement {
  background: var(--color-accent);
  border-left: 4px solid var(--color-secondary);
  padding: 20px 22px;
  border-radius: 10px;
  color: var(--color-primary);
  margin-bottom: 19px;
}

/* Timeline (Ablauf) */
.timeline {
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 1.1rem;
  padding-left: 5px;
}

/* ---------------------------------------------------------------
   FOOTER
-----------------------------------------------------------------*/
footer {
  background: #f6f8fb;
  border-top: 1px solid var(--color-border);
  margin-top: 80px;
  padding: 36px 0 0 0;
}
footer .container {
  max-width: 1120px;
}
.footer-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.36rem;
  color: var(--color-primary);
  margin-bottom: 19px;
}
.footer-brand img {
  height: 36px; width: auto;
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-text-soft);
  margin-bottom: 13px;
}
.footer-main-nav, .footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-main-nav a, .footer-legal a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 4px 7px;
  border-radius: 5px;
  transition: background 0.16s, color 0.14s;
}
.footer-main-nav a:hover, .footer-legal a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.footer-social {
  display: flex; gap: 18px;
  margin: 13px 0 6px 0;
}
.footer-social a {
  display: inline-block;
  color: var(--color-primary);
  font-size: 1.15rem;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px 54px;
  justify-content: flex-start;
  align-items: flex-start;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
  footer {
    padding: 26px 0 0 0;
  }
}

td, th { word-break: break-word; }

/* ---------------------------------------------------------------
   TESTIMONIALS
-----------------------------------------------------------------*/
.testimonial-card {
  background: var(--color-accent);
  box-shadow: 0 1.5px 10px var(--color-shadow);
  border-radius: 13px;
  font-size: 1.18rem;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  line-height: 1.7;
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    font-size: 1.07rem;
    padding: 17px 11px;
  }
}

/* ---------------------------------------------------------------
   RESPONSIVE LAYOUTS & FLEX PATTERNS
-----------------------------------------------------------------*/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 5px;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
}

.card-container, .content-grid, .footer-main-nav, .footer-legal {
  gap: 20px;
}
.card, .feature-item {
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
-----------------------------------------------------------------*/
.card, [class*="button"] {
  transition: box-shadow 0.15s, background 0.16s, color 0.13s, transform 0.10s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 4px 24px rgba(36,73,124,0.12);
  z-index: 2;
}

/* ---------------------------------------------------------------
   COOKIE CONSENT BANNER
-----------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 24px rgba(36,73,124,0.07);
  padding: 22px 12px 18px 12px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  animation: cookie-slidein 0.5s both;
}
@keyframes cookie-slidein {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.cookie-buttons .button {
  min-width: 120px;
  font-size: 1rem;
  padding: 10px 16px;
}
.button.accept {
  background: var(--color-primary);
  color: #fff;
}
.button.reject {
  background: #e4e9ee;
  color: var(--color-primary);
}
.button.settings {
  background: #f4f7fa;
  color: var(--color-primary);
}
.button.accept:hover, .button.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}
.button.reject:hover {
  background: #ebecec;
  color: var(--color-secondary);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top:0; bottom: 0;
  background: rgba(36,73,124,0.5);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.24s both;
}
@keyframes modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 48px rgba(36,73,124,0.2);
  max-width: 400px;
  width: 94vw;
  padding: 36px 26px 30px 26px;
  position: relative;
  animation: modal-slidein 0.32s cubic-bezier(0.43,0.13,0.13,1.0) both;
}
@keyframes modal-slidein {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0; margin-bottom: 10px;
  font-size: 1.23rem;
}
.cookie-modal ul {
  margin: 8px 0 25px 0; padding: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  justify-content: space-between;
  margin: 9px 0;
}
.cookie-modal label {
  flex: 1; color: var(--color-text-soft);
}
.cookie-toggle {
  width: 38px; height: 20px; border-radius: 12px;
  background: var(--color-border);
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: background 0.16s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: left 0.18s, background 0.25s;
}
.cookie-toggle input:checked ~ .toggle-thumb {
  left: 20px;
  background: var(--color-primary);
}
.cookie-modal .button {
  width: 100%;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute; top: 13px; right: 14px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.36rem;
  cursor: pointer;
  padding: 2px 9px;
}
/* Essential cookie style (always enabled) */
.cookie-modal .essential span {
  color: var(--color-secondary);
  font-weight: 600;
  margin-left: 6px;
  font-size: 0.94rem;
}

@media (max-width: 550px) {
  .cookie-modal {
    max-width: 99vw;
    padding: 17px 6vw 20px 6vw;
  }
}

/* ---------------------------------------------------------------
   UTILITY CLASSES
-----------------------------------------------------------------*/
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-secondary { color: var(--color-secondary) !important; }
.text-primary { color: var(--color-primary) !important; }
.bg-accent { background: var(--color-accent) !important; }
.rounded { border-radius: 15px; }
.shadow-sm { box-shadow: 0 1px 6px var(--color-shadow); }
.shadow-md { box-shadow: 0 4px 18px rgba(36,73,124,0.11); }

/* ---------------------------------------------------------------
   THANK YOU/DANKSAGUNG PAGE
-----------------------------------------------------------------*/
.thankyou {
  text-align: center;
  margin-top: 50px;
}
.thankyou h1 {
  margin-bottom: 18px;
  font-size: 2.0rem;
}

/* ---------------------------------------------------------------
   MISCELLANEOUS & ACCESSIBILITY
-----------------------------------------------------------------*/
::-webkit-input-placeholder { color: #bbb; }
::-moz-placeholder { color: #bbb; }
:-ms-input-placeholder { color: #bbb; }
::placeholder { color: #bbb; }
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1.5px;
}

/* ---------------------------------------------------------------
   PRINT OPTIMIZATION
-----------------------------------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner { display: none !important; }
  body { color: #222; background: #fff; }
}
