/* ==========================================================================
   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, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fafbfc;
  color: #20243a;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.58,1.17,.58,1.12);
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   VARIABLES & BRAND COLORS
   ========================================================================== */
:root {
  --color-primary: #1C3144;
  --color-secondary: #95B6D3;
  --color-accent: #F9B233;
  --color-bg: #fafbfc;
  --color-white: #fff;
  --color-black: #222;
  --color-text: #20243a;
  --color-error: #D7263D;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --shadow-big: 0 6px 24px -4px rgba(28,49,68,0.14);
  --shadow-med: 0 2px 10px 0 rgba(28,49,68,.12);
  --shadow-card: 0 3px 18px 0 rgba(249,178,51,0.15);
  --radius-section: 36px;
  --radius-card: 18px;
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Section spacing pattern */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.15;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  line-height: 1.15;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}
.text-section,
.content-wrapper.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ================= BOLD, ENERGETIC BUTTONS ========================= */
.cta-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 34px;
  border: none;
  border-radius: 26px;
  box-shadow: var(--shadow-big);
  cursor: pointer;
  display: inline-block;
  margin: 15px 0;
  transition: background 0.17s, color 0.22s, box-shadow 0.18s;
  outline: none;
  letter-spacing: 0.04em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 7px 36px 0 rgba(249,178,51,.26);
  text-decoration: none !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  width: 100%;
  box-shadow: var(--shadow-med);
  z-index: 23;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  position: relative;
}
header img[alt="ProLialger Akademie"] {
  height: 38px;
  width: auto;
  margin-right: 28px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  padding: 6px 12px;
  border-radius: 14px;
  position: relative;
  transition: background 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ================== MOBILE MENU TOGGLE =============================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 2rem;
  border: none;
  border-radius: 14px;
  padding: 8px 18px 10px 18px;
  box-shadow: var(--shadow-med);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.14s, color 0.13s;
  z-index: 106;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ================== MOBILE MENU OVERLAY ======================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 1234;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.39,1.84,0,.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 50px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-accent);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  right: 24px;
  top: 22px;
  cursor: pointer;
  z-index: 1102;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 26px;
  width: 100%;
  border-radius: 8px;
  font-size: 1.21rem;
  transition: background 0.14s;
  margin-left: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* =============== HIDE/SHOW NAVIGATION (Responsive) ================== */
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 971px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =================== SECTION & CARD LAYOUTS ========================== */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: transparent;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  margin-top: 8px;
}
.feature-grid > div {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 20px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.24s, transform 0.19s;
  position: relative;
  margin-bottom: 0;
  margin-right: 0;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 42px 0 rgba(249,178,51,0.19), var(--shadow-card);
  transform: translateY(-7px) scale(1.035);
}
.feature-grid img {
  height: 40px; width: 40px; margin-bottom: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  margin-bottom: 20px;
  position: relative;
}

/* ===================== TESTIMONIALS ======================= */
.testimonial-card {
  background: #f7fafc;
  color: #1C3144;
  border-radius: var(--radius-card);
  box-shadow: 0 3px 18px 0 rgba(28,49,68,.07);
  gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 30px 18px 26px;
  margin-bottom: 24px;
  border-left: 6px solid var(--color-accent);
  max-width: 560px;
  min-width: 0;
  font-size: 1.12rem;
  position: relative;
}
.testimonial-card h3 {
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}
.testimonial-card p {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #1C3144;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-left: 6px;
}

/* =================== TEAM MODULES ========================= */
.team-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
}
.team-snippets > div {
  flex: 1 1 220px;
  max-width: 300px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 18px 16px 18px;
  margin-bottom: 0;
  transition: box-shadow 0.14s, transform 0.11s;
}
.team-snippets > div:hover {
  box-shadow: 0 7px 16px 0 rgba(28,49,68,0.12);
  transform: translateY(-3px) scale(1.01);
}

/* =================== CONTACT BLOCKS ========================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info img {
  width: 22px;
  height: 22px;
}
.map-snippet {
  margin-top: 7px;
  background: #f7fafc;
  border-radius: 11px;
  padding: 18px;
  color: var(--color-primary);
  font-size: 1rem;
  box-shadow: 0 1px 9px 0 rgba(28,49,68,0.06);
}

/* ==================== FOOTER ============================ */
footer {
  background: #1C3144;
  color: #fff;
  padding: 42px 0 12px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #F9B233;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 7px;
  font-weight: 500;
  transition: background 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: var(--color-primary);
}
footer p {
  color: #e6f0f5;
  font-size: 0.97rem;
  text-align: center;
}

/* ================= RESPONSIVE BREAKPOINTS ======================= */
@media (max-width: 1080px) {
  .feature-grid > div,
  .team-snippets > div {
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper {
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  section {
    padding: 24px 0;
    margin-bottom: 36px;
  }
  .feature-grid,
  .team-snippets {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 10px 14px 14px;
    font-size: 1rem;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.42rem; }
  h2 { font-size: 1.14rem; }
  .cta-btn {
    padding: 12px 13px;
    font-size: 1rem;
  }
  .feature-grid > div,
  .team-snippets > div,
  .card {
    padding: 14px 7px;
  }
  .testimonial-card {
    padding: 12px 7px 10px 8px;
    font-size: 0.99rem;
  }
}

/* =================== ANIMATIONS & MICROINTERACTIONS ================== */
.cta-btn, .card, .feature-grid > div, .testimonial-card, .team-snippets > div {
  transition: box-shadow 0.23s, background 0.19s, color 0.17s, transform 0.16s;
}

/* =================== COOKIES CONSENT BANNER & MODAL ================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 -4px 28px rgba(28,49,68,0.15);
  z-index: 6010;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 21px 14px 23px 14px;
  animation: slideUp 0.45s cubic-bezier(.33,1.26,.6,1) 0.18s 1 both;
}
@keyframes slideUp {
  from { transform: translateY(140%); opacity:0.3; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-consent-content {
  max-width: 690px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.01rem;
}
.cookie-btn-set {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.99rem;
  padding: 10px 19px;
  border-radius: 24px;
  border: none;
  background: var(--color-accent);
  color: var(--color-primary);
  margin-right: 6px;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-med);
  transition: background 0.14s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-error);
  border: 1.5px solid var(--color-error);
}
.cookie-btn.reject:hover {
  background: #fbe8ec;
  color: var(--color-error);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28,49,68,0.66);
  z-index: 6100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s cubic-bezier(.33,1.15,.32,1.18) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 22px;
  box-shadow: 0 10px 40px 0 rgba(28,49,68,0.22);
  padding: 34px 32px 28px 32px;
  max-width: 420px;
  width: 94vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: popUp 0.22s cubic-bezier(.71,2,0,.82) both;
}
@keyframes popUp {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 { margin-bottom: 4px; font-size: 1.21rem; font-family: var(--font-display); }
.cookie-category {
  font-size: 1rem;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  border: none;
  width: 38px;
  height: 22px;
  background: #d1e3f3;
  border-radius: 14px;
  position: relative;
  transition: background 0.12s;
  outline: none; cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.13s;
}
.cookie-toggle:checked::before {
  left: 18px;
  background: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cookie-modal-close {
  background: transparent;
  color: var(--color-primary);
  border: 0;
  font-size: 1.8rem;
  position: absolute;
  right: 18px;
  top: 10px;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--color-error);
}
@media (max-width: 640px) {
  .cookie-modal {
    padding: 18px 7px 14px 7px;
  }
  .cookie-consent-content {
    font-size: 0.93rem;
    padding-right: 0;
  }
}

/* ==========================================================================
      VIBRANT ENERGETIC ENHANCEMENTS (COLOR, EFFECTS, TYPOGRAPHY)
   ========================================================================== */
body, .content-wrapper, .text-section {
  background: #fafbfc;
}
section {
  border-radius: var(--radius-section);
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(149,182,211,0.09);
}
h1,h2,h3,h4 {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
          text-fill-color: transparent;
}
.cta-btn, .cookie-btn {
  box-shadow: 0 3px 14px 0 rgba(249,178,51,0.14), 0 2px 9px rgba(28,49,68,0.08);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.feature-grid > div {
  border-bottom: 4px solid var(--color-accent);
  position: relative;
  z-index: 1;
}
.feature-grid > div:before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 40px; height: 6px;
  background: var(--color-accent);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.feature-grid > div:hover:before {
  background: var(--color-secondary);
  transition: background 0.19s;
}

input, textarea, select {
  border: 2px solid var(--color-secondary);
  border-radius: 14px;
  padding: 8px 14px;
}

::-webkit-input-placeholder { color: #A0A5B0; opacity: 1; }
::-moz-placeholder {color: #A0A5B0; opacity: 1;}
:-ms-input-placeholder { color: #A0A5B0; opacity: 1;}
::placeholder { color: #A0A5B0; opacity: 1;}

/* ================== VISUAL HIERARCHY ========================= */
h1 { font-weight: 800; letter-spacing: 0.03em; }
h2, h3 { font-weight: 700; letter-spacing: 0.015em; }
.cta-btn, .cookie-btn { font-weight: 800; }

ul, ol {
  list-style: disc inside;
  margin-bottom: 12px;
  margin-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--color-primary);
}

/* ================== MISC SPACING AND FLEX CORRECTIONS ================== */
section > .container > .content-wrapper > *,
section > .container > .content-wrapper > .feature-grid,
section > .container > .content-wrapper > .card-container,
section > .container > .content-wrapper > .team-snippets,
section > .container > .content-wrapper > .testimonial-card {
  margin-bottom: 20px;
}
section > .container > .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* Prevent content overlap, ensure breathing room */
.feature-grid > div,
.team-snippets > div,
.card {
  margin-bottom: 0;
}

/* ==================== ACCESSIBILITY HELPERS =================== */
:focus-visible {
  outline: 3px dashed var(--color-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   END OF CSS STYLESHEET
   ========================================================================== */
