/* 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, 
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;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  background: #F7F9FC;
  color: #23406C;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: disc inside;
  margin-left: 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 12px;
  text-align: left;
}

/* SOFT PASTEL COLOR PALETTE (Brand-compliant, pastel variations) */
:root {
  --brand-primary: #23406C;
  --brand-secondary: #F2F5FA;
  --brand-accent: #FFD23A;
  --pastel-blue: #AECBFA;
  --pastel-mauve: #E4D4ED;
  --pastel-yellow: #FFF8E3;
  --pastel-pink: #FBD6D2;
  --pastel-green: #E3F8EF;
  --pastel-grey: #EAEDF3;
}
/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600,700&display=swap');

body {
  background: var(--brand-secondary);
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brand-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.375rem; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, li, address, table, ul, ol {
  font-size: 1rem;
  color: var(--brand-primary);
  margin-bottom: 12px;
  line-height: 1.7;
}
strong { font-weight: 700; }

.cta-btn, button, input[type=submit] {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: var(--brand-accent);
  color: #23406C;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 14px 36px;
  font-size: 1.125rem;
  transition: box-shadow 0.25s, background 0.25s, color 0.25s;
  box-shadow: 0 2px 8px rgba(234,211,124,0.11);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta-btn:hover, button:hover, input[type=submit]:hover {
  background: #ffe78e;
  color: #1a2739;
  box-shadow: 0 4px 16px rgba(234,211,124,0.23);
}
.cta-btn:active {
  background: #ffe778;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}

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

/* STRUCTURE & FLEXBOX SPACING */
section,
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 8px 0 rgba(100,140,180,0.08);
  position: relative;
}

@media (max-width: 768px) {
  section, .section {
    margin-bottom: 36px;
    padding: 28px 6px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--pastel-blue);
  border-radius: 16px;
  box-shadow: 0 1px 6px 0 rgba(100, 140, 180, 0.06);
  padding: 24px;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--pastel-grey);
  color: #20324F;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(170,180,215,0.14);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 560px;
}
.testimonial-card p {
  color: #20324F;
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: #23406C;
  font-size: 1rem;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-yellow);
  border-radius: 18px;
  padding: 28px 20px;
  box-shadow: 0 1px 8px rgba(255, 210, 58, 0.08), 0 1px 2px rgba(34,64,108,0.03);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 315px;
  flex: 1 1 220px;
  transition: transform 0.17s, box-shadow 0.22s;
}
.feature-item img {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 6px 18px rgba(70, 130, 190,0.14), 0 2px 12px rgba(255,210,58,0.19);
}
.price {
  display: block;
  background: var(--pastel-mauve);
  color: #23406C;
  font-weight: 600;
  border-radius: 12px;
  padding: 4px 18px;
  font-size: 0.97rem;
  margin-top: 6px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* NAVIGATION STYLES */
header {
  background: var(--pastel-blue);
  box-shadow: 0 1px 8px 0 rgba(120,170,200,0.06);
  padding: 0;
  position: relative;
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  height: 74px;
  background: transparent;
}
.main-nav img {
  height: 42px;
  margin-right: 12px;
}
.main-nav a {
  color: #23406C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--pastel-mauve);
  color: #23406C;
}
.main-nav .cta-btn {
  margin-left: auto;
  background: var(--brand-accent);
  color: #23406C;
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: 21px;
}
.main-nav .cta-btn:hover {
  background: #ffe78e;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #23406C;
  position: absolute;
  right: 18px;
  top: 16px;
  z-index: 25;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--pastel-mauve);
}

@media (max-width: 1050px) {
  .main-nav a:not(:first-child) {
    font-size: 0.98rem;
    padding: 8px 6px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .main-nav a {
    padding: 7px 4px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(244,246,253,0.97);
  transform: translateX(-100vw);
  z-index: 1080;
  transition: transform 0.35s cubic-bezier(.84,0,.29,1);
  box-shadow: 2px 0 12px 0 rgba(160,170,210,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #23406C;
  font-size: 2.1rem;
  margin: 26px 18px 12px 0;
  cursor: pointer;
  transition: color 0.13s;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-mauve);
  color: #4e1131;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 50px 32px;
}
.mobile-nav a {
  color: #23406C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
  background: none;
  padding: 14px 10px;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-yellow);
  color: #4e1131;
}

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

/* HERO SECTION */
.hero-section {
  background: linear-gradient(110deg, var(--pastel-blue) 60%, var(--pastel-yellow) 100%);
  position: relative;
  box-shadow: 0 1px 8px 0 rgba(170,180,215,0.13);
}
.hero-section h1 {
  color: #23406C;
  font-size: 2.7rem;
  margin-bottom: 14px;
}
.hero-section p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.15rem;
  color: #435072;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .hero-section h1 { font-size: 2.15rem; }
}
@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.37rem; }
}

/* SECTION VARIANTS */
.training-overview, .about-us-teaser,
.testimonials, .contact-cta, .about-approach, .about-usps,
.service-list, .inhouse-services, .firmentrainings-advantages,
.firmentrainings-cta, .ablauf-hero, .process-section, .pricetable-section,
.cta, .referenzen-hero, .testimonial-list, .referenzen-stats, .legal-section,
.gdpr-section, .cookie-section, .terms-section, .kontakt-hero,
.kontakt-details, .standort, .thank-you-section {
  background: var(--pastel-grey);
  box-shadow: 0 1px 8px 0 rgba(170,180,215,0.10);
  border-radius: 24px;
}

/* TABLES */
table {
  background: var(--pastel-blue);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 18px;
}
th {
  background: var(--pastel-mauve);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23406C;
  font-weight: 700;
  padding-top: 14px;
  padding-bottom: 12px;
}
td {
  background: var(--pastel-blue);
  color: #23406C;
  font-family: 'Open Sans', Arial, sans-serif;
}
tr:nth-child(even) td {
  background: var(--pastel-grey);
}
table, th, td {
  border: none;
}

/* CARDS (USED VARIOUSLY) */
.card, .service-item, .short-case-example, .info-block, .faq-teaser, .statistics {
  background: var(--pastel-pink);
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(245,164,176,0.06);
  padding: 20px 16px;
  margin-bottom: 18px;
}
.service-item {
  background: var(--pastel-green);
  color: #23406C;
  border-left: 7px solid var(--brand-accent);
  box-shadow: 0 1px 8px 0 rgba(44,163,176,0.06);
}

.info-block {
  background: var(--pastel-mauve);
  color: #23406C;
}

.faq-teaser {
  background: var(--pastel-blue);
  color: #23406C;
}
.statistics {
  background: var(--pastel-yellow);
  color: #23406C;
}
.short-case-example {
  background: var(--pastel-green);
  color: #23406C;
}

/* FOOTER */
footer {
  background: var(--brand-secondary);
  color: #39496B;
  padding: 40px 14px 30px 14px;
  text-align: center;
  border-top: 2px solid var(--pastel-blue);
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #23406C;
  font-weight: 600;
  background: var(--pastel-mauve);
  padding: 3.5px 14px;
  border-radius: 12px;
  transition: background 0.21s, color 0.21s;
  font-size: 0.96rem;
}
.footer-nav a:hover {
  background: var(--brand-accent);
  color: #23406C;
}
footer address, footer p {
  color: #576A97;
  font-size: 0.99rem;
  line-height: 1.6;
  margin: 0 0 7px 0;
}
footer a {
  color: #2F5489;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
footer a:hover {
  color: #4e1131;
  text-decoration: underline;
}

/* BLOCKQUOTES & HIGHLIGHTS */
blockquote {
  background: var(--pastel-green);
  border-left: 5px solid var(--brand-accent);
  color: #23406C;
  border-radius: 8px;
  padding: 20px 18px 14px 20px;
  margin: 18px 0;
}

/* LISTS REFINEMENT */
ul {
  padding-left: 1.1em;
  list-style-type: disc;
  margin-bottom: 10px;
}
ol {
  padding-left: 1.35em;
  list-style-type: decimal;
  margin-bottom: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 650px) {
  .container {
    padding: 0 3.5vw;
  }
  .footer-nav {
    gap: 10px;
    font-size: 0.9rem;
  }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.13rem; }
  .feature-item {
    max-width: 98vw;
    min-width: unset;
    padding: 20px 10px;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 99vw;
    padding: 13px 7px;
  }
  .card, .service-item {
    min-width: unset;
    max-width: 96vw;
    padding: 7px 7px;
  }
}

/* ANIMATIONS */
.cta-btn, button, .feature-item, .testimonial-card, .service-item, .mobile-menu, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.19s, color 0.17s, transform 0.22s;
}

/* MICRO-INTERACTIONS */
.cta-btn:focus, button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 8px;
  padding: 7.5px 10px;
  border: 1px solid #c5d2e9;
  background: #fff;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent);
  outline: none;
}

/* COOKIE CONSENT BANNER + MODAL */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(250,243,223,0.99);
  color: #23406C;
  box-shadow: 0 -3px 18px 0 rgba(240,200,140,0.19);
  z-index: 3000;
  padding: 20px 12px 18px 12px;
  gap: 16px;
  font-size: 1.08rem;
  animation: cookieSlideUp 0.55s cubic-bezier(.52,1.32,.49,1) 0s;
}
@keyframes cookieSlideUp {
  from {transform: translateY(100%);} to {transform: translateY(0);}
}
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.cookie-consent-btn {
  background: var(--brand-accent);
  color: #23406C;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 18px;
  padding: 9px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.18s, color 0.14s;
  margin-right: 5px;
}
.cookie-consent-btn.settings-btn {
  background: var(--pastel-blue);
  color: #23406C;
}
.cookie-consent-btn:focus, .cookie-consent-btn:hover {
  background: #ffe78e;
  color: #1a2739;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,50,70, 0.28);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.19s;
}
@keyframes fadeInOverlay {
  from {opacity:0;} to {opacity:1;}
}
.cookie-modal {
  background: #fffffe;
  border-radius: 18px;
  padding: 38px 30px 22px 30px;
  min-width: 290px;
  max-width: 99vw;
  box-shadow: 0 3px 20px rgba(35,64,108,0.13), 0 1.5px 5px rgba(255,210,58,0.04);
  z-index: 3300;
  animation: modalUp 0.23s cubic-bezier(.52,1.12,.49,1) 0s;
}
@keyframes modalUp {
  from { transform: translateY(80px); opacity:0;}
  to { transform: translateY(0); opacity:1;}
}
.cookie-modal h3 {
  font-size: 1.18rem; 
  margin-bottom: 10px;
  color: #23406C;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  font-size: 1rem;
  color: #23406C;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--brand-accent);
}
.cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal-close {
  position: absolute;
  right: 21px;
  top: 12px;
  background: none;
  color: #23406C;
  border: none;
  font-size: 1.63rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.17s, color 0.15s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: var(--pastel-mauve);
}

/* FORM BASICS */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 440px;
  margin: 0 auto;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
}
input[type=text], input[type=email], textarea {
  width: 100%;
  margin-bottom: 12px;
}

/* THANK YOU PAGE ADJUSTMENTS */
.thank-you-section {
  background: var(--pastel-green);
  text-align: center;
  border-radius: 30px;
}
.thank-you-section ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.thank-you-section a.cta-btn {
  margin-top: 20px;
}

/* GIVE GENEROUS SPACE BETWEEN ELEMENTS */
section > *, .section > *, .content-wrapper > * {
  margin-bottom: 18px;
}
section > *:last-child, .section > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* FINE-TUNED RESPONSIVENESS FOR CONTENT LAYOUTS */
@media (max-width: 600px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
}

/* FOCUS STATES ALL INTERACTIVES */
a:focus,.cta-btn:focus,button:focus,input:focus,textarea:focus {
  outline: 2.5px solid var(--brand-accent);
  outline-offset: 2px;
}

/* MISC VISUAL UPGRADES */
::-webkit-input-placeholder { color: #8592B1; }
::-moz-placeholder { color: #8592B1; }
:-ms-input-placeholder { color: #8592B1; }
::placeholder { color: #8592B1; }

hr {
  border: none;
  border-top: 1.5px solid #E2E7F2;
  margin: 32px 0 26px 0;
}

/* CUSTOM SCROLLBAR for modern browsers */
::-webkit-scrollbar {
  width: 12px;
  background: var(--pastel-grey);
}
::-webkit-scrollbar-thumb {
  background: var(--pastel-blue);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pastel-mauve);
}

/* SOFT ENTRANCE EFFECTS */
.hero-section, .about-hero, .trainings-hero, .firmentrainings-hero, .ablauf-hero, .referenzen-hero, .kontakt-hero, .thank-you-section {
  animation: heroFade 1s cubic-bezier(.6,1.35,.62,1) 0.05s;
}
@keyframes heroFade {
  from { opacity:0; transform: translateY(50px); }
  to   { opacity:1; transform: translateY(0); }
}

/* --- Soft Pastel DREAMY SHADOW for cards on hover --- */
.card:hover, .service-item:hover {
  box-shadow: 0 6px 32px rgba(222,198,255,0.26), 0 2px 18px rgba(255,175,206,0.16);
}

/* Z-INDEX STACKS */
header, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay, .cookie-modal {
  z-index: 900;
}

/* Remove autoform margin, prevent overlap */
form > * { margin-bottom: 16px; }
form > *:last-child { margin-bottom: 0; }

/* Prevent vertical content overlap anywhere */
.card-container > *, .feature-grid > *, .content-grid > *, .testimonial-list > *, .about-approach ul > *, .about-usps ul > *, .referenzen-stats ul > * {
  margin-bottom: 20px;
}
.card-container > *:last-child, .feature-grid > *:last-child, .content-grid > *:last-child, .testimonial-list > *:last-child, .about-approach ul > *:last-child, .about-usps ul > *:last-child, .referenzen-stats ul > *:last-child {
  margin-bottom: 0;
}

/* Placeholder: Hide cookie banner until shown by script */
.cookie-consent-banner.hidden { display: none !important; animation: none; }
.cookie-modal-overlay.hidden { display: none !important; animation: none; }

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
