/* -----------------------
   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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #E6EAF2;
  color: #14325C;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

/* ---------------------------------------
   CSS VARIABLES (FALLBACKS for older CSS)
----------------------------------------- */
:root {
  --mtc-primary: #14325C;
  --mtc-secondary: #E6EAF2;
  --mtc-accent: #EBA800;
  --mtc-white: #fff;
  --mtc-black: #16223F;
  --mtc-grey: #CCD4E1;
  --mtc-border: #C4CDE0;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--mtc-secondary);
  color: var(--mtc-primary);
  min-height: 100vh;
}

/* GEOMETRIC/STRUCTURED BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mtc-primary);
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-variant: small-caps;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p, li, ul {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mtc-black);
}
strong, b {
  font-weight: 700;
}

/* --------- CONTAINERS & STRUCTURE --------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section,
.hero,
.about-section,
.services-section,
.features-section,
.testimonials-section,
.contact-section,
.legal-section,
.thank-you-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--mtc-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(20,50,92,0.07);
  /* geometric accent element - left border accent (optional) */
  border-left: 8px solid var(--mtc-accent);
}
.hero {
  background: var(--mtc-primary);
  color: var(--mtc-white);
  box-shadow: 0 8px 36px 0 rgba(20,50,92,0.13);
  border-left: none;
  border-radius: 0 0 32px 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1, .hero h2, .hero p {
  color: var(--mtc-white);
}
.hero .cta-button {
  margin-top: 20px;
}

/* ---------- NAVIGATION - STRUCTURED ----------- */
header {
  background: var(--mtc-white);
  box-shadow: 0 2px 14px rgba(20,50,92,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav[aria-label='Hauptnavigation'] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
nav[aria-label='Hauptnavigation'] > a img {
  height: 48px;
  width: auto;
}
nav[aria-label='Hauptnavigation'] ul {
  display: flex;
  align-items: center;
}
nav[aria-label='Hauptnavigation'] li {
  list-style: none;
}
nav[aria-label='Hauptnavigation'] a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.2s;
  color: var(--mtc-primary);
}
nav[aria-label='Hauptnavigation'] a:hover,
nav[aria-label='Hauptnavigation'] a:focus {
  background: var(--mtc-accent);
  color: var(--mtc-white);
}
.cta-button {
  background: var(--mtc-accent);
  color: var(--mtc-primary);
  font-family: var(--font-display);
  font-weight: bold;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 42px;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px 0 rgba(235,168,0,0.09);
  margin-left: 22px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  border: 2px solid var(--mtc-accent);
  letter-spacing: 0.045em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--mtc-primary);
  color: var(--mtc-white);
  border-color: var(--mtc-primary);
  transform: translateY(-2px) scale(1.03);
}

/* ------------------- BURGER MENU (MOBILE) ------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 26px;
  right: 32px;
  font-size: 2rem;
  color: var(--mtc-primary);
  z-index: 105;
  width: 40px;
  height: 40px;
  background: var(--mtc-white);
  border-radius: 6px;
  border: 2px solid var(--mtc-border);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--mtc-secondary);
  box-shadow: 0 2px 12px rgba(20,50,92,0.10);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 92vw;
  max-width: 340px;
  background: var(--mtc-primary);
  box-shadow: -2px 0 32px rgba(20,50,92,0.23);
  padding: 32px 24px 24px;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.54,0.04,0.27,1.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--mtc-accent);
  color: var(--mtc-primary);
  font-size: 2rem;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 2px solid var(--mtc-accent);
  transition: background 0.2s, color 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--mtc-white);
  color: var(--mtc-accent);
  border-color: var(--mtc-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 6px;
}
.mobile-nav a {
  color: var(--mtc-white);
  font-family: var(--font-display);
  font-size: 1.20rem;
  text-transform: uppercase;
  padding: 12px 0px 12px 10px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s;
  letter-spacing: 0.03em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--mtc-accent);
  color: var(--mtc-primary);
}

@media (max-width: 1024px) {
  nav[aria-label='Hauptnavigation'] ul {
    gap: 16px;
  }
  .cta-button {
    margin-left: 12px;
    padding: 12px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 865px) {
  nav[aria-label='Hauptnavigation'] ul {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------------- GLOBAL FLEX UTILITIES ----------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--mtc-white);
  border-radius: 18px;
  box-shadow: 0 6px 22px 0 rgba(20,50,92,0.09);
  padding: 28px 22px;
  flex: 1 1 250px;
  min-width: 240px;
  transition: box-shadow 0.22s, transform 0.15s;
  border: 2.5px solid var(--mtc-border);
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 34px 0 rgba(20,50,92,0.16);
  transform: translateY(-6px) scale(1.015);
}
.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: 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--mtc-secondary);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(20,50,92,0.06);
  border-left: 7px solid var(--mtc-accent);
  transition: box-shadow 0.19s;
}
.testimonial-card blockquote {
  color: var(--mtc-black);
  font-size: 1.12rem;
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.65;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-style: normal;
  color: var(--mtc-primary);
  margin-left: 14px;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 20px 0 rgba(20,50,92,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* ---------- FEATURE GRIDS & ICONS --------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.feature-grid > div {
  flex: 1 1 210px;
  min-width: 180px;
  background: var(--mtc-secondary);
  border-radius: 16px;
  padding: 20px 18px 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 1px 7px rgba(20,50,92,0.04);
  border: 1.5px solid var(--mtc-border);
  transition: box-shadow 0.16s, border-color 0.16s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 14px 0 rgba(20,50,92,0.09);
  border-color: var(--mtc-accent);
}
.feature-grid img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--mtc-white);
  box-shadow: 0 0px 3px rgba(20,50,92,0.10);
}

.services-list,
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-list {
  margin-bottom: 20px;
}
.services-list .service-card,
.services-grid .service-card {
  background: var(--mtc-white);
  border: 1.5px solid var(--mtc-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(20,50,92,0.04);
  padding: 24px 20px 22px;
  flex: 1 1 220px;
  min-width: 215px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, border-color 0.12s;
  margin-bottom: 20px;
  position: relative;
}
.services-list .service-card:hover,
.services-grid .service-card:hover {
  box-shadow: 0 10px 28px 0 rgba(20,50,92,0.08);
  border-color: var(--mtc-accent);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.service-price {
  margin-top: 10px;
  color: var(--mtc-accent);
  font-weight: bold;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section ul {
  padding-left: 0;
}
.text-section li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.text-section li:before {
  content: '\25A0';
  position: absolute;
  left: 0;
  color: var(--mtc-accent);
  font-size: 1.1em;
  font-family: var(--font-display);
}
.section ul,
.features-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.features-section ul li:before {
  content: '\2714';
  color: var(--mtc-accent);
  font-size: 1.1em;
  font-family: var(--font-display);
  padding-right: 8px;
  margin-left: 0;
}
.features-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
}


/* ------------ FOOTER ------------------ */
footer {
  background: var(--mtc-primary);
  color: var(--mtc-white);
  padding: 40px 0 16px;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 34px;
  align-items: flex-start;
}
.footer-nav ul, .footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: var(--mtc-white);
  font-family: var(--font-display);
  font-size: 0.98rem;
  opacity: 0.93;
  padding: 3px 5px;
  border-radius: 3px;
  transition: background 0.11s, color 0.15s;
}
.footer-nav a:hover, .footer-legal a:hover, .footer-nav a:focus, .footer-legal a:focus {
  background: var(--mtc-accent);
  color: var(--mtc-primary);
}
.footer-contact-details {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--mtc-grey);
  opacity: 0.96;
}
.footer-contact-details a {
  text-decoration: underline;
  color: var(--mtc-accent);
}
@media (max-width: 875px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
}

/* ------------- COOKIE CONSENT BANNER ------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mtc-white);
  box-shadow: 0 -4px 24px 0 rgba(20,50,92,0.12);
  border-top: 5px solid var(--mtc-accent);
  z-index: 11000;
  padding: 28px 16px 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.4s cubic-bezier(0.48,0.21,0.31,1.15);
  font-size: 1rem;
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-message {
  color: var(--mtc-primary);
  flex: 1 1 auto;
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  background: var(--mtc-accent);
  color: var(--mtc-primary);
  padding: 10px 22px;
  border-radius: 34px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 rgba(235,168,0,.04);
}
.cookie-btn.reject {
  background: var(--mtc-grey);
  color: var(--mtc-primary);
}
.cookie-btn.settings {
  background: var(--mtc-primary);
  color: var(--mtc-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 4px 18px 0 rgba(235,168,0,0.13);
  background: var(--mtc-accent);
  color: var(--mtc-white);
}
.cookie-btn.reject:hover {
  background: var(--mtc-primary);
  color: var(--mtc-accent);
}
.cookie-btn.settings:hover {
  background: var(--mtc-accent);
  color: var(--mtc-primary);
}

.cookie-preference-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,50,92,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12000;
}
.cookie-preference-modal .cookie-modal-content {
  background: var(--mtc-white);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 12px 56px 0 rgba(20,50,92,0.22);
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  animation: cookieModalIn 0.35s cubic-bezier(.56,.18,.31,1.15);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mtc-border);
}
.cookie-category.disabled label {
  opacity: 0.7;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--mtc-primary);
  font-family: var(--font-display);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--mtc-accent);
  width: 20px;
  height: 20px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--mtc-grey);
  color: var(--mtc-primary);
  font-size: 1.5rem;
  border-radius: 4px;
  padding: 2px 10px;
  transition: background 0.17s, color 0.15s;
  border: 2px solid var(--mtc-grey);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--mtc-accent);
  color: var(--mtc-white);
  border-color: var(--mtc-accent);
}

/* ----- THANK YOU SECTION ------ */
.thank-you-section {
  text-align: center;
}
.thank-you-section h1 {
  color: var(--mtc-accent);
}

/* ----- LEGAL SECTION ------ */
.legal-section {
  background: var(--mtc-white);
  border-left: 8px solid var(--mtc-primary);
}
.legal-section h1 {
  color: var(--mtc-primary);
}

/* ------------- RESPONSIVE BREAKPOINTS ------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    max-width: 98vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section, .about-section, .services-section, .features-section, .testimonials-section, .contact-section, .legal-section, .thank-you-section {
    padding: 26px 6px;
    margin-bottom: 36px;
    border-radius: 10px;
    border-left-width: 4px;
  }
  .hero {
    padding-top: 40px;
    padding-bottom: 46px;
    border-radius: 0 0 24px 24px;
  }
  .feature-grid,
  .card-container,
  .services-list,
  .services-grid {
    gap: 12px;
    flex-direction: column;
  }
  .feature-grid > div,
  .services-list .service-card,
  .services-grid .service-card,
  .card {
    min-width: 100%;
    width: 100%;
    padding: 18px 10px;
  }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
  nav[aria-label='Hauptnavigation'] {
    padding: 10px 14px;
  }
  .mobile-menu {
    width: 96vw;
    max-width: 97vw;
    padding: 24px 8px 18px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 16px;
    font-size: 0.96rem;
    padding: 20px 8px 10px 8px;
    align-items: flex-start;
  }
}
/* Hamburger always visible on mobile */
@media (max-width: 540px) {
  .mobile-menu-toggle {
    right: 12px;
    top: 18px;
  }
}

/* ----- FINE TUNING FOR GEOMETRIC LOOK ------ */
h1, h2, h3 {
  text-shadow: 0 1px 0 rgba(20,50,92,0.04);
}
.card, .feature-grid > div, .service-card {
  border-radius: 14px;
  border-width: 2.5px;
}
.cta-button, .cookie-btn {
  box-shadow: 0 2px 7px 0 rgba(235,168,0,0.04);
}

/* -------------- MICRO-INTERACTIONS ---------- */
.card, .service-card, .feature-grid > div {
  transition: box-shadow 0.18s, border-color 0.12s, transform 0.12s;
}
.card:active, .service-card:active, .feature-grid > div:active {
  transform: scale(0.985);
}
.cta-button:focus, .cookie-btn:focus {
  outline: 2px solid var(--mtc-accent);
  outline-offset: 2px;
}

/* ------ FORM ELEMENTS (contact, cookies) -------- */
input, select, textarea {
  background: var(--mtc-secondary);
  border: 2px solid var(--mtc-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.14s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--mtc-accent);
  outline: none;
}

/* ---- MISC: Links inside text ---- */
p a, .text-section a, .footer-contact-details a {
  color: var(--mtc-accent);
  text-decoration: underline;
  transition: color 0.13s;
}
p a:hover, .text-section a:hover, .footer-contact-details a:hover {
  color: var(--mtc-primary);
}

/* ---- ERROR STATES / STATES ---- */
input.error, textarea.error, select.error {
  border-color: red;
}

/* ---- Z-INDEX RULES ---- */
.mobile-menu,
.cookie-consent-banner,
.cookie-preference-modal {
  z-index: 10010;
}

/* ---- PREVENT ABSOLUTE FOR CONTENT, ALLOW ONLY DECOR ---- */
/* Cards must NOT have content moved absolutely! Decorations such as icons may have position absolute if needed. */

/* ---- ENSURE NO OVERLAP ---- */
.card, .feature-grid > div, .service-card {
  margin-bottom: 20px;
}
.section, .features-section, .services-section, .testimonials-section, .contact-section, .about-section {
  margin-bottom: 60px;
  padding-bottom: 40px;
}
a.cta-button, a.cta-button:hover {
  color: white;
}
/* END OF CSS */
