/* ==========================================================
   CSS RESET & BASELINE 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
:root {
  --brand-primary: #23395D;
  --brand-secondary: #4C9F70;
  --brand-accent: #F4E8C1;
  --mono-black: #181818;
  --mono-gray-900: #232323;
  --mono-gray-800: #2e2e2e;
  --mono-gray-700: #404040;
  --mono-gray-600: #666;
  --mono-gray-400: #bbb;
  --mono-gray-200: #e6e6e6;
  --mono-white: #fff;
  --shadow-main: 0 2px 16px 0 rgba(0,0,0,0.07), 0 1.5px 6px 0 rgba(0,0,0,0.10);
  --shadow-card: 0 2px 8px 0 rgba(40,40,40,0.08);
  --radius-card: 18px;
  --radius-btn: 9999px;
  --card-bg: #fff;
  --card-text: #181818;
  --btn-bg: #181818;
  --btn-text: #fff;
  --btn-border: #181818;
  --mono-border: #dedede;
  --focus-ring: 0 0 0 3px #23395D33;
}

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--mono-black);
  background: var(--mono-white);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

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

/* ===================
   TYPOGRAPHY - Headings
   =================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  letter-spacing: -1px;
  color: var(--mono-black);
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--mono-black);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--mono-gray-800);
  margin-bottom: 12px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--mono-gray-600);
  margin-bottom: 30px;
  letter-spacing: 0.01em;
}

/* ===================
   LINKS & BUTTONS
   =================== */
a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s cubic-bezier(.4,0,.2,1);
  outline: none;
}
a:hover, a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}
.cta-primary {
  display: inline-block;
  padding: 12px 38px;
  background: var(--mono-black);
  color: var(--mono-white) !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-main);
  transition: background 0.22s cubic-bezier(.4,0,.2,1), color 0.18s cubic-bezier(.4,0,.2,1),box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.02em;
  margin-top: 16px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--mono-gray-900);
  color: var(--brand-accent) !important;
  box-shadow: 0 1.5px 13px 0 rgba(20,20,20,0.17);
}
button, .button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-btn);
  padding: 10px 26px;
  border: 1.5px solid var(--mono-black);
  background: var(--mono-black);
  color: var(--mono-white);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.16s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--mono-gray-900);
  color: var(--brand-accent);
  border-color: var(--brand-primary);
}

/* ===================
   LAYOUT CONTAINERS
   =================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ========= FLEX LAYOUT PATTERNS ========= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  color: var(--card-text);
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 12px;
  min-width: 220px;
}
.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(--mono-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--mono-black);
  margin-bottom: 20px;
  border: 1.5px solid var(--mono-gray-200);
  flex-direction: column;
  position: relative;
  min-width: 210px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** Feature grid special: force vertical stacks on mobile ****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--mono-white);
  color: var(--mono-black);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  flex: 1 1 230px;
  min-width: 230px;
  max-width: 330px;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px 0;
  border: 1px solid var(--mono-gray-200);
  transition: box-shadow 0.18s, border 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 2px 20px 0 rgba(36,36,36,0.14);
  border: 1.5px solid var(--brand-secondary);
}
.feature-grid img {
  height: 42px;
  margin-bottom: 10px;
}

/**** Map Placeholder ****/
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--mono-gray-200);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 18px;
}
.map-placeholder img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 !important;
}

/* ===================
   NAVIGATION & HEADER
   =================== */
header {
  width: 100%;
  background: var(--mono-white);
  box-shadow: 0 1.5px 14px 0 rgba(38,38,38,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 18px 20px 18px 12px;
  position: relative;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  color: var(--mono-black);
  font-weight: 500;
  margin-right: 8px;
  letter-spacing: 0.001em;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  transition: background 0.16s, color 0.17s;
  display: inline-block;
}
.main-nav a.logo {
  padding: 0;
  background: none;
  margin-right: 22px;
}
.main-nav a.logo img {
  height: 38px;
  width: auto;
}
.main-nav a.cta-primary {
  margin-left: auto;
  margin-right: 0;
}
.main-nav a:hover:not(.cta-primary), .main-nav a:focus:not(.cta-primary) {
  background: var(--mono-gray-200);
  color: var(--brand-primary);
}

/* ===================
   MOBILE NAVIGATION
   =================== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 80;
    background: var(--mono-white);
    border: 1.5px solid var(--mono-gray-400);
    color: var(--mono-black);
    padding: 8px 14px;
    font-size: 2.1rem;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: background 0.12s, color 0.17s, border 0.17s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    color: var(--brand-secondary);
    background: var(--mono-gray-200);
    border-color: var(--brand-primary);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--mono-white);
    width: 100vw;
    height: 100vh;
    z-index: 1200;
    padding: 30px 28px;
    box-shadow: 0 2px 40px 0 rgba(32,32,32,0.12);
    transform: translateX(-100vw);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(.73,.01,.32,1.02), opacity 0.3s;
  }
  .mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close {
    font-size: 2.3rem;
    background: none;
    border: none;
    color: var(--mono-gray-700);
    margin-bottom: 32px;
    cursor: pointer;
    transition: color 0.13s;
    align-self: flex-end;
    outline: none;
    z-index: 1101;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--brand-secondary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 18px;
  }
  .mobile-nav a {
    color: var(--mono-black);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 12px 3px;
    border-radius: 10px;
    transition: background 0.17s, color 0.14s;
    margin-bottom: 2px;
    text-align: left;
    outline: none;
    display: block;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--mono-gray-200);
    color: var(--brand-primary);
    text-decoration: none;
  }
}

/* ===================
   HERO & PAGE SECTIONS
   =================== */
.hero,
.hero-webinare,
.hero-materialien,
.hero-lernberatung,
.kontakt-hero,
.thank-you-section {
  background: linear-gradient(135deg,var(--mono-gray-200) 72%,var(--mono-white) 100%);
  padding: 48px 0 40px 0;
  margin-bottom: 46px;
  width: 100%;
  min-height: 220px;
}
.hero-lernberatung,
.hero-webinare,
.hero-materialien,
.kontakt-hero {
  background: linear-gradient(120deg,#fafbfc 64%,var(--mono-white) 100%);
}
.hero h1, .hero-lernberatung h1, .hero-materialien h1, .hero-webinare h1, .kontakt-hero h1, .thank-you-section h1 {
  font-size: 2.35rem;
  color: var(--mono-black);
  margin-bottom: 16px;
}

/* ===================
   CARDS & TESTIMONIALS
   =================== */
.card {
  border: 1.5px solid var(--mono-gray-200);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border 0.17s;
}
.card:hover {
  border: 1.5px solid var(--brand-primary);
  box-shadow: 0 2px 24px 0 rgba(32,32,32,0.17);
}
.testimonial-card {
  background: var(--mono-white);
  color: var(--mono-black);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--mono-gray-200);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 20px 18px 20px;
  transition: box-shadow 0.18s, border 0.19s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border: 1.5px solid var(--brand-secondary);
  box-shadow: 0 2px 20px 0 rgba(44,44,44,0.16);
}
.testimonial-card span {
  color: var(--mono-gray-700);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

/* ===================
   SECTION STYLES
   =================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 900px) {
  section {
    padding: 32px 0 32px 0;
  }
}

.services ul,
.about-philosophie ul,
.team ul,
.text-section ul,
.legal-section ul {
  list-style: disc;
  padding-left: 36px;
  margin-bottom: 16px;
  margin-top: 7px;
}
.services ul li, .about-philosophie ul li, .team ul li, .text-section ul li, .legal-section ul li {
  margin-bottom: 12px;
  font-size: 1.08rem;
  color: var(--mono-gray-800);
  line-height: 1.75;
}
.services ul span {
  color: var(--brand-secondary);
  font-weight: 600;
  margin-left: 16px;
  font-size: 1rem;
}
.text-section {
  margin-bottom: 22px;
}

/**** About/Legal Text Formatting ****/
.legal-section, .about-philosophie, .team {
  background: var(--mono-white);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--mono-gray-200);
  margin-bottom: 48px;
}
.legal-section .text-section, .about-philosophie .text-section {
  margin-bottom: 0;
}
.legal-section h2, .legal-section h3 {
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.legal-section {
  padding: 38px 0 38px 0;
}

/**** Contact & Map ****/
.kontakt-info, .kontakt-standort, .contact-info {
  background: var(--mono-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--mono-gray-200);
  margin-bottom: 38px;
}

/* ===================
   FOOTER
   =================== */
footer {
  background: var(--mono-black);
  color: var(--mono-white);
  padding: 38px 0 26px 0;
  width: 100%;
  border-top: 1.5px solid var(--mono-gray-200);
  box-shadow: 0 -1.5px 12px 0 rgba(24,24,24,0.07);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.footer-menu a {
  color: var(--mono-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.96;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.16s, opacity 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--mono-gray-800);
  color: var(--brand-accent);
  opacity: 1;
  text-decoration: underline;
}
footer small {
  color: var(--mono-gray-400);
  font-size: 0.97rem;
}

/* ===================
   COOKIE CONSENT BANNER & MODAL
   =================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mono-black);
  color: var(--mono-white);
  box-shadow: 0 -1.5px 20px 0 rgba(30,30,30,0.14);
  z-index: 2200;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.31s cubic-bezier(.7,.17,.33,1.05), opacity 0.23s;
}
.cookie-banner[hidden] { opacity:0; pointer-events:none; transform:translateY(110%); }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.cookie-banner button {
  background: #fff;
  color: var(--mono-black);
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--mono-gray-700);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-left: 4px;
  padding: 9px 22px;
  transition: background 0.16s, color 0.15s, border 0.13s;
  cursor: pointer;
  min-width: 120px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-color: var(--brand-primary);
}

/**** Cookie Modal ****/
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-60%);
  background: var(--mono-white);
  color: var(--mono-black);
  box-shadow: 0 8px 32px rgba(24,24,24,0.16);
  border-radius: 18px;
  padding: 44px 22px 32px 22px;
  z-index: 3999;
  width: 95vw;
  max-width: 390px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.26s, transform 0.38s;
}
.cookie-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%);
}
.cookie-modal h2 {
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.09rem;
  margin-left: 4px;
  margin-bottom: 4px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  width:100%;
}
.cookie-modal .modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: var(--radius-btn);
  background: var(--mono-black);
  color: #fff;
  border: 1.5px solid var(--mono-gray-800);
  transition: background 0.14s, color 0.16s;
  font-size: 1rem;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  border-color: var(--brand-primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--mono-gray-700);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--brand-secondary);
}
.cookie-modal .cookie-category {
  margin-bottom: 8px;
  font-size: 1.07rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-primary);
  transform: scale(1.15);
  margin-right: 7px;
  vertical-align: middle;
}
.cookie-modal .cookie-category.essential label {
  font-style: italic;
  color: var(--mono-gray-600);
}

/* ============ THANK YOU PAGE ============ */
.thank-you-section {
  text-align: center;
  background: linear-gradient(133deg,var(--mono-gray-200) 63%,var(--mono-white) 100%);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}
.thank-you-section h1 {
  color: var(--brand-secondary);
}
.thank-you-section .cta-primary {
  margin-top:32px;
}

/* ================ RESPONSIVE DESIGN ================ */
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .card-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
}
@media (max-width: 768px) {
  .hero, .hero-webinare, .hero-materialien, .hero-lernberatung, .kontakt-hero, .thank-you-section {
    padding: 32px 0 28px 0;
    min-height: 140px;
  }
  h1, .h1 {
    font-size: 1.55rem;
  }
  h2, .h2 {
    font-size: 1.175rem;
    margin-bottom: 10px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }
  section {
    padding: 18px 0 18px 0;
    margin-bottom: 36px;
  }
  .feature-grid > div,
  .card {
    min-width: 0;
    max-width: 100%;
  }
  .map-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 10px;
  }
  .testimonial-card {
    padding: 18px 8px 14px 8px;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 7px;
  }
  .main-nav a, .footer-menu a {
    font-size: 0.83rem;
    padding: 6px 6px;
  }
  .hero h1, .thank-you-section h1 {
    font-size: 1.23rem;
  }
}

/* ===================
   FOCUS ACCESSIBILITY
   =================== */
a:focus, button:focus, .cta-primary:focus, .mobile-menu-toggle:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ===================
   UTILITY CLASSES
   =================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.hide { display: none !important; }

/**** Ensure no overlapping on all content cards, sections, and interactive elements ****/
.section, .card, .testimonial-card, .feature-grid > div, .map-placeholder, .content-wrapper,
.kontakt-info, .kontakt-standort, .contact-info, .legal-section, .thank-you-section {
  margin-bottom: 22px;
  margin-top: 0;
}

/**** Subtle animated micro-interactions for cards and buttons ****/
.card, .feature-grid > div, .testimonial-card, .cta-primary, .button, button, .mobile-menu-toggle, .cookie-banner button, .cookie-modal .modal-actions button, .footer-menu a {
  transition: box-shadow 0.18s, background 0.15s, color 0.17s, border 0.16s;
}
/* Button press animation */
button:active, .cta-primary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px #aaa;
}
/**** Hamburger micro-interaction visual cue ****/
.mobile-menu-toggle:active {
  transform: scale(0.96);
}

/* ===================
   DEBUG FLEX LAYOUTS - ENSURE NO GRID
   =================== */
/* No display:grid, grid-*, or column-* used anywhere. All layouts use flexbox only. */
