/* ===========================================================
   Glow Mentor – Gradient Modern CSS Theme
   Author: Professional CSS & UI Designer
   Branding: Seriös, modern, einladend; colors from brand guidelines
   Fonts: 'Roboto Slab' for display, 'Open Sans' for body
   =========================================================== */

/* ---- CSS RESET & NORMALIZATION ---- */
html { box-sizing: border-box; font-size: 16px; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  min-height: 100vh; font-family: 'Open Sans', Arial, sans-serif;
  background: #f8fafb; color: #23303d; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, picture, video {
  max-width: 100%; height: auto; border: none; display: block;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: bold; }
:focus { outline: 2px solid #F7C869; outline-offset: 2px; }

/* ---- BRAND FONTS ---- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: #28516A;
  margin-bottom: 12px;
  font-weight: 700;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; }
body, p, li, ul, ol, a, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #23303d;
}
p, li { margin-bottom: 12px; }

/* ---- LAYOUT & CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(40,81,106,.07), 0 1.5px 4px 0 rgba(40,81,106,.03);
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 30px 8px; margin-bottom: 36px; }
  .container { padding: 0 8px; }
}

/* ---- GRADIENT MODERN BACKGROUND (Header etc) ---- */
body, main > .section:first-child, main > section:first-child {
  background: linear-gradient(120deg, #E2F0EC 0%, #fff 89%);
}

/* ---- HEADER ---- */
header {
  width: 100%;
  background: linear-gradient(90deg, #E2F0EC 0%, #fff 100%);
  border-bottom: 1px solid #d7eae6;
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 110;
  box-shadow: 0 2px 9px 0 rgba(40,81,106,.03);
}
header .container {
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.logo img { height: 40px; }

/* Main navigation (desktop) */
.main-nav {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  font-family: "Open Sans", Arial, sans-serif;
  color: #28516A;
  font-weight: 600;
  padding: 4px 12px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E2F0EC;
  color: #23303d;
  outline: none;
}
.main-nav .cta {
  margin-left: 8px;
}

/* ---- MOBILE BURGER NAV ---- */
.mobile-menu-toggle {
  display: none; font-size: 2rem; color: #28516A;
  background: none; border: none;
  padding: 8px 14px; border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E2F0EC;
}

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

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,81,106,0.93);
  z-index: 2000;
  display: flex; align-items: flex-start; justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.6,.3,0,1);
  overscroll-behavior: contain;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute; top: 26px; right: 32px; font-size: 2rem;
  color: #fff; background: none; border: none;
  z-index: 2020; border-radius: 8px; padding: 4px 10px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E2F0EC; color: #28516A;
}
.mobile-nav {
  background: #fff; border-radius: 24px 0 0 24px;
  min-width: 300px; width: 80vw; max-width: 360px;
  padding: 46px 28px 28px 28px;
  margin-top: 0; margin-right: 0;
  height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: -4px 0 18px rgba(40,81,106,.13);
}
.mobile-nav a {
  color: #28516A; font-size: 1.07rem; font-weight: 600;
  border-radius: 8px; padding: 10px 14px;
  transition: background .2s, color .2s;
}
.mobile-nav a.cta {
  margin-top: 10px; font-size: 1.13rem;
}
.mobile-nav a:hover, .mobile-nav a:active {
  background: #E2F0EC; color: #23303d;
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ---- BUTTONS & CTA ---- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Open Sans', Arial, sans-serif; font-weight: 700;
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 1.1rem;
  transition: background .22s, box-shadow .22s, color .22s, transform .18s;
  box-shadow: 0 2px 8px 0 rgba(40, 81, 106, 0.04);
  margin-top: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  border: none;
}
.cta.primary {
  background: linear-gradient(92deg, #28516A 39%, #41768c 100%);
  color: #fff;
  box-shadow: 0 3px 22px 0 rgba(40,81,106,0.09);
}
.cta.primary:hover, .cta.primary:focus {
  background: #23303d;
  color: #F7C869;
  transform: translateY(-2px) scale(1.025);
}
.cta.secondary {
  background: #F7C869;
  color: #28516A;
  box-shadow: 0 2px 6px 0 rgba(40,81,106,.09);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #ffe49b;
  color: #28516A;
  transform: translateY(-2px) scale(1.025);
}

/* ---- CARDS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 21px 0 rgba(40,81,106,.07), 0 1.5px 4px 0 rgba(40,81,106,.03);
  margin-bottom: 20px;
  transition: box-shadow .21s, transform .19s;
  position: relative;
  min-width: 270px;
  flex: 1 1 270px;
  display: flex; flex-direction: column;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 36px 0 rgba(40,81,106,0.13);
  transform: translateY(-2px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
}

/* ---- FLEX/GRID-LIKE PATTERNS ---- */
.features-grid, .features, .content-grid, .faq-list, .service-list, .steps-list, .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.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: #E2F0EC;
  border-radius: 16px;
  box-shadow: 0 2px 9px 0 rgba(40,81,106,0.06);
  margin: 24px 0 20px;
  color: #222;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list ul, .steps-list ol, .section ul, .section ol {
  margin-bottom: 0; margin-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}

/* Prevent overlap and enforce space */
.features-grid > div, .content-grid > *, .faq-list > *, .steps-list > *, .service-list > * {
  margin-bottom: 0;
  margin-right: 0;
  flex: 1 1 280px;
  min-width: 0;
  background: transparent;
}
@media (max-width: 800px){
  .features-grid,.content-grid,.footer-content, .faq-list, .service-list, .steps-list {
    flex-direction: column;
  }
  .features-grid > div, .content-grid > *, .faq-list > *, .steps-list > *, .service-list > * {
    width: 100%;
  }
}

/* ---- FAQ STYLE ---- */
.faq-list {
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(40,81,106,.07);
  padding: 18px 20px 14px 20px;
  margin-bottom: 0;
  transition: box-shadow .19s;
}
.faq-item h3 {
  color: #28516A;
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.faq-item p { color: #23303d; font-size: 1rem; }

/* ---- LINKS ---- */
a { color: #28516A; transition: color .18s; }
a:hover, a:focus {
  color: #41768c;
  outline: none;
}
.footer-nav a, .footer-contact a {
  color: #28516A;
  font-size: 0.98rem;
  font-weight: 600;
  margin-right: 16px;
  transition: color .18s;
}
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover, .footer-contact a:hover { color: #F7C869; }

/* ---- FOOTER ---- */
footer {
  background: linear-gradient(90deg, #E2F0EC 0%, #fff 80%);
  padding: 40px 0 28px 0;
  margin-top: 40px;
  border-top: 1px solid #d7eae6;
}
.footer-content {
  display: flex; flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img { height: 36px; }
.footer-nav {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-contact {
  font-size: 0.95rem;
  color: #23303d;
  min-width: 190px;
}
.footer-cta { display: flex; align-items: center; }
.footer-social {
  display: flex; gap: 12px;
  margin-top: 10px;
}
.footer-social a img { height: 26px; filter: grayscale(.65) brightness(.95); transition: filter .2s; }
.footer-social a:hover img { filter: grayscale(.1) brightness(1.18); }
@media (max-width:900px) {
  .footer-content { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

/* ---- TYPOGRAPHY, SPACING, LISTS ---- */
ul, ol { margin-top: 0; margin-bottom: 0; }
li {
  padding-left: 0.10em; margin-bottom: 0;
}
h1, h2, h3, p, ul, ol, .cta {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 650px){
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

/* ---- SECTION HEADINGS & BACKGROUNDS ---- */
section > .container > .content-wrapper h1:not(:only-child),
section > .container > .content-wrapper h2:not(:only-child) {
  margin-bottom: 4px;
}
section {
  border: none;
  background: none;
  box-shadow: none;
}
.section {
  background: linear-gradient(120deg, #fff 65%, #E2F0EC 100%);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ---- SERVICE-LIST, STEPS ---- */
.service-list li, .steps-list li {
  font-size: 1.04rem;
  padding-bottom: 10px;
  color: #28516A;
}
.service-list strong, .steps-list strong {
  color: #28516A;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #E2F0EC;
  color: #1B2D38;
  border-left: 7px solid #F7C869;
  box-shadow: 0 3px 24px 0 rgba(40,81,106,.06);
  border-radius: 16px;
  font-size: 1.09rem;
  font-style: italic;
  margin-top: 15px;
  margin-bottom: 20px;
  max-width: 720px;
}
.testimonial-card p {
  color: #1B2D38;
  margin-right: 24px;
}
.testimonial-card span {
  font-style: normal; font-weight: 600; color: #28516A;
  margin-left: auto;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #E2F0EC .15%, #fff 100%);
  color: #23303d;
  box-shadow: 0 -2px 14px 0 rgba(40,81,106,.09);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px 18px 20px;
  gap: 24px;
  transition: transform .26s;
  pointer-events: auto;
}
.cookie-consent-banner.hide { transform: translateY(120%); pointer-events: none; }
.cookie-consent-banner p {
  font-size: 1rem;
  color: #28516A;
  margin-bottom: 0;
  margin-right: 16px;
}
.cookie-consent-buttons {
  display: flex; gap: 14px;
}
.cookie-btn, .cookie-consent-banner .cta {
  padding: 8px 18px;
  margin: 0;
  font-size: 1rem;
  border-radius: 9px;
  font-weight: 600;
  background: #F7C869; color: #28516A;
  border: none;
  transition: background .17s, color .17s;
}
.cookie-btn.accept {
  background: #28516A;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #23303d;
  color: #F7C869;
}
.cookie-btn.reject {
  background: #dbe8ee;
  color: #23303d;
}
.cookie-btn.reject:hover { background: #b6dbe2; color: #28516A; }
.cookie-btn.settings { background: #F7C869; color: #28516A; }
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: #ffe49b; color: #28516A; }

/* ---- COOKIE MODAL ---- */
.cookie-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 54px 0 rgba(40,81,106,0.16), 0 2px 8px 0 rgba(40,81,106,.09);
  z-index: 3500;
  min-width: 320px; max-width: 95vw;
  padding: 36px 32px 28px 32px;
  display: none; flex-direction: column; gap: 24px;
  align-items: flex-start;
  animation: fadeInModal .39s cubic-bezier(.4,.36,0,1);
}
.cookie-modal.active { display: flex; }
@keyframes fadeInModal { 0% { opacity: 0; transform: translate(-50%,-44%) scale(.93); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.cookie-modal h3 { color: #28516A; margin-bottom: 10px; font-size: 1.17rem; }
.cookie-modal .cookie-modal-section { margin-bottom: 14px; }
.cookie-modal-list {
  display: flex; flex-direction: column; gap: 8px;
}
.cookie-toggle {
  appearance: none; width: 32px; height: 18px; background: #E2F0EC; border-radius: 9px; position: relative; outline: none; vertical-align: middle; margin-right: 7px;
  transition: background .17s;
}
.cookie-toggle:checked { background: #F7C869; }
.cookie-toggle::before {
  content: '';
  position: absolute; left: 2px; top: 2px; width: 14px; height: 14px;
  background: #fff; border-radius: 7px; transition: left .17s, background .17s;
  box-shadow: 0 1px 3px 0 rgba(40,81,106,0.13);
}
.cookie-toggle:checked::before {
  left: 16px; background: #fff6de;
}
.cookie-modal-btns {
  margin-top: 14px; display: flex; gap: 12px;
}
.cookie-modal-close {
  position: absolute; top: 19px; right: 22px; background: none; border: none; color: #28516A; font-size: 1.3rem; }
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #F7C869; }
@media (max-width:540px) {
  .cookie-modal { min-width: 0; padding: 22px 8px; }
}

/* ---- RESPONSIVE: LAYOUT & FLEX ---- */
@media (max-width: 990px) {
  .container {
    padding: 0 12px;
  }
  .footer-content { gap: 32px; }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px; margin-bottom: 32px; border-radius: 12px;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .features-grid, .content-grid, .faq-list, .card-container, .footer-content {
    flex-direction: column; gap: 20px;
  }
  .testimonial-card { flex-direction: column; gap: 8px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 17px; }
}

/* ---- FORMS (Kontakt) ---- */
input, textarea, select {
  border-radius: 7px; border: 1px solid #d7eae6;
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 8px;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: #28516A;
  outline: none;
}
label { font-weight: 600; color: #28516A; font-size: 0.98rem; }

/* ---- UTILS / HELPERS ---- */
.hide { display: none !important; }
.flex { display: flex !important; }
.flex-center { display: flex !important; justify-content: center !important; align-items: center !important; }
.shadow {
  box-shadow: 0 4px 21px 0 rgba(40,81,106,.07);
}
.rounded { border-radius: 12px !important; }

/* ---- ANIMATIONS, TRANSITIONS ---- */
.fade-in { animation: fadeIn 0.6s cubic-bezier(.6,.3,0,1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- OVERRIDE TABLES IN LEGAL ---- */
table { width: 100%; border-collapse: collapse; }
th,td { padding: 9px 10px; border-bottom: 1px solid #d7eae6; }
th { background: #E2F0EC; color: #28516A; }

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

/* ---- HELPFUL SCROLLBAR TWEAK ---- */
::-webkit-scrollbar { width: 10px; background: #E2F0EC; }
::-webkit-scrollbar-thumb { background: #c2dbd5; border-radius: 6px; }

/* ---- SUCCESS PAGE (thanks.php) ---- */
.thank-you-msg {
  text-align: center; padding: 48px 0 32px 0;
}

/* ---- ABLER BUTTONS (list switch etc) ---- */
.toggle-btn {
  background: #E2F0EC;
  border-radius: 9px;
  padding: 8px 16px;
  font-weight: 600; color: #28516A;
  margin: 0 6px 0 0;
  transition: background .14s, color .14s;
}
.toggle-btn.active, .toggle-btn:hover {
  background: #F7C869; color: #28516A;
}

/* ---- ENFORCE FLEX-BASED LAYOUT FOR ALL GRIDS ---- */
/* (No display:grid or column-based layouts allowed) */
/* FLEX FALLBACKS covered above for card, grid, section & footer */
