/* ==========================================================================
   Erlen – pages intérieures
   (Pädagogik & Unterricht, Schule & Team, Aufnahme & Schulgeld, Kontakt)
   S'appuie sur erlen-shapes.css (formes) et erlen-layout.css (base, hero, boutons).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Éléments communs
   -------------------------------------------------------------------------- */

/* Hero des pages : même bloc que l'accueil, typo un peu plus compacte */
.erl-hero--page { grid-template-columns: minmax(0, 560px) minmax(0, 550px); min-height: 520px; }
.erl-hero--page .erl-hero__title { font-size: clamp(36px, 4.2vw, 56px); }
.erl-hero--page .erl-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.erl-hero--page .erl-photo,
.erl-hero--page .erl-blob { justify-self: end; }

.erl-eyebrow--caps { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* En-tête de section : sur-titre vert + titre en forme */
.erl-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.erl-head--center { align-items: center; text-align: center; }

.erl-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tertiary, #6cd48c);
}

.erl-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #3b3b3b;
}
.erl-text p { margin: 0 0 1em; }
.erl-text p:last-child { margin-bottom: 0; }

.erl-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* Deux colonnes génériques */
.erl-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.erl-cols--start { align-items: start; }

/* Cartes en forme (même logique que les titres, en plus grand) */
.erl-card-shape {
  --r: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 30px 32px;
}
.erl-card-shape h3 { margin: 0; font-size: 21px; font-weight: 800; color: #18242e; }
.erl-card-shape--a { --tl-y: 10px; --br-x: 6px; }
.erl-card-shape--b { --tr-y: 12px; --bl-x: 8px; }
.erl-card-shape--c { --tl-x: 6px; --br-y: 12px; }

.erl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.erl-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Carte blanche simple (comme les actualités) */
.erl-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
}
.erl-box h3 { margin: 0; font-size: 21px; font-weight: 800; color: #18242e; }

/* Badges colorés (Stichwörter) */
.erl-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.erl-tag {
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--fill, #fff);
  color: #18242e;
  font-size: 14px;
  font-weight: 800;
}

/* Tags posés dans un blob : lignes centrées, tous en lime (contraste avec le fond pâle) */
.erl-blob .erl-tags { justify-content: center; }
.erl-blob .erl-tag[class] { --fill: var(--lime, #bbf34b); color: #18242e; }


/* Les conteneurs Bricks alignent leurs enfants à gauche sans les étirer :
   les grilles et en-têtes centrés prennent donc explicitement toute la largeur */
.erl-head--center,
.erl-cols, .erl-grid-2, .erl-grid-3, .erl-band,
.erl-pillars-row, .erl-quote-panel, .erl-people { width: 100%; }


/* --------------------------------------------------------------------------
   Pädagogik & Unterricht
   -------------------------------------------------------------------------- */
.erl-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 24px;
  margin-top: 40px;
}
.erl-pillars-row .erl-blob { --blob-width: 420px; }
.erl-pillars-row .erl-blob__title { font-size: 26px; font-weight: 800; }

.erl-quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  color: #fff;
}
.erl-quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-style: normal;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
}
.erl-quote-source { margin: 0; font-size: 14px; font-weight: 800; color: var(--secondary, #cbbef3); }
.erl-quote-panel .erl-kicker { color: var(--mint, #98e3b4); }
.erl-quote-panel .erl-blob { --blob-width: 440px; justify-self: end; }
.erl-quote-panel .erl-blob__title { font-size: 26px; font-weight: 800; line-height: 1.25; }


/* --------------------------------------------------------------------------
   Schule & Team
   -------------------------------------------------------------------------- */
.erl-message .erl-blob__title { color: #18242e; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.25; }
.erl-message .erl-blob__text  { margin: 0; color: #18242e; font-size: 15px; line-height: 1.5; max-width: 360px; }
.erl-message { --blob-width: 600px; justify-self: end; }

.erl-panel .erl-grid-2 { margin-top: 32px; }

.erl-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.erl-band__text {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.55;
  color: #18242e;
}

.erl-team-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
}
.erl-team-quote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: #18242e; }

.erl-team-shapes .erl-blob { --blob-width: 400px; --blob-title-color: #18242e; }
.erl-team-shapes .erl-blob__title { font-size: 22px; font-weight: 800; }


/* --------------------------------------------------------------------------
   Aufnahme & Schulgeld
   -------------------------------------------------------------------------- */
.erl-steps { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.erl-step {
  --r: 26px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
}
.erl-step__num   { margin: 0; font-size: 24px; font-weight: 900; color: var(--step-color, var(--tertiary, #6cd48c)); }
.erl-step__title { margin: 0; font-size: 20px; font-weight: 800; color: #18242e; }

.erl-fees { color: #fff; padding-bottom: 110px; }
.erl-fees .erl-kicker { color: var(--mint, #98e3b4); }
.erl-fees .erl-text   { color: rgb(255 255 255 / .85); }
.erl-fees .erl-title  { --title-color: #18242e; }

.erl-prices { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.erl-price {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
}
.erl-price__label { margin: 0; font-size: 15px; font-weight: 800; color: #18242e; }
.erl-price__amount { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.erl-price__tag {
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--fill, #eee);
  color: #18242e;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}
.erl-price__extra { margin: 0; font-size: 12px; color: #5e6b72; }
.erl-fees__note { margin: 0; font-size: 14px; font-weight: 800; color: var(--mint, #98e3b4); }


/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.erl-hero-logo { --blob-width: 430px; }
.erl-hero-logo .brxe-image { width: 62%; height: auto; opacity: .35; }

.brxe-text-link.erl-pill--lg { margin-top: 0; padding: 14px 26px; font-size: 26px; font-weight: 900; }
.erl-address { margin: 0; font-size: 18px; line-height: 1.6; color: #18242e; }

.erl-place {
  --r: 28px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  color: #18242e;
  text-decoration: none;
}
.erl-place .brxe-icon { font-size: 28px; color: var(--tertiary, #6cd48c); }
.erl-place__title { margin: 0; font-size: 20px; font-weight: 800; }
.erl-place__text  { margin: 0; font-size: 14px; color: #5e6b72; }

.erl-people { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.erl-person {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
}
.erl-person__initial {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 58% 42% 55% 45% / 52% 60% 40% 48%;
  background: var(--fill, #eee);
  font-size: 20px;
  font-weight: 900;
  color: #18242e;
}
.erl-person h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #18242e; }
.erl-person .erl-footer__details { color: #5e6b72; }
.erl-person .erl-footer__note { color: #18242e; margin-top: 8px; }


/* --------------------------------------------------------------------------
   Beitrag (Neuigkeit) – template d'article
   -------------------------------------------------------------------------- */
.erl-post-hero { min-height: 420px; }
.erl-post-hero:not(:has(.erl-photo)) { grid-template-columns: minmax(0, 860px); } /* pas d'image : une colonne */
.erl-post-title { font-size: clamp(32px, 3.8vw, 52px); }
.erl-title.erl-title--sm { font-size: var(--text-xl, 32px); }

.brxe-text-link.erl-backlink {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary, #203147);
  text-decoration: none;
}
.brxe-text-link.erl-backlink:hover { text-decoration: underline; text-decoration-color: var(--tertiary, #6cd48c); text-underline-offset: 4px; }

.erl-prose {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.7;
  color: #2b2b2b;
}
.erl-prose > * > :first-child { margin-top: 0; }
.erl-prose :where(p, ul, ol, figure, blockquote, table) { margin: 0 0 1.2em; }
.erl-prose :where(h2, h3, h4) { margin: 1.8em 0 .5em; line-height: 1.2; font-weight: 800; color: #18242e; }
.erl-prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.erl-prose h3 { font-size: clamp(21px, 2vw, 26px); }
.erl-prose h4 { font-size: 20px; }
.erl-prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--tertiary, #6cd48c); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.erl-prose a:hover { text-decoration-color: var(--primary, #203147); }
.erl-prose :where(ul, ol) { padding-left: 1.3em; }
.erl-prose li { margin-bottom: .35em; }
.erl-prose ul li::marker { color: var(--tertiary, #6cd48c); font-size: 1.2em; }
.erl-prose strong { font-weight: 800; color: #18242e; }
.erl-prose blockquote {
  padding: 24px 28px;
  border: 0;
  border-radius: 24px 32px 28px 20px;
  background: var(--secondary-l-3, #ebe5ff);
  font-size: 1.1em;
  font-weight: 700;
  font-style: normal;
  color: #18242e;
}
.erl-prose blockquote p:last-child { margin-bottom: 0; }
.erl-prose :where(img, video, iframe) { max-width: 100%; height: auto; border-radius: 24px; }
.erl-prose figcaption { margin-top: .5em; font-size: 14px; color: #5e6b72; text-align: center; }
.erl-prose hr { margin: 2em 0; border: 0; border-top: 3px dotted var(--secondary, #cbbef3); }

.erl-cards--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 32px;
}
@media (max-width: 767px) {
  .erl-cards--grid { grid-template-columns: minmax(0, 1fr); }
  .erl-post-hero { min-height: 0; }
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .erl-hero--page { min-height: 0; }
  .erl-hero--page .erl-photo,
  .erl-hero--page .erl-blob { justify-self: center; }

  .erl-cols,
  .erl-quote-panel,
  .erl-band,
  .erl-pillars-row,
  .erl-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .erl-quote-panel .erl-blob,
  .erl-message { justify-self: center; }
}

@media (max-width: 767px) {
  .erl-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .erl-price { flex-direction: column; align-items: flex-start; }
  .erl-price__amount { align-items: flex-start; text-align: left; }
}
