/* =======================================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* =======================================================
   Brand: Pomer Palme Akademie – Modern Gradient Theme
   ======================================================= */
:root {
  --primary: #1D3557;
  --primary-rgb: 29,53,87;
  --secondary: #A8DADC;
  --secondary-rgb: 168,218,220;
  --accent: #F1FAEE;
  --accent-rgb: 241,250,238;
  --btn-gradient: linear-gradient(90deg, #1D3557 0%, #A8DADC 100%);
  --btn-hover-gradient: linear-gradient(90deg, #A8DADC 0%, #1D3557 100%);
  --shadow-main: 0 4px 20px 0 rgba(29,53,87,0.07);
  --shadow-card: 0 2px 8px rgba(29,53,87,0.08);
  --shadow-elevated: 0 8px 32px rgba(29,53,87,0.10);
  --radius: 18px;
  --radius-small: 10px;
  --radius-btn: 32px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Roboto:400,500,700&display=swap');

html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--primary);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  min-height: 100vh;
  font-size: 16px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, table, blockquote, pre {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #253248;
  line-height: 1.75;
}
ul li, ol li {
  margin-bottom: 4px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
.text-section h2, .text-section h3 {
  margin-top: 24px;
}

/* =========================
   LAYOUT & CONTAINERS
   ========================= */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  padding: 32px 22px;
  margin-bottom: 40px;
}

.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
  padding: 22px 18px;
  flex: 1 1 320px;
  min-width: 280px;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #1d3557;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  max-width: 540px;
  transition: box-shadow 0.2s;
}
.testimonial-card .stars {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid (index, lernangebote) */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 230px;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 20px;
}
.features-grid > div:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px) scale(1.035);
}
.features-grid img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(29,53,87,0.08);
  position: relative;
  z-index: 40;
}
header .container {
  padding: 0 18px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
nav > a img {
  height: 44px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav ul li {
  display: flex;
}
nav ul li a {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  font-size: 1.08rem;
  padding: 8px 10px;
  border-radius: var(--radius-btn);
  transition: background 0.15s, color 0.15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: rgba(168,218,220,0.2);
  color: var(--secondary);
}
.btn.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 34px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-main);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.18s, transform 0.15s;
  font-family: var(--font-display);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: var(--btn-hover-gradient);
  color: #1D3557;
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px) scale(1.03);
}
.btn {
  background: #A8DADC;
  color: #1D3557;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.18s, color 0.15s;
  cursor: pointer;
  margin-top: 10px;
}
.btn:hover, .btn:focus {
  background: #1D3557;
  color: #fff;
  box-shadow: var(--shadow-elevated);
}

/* Hide mobile nav by default on desktop */
.mobile-menu-toggle,
.mobile-menu, .mobile-menu-close {
  display: none;
}

/* =========================
   HERO
   ========================= */
.hero {
  background: linear-gradient(120deg, #A8DADC 0%, #F1FAEE 100%);
  padding: 60px 0 40px;
  min-height: 350px;
  width: 100%;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.97);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 0;
  max-width: 690px;
  width: 100%;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 22px;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 28px;
  color: #2a3d5b;
}

/* =========================
   CTA BANNER
   ========================= */
.cta-banner {
  background: linear-gradient(90deg, #A8DADC 20%, #F1FAEE 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-main);
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 20px;
}
.cta-banner h2 {
  margin-bottom: 18px;
  color: var(--primary);
}

/* =========================
   TABLES
   ========================= */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  font-size: 1rem;
  border-bottom: 1px solid #e8ebed;
}
tr:last-child td {
  border-bottom: none;
}
th {
  background: #A8DADC;
  color: #1D3557;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-small) var(--radius-small) 0 0;
}
td {
  background: #fff;
  color: #1D3557;
}

/* =========================
   MAP PLACEHOLDER
   ========================= */
.map-placeholder {
  background: #F1FAEE;
  color: #1D3557;
  border-radius: var(--radius-small);
  padding: 20px;
  text-align: center;
  margin: 24px 0 8px 0;
  box-shadow: var(--shadow-card);
  font-weight: 500;
}

/* =========================
   FAQ ACCORDION
   ========================= */
.faq-accordion h2 {
  cursor: pointer;
  background: #A8DADC;
  color: var(--primary);
  padding: 14px 20px;
  border-radius: var(--radius-small);
  margin: 16px 0 2px 0;
  transition: background 0.18s, color 0.18s;
  font-size: 1.08rem;
}
.faq-accordion h2:hover {
  background: var(--primary);
  color: #fff;
}
.faq-accordion div {
  background: #fff;
  border-radius: var(--radius-small);
  padding: 16px 20px;
  margin-bottom: 14px;
  transition: max-height 0.3s, opacity 0.25s;
  color: var(--primary);
  font-size: 1rem;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(29,53,87,0.09);
}
footer section {
  padding: 18px 0 0 0;
}
footer .container {
  padding: 0 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 18px 0;
  margin-bottom: 0;
}
.footer-logo img {
  width: 66px;
  height: auto;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.footer-menu a {
  color: #A8DADC;
  transition: color 0.16s;
  margin-bottom: 4px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
}
.footer-contact p {
  color: #f5f8fa;
  font-size: 0.97rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1050px) {
  .container { max-width: 990px; }
  .features-grid > div, .card { min-width: 220px; }
}
@media (max-width: 900px) {
  nav ul { gap: 16px; }
  .footer-menu { flex-direction: row; flex-wrap: wrap; }
  .footer-menu a { margin-right: 12px; }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  .container {
    padding: 0 6vw;
  }
  nav {
    gap: 8px;
    padding: 14px 0;
  }
  .content-wrapper, .cta-banner {
    padding: 22px 8px;
  }
  .hero .content-wrapper {
    padding: 30px 12px;
  }
  .section {
    padding: 30px 8px !important;
  }
  .footer-logo {
    margin-bottom: 10px;
  }
  .features-grid, .content-grid, .card-container {
    gap: 12px;
  }
  .features-grid > div, .card {
    padding: 16px 10px;
    min-width: 140px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    padding: 13px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding: 30px 0 20px;
  }
  .footer-menu { flex-direction: column; }
  .footer-menu a { margin-right: 0; }
  .content-wrapper {
    padding: 16px 4px;
  }
}
@media (max-width: 650px) {
  .footer-contact br { display: none; }
  .footer-contact p { font-size: 0.9rem; }
  .content-wrapper { padding: 8px 2px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .section { padding: 18px 2px !important; }
}
@media (max-width: 900px) {
  .content-grid, .text-image-section {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    align-items: flex-start !important;
  }
  .footer-menu { gap: 6px; }
}

/* =========================
   MOBILE BURGER MENU
   ========================= */
@media (max-width: 1050px) {
  nav ul, nav .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 99;
    background: var(--btn-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    width: 48px;
    height: 48px;
    font-size: 2.1rem;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: background 0.22s, transform 0.15s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--btn-hover-gradient);
    transform: scale(1.10);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 360px;
    height: 100vh;
    background: linear-gradient(120deg, #A8DADC 0%, #F1FAEE 100%);
    box-shadow: -8px 0 32px rgba(29,53,87,0.13);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.77,0,.18,1);
    opacity: 0.98;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    display: flex;
    border: none;
    background: none;
    color: #1D3557;
    font-size: 2.2rem;
    margin: 16px 22px 0 0;
    cursor: pointer;
    z-index: 1302;
    transition: color 0.15s, transform 0.13s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: #457b9d;
    transform: scale(1.10);
  }
  .mobile-nav {
    width: 100%;
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    padding-left: 36px;
    gap: 10px;
  }
  .mobile-nav a {
    display: block;
    width: 90%;
    padding: 15px 8px 15px 5px;
    border-radius: var(--radius-small);
    color: #1D3557;
    background: none;
    font-family: var(--font-display);
    font-size: 1.17rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 3px;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #c3e6e9;
    color: #457B9D;
  }
}

/* lock scroll on body when mobile menu is open (apply via JS) */
body.mobile-menu-open {
  overflow: hidden;
}

/* =========================
   TRANSITIONS
   ========================= */
:focus {
  outline: 2px solid #A8DADC;
  outline-offset: 2px;
}
.btn, .btn-primary, .card, .features-grid > div, .testimonial-card, .cta-banner, .mobile-menu-toggle {
  transition: box-shadow 0.18s, background 0.22s, color 0.15s, transform 0.15s;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #1d3557;
  box-shadow: 0 -4px 24px rgba(29,53,87,0.13);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 16px 16px;
  gap: 18px;
  font-size: 1rem;
  opacity: 0.995;
  transition: bottom 0.3s, opacity 0.25s;
}
.cookie-banner__text {
  flex: 1 1 220px;
  max-width: 680px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.18s, color 0.16s, transform 0.12s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover,
.cookie-banner .cookie-btn.accept:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.03);
}
.cookie-banner .cookie-btn.reject {
  background: #A8DADC;
  color: #1D3557;
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: #457b9d;
  color: #fff;
  transform: scale(1.03);
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: #1D3557;
  border: 2px solid #A8DADC;
  padding: 8px 18px;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #F1FAEE;
  color: #457b9d;
  transform: scale(1.04);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6px 16px 6px;
    gap: 8px;
  }
  .cookie-banner__actions {
    gap: 6px;
  }
}

/* --------------------------
   Cookie settings modal
   -------------------------- */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1700;
  background: rgba(29,53,87,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  color: #1D3557;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  max-width: 420px;
  width: 94vw;
  padding: 32px 28px;
  position: relative;
  z-index: 1701;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal__header {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1D3557;
  cursor: pointer;
  z-index: 1702;
  transition: color 0.13s, transform 0.12s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: #457b9d;
  transform: scale(1.07);
}
.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal__cat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal__cat input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #A8DADC;
}
.cookie-modal__cat label {
  font-size: 1.07rem;
  cursor: pointer;
}
.cookie-modal__cat .required {
  color: #bbb;
  font-size: 0.96rem;
  margin-left: 7px;
}
.cookie-modal__footer {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  border-radius: var(--radius-btn);
}

@media (max-width: 460px) {
  .cookie-modal__content {
    padding: 16px 6px;
    max-width: 98vw;
  }
}

/* =======================================================
   MISC & UTILITIES
   ======================================================= */
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars img {
  width: 24px;
}

/* Success/error/feedback message example styling (if needed) */
.feedback-message {
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: #d8ffe4;
  color: #225447;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

/* For accessibility: clearly visible focus styles */
a:focus, button:focus, .btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus { outline: 2px solid #A8DADC; outline-offset: 1px; }

/* =========================
   PREVENT OVERLAP
   (Consistent mandatory spacing)
   ========================= */
.card, .content-wrapper, .testimonial-card, .cta-banner, .features-grid > div {
  margin-bottom: 20px;
}
.features-grid, .card-container, .content-grid, .text-image-section {
  gap: 20px !important;
}
.section + .section {
  margin-top: 60px !important;
}

/* =========================
   Z-INDEX CORRECTNESS
   ========================= */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 1300;
}
.mobile-menu-toggle {
  z-index: 1000;
}
.cookie-modal {
  z-index: 1700;
}

/* =========================
   PRINT
   ========================= */
@media print {
  header, footer, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #222; }
  .content-wrapper, .card, .testimonial-card, .cta-banner { box-shadow: none !important; background: transparent !important; }
}
