/* ==========================================================================
   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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #203864;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #203864;
  text-decoration: none;
  transition: color 0.2s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #203864;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; letter-spacing: -1px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p, li, td, th {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2a3547;
  font-size: 1.125rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

strong { font-weight: 700; }

/* ==========================================================================
   BRAND COLORS (with fallback)
   ========================================================================== */
:root {
  --primary: #203864;
  --secondary: #F3F4F7;
  --white: #fff;
  --accent: #ED7800;
  --accent-hover: #C05A00;
  --text-dark: #203864;
  --text-default: #2a3547;
  --text-light: #607094;
  --shadow: 0 2px 12px rgba(32,56,100,0.07);
  --radius: 16px;
}

/* ==========================================================================
   FLEXBOX SPACING & LAYOUT PATTERNS
   ========================================================================== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* lots of breathing space */
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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 {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 90px;
  /* ensure color contrast */
  color: var(--text-dark);
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--primary);
  margin-left: auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   HEADER & SITE NAVIGATION
   ========================================================================== */
header {
  background: var(--white);
  border-bottom: 1px solid #ecedf2;
  box-shadow: 0 1px 8px rgba(32,56,100,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px 20px;
}
.main-nav img {
  height: 36px; width: auto; margin-right: 14px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
  color: var(--primary);
}
.main-nav a.cta {
  background: var(--accent);
  color: #fff;
  margin-left: auto;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(237, 120, 0, 0.08);
  transition: background 0.17s, box-shadow 0.17s;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 14px rgba(237, 120, 0, 0.17);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Hide mobile menu by default, hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #F9FAFB;
  border-top: 1px solid #ecedf2;
  padding-top: 32px;
  margin-top: 80px;
  padding-bottom: 32px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-light);
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.17s, background 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
footer .text-section p {
  color: var(--text-light);
  font-size: 1rem;
  text-align: center;
}

/* ==========================================================================
   BUTTONS / CTAs
   ========================================================================== */
.cta, .btn {
  background: var(--accent);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(237,120,0,0.12);
  transition: background 0.15s, box-shadow 0.18s, transform 0.15s;
  display: inline-block;
  margin-top: 8px;
}
.cta:active, .btn:active {
  transform: scale(0.97);
}
.cta:hover, .btn:hover, .cta:focus, .btn:focus {
  background: var(--accent-hover);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(237,120,0,0.17);
}

/* ==========================================================================
   TABLES
   ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  font-size: 1.07rem;
}
thead {
  background: var(--secondary);
}
thead th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #ecedf2;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f3f4f7;
  color: var(--text-default);
}
tbody tr:last-child td { border-bottom: none; }

/* ==========================================================================
   LISTS & UL / LI
   ========================================================================== */
ul, ol {
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 1.10rem;
  color: var(--text-default);
}
ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 8px;
  top: 10px;
}
.section ul li:before {
  top: 11px;
}

/* ==========================================================================
   KURS-PREIS
   ========================================================================== */
.kurs-preis {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
}

/* ==========================================================================
   MEDIA QUERIES: RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .main-nav {
    padding: 24px 10px;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.40rem; }
  h3 { font-size: 1.15rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 22px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 60;
    padding: 6px 12px;
    transition: background 0.15s;
  }
  .mobile-menu-toggle:focus {
    background: var(--secondary);
    border-radius: 99px;
    outline: 2px solid var(--accent);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(.76,.14,.56,.83);
    z-index: 120;
    box-shadow: 2px 0 32px rgba(32,56,100,0.17);
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 130;
    padding: 7px 16px;
    border-radius: 50%;
    transition: background 0.18s;
  }
  .mobile-menu-close:focus, .mobile-menu-close:hover {
    background: var(--secondary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 80px;
    width: 100%;
    align-items: flex-start;
    padding-left: 36px;
  }
  .mobile-nav a {
    font-size: 1.20rem;
    color: var(--primary);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    padding: 10px 0;
    border-radius: 8px;
    transition: background 0.13s, color 0.13s;
    text-align: left;
    width: 100%;
    display: block;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--secondary);
    color: var(--accent);
  }
  header {
    min-height: 70px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 30px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .content-grid { gap: 12px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 3px; padding: 17px; }
  .text-image-section { flex-direction: column; gap: 15px; }
  table { font-size: 0.98rem; }
}

@media (max-width: 430px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.12rem; }
  p, li, table, th, td {
    font-size: 0.97rem;
  }
  .cta, .btn {
    font-size: 1rem;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & COOKIE MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(32,56,100,0.13);
  padding: 22px 16px 22px 26px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 700;
  animation: cookiefadein 0.5s;
  font-size: 1.10rem;
}
@keyframes cookiefadein {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner__text {
  max-width: 540px;
  color: var(--text-dark);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 8px 18px;
  margin: 0 2px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 5px rgba(237, 120, 0, 0.08);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #F3B78B;
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--accent-hover);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ED7800;
  color: #fff;
}

@media (max-width: 950px) {
  .cookie-banner {
    padding: 18px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
  }
  .cookie-banner__text {
    max-width: 100%;
  }
  .cookie-banner__actions { gap: 8px; }
}
@media (max-width: 500px) {
  .cookie-banner {
    font-size: 0.94rem;
    padding: 14px 2vw;
  }
  .cookie-btn { font-size: 0.97rem; padding: 7px 10px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 56, 100, 0.13);
  z-index: 799;
  display: none;
}
.cookie-modal-overlay.open { display: block; }
.cookie-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 55%);
  min-width: 320px;
  max-width: 93vw;
  width: 390px;
  background: #fff;
  box-shadow: 0 4px 44px rgba(32,56,100,0.19);
  border-radius: var(--radius);
  z-index: 999;
  padding: 28px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.38s cubic-bezier(.68,-0.10,.58,1.29);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translate(-50%, 80%); }
  to   { opacity: 1; transform: translate(-50%, 55%); }
}
.cookie-modal__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.cookie-modal__header h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 0;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.45rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  padding: 5px 12px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--secondary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-modal__category-input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
}
.cookie-modal__category[aria-disabled="true"] label, .cookie-modal__category[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 92px;
}
/* MODAL responsiveness */
@media (max-width: 560px) {
  .cookie-modal {
    min-width: 97vw;
    width: 97vw;
    padding: 14px 6vw;
  }
}
/* ==========================================================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ========================================================================== */
a, .cta, .btn, .cookie-btn, .cookie-modal__close {
  transition: 
    color 0.18s,
    background 0.18s,
    border 0.14s,
    box-shadow 0.16s,
    transform 0.12s;
}
.section, .card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 8px 35px rgba(32,56,100,0.10), var(--shadow);
  transform: translateY(-3px) scale(1.011);
}

/* ==========================================================================
   UTILITIES & OVERRIDES
   ========================================================================== */
::-webkit-input-placeholder { color: #adb4c5; opacity: 1; }
::-moz-placeholder { color: #adb4c5; opacity: 1; }
:-ms-input-placeholder { color: #adb4c5; opacity: 1; }
::placeholder { color: #adb4c5; opacity: 1; }

[tabindex="-1"]:focus { outline: none !important; }

.hide { display: none !important; }

/* For any .content-* and .text-section as per HTML structure */
.content-wrapper, .text-section {
  margin-bottom: 16px;
}

/* ==========================================================================
   PRINT STYLES (minimal)
   ========================================================================== */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

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