/* RESET + BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #24322B;
  background: #ffffff;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
  background-color: #F7F6F2;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1DB397;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ED3683;
}
:focus {
  outline: 2px solid #ED3683;
  outline-offset: 2px;
}

/* FONT FACE FOR BRAND FONTS (ensure linked in <head> on host) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #423751;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #1DB397;
}
h2 {
  font-size: 2rem;
  color: #ED3683;
}
h3 {
  font-size: 1.35rem;
  color: #4363F7;
}
h4, h5, h6 {
  color: #46675A;
}

p, li, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  margin-bottom: 14px;
}

strong {
  color: #ED3683;
  font-weight: 700;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 18px;
}
li {
  margin-bottom: 7px;
  padding-left: 2px;
}

/* MAIN CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* HEADER & NAV */
header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(237,54,131,0.09);
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-size: 1.03rem;
  font-weight: 700;
  color: #46675A;
  padding: 7px 2px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  width: 0%;
  border-bottom: 2.5px solid #ED3683;
  transition: width 0.24s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #ED3683;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 45%;
}

.cta.primary {
  background: #1DB397;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  margin-left: 22px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(29,179,151,.13);
  transition: background-color .19s, transform .14s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #ED3683;
  color: #fff;
  transform: translateY(-2px) scale(1.032);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ED3683;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
  z-index: 50;
}
.mobile-menu-toggle:focus {
  background: #E9DEF4;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #46675A;
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.8,.2,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 32px;
  opacity: 0.97;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: #ffffff;
  background: none;
  border: none;
  margin-left: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.24s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #ED3683;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-left: 36px;
  padding-top: 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  padding: 15px 0;
  border-radius: 5px;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #ED3683;
  background: rgba(237,54,131,0.16);
}

/* HERO / MAIN SECTIONS */
section {
  background: #fff;
  border-radius: 33px;
  box-shadow: 0 4px 18px rgba(70,103,90,0.07), 0 1.5px 7px rgba(29,179,151,0.08);
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
section:last-of-type {
  margin-bottom: 28px;
}

/* FLEX & SPACING UTILITIES */
.features-grid, .card-container, .content-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid {
  justify-content: space-between;
}
.feature {
  background: #E9DEF4;
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(173, 37, 211, 0.11);
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 26px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 28px rgba(70,103,90,0.17);
  transform: translateY(-4px) scale(1.032);
}

.card-container {
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(70,103,90,0.1);
  padding: 30px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.14s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(237,54,131,0.18);
  transform: translateY(-4px) scale(1.03);
}

.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #E9DEF4;
  color: #24322B;
  padding: 20px;
  border-radius: 21px;
  box-shadow: 0 4px 18px rgba(70,103,90,.08);
  margin-bottom: 20px;
  font-size: 1.08rem;
  font-family: 'Roboto', sans-serif;
}
.testimonial-card p {
  margin-bottom: 5px;
  font-size: 1.07rem;
  color: #423751;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: #ED3683;
}

.faq-list {
  flex-direction: column;
  gap: 20px;
  margin-bottom: 14px;
}
.faq-item {
  background: #fafbff;
  border: 1.5px solid #B8D8C9;
  border-radius: 15px;
  padding: 18px 14px 10px 21px;
  font-size: 1.03rem;
  box-shadow: 0 2px 10px rgba(29,179,151,0.06);
  transition: border 0.2s, box-shadow 0.2s;
}
.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #1DB397;
}
.faq-item:hover, .faq-item:focus-within {
  border-color: #ED3683;
  box-shadow: 0 2px 14px rgba(237,54,131,0.13);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* TABLE STYLES FOR STUNDENPLAN */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 15px rgba(70,103,90,0.06);
  margin-bottom: 32px;
  overflow: hidden;
}
thead th {
  background: #46675A;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.04rem;
  padding: 16px 5px;
  text-align: center;
  font-weight: 700;
}
tbody td {
  background: #fafbff;
  color: #423751;
  text-align: center;
  font-size: 1rem;
  padding: 13px 5px;
  border-top: 1.5px solid #B8D8C9;
}
tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) td {
  background: #f7f6fc;
}

/* TEAM MEMBERS */
.team-member {
  background: #B8D8C9;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(70,103,90,0.08);
  padding: 26px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 230px;
}
.team-member h3 {
  margin-top: 0;
  margin-bottom: 9px;
  color: #4363F7;
}
.team-member ul {
  margin-bottom: 0;
}

/* CONTACT DETAILS */
.contact-details {
  background: #E9DEF4;
  border-radius: 17px;
  padding: 25px 16px;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(173, 37, 211, 0.09);
}
.contact-details h2 {
  color: #1DB397;
  margin-bottom: 13px;
}
.contact-details p {
  display: flex;
  align-items: center;
  font-size: 1.06rem;
  margin-bottom: 9px;
  color: #24322B;
}
.contact-details img {
  margin-right: 11px;
  width: 22px;
  height: 22px;
  display: inline-block;
}

.map-reference {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1.5px 7px rgba(29,179,151,0.09);
  padding: 20px 13px;
  margin-bottom: 22px;
}

.cta-block {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 9px 0;
}

/* FOOTER STYLES */
footer {
  background: #46675A;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  padding: 40px 0 22px 0;
  border-radius: 33px 33px 0 0;
  margin-top: 8px;
  box-shadow: 0 -2px 16px rgba(70,103,90,0.09);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo-social img {
  height: 54px;
  margin-bottom: 21px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.01rem;
  transition: color 0.2s;
  margin-bottom: 8px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #ED3683;
}
.address-contact p {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  margin-bottom: 5px;
}
.address-contact img {
  width: 19px;
  height: 19px;
  margin-right: 6px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #423751;
  box-shadow: 0 -2px 16px rgba(237,54,131,0.08);
  padding: 23px 14px 20px 14px;
  z-index: 9999;
  font-size: 1.08rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  opacity: 0.99;
  transition: transform 0.42s cubic-bezier(.64,.02,.56,1);
  transform: translateY(100%);
}
.cookie-consent-banner.active {
  transform: translateY(0);
}
.cookie-consent-banner p {
  margin: 0 18px 6px 0;
}

.cookie-btn {
  border: none;
  border-radius: 27px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background: #1DB397;
  color: #fff;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform .14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ED3683;
  color: #fff;
  transform: scale(1.04);
}
.cookie-btn.settings {
  background: #46675a;
  color: #fff;
}
.cookie-btn.reject {
  background: #ED3683;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #4363F7;
}

/* COOKIE CONSENT MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(29,179,151,0.14);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #24322B;
  border-radius: 26px;
  min-width: 310px;
  max-width: 95vw;
  box-shadow: 0 8px 36px rgba(70,103,90,0.21);
  padding: 38px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeInScale .38s cubic-bezier(.64,.02,.29,1);
}
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.89);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.cookie-modal h2 {
  color: #1DB397;
  font-size: 1.31rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.03rem;
  cursor: pointer;
  margin-bottom: 7px;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ED3683;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 13px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #ED3683;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #4363F7;
}

/* --- END COOKIE CONSENT --- */

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-logo-social img {
    height: 40px;
  }
}
@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
    gap: 24px;
  }
  .footer-logo-social, .footer-nav, .address-contact {
    margin-bottom: 14px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 9px;
  }
  .main-nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    padding-top: 7px;
  }
  .features-grid, .card-container, .content-grid, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 32px 10px;
    margin-bottom: 44px;
  }
  .testimonial-card {
    padding: 13px;
    font-size: 1rem;
  }
  .team-member,
  .feature, 
  .card {
    padding: 14px 9px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .card {
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  .section { padding: 18px 1.5vw; }
  .testimonial-card { padding: 9px; font-size: 0.98rem; }
}

/* ------ ANIMATIONS & MICROINTERACTIONS ------ */
.cta.primary, .cookie-btn {
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.14s;
}
.card, .feature {
  transition: box-shadow 0.18s, transform 0.18s;
}

/* ------ HIGH ENERGY, VIBRANT EFFECTS ------ */
.feature {
  border-left: 7px solid #ED3683;
}
.card {
  border-left: 7px solid #1DB397;
}
.testimonial-card {
  border-left: 7px solid #4363F7;
}
.faq-item {
  border-left: 7px solid #1DB397;
}

/* ------ TABLET & MOBILE TABLE STYLES ------ */
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tbody td {
    padding: 10px;
    text-align: left;
    border-top: none;
    border-bottom: 1px solid #B8D8C9;
  }
  tbody tr {
    margin-bottom: 18px;
  }
}

/* ------ UTILITY CLASSES ------ */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}

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

/* --- PREVENT OVERLAPPING & ADEQUATE SPACING --- */
.section, section, .card, .feature, .testimonial-card, .faq-item, .team-member {
  margin-bottom: 20px;
}

/* ------ VISUAL HIERARCHY ------ */
section > .container > .content-wrapper > h1,
section > .container > .content-wrapper > h2,
section > .container > .content-wrapper > h3 {
  margin-top: 0;
}

/* --- PRINT/BASIC NORMALIZE Fallbacks --- */
@media print {
  *, *:before, *:after { background: #fff !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  a, a:visited { text-decoration: underline !important; }
  img { max-width: 100% !important; }
  header, footer, .cookie-consent-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}
