/* ====================== CSS RESET & BASE ====================== */
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: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #FAFAFA;
  color: #181818;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; outline: none; }

/* ====================== MONOCHROME SOPHISTICATED PALETTE ====================== */
:root {
  --primary: #181818;  /* Very dark gray for titles/text */
  --secondary: #EBEBEB; /* Light gray for sections */
  --accent: #212121;    /* Strong black for highlights */
  --border: #DEDEDE;    /* Borders/separators */
  --background: #FAFAFA;/* Light for main BG */
  --white: #FFF;
  --shadow: rgba(18, 18, 18, 0.08);
  --card-shadow: rgba(18,18,18,0.13);
  --focus: #292929;
  --brand-blue: #184A7B; /* From brand guidelines, used as a cool accent when necessary */
  --brand-accent: #FACD6B; /* Subtle accent, sparingly */
}

/* ====================== TYPOGRAPHY ====================== */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; /* 40px */ }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

@media (max-width:600px){
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

p, li, span, td, th {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.65;
}
strong { font-weight: bold; color: var(--accent); }
em, i { font-style: italic; }

/* Links & CTA */
a.cta-btn, .cta-btn, .main-nav .cta-btn, .mobile-nav .cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.07rem;
  padding: 13px 32px;
  border-radius: 32px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, color 0.15s, box-shadow 0.18s, transform 0.18s;
  border: none;
  outline: none;
  margin: 18px 0 0 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
a.cta-btn:hover, .cta-btn:hover, .main-nav .cta-btn:hover, .mobile-nav .cta-btn:hover,
a.cta-btn:focus, .cta-btn:focus {
  background: var(--focus);
  color: var(--brand-accent);
  box-shadow: 0 4px 18px var(--card-shadow);
  transform: translateY(-2px) scale(1.025);
}

/* ====================== LAYOUT BASICS ====================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

.section {
  background: var(--background);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 1.5px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* ====================== NAVIGATION ====================== */
header {
  background: var(--white);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 30;
  box-shadow: 0 1.5px 12px var(--shadow);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  gap: 24px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .17s, color .17s;
}
.main-nav a:not(.cta-btn):hover,
.main-nav a:not(.cta-btn):focus {
  background: var(--secondary);
  color: var(--accent);
}
.main-nav .cta-btn { margin-left: 18px; }

@media (max-width: 992px) {
  .main-nav a { font-size: 0.97rem; }
  header .container { padding: 14px 10px 10px 10px; }
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  margin-left: 18px;
  z-index: 35;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--brand-accent);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  background: var(--white);
  box-shadow: 0 0 70px 12px rgba(25,25,25,0.17);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 340px;
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.88,0,.19,.99);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--accent);
  margin: 18px 18px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 2px;
  margin-top: 34px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--accent);
  padding: 14px 36px; width: 100%;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .19s, color .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav .cta-btn {
  margin: 12px 0 0 0;
  font-size: 1.15rem;
  width: calc(100% - 72px);
}

@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* Prevent body scroll on mobile menu open */
body.mobile-menu-open { overflow: hidden; }

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 18px var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 26px 18px 20px 18px;
  font-size: 1rem;
  color: var(--primary);
  animation: cookieBannerFadeIn .8s;
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex; flex-direction: row; gap: 8px;
}
.cookie-consent-banner button {
  background: var(--primary);
  color: var(--white);
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 22px;
  margin-left: 0;
  transition: background 0.18s, color .15s;
  cursor: pointer;
  border: none;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--accent);
  color: var(--brand-accent);
}
.cookie-consent-banner .cookie-settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--border);
  margin-left: 8px;
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

@media (max-width:600px){
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    font-size: 0.97rem;
    padding: 15px 8px;
  }
  .cookie-consent-banner .cookie-actions {
    width: 100%;
    gap: 12px;
  }
}

/* COOKIE MODAL OVERLAY/POPUP */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.58);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .27s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: var(--white);
  min-width: 310px;
  max-width: 420px;
  border-radius: 15px;
  box-shadow: 0 6px 38px var(--shadow);
  padding: 36px 26px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h4 { font-size: 1.2rem; margin-bottom: 16px; }
.cookie-modal label, .cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin: 7px 0 7px 0;
  gap: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px; height: 19px;
}
.cookie-modal .cookie-category.essential {
  opacity: 0.45;
  pointer-events: none;
}
.cookie-modal .cookie-actions {
  margin-top: 24px;
  width: 100%;
  display: flex; flex-direction: row-reverse;
  gap: 12px;
  justify-content: flex-end; align-items: center;
}
.cookie-modal button {
  background: var(--primary);
  color: var(--white);
  border-radius: 18px;
  font-size: 1rem;
  padding: 7px 16px;
  border: none;
  transition: background .17s;
  cursor: pointer;
}
.cookie-modal button.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--border);
}
.cookie-modal button.close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  color: var(--accent);
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: color .19s;
}
.cookie-modal button.close:hover, .cookie-modal button.close:focus { color: var(--brand-accent); }
@media (max-width:480px){
  .cookie-modal {
    min-width: 90vw;
    max-width: 96vw;
    padding: 22px 10px 13px 10px;
  }
}

/* ====================== FLEXBOX LAYOUT CLASSES ====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 15px var(--shadow);
  padding: 28px 21px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px var(--card-shadow);
  transform: translateY(-1.5px) scale(1.008);
  z-index: 5;
}
.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;
  margin-bottom: 26px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 1.5px 11px var(--card-shadow);
  border-radius: 13px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
  flex-direction: column;
  max-width: 620px;
  transition: box-shadow .18s, border-color .18s;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 500;
}
.testimonial-card span {
  margin-top: 3px;
  font-size: 0.93rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--accent);
  border-color: var(--focus);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== SECTION SPACING ========== */
main > section { margin-bottom: 60px; padding: 40px 0 0 0; }
@media (max-width: 900px){
  main > section { margin-bottom: 40px; padding: 24px 0 0 0; }
}

/* Specific Icon Lists & Feature Grids */
.feature_grid, .icon_list, .service_list, .tip_list, .course_list, .benefit_list, .consulting_services, .student_tips, .study_tips {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  flex-direction: column;
  margin: 16px 0 0 0;
  padding: 0;
}
.feature_grid li, .icon_list li, .service_list li, .tip_list li, .course_list li, .benefit_list li, .consulting_services li, .student_tips li, .study_tips li {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--secondary);
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 1.06rem;
  color: var(--primary);
  box-shadow: 0 0.5px 2px var(--shadow);
  font-weight: 400;
  transition: background .16s;
}
.feature_grid li:hover, .icon_list li:hover {
  background: #F8F8F8;
}
.feature_grid img, .icon_list img, .service_list img, .contact-info img, .contact_details img {
  width: 29px;
  height: 29px;
}

/* ========== CONTACT/ADDRESS CARDS ========== */
.contact-info, .contact_details, .address_block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-info li, .contact_details li, .address_block, .opening_hours, .map_embed {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  padding: 6px 0 6px 0;
}
.map_embed {
  background: var(--secondary);
  border-radius: 10px;
  padding: 9px 14px;
  margin-top: 13px;
  font-size: 1.1rem;
  font-weight: 500;
  gap: 14px;
}

/* ========== RESOURCE & LINKS ========== */
.resource_links, .success_stories, .method_guides, .resource_downloads, .thank_you_message {
  padding: 15px 0 0 0;
  font-size: 1.04rem;
}
.resource_links a {
  color: var(--primary);
  text-decoration: underline;
  margin-right: 6px;
  font-weight: 500;
  transition: color .18s;
}
.resource_links a:hover, .resource_links a:focus {
  color: var(--focus);
}

/* ========== TABLE STYLES (Leitfaden-Vergleiche) ========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 9px;
  overflow:hidden;
  box-shadow: 0 1px 10px var(--shadow);
  margin: 7px 0 14px 0;
}
th, td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 1rem;
}
th {
  background: var(--secondary);
  font-weight: 600;
  color: var(--accent);
}
tbody tr:last-child td { border-bottom: none; }

/* ========== FOOTER ========== */
footer {
  background: var(--white);
  border-top: 1.5px solid var(--border);
  padding: 45px 0 18px 0;
  margin-top: 60px;
  box-shadow: 0 -1.5px 12px var(--shadow);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 7px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--accent);
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  transition: color .15s;
}
.footer-nav a:hover {
  color: var(--focus);
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  color: var(--primary);
  font-size: .98rem;
}
.footer-brand img {
  height: 33px; width: auto;
  filter: grayscale(1) contrast(1.01);
}

/* ========== MEDIA QUERIES: RESPONSIVE ========== */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .text-image-section { flex-direction: column; gap: 19px; }
  .footer-nav { flex-wrap: wrap; gap: 13px; }
}
@media (max-width:600px){
  html { font-size: 95%; }
  .section { padding: 22px 4px; margin-bottom: 34px; }
  main > section { padding: 17px 0 0 0; margin-bottom: 25px; }
}

/* ========== MICRO-INTERACTIONS & FOCUS STATES ========== */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2.5px;
}
a, button, .cta-btn {
  transition: box-shadow .17s, background .17s, color .17s, border-color .17s, transform .15s;
}

/* ========== SPECIAL CLASSES ========== */
.thank_you_message {
  background: var(--secondary);
  border-radius: 15px;
  box-shadow: 0 0.5px 3.5px var(--shadow);
  padding: 23px 18px;
  color: var(--primary);
  font-size: 1.06rem;
  margin-bottom: 21px;
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 1000;
}
.skip-link:focus {
  left: 50%;
  top: 15px;
  width: auto; height: auto;
  background: #222;
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  outline: 2px solid var(--brand-accent);
  transform: translateX(-50%);
}

/* ========== UTILITIES ========== */
.hide { display: none !important; }

/* ====================== BRAND ACCENT USAGE ====================== */
.cta-btn, .main-nav .cta-btn, .mobile-nav .cta-btn {
  background: var(--brand-blue);
  color: var(--white);
}
.cta-btn:hover, .cta-btn:focus, .main-nav .cta-btn:hover, .mobile-nav .cta-btn:hover {
  background: var(--primary);
  color: var(--brand-accent);
}

::-webkit-input-placeholder { color: #757575; }
::-moz-placeholder { color: #757575; }
:-ms-input-placeholder { color: #757575; }
::placeholder { color: #757575; }

/* ========== PRINT OPTIMIZATION ========== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
  body { background: var(--white); color: #181818; }
}
