/* Isama Dojo Mannheim, single stylesheet.
   Part 1: shared EDC-FMA design system.  Part 2: Mannheim identity layer (starts at the MANNHEIM IDENTITY marker). */
/* ==========================================================================
   EDC-FMA redesign: shared design system for all five pages.
   Self-contained (does not depend on the old template's style.css).
   Accent green is the existing site green (#7cc576). To change the accent,
   edit --accent and --accent-ink below.
   ========================================================================== */

/* Self-hosted fonts (no connection to Google, which matters for German privacy law) */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-condensed-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/open-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #151515;
  --ink-2: #1d1d1d;
  --ink-3: #2a2a2a;
  --paper: #ffffff;
  --stone: #f4f3ef;
  --line: #e0ded6;
  --line-dark: #343434;
  --text: #2a2a2a;
  --muted: #5c5c5c;
  --muted-dark: #bdbdbd;
  --accent: #7cc576;        /* fills, borders, text on dark */
  --accent-ink: #357a31;    /* accent text on light backgrounds (AA contrast) */
  --accent-soft: #a3dc9e;
  --font-head: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: #245721; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; color: inherit; }
ul { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid #1f5a1c; outline-offset: 3px; }
.edc-section--dark :focus-visible, .edc-hero :focus-visible, .edc-header :focus-visible, .edc-footer :focus-visible, .edc-sticky :focus-visible { outline-color: var(--accent); }

.edc-wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.edc-narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.edc-center { text-align: center; }
.edc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.edc-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: #0e1a0d; padding: .75rem 1rem; font-weight: 700; }
.edc-skip:focus { left: 0; }
.d-block { display: block !important; }

/* ---------- Header ---------- */
.edc-header { position: sticky; top: 0; z-index: 50; background: #000; border-bottom: 1px solid #262626; }
.edc-header__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }
.edc-logo { display: block; flex: none; }
.edc-logo img { height: 44px; width: auto; max-width: 220px; }
.edc-nav { display: flex; align-items: center; gap: 1.5rem; white-space: nowrap; }
.edc-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.edc-nav ul a { display: inline-block; font: 600 .8125rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: #e8e8e8; text-decoration: none; padding: .55rem 0; border-bottom: 2px solid transparent; }
.edc-nav ul a:hover, .edc-nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.edc-nav__cta { display: flex; gap: .6rem; }
.edc-nav__cta .edc-btn { min-height: 42px; padding: .6rem 1.1rem; font-size: .75rem; }
.edc-burger { display: none; width: 46px; height: 46px; background: none; border: 1px solid #484848; border-radius: var(--radius); cursor: pointer; position: relative; padding: 0; }
.edc-burger span, .edc-burger span::before, .edc-burger span::after { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; content: ""; transition: transform .2s, top .2s, background .2s; }
.edc-burger span { top: 21px; }
.edc-burger span::before { top: -7px; left: 0; right: 0; }
.edc-burger span::after { top: 7px; left: 0; right: 0; }
.edc-header.is-open .edc-burger span { background: transparent; }
.edc-header.is-open .edc-burger span::before { top: 0; transform: rotate(45deg); }
.edc-header.is-open .edc-burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1179px) {
  .edc-burger { display: block; }
  .edc-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #000; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 24px 1.5rem; border-bottom: 1px solid #262626; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .edc-header.is-open .edc-nav { display: flex; }
  .edc-nav ul { flex-direction: column; gap: 0; }
  .edc-nav ul a { display: block; padding: .95rem 0; border-bottom: 1px solid #2c2c2c; font-size: .875rem; }
  .edc-nav__cta { flex-direction: column; }
  .edc-nav__cta .edc-btn { min-height: 48px; font-size: .8125rem; }
}

/* ---------- Buttons ---------- */
.edc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.7rem; border-radius: 3px; border: 2px solid transparent; font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.edc-btn--primary { background: var(--accent); border-color: var(--accent); color: #0e1a0d; }
.edc-btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #0e1a0d; }
.edc-btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.edc-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.edc-btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.edc-btn--outline:hover { background: var(--ink); color: #fff; }
button.edc-btn { font-family: var(--font-head); }

/* ---------- Typography helpers ---------- */
.edc-eyebrow { font: 600 .8125rem/1.3 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 1rem; }
.edc-hero .edc-eyebrow, .edc-section--dark .edc-eyebrow { color: var(--accent); }
.edc-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
.edc-h3 { font-size: 1.25rem; }
.edc-lead { font-size: 1.2rem; line-height: 1.65; }
.edc-muted { color: var(--muted); }
.edc-micro { font-size: .9rem; color: var(--muted); margin: .75rem 0 0; }
.edc-hero .edc-micro { color: var(--muted-dark); }

/* ---------- Hero ---------- */
.edc-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.edc-hero h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); letter-spacing: -.02em; margin-bottom: .45em; }
.edc-hero p { color: #dcdcdc; }
.edc-hero .edc-lead { color: #fff; }
.edc-hero__media { position: absolute !important; inset: 0; z-index: -2; margin: 0; border: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; }
.edc-hero__media img { object-position: 60% 40%; }
.edc-hero--home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,21,21,.93) 0%, rgba(21,21,21,.8) 45%, rgba(21,21,21,.4) 100%); }
.edc-hero__in { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 44rem; }
.edc-hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; max-width: 44rem; }
.edc-cta p { font-size: .95rem; line-height: 1.5; margin: .75rem 0 0; color: #c9c9c9; }
.edc-cta .edc-btn { width: 100%; }
@media (max-width: 640px) {
  .edc-hero--home::after { background: linear-gradient(180deg, rgba(21,21,21,.82), rgba(21,21,21,.94)); }
  .edc-hero__cta { grid-template-columns: 1fr; gap: 1.25rem; }
}
/* missing hero image: show a small tag, not a dashed box */
.edc-hero__media.is-missing { background: radial-gradient(circle at 75% 30%, #262626, #151515 70%); }
.edc-hero__media.is-missing::before { position: absolute; right: 16px; bottom: 12px; text-align: right; max-width: 22rem; font-size: .75rem; line-height: 1.4; color: #8a8a8a; white-space: pre-line; }

/* page heroes (split text + image) */
.edc-hero--page .edc-split { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.edc-hero--page h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .3em; }
.edc-hero__sub { font: 600 clamp(1.1rem, 2vw, 1.4rem)/1.4 var(--font-head); color: var(--accent) !important; margin-bottom: 1.25rem; }
.edc-hero--text .edc-hero__in { max-width: 48rem; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.edc-hero__links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; align-items: center; }
.edc-hero a:not(.edc-btn) { color: var(--accent); }
.edc-hero a:not(.edc-btn):hover { color: #fff; }

/* ---------- Sections ---------- */
.edc-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.edc-section--stone { background: var(--stone); }
.edc-section--dark { background: var(--ink); color: #e6e6e6; }
.edc-section--dark h2, .edc-section--dark h3 { color: #fff; }
.edc-section--dark p { color: #d2d2d2; }
.edc-section--dark a:not(.edc-btn) { color: var(--accent); }
.edc-section--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.edc-section__head { max-width: 46rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.edc-section__head p:last-child { margin-bottom: 0; }

.edc-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.edc-split--wide-text { grid-template-columns: 1.15fr .85fr; }
.edc-split--rev .edc-split__media { order: -1; }
.edc-split.no-media { grid-template-columns: 1fr; max-width: 46rem; margin-left: auto; margin-right: auto; }
@media (max-width: 859px) {
  .edc-split, .edc-split--wide-text { grid-template-columns: 1fr; }
  .edc-split--rev .edc-split__media { order: 0; }
}
.edc-prose p:last-child { margin-bottom: 0; }

.edc-pull { font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.4 var(--font-head); color: #fff; border-left: 4px solid var(--accent); padding: .25rem 0 .25rem 1.25rem; margin: 2rem auto 0; max-width: 40rem; text-align: left; }

/* ---------- Media / image placeholders ---------- */
.edc-media { position: relative; margin: 0; background: #232323; border-radius: var(--radius); overflow: hidden; aspect-ratio: var(--ar, 4 / 3); }
.edc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edc-media.is-missing { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border: 2px dashed #6a6a6a; color: #cfcfcf; background: #262626; }
.edc-section--stone .edc-media.is-missing, .edc-section:not(.edc-section--dark):not(.edc-section--stone) .edc-media.is-missing { background: #ecebe6; border-color: #9a978c; color: #4a4a46; }
.edc-media.is-missing::before { content: "IMAGE NEEDED\A" attr(data-need) "\A" attr(data-file); white-space: pre-line; font-size: .8rem; line-height: 1.5; max-width: 26rem; }
.edc-media--optional.is-missing { display: none; }
.edc-media--tall { --ar: 4 / 5; }

/* ---------- Cards, grids ---------- */
.edc-grid { display: grid; gap: 1.5rem; }
.edc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.edc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.edc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 999px) { .edc-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 859px) { .edc-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .edc-grid--2, .edc-grid--4 { grid-template-columns: 1fr; } }
.edc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; height: 100%; }
.edc-card h3 { font-size: 1.15rem; margin-bottom: .5em; }
.edc-card p:last-child { margin-bottom: 0; }
.edc-card p { font-size: .98rem; }
.edc-section--dark .edc-card { background: var(--ink-2); border-color: var(--line-dark); }
.edc-card--img { padding: 0; overflow: hidden; }
.edc-card--img .edc-media { border-radius: 0; --ar: 16 / 9; }
.edc-card--img .edc-card__body { padding: 1.5rem 1.75rem 1.75rem; }

/* link cards (home: explore) */
.edc-linkcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .2s, transform .2s; }
.edc-linkcard:hover { border-color: var(--accent-ink); transform: translateY(-2px); color: inherit; }
.edc-linkcard .edc-media { --ar: 16 / 9; border-radius: 0; }
.edc-linkcard__label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font: 700 .9375rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--ink); }
.edc-linkcard__label span { color: var(--accent-ink); font-size: 1.25rem; }

/* steps */
.edc-step { text-align: center; }
.edc-step__num { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto .85rem; border-radius: 50%; background: var(--accent); color: #0e1a0d; font: 700 1.125rem/1 var(--font-head); }
.edc-card.edc-step { display: flex; flex-direction: column; }
.edc-card.edc-step .edc-step__act { margin-top: auto; padding-top: 1.1rem; }

/* stats */
.edc-stat { text-align: center; padding: .5rem 1rem; }
.edc-stat strong { display: block; font: 700 clamp(1.6rem, 3vw, 2.25rem)/1.15 var(--font-head); color: var(--ink); margin-bottom: .25rem; }
.edc-stat span { color: var(--muted); font-size: .98rem; }

/* fee cards */
.edc-fee strong { display: block; font: 700 2rem/1.1 var(--font-head); color: var(--ink); margin: .35rem 0 .6rem; }
.edc-fee strong small { font-size: 1rem; font-weight: 600; color: var(--muted); }

/* lists with check marks */
.edc-checks { list-style: none; padding: 0; margin: 0 0 1.1em; }
.edc-checks li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.edc-checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .9rem; height: .5rem; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg) translateY(-50%); }

/* study items (students page) */
.edc-items { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.edc-item { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.edc-item h3 { font-size: 1.1rem; margin-bottom: .35em; }
.edc-item p { margin: 0; font-size: .98rem; color: var(--muted); }

/* ---------- Weapons relationship diagram ---------- */
.edc-map { display: flex; flex-direction: column; align-items: center; margin-top: 2.5rem; }
.edc-map__root { width: min(100%, 22rem); text-align: center; background: var(--ink-2); border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.edc-map__root .edc-media { --ar: 16 / 9; border-radius: 0; }
.edc-map__label { padding: 1rem 1.25rem 1.1rem; }
.edc-map__label strong { display: block; font: 700 1.05rem/1.25 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.edc-map__label span { display: block; font-size: .85rem; color: var(--muted-dark); margin-top: .2rem; }
.edc-map__stem { width: 2px; height: 26px; background: #5a5a5a; }
.edc-map__principles { text-align: center; font: 600 .8125rem/1.5 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid #3c3c3c; border-radius: 999px; padding: .6rem 1.4rem; background: #1a1a1a; }
.edc-map__branches { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; width: 100%; padding-top: 26px; margin: 0; list-style: none; padding-left: 0; padding-bottom: 0; }
.edc-map__branches::before { content: ""; position: absolute; top: 0; left: 12.5%; right: 12.5%; height: 2px; background: #5a5a5a; }
.edc-map__node { position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; text-align: center; }
.edc-map__node::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: #5a5a5a; z-index: 1; }
.edc-map__node .edc-media { --ar: 4 / 3; border-radius: 0; }
.edc-map__node .edc-map__label strong { font-size: .9rem; }
.edc-map__caption { margin: 1.75rem auto 0; max-width: 38rem; text-align: center; color: var(--muted-dark); font-size: .95rem; }
@media (max-width: 859px) { .edc-map__branches { grid-template-columns: repeat(2, 1fr); } .edc-map__branches::before { left: 25%; right: 25%; } .edc-map__node:nth-child(n+3)::before { display: none; } .edc-map__node:nth-child(n+3) { margin-top: 0; } }
@media (max-width: 639px) {
  .edc-map__branches { grid-template-columns: 1fr; padding-top: 0; margin-left: 12px; padding-left: 22px; border-left: 2px solid #5a5a5a; }
  .edc-map__branches::before { display: none; }
  .edc-map__node::before, .edc-map__node:nth-child(n+3)::before { display: block; top: 50%; left: -22px; width: 22px; height: 2px; }
  .edc-map__root { width: 100%; }
}

/* ---------- Accordion (details/summary) ---------- */
.edc-acc { max-width: 50rem; margin: 0 auto; border-top: 1px solid var(--line); }
.edc-acc details { border-bottom: 1px solid var(--line); }
.edc-acc summary { cursor: pointer; list-style: none; padding: 1.2rem 2.75rem 1.2rem 0; font: 600 1.0625rem/1.4 var(--font-head); position: relative; color: var(--ink); }
.edc-acc summary::-webkit-details-marker { display: none; }
.edc-acc summary::after { content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--accent-ink); }
.edc-acc details[open] summary::after { content: "\2013"; }
.edc-acc__body { padding: 0 0 1.4rem; color: var(--muted); }
.edc-acc__body p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */
.edc-timeline { list-style: none; margin: 0; padding: 0; }
.edc-timeline li { position: relative; padding: 0 0 1.5rem 1.75rem; border-left: 2px solid #cfcdc4; margin-left: 6px; }
.edc-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.edc-timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-ink); }
.edc-timeline__when { display: block; font: 700 .75rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.edc-timeline__what { display: block; font-size: .98rem; line-height: 1.5; }
.edc-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.edc-aside h3 { font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }

/* people (history) */
.edc-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 0 2.5rem; }
.edc-people figure { margin: 0; }
.edc-people .edc-media { --ar: 3 / 4; }
.edc-people .edc-media img { object-position: center 20%; }
.edc-people figcaption { margin-top: .75rem; font: 600 .9rem/1.4 var(--font-head); text-align: center; }
@media (max-width: 639px) { .edc-people { grid-template-columns: 1fr; max-width: 20rem; margin-left: auto; margin-right: auto; } }

/* logo explanation */
.edc-logo-block { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.edc-logo-block img { width: 100%; max-width: 220px; margin: 0 auto; }
@media (max-width: 759px) { .edc-logo-block { grid-template-columns: 1fr; } .edc-logo-block img { max-width: 160px; } }

/* ---------- Events (also styles the admin panel's legacy markup) ---------- */
.edc-events .row, .edc-events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 0; }
.edc-events .row + .row { margin-top: 1.5rem; }
.edc-events [class*="col-"] { min-width: 0; }
.edc-events .box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; display: flex; flex-direction: column; gap: .35rem; }
.edc-events .box h3 { font-size: 1.15rem; margin: .65rem 0 .15rem; color: var(--ink); }
.edc-events .box > span:not(.recommended-badge) { color: var(--muted); font-size: .95rem; }
.edc-events .recommended-badge { align-self: flex-start; font: 700 .7rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: #0e1a0d; padding: .45rem .65rem; border-radius: 2px; }
.edc-events .btn-wrap { margin-top: auto; padding-top: 1rem; }
.edc-events .btn-buy { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.3rem; border: 2px solid var(--ink); border-radius: 3px; font: 600 .75rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.edc-events .btn-buy:hover { background: var(--ink); color: #fff; }

/* ---------- Forms ---------- */
.edc-formcard { max-width: 46rem; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.5rem); }
.edc-form { display: grid; gap: 1.15rem; text-align: left; }
.edc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 639px) { .edc-form__row { grid-template-columns: 1fr; } }
.edc-form label { display: block; font: 600 .875rem/1.3 var(--font-head); margin-bottom: .4rem; color: var(--ink); }
.edc-form label small { font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.edc-form input[type="text"], .edc-form input[type="email"], .edc-form input[type="tel"], .edc-form select, .edc-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #b4b2a8; border-radius: 3px; font: inherit; font-size: 1rem; color: #222; background: #fff; min-height: 48px; }
.edc-form textarea { min-height: 9rem; resize: vertical; }
.edc-form input:focus, .edc-form select:focus, .edc-form textarea:focus { border-color: var(--accent-ink); outline: 3px solid rgba(53,122,49,.25); outline-offset: 0; }
.edc-form__note { font-size: .9rem; color: var(--muted); margin: -.4rem 0 0; }
.edc-form__submit { text-align: center; }
.flower { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; border-radius: 3px; padding: .9rem 1.1rem; font-size: .95rem; line-height: 1.5; }
.php-email-form .loading { background: #f1f1ee; color: #444; text-align: center; }
.php-email-form .error-message { background: #fdecea; color: #7a1f16; border: 1px solid #f2b8b2; }
.php-email-form .sent-message { background: #e8f5e6; color: #1f4d1c; border: 1px solid #b7dcb3; }
.edc-form__status > div { margin-bottom: .5rem; }

/* ---------- Closing band ---------- */
.edc-closing { position: relative; isolation: isolate; text-align: center; background: var(--ink); color: #fff; overflow: hidden; }
.edc-closing .edc-media { position: absolute !important; inset: 0; z-index: -2; margin: 0; border-radius: 0; aspect-ratio: auto !important; }
.edc-closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21,21,21,.8); }
.edc-closing h2 { color: #fff; }
.edc-closing p { color: #d6d6d6; }
.edc-closing__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.edc-footer { background: #000; color: #bdbdbd; font-size: .95rem; }
.edc-footer a { color: #e6e6e6; text-decoration: none; }
.edc-footer a:hover { color: var(--accent); text-decoration: underline; }
.edc-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.edc-footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.edc-footer__brand h3 { font-size: 1.05rem; color: #fff; margin-bottom: .6rem; }
.edc-footer__brand p { font-size: .9rem; line-height: 1.6; margin: 0; }
.edc-footer h4 { font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.edc-footer ul { list-style: none; margin: 0; padding: 0; }
.edc-footer li { margin-bottom: .5rem; }
.edc-footer__bottom { border-top: 1px solid #2d2d2d; padding: 1.5rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
@media (max-width: 859px) { .edc-footer__top { grid-template-columns: 1fr 1fr; } .edc-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 1179px) { .edc-footer__bottom { padding-bottom: 5.5rem; } }

/* ---------- Mobile sticky call-to-action ---------- */
.edc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(21,21,21,.97); border-top: 1px solid #333; transition: transform .25s ease; }
.edc-sticky .edc-btn { flex: 1; min-height: 46px; padding: .6rem .5rem; font-size: .75rem; }
.edc-sticky.is-hidden { transform: translateY(110%); }
@media (max-width: 1179px) { .edc-sticky { display: flex; } }

/* ---------- Additions ---------- */
[hidden] { display: none !important; }
.edc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.edc-pair .edc-media { --ar: 4 / 5; }
.edc-pair .edc-media--optional.is-missing { display: none; }
.edc-soon { text-align: center; margin: 2rem auto 0; max-width: 40rem; }
.edc-soon__label { font: 700 .75rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .85rem; }
.edc-soon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.edc-soon li { border: 1px dashed #9a978c; border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; color: var(--muted); background: var(--paper); }

/* Transparent product-style image (no panel behind it) */
.edc-media--clear { background: transparent; border-radius: 0; overflow: visible; }
.edc-media--clear img { object-fit: contain; }

/* ---------- Chapter detail pages ---------- */
.edc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.edc-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.edc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edc-gallery--1 { grid-template-columns: 1fr; max-width: 40rem; }
.edc-gallery--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 639px) { .edc-gallery, .edc-gallery--2 { grid-template-columns: 1fr; } }
.edc-facts { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.edc-facts li { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.edc-facts li:last-child { border-bottom: 0; }
.edc-facts strong { display: block; font: 600 .78rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.edc-chapter-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.edc-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.5rem; }
.edc-team .edc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }


.edc-team__body { padding: 1.25rem 1.5rem 1.6rem; }
.edc-team__body h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.edc-team__role { font: 600 .78rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .75rem; }
.edc-team__body p:last-child { margin-bottom: 0; font-size: .95rem; }
.edc-team--1 { grid-template-columns: minmax(0, 22rem); justify-content: center; }
.edc-team .edc-team__media { --ar: 1 / 1; border-radius: 0; }
.edc-team .edc-team__media img { object-position: center 20%; }
.edc-gallery:not(:has(.edc-media:not(.is-missing))) { display: none; }

/* ---------- Text links with arrow, Locations ---------- */
.edc-more { font: 700 .8rem/1.4 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.edc-more:hover, .edc-more:focus-visible { border-bottom-color: var(--accent-ink); }
.edc-hero--text .edc-more, .edc-section--dark .edc-more { color: var(--accent); }
.edc-hero--text .edc-more:hover, .edc-section--dark .edc-more:hover { border-bottom-color: var(--accent); }
.edc-loc-region { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.25rem; }
.edc-card h3 a { color: inherit; text-decoration: none; }
.edc-card h3 a:hover { text-decoration: underline; }
.edc-card.edc-loc { display: flex; flex-direction: column; } .edc-card.edc-loc .edc-step__act { margin-top: auto; padding-top: .75rem; }
.edc-more--soon { color: var(--muted); border-bottom: 0; cursor: default; }

/* ---------- Optional hero video (sits over the still image, under the dark overlay) ---------- */
.edc-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; background: transparent; }
@media (prefers-reduced-motion: reduce) { .edc-hero__video { display: none; } }

/* Contact-form confirmation pop-up */
.edc-modal[hidden] { display: none; }
.edc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.edc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.edc-modal__box { position: relative; background: #fff; color: #222; max-width: 28rem; width: 100%; padding: 2rem 1.75rem; border-radius: var(--radius, 6px); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); outline: none; }
.edc-modal__box h2 { margin: 0 0 .75rem; font-size: 1.6rem; }
.edc-modal__lead { margin: 0 0 .75rem; font-size: 1.05rem; }
.edc-modal__note { margin: 0 0 1.25rem; font-size: .92rem; color: #555; }
.edc-modal__note:empty { display: none; }
html.edc-modal-open { overflow: hidden; }

/* Locations: whole chapter card is the link (the button inside is the real link; its ::after covers the card) */
.edc-loc--link { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.edc-loc__btn { width: 100%; }
.edc-loc__btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.edc-loc--link:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.edc-loc--link:hover .edc-loc__btn { background: var(--ink); color: #fff; }
.edc-loc--link:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.edc-loc__btn:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .edc-loc--link { transition: none; } .edc-loc--link:hover { transform: none; } }

/* ---------- Event cards: whole card is clickable (same behavior as location cards) ---------- */
.edc-events .box { position: relative; transition: box-shadow .2s ease, transform .2s ease; }
.edc-events .btn-buy::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.edc-events .box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.edc-events .box:hover .btn-buy { background: var(--ink); color: #fff; }
.edc-events .box:focus-within { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.edc-events .btn-buy:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .edc-events .box { transition: none; } .edc-events .box:hover { transform: none; } }



/* ==================================================================
   MANNHEIM IDENTITY (steel-blue palette, condensed headings, facts bar,
   notice bar, events). Edit this part for Mannheim-only changes.
   Same family as edcfma.com (logo, green buttons), with its own voice:
   a cool steel and slate palette and tall condensed headings.
   ================================================================== */
:root {
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --stone: #eef1f3;          /* cool light grey */
  --line: #d9dfe3;
  --steel: #1f4a66;          /* deep steel blue: eyebrows and details on light sections (AA contrast) */
  --steel-soft: #9ccbe3;     /* light steel for dark sections */
  --night: #0f1b24;          /* hero / dark section background */
}
h1, h2, h3 { font-family: var(--font-display); }
.edc-hero h1 { font-weight: 700; font-size: clamp(2.9rem, 7vw, 5rem); line-height: 1.02; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.edc-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.06; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.edc-section h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; }
.edc-eyebrow { color: var(--steel); }
.edc-hero .edc-eyebrow, .edc-section--dark .edc-eyebrow { color: var(--steel-soft); }
.edc-acc summary::after { color: var(--steel); }
.edc-section--dark { background: var(--night); }
.edc-footer { background: #0b141b; }

/* ---------- Notice bar (hidden until you add text; see index.html) ---------- */
.mh-notice { background: #f6d98a; color: #2a1c05; text-align: center; font: 600 .95rem/1.45 var(--font-head); padding: .7rem 1rem; }
.mh-notice[hidden] { display: none; }
.mh-notice a { color: inherit; }
.mh-notice--schedule { max-width: 46rem; margin: 0 auto 1.75rem; border-radius: var(--radius); padding: 1rem 1.25rem; }
.mh-notice--schedule[hidden] { display: none; }
.mh-notice:not(.mh-notice--schedule) { position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.edc-header { top: var(--mh-notice-h, 0px); }
html { scroll-padding-top: calc(var(--header-h) + var(--mh-notice-h, 0px) + 12px); }
@media (max-width: 639px) { .mh-notice:not(.mh-notice--schedule) { font-size: .88rem; padding: .55rem .9rem; } }

/* ---------- Header language link ---------- */
.mh-lang { display: inline-flex; align-items: center; min-height: 42px; padding: .6rem .9rem; border: 2px solid transparent; font: 700 .75rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #e8e8e8; text-decoration: none; }
.mh-lang:hover { color: var(--steel-soft); }

/* ---------- Hero: type on the left, photo (optional) on the right, facts bar below ---------- */
.edc-hero--mh { background: radial-gradient(circle at 85% 20%, #1c3a4f 0%, var(--night) 62%); }
.mh-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.mh-hero__grid:not(:has(.mh-hero__photo:not(.is-missing))) { grid-template-columns: minmax(0, 52rem); }
.mh-hero__grid .edc-hero__in { padding: 0; max-width: none; }
.mh-hero__photo { margin: 0; aspect-ratio: auto; background: transparent; overflow: visible; max-width: 26rem; justify-self: end; width: 100%; }
.mh-hero__photo img { position: static; width: 100%; height: auto; max-height: 34rem; object-fit: contain; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.edc-hero--mh .edc-hero__cta { max-width: none; }
@media (max-width: 860px) {
  .mh-hero__grid { grid-template-columns: 1fr; }
  .mh-hero__photo { justify-self: start; max-width: 18rem; order: 2; }
}
.mh-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #2c4658; }
.mh-facts li { padding: 1.25rem 1.25rem 1.5rem 0; }
.mh-facts li + li { padding-left: 1.25rem; border-left: 1px solid #2c4658; }
.mh-facts strong { display: block; font: 700 .72rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-soft); margin-bottom: .35rem; }
.mh-facts span { display: block; font: 600 1.05rem/1.4 var(--font-head); color: #fff; }
@media (max-width: 860px) {
  .mh-facts { grid-template-columns: 1fr 1fr; }
  .mh-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .mh-facts li:nth-child(n+3) { border-top: 1px solid #2c4658; }
}
@media (max-width: 480px) { .mh-facts { grid-template-columns: 1fr; } .mh-facts li, .mh-facts li + li { padding-left: 0; border-left: 0; } .mh-facts li + li { border-top: 1px solid #2c4658; } }

/* ---------- Placeholders (anything the instructor still has to fill in) ---------- */
.mh-todo { background: #fff3b0; color: #3a2e00; padding: .05em .35em; border-radius: 2px; font-weight: 700; }
.edc-hero .mh-todo, .edc-section--dark .mh-todo { background: #f6d98a; color: #2a1c05; }

/* ---------- What we teach ---------- */
.mh-arts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: stretch; }
.mh-art { display: flex; flex-direction: column; height: auto; }
.mh-art--main { grid-column: 1 / -1; border-left: 6px solid var(--steel); }
.mh-art__sub { font: 700 .72rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin: 0 0 .9rem; }
.mh-art__foot { margin-top: auto; padding-top: 1.25rem; }
.mh-soon { margin: 1.5rem auto 0; text-align: center; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .mh-arts { grid-template-columns: 1fr; } }

/* ---------- First visit: numbered steps ---------- */
.mh-steps { list-style: none; margin: 1.25rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.mh-steps li { position: relative; padding-left: 3.4rem; counter-increment: step; min-height: 2.6rem; }
.mh-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--steel); color: #fff; font: 700 1.05rem/2.5rem var(--font-head); text-align: center; }
.mh-steps strong { color: var(--ink); }
.mh-note { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--stone); border-left: 4px solid var(--steel); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; }
.edc-section--stone .mh-note { background: #fff; }
#first-visit .edc-split { align-items: center; }

/* ---------- Where / When / Cost ---------- */
.mh-wwc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.mh-wwc .edc-card { display: flex; flex-direction: column; }
.mh-wwc .edc-card > p:last-child { margin-top: auto; padding-top: 1rem; }
.mh-big { font: 700 1.5rem/1.25 var(--font-display); letter-spacing: .01em; text-transform: uppercase; color: var(--ink); margin: 0 0 .5rem; }
.mh-addr { font-weight: 600; color: var(--ink); margin: 0 0 .75rem; }
@media (max-width: 900px) { .mh-wwc { grid-template-columns: 1fr; } }

/* ---------- Instructors ---------- */
.mh-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; max-width: 52rem; margin: 0 auto; }
.mh-person { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.mh-person .edc-media { --ar: 4 / 5; border-radius: 0; }
.mh-person .edc-media img { object-position: 90% top; }
.mh-person__body { padding: 1.25rem 1.4rem 1.5rem; }
.mh-person h3 { font-size: 1.6rem; margin: 0 0 .15rem; }
.mh-person__role { font: 700 .72rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin: 0 0 .7rem; }
.mh-person p { font-size: .98rem; line-height: 1.6; margin: 0; }

/* ---------- Gallery ---------- */
.mh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mh-gallery .edc-media { --ar: 4 / 3; }
.mh-gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.mh-gallery .edc-media { transition: transform .25s ease; }
.mh-gallery a:hover .edc-media { transform: scale(1.02); }
@media (max-width: 700px) { .mh-gallery { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .mh-gallery a:hover .edc-media { transform: none; } }

/* ---------- Events (filled from events.json) ---------- */
.mh-events { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.mh-event { display: flex; flex-direction: column; text-align: left; }
.mh-event__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.mh-event__type, .mh-event__access { font: 700 .7rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; padding: .4rem .6rem; border-radius: 2px; }
.mh-event__type { color: var(--steel-soft); padding-left: 0; }
.mh-event__access { background: #2c4658; color: #fff; }
.mh-event__access--open { background: var(--accent); color: #0e1a0d; }
.mh-event__meta { color: #c9d3d9; }
.mh-event__note { font-style: italic; }
.mh-event__foot { margin-top: auto; padding-top: 1.25rem; }
.mh-event .edc-btn { align-self: flex-start; }
.edc-section--dark .edc-card { background: #16252f; border-color: #2c4658; }

/* ---------- Footer ---------- */
.mh-foot-addr { font-style: normal; color: #cfcfcf; line-height: 1.6; }
.mh-social { display: flex; gap: .9rem; margin-top: 1.1rem; }
.mh-social a { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid #3c4f5c; border-radius: 50%; color: #fff; text-decoration: none; font: 700 .72rem/1 var(--font-head); letter-spacing: .04em; }
.mh-social a:hover { border-color: var(--steel-soft); color: var(--steel-soft); }

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.mh-legal { max-width: 46rem; margin: 0 auto; }
.mh-legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); text-transform: uppercase; }
.mh-legal h2 { font: 700 1.6rem/1.15 var(--font-display); text-transform: uppercase; margin: 2rem 0 .6rem; color: var(--ink); }

/* ---------- Brand (mark + live text) ---------- */
.mh-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.mh-brand img { height: 48px; width: auto; max-width: none; }
.mh-brand span { font: 700 1.7rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.mh-foot-mark { height: 72px !important; width: auto; margin-bottom: 1rem; }
@media (max-width: 380px) { .mh-brand span { font-size: 1.4rem; } }

/* A missing photo hides, and its text column then takes the full width */
.edc-split:has(> .edc-media.is-missing) { grid-template-columns: 1fr; max-width: 46rem; margin-left: auto; margin-right: auto; }
.mh-gallery:not(:has(.edc-media:not(.is-missing))) { display: none; }
[data-hide-if-empty][hidden] { display: none; }

/* Keep the longer German menu inside the page width */
@media (min-width: 981px) { .edc-nav ul { gap: 1.1rem; } .edc-nav__cta { gap: .5rem; } .mh-lang { padding: .6rem .5rem; } }
@media (max-width: 980px) { .mh-lang { width: 100%; justify-content: center; border-color: #3c4f5c; } }

/* ==================================================================
   MANNHEIM LAYOUT (v2): built around the Quadrate, Mannheim's grid of
   lettered and numbered blocks (the dojo's address, C7, is one of them).
   ================================================================== */
:root { --brass: #e9c46a; }

/* ---------- Hero: faint block grid, address plaque ---------- */
.edc-hero--mh { background:
  linear-gradient(rgba(156,203,227,.07) 1px, transparent 1px) 0 0 / 72px 72px,
  linear-gradient(90deg, rgba(156,203,227,.07) 1px, transparent 1px) 0 0 / 72px 72px,
  radial-gradient(circle at 85% 20%, #1c3a4f 0%, var(--night) 62%); }
.mh-hero__grid, .mh-hero__grid:not(:has(.mh-hero__photo:not(.is-missing))) { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.mh-plaque { justify-self: end; text-align: center; }
.mh-plaque__sign { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1.2rem 2.6rem 1.35rem; background: #0b3a66; border: 6px solid #fff; border-radius: 10px; box-shadow: 0 0 0 3px #0b3a66, 0 24px 48px rgba(0,0,0,.5); color: #fff; transform: rotate(-2deg); }
.mh-plaque__block { font: 700 clamp(4.5rem, 11vw, 7.5rem)/.95 var(--font-display); letter-spacing: .04em; }
.mh-plaque__no { font: 700 1.6rem/1 var(--font-display); letter-spacing: .14em; border-top: 2px solid rgba(255,255,255,.7); padding-top: .4rem; margin-top: .2rem; }
.mh-plaque__cap { margin: 1.5rem 0 0; font: 700 .72rem/1.4 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--steel-soft); }
@media (max-width: 860px) { .mh-hero__grid, .mh-hero__grid:not(:has(.mh-hero__photo:not(.is-missing))) { grid-template-columns: 1fr; } .mh-plaque { justify-self: start; order: 2; } .mh-plaque__sign { transform: none; } }

/* ---------- About: statement left, text right ---------- */
.mh-about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mh-about__head .edc-h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.5rem; }
.mh-about__photo { margin-top: 1.5rem; }
.mh-about__body { padding-top: 2.4rem; border-top: 6px solid var(--steel); }
.mh-about__body .edc-lead { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .mh-about { grid-template-columns: 1fr; } .mh-about__body { padding-top: 1.5rem; } }

/* ---------- What we teach: an index of rows ---------- */
.mh-teachhead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: end; margin-bottom: 2.5rem; }
.mh-teachhead p { margin: 0; font-size: 1.05rem; }
.mh-index { border-top: 3px solid var(--ink); }
.mh-row { display: grid; grid-template-columns: 4.5rem minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(1.25rem, 3vw, 3rem); padding: 2.25rem 0; border-bottom: 1px solid #c3ccd2; align-items: start; }
.mh-row__num { font: 700 3.4rem/.9 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--steel); letter-spacing: .02em; }
.mh-row__title h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0 0 .5rem; color: var(--ink); }
.mh-row--main .mh-row__title h3 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); }
.mh-row--main .mh-row__num { -webkit-text-stroke-color: var(--ink); color: var(--brass); -webkit-text-stroke-width: 1.5px; }
.mh-row__body p { margin: 0 0 1rem; }
.mh-row__body .mh-art__foot { margin: 1.25rem 0 0; padding: 0; }
.mh-tag { display: inline-block; margin-top: .4rem; padding: .35rem .6rem; background: var(--ink); color: var(--brass); font: 700 .68rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; }
.mh-row--soon { opacity: .7; padding: 1.4rem 0; }
.mh-row--soon .mh-row__title h3 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .mh-teachhead { grid-template-columns: 1fr; }
  .mh-row { grid-template-columns: 3.2rem 1fr; }
  .mh-row__num { font-size: 2.4rem; grid-row: 1; }
  .mh-row__body { grid-column: 1 / -1; }
}

/* ---------- First visit: a path across the page ---------- */
.mh-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 1.5rem; counter-reset: step; }
.mh-path li { position: relative; padding-top: 3.4rem; counter-increment: step; font-size: .98rem; }
.mh-path li::before { content: ""; position: absolute; top: 1.2rem; left: 0; right: -1.5rem; height: 3px; background: var(--steel); }
.mh-path li:last-child::before { right: 0; background: linear-gradient(90deg, var(--steel), transparent); }
.mh-path li::after { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--brass); font: 700 1.1rem/2.4rem var(--font-display); text-align: center; letter-spacing: .02em; }
.mh-path strong { display: block; color: var(--ink); margin-bottom: .3rem; font-size: 1.02rem; }
.mh-path__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.mh-path__foot .mh-note { margin: 0; flex: 1 1 20rem; }
@media (max-width: 980px) {
  .mh-path { grid-template-columns: 1fr; gap: 0; }
  .mh-path li { padding: 0 0 1.75rem 3.6rem; }
  .mh-path li::before { top: 2.4rem; bottom: 0; left: 1.15rem; right: auto; width: 3px; height: auto; }
  .mh-path li:last-child::before { display: none; }
}

/* ---------- Where, when, cost: one dark plaque with a block grid ---------- */
.mh-wwc-section { background: var(--night); }
.mh-wwc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
.mh-wwc-head .edc-h2 { margin: 0; color: #fff; }
.mh-grid { width: 10.5rem; height: auto; flex: none; }
.mh-grid .bl { fill: none; stroke: #2c4658; stroke-width: 1.5; }
.mh-grid .hl { fill: var(--brass); stroke: var(--brass); }
.mh-wwc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2c4658; }
.mh-wwc__col { padding: 2rem 2rem 0 0; display: flex; flex-direction: column; color: #d9e2e8; }
.mh-wwc__col + .mh-wwc__col { padding-left: 2rem; border-left: 1px solid #2c4658; }
.mh-wwc__col h3 { font-size: 2.2rem; color: var(--steel-soft); margin: 0 0 .75rem; }
.mh-wwc__col .mh-addr, .mh-wwc__col .mh-big { color: #fff; }
.mh-wwc__col > p:last-child { margin-top: auto; padding-top: 1rem; }
.mh-wwc-section .edc-btn--ghost { border-color: #4d6a7d; }
@media (max-width: 900px) {
  .mh-wwc { grid-template-columns: 1fr; }
  .mh-wwc__col, .mh-wwc__col + .mh-wwc__col { padding: 1.75rem 0; border-left: 0; border-bottom: 1px solid #2c4658; }
}

/* ---------- Instructors: a band ---------- */
.mh-instr { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mh-instr__head .edc-h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.mh-people { display: grid; grid-template-columns: 1fr; max-width: none; margin: 0; gap: 1.5rem; }
.mh-person { display: grid; grid-template-columns: 11rem 1fr; border-left: 6px solid var(--steel); border-radius: 0; background: var(--stone); border-top: 0; border-right: 0; border-bottom: 0; }
.mh-person:not(:has(.edc-media:not(.is-missing))) { grid-template-columns: 1fr; }
.mh-person .edc-media { --ar: 3 / 4; }
.mh-person__body { padding: 1.5rem 1.6rem; }
@media (max-width: 860px) { .mh-instr { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mh-person { grid-template-columns: 1fr; } }

/* ---------- Gallery: first photo large ---------- */
.mh-gallery { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.mh-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.mh-gallery a { display: block; }
.mh-gallery a:first-child .edc-media { --ar: 1 / 1; height: 100%; }
.mh-gallery .edc-media { --ar: 1 / 1; }
@media (max-width: 700px) { .mh-gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ: heading beside the questions ---------- */
.mh-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mh-faq__head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.mh-faq__head .edc-h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.mh-faq .edc-acc { max-width: none; margin: 0; }
@media (max-width: 860px) { .mh-faq { grid-template-columns: 1fr; } .mh-faq__head { position: static; } }

/* ---------- Contact: dark panel ---------- */
#contact.edc-section--dark { background: linear-gradient(135deg, var(--night) 0%, #16303f 100%); }
.mh-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mh-contact__head .edc-h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.mh-contact__head p { color: #d9e2e8; }
.mh-contact__where { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #2c4658; }
.mh-contact__where strong { color: var(--steel-soft); font: 700 .72rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.mh-formcard { margin: 0; max-width: none; }
@media (max-width: 860px) { .mh-contact { grid-template-columns: 1fr; } }
.mh-formcard .edc-micro, .mh-formcard .edc-micro a { color: #3d4a54; }
.mh-formcard .edc-micro a { text-decoration: underline; }

/* v2b: the intro line sits on the same column as the descriptions below it */
.mh-teachhead { grid-template-columns: 4.5rem minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(1.25rem, 3vw, 3rem); }
.mh-teachhead > div { grid-column: 1 / 3; }
@media (max-width: 860px) { .mh-teachhead { grid-template-columns: 1fr; } .mh-teachhead > div { grid-column: auto; } }

/* v2c: a logo tile replaces the numbers. Dark tile so white logo text stays readable. */
:root { --mh-logo: 7.5rem; }
.mh-teachhead, .mh-row { grid-template-columns: var(--mh-logo) minmax(0, .8fr) minmax(0, 1.2fr); }
.mh-row__logo { margin: 0; width: var(--mh-logo); background: var(--night); border-radius: 6px; padding: .5rem; box-shadow: 0 6px 16px rgba(15,27,36,.18); }
.mh-row__logo img { object-fit: contain; width: 100%; height: 100%; }
.mh-row--soon .mh-row__title, .mh-row--soon .mh-row__body { opacity: .7; }
.mh-row--soon { opacity: 1; }
@media (max-width: 860px) {
  .mh-teachhead { grid-template-columns: 1fr; }
  .mh-row { grid-template-columns: 5.5rem 1fr; }
  .mh-row__logo { width: 5.5rem; }
}
.mh-row__mark { width: var(--mh-logo); }
.mh-row__logo { width: 100%; }
@media (max-width: 860px) { .mh-row__mark { width: 5.5rem; } }
/* v2d: breathing room inside the logo tiles */
.mh-row__logo img { inset: .7rem; width: calc(100% - 1.4rem); height: calc(100% - 1.4rem); object-fit: contain; }
#eskrima .mh-row__logo { background: #000; }
