/* Editorial: local Crimson Text, restrained Bavarian diamonds and yellow accents. */
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/crimson-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/crimson-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Crimson Text"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/crimson-text-latin-700-italic.woff2") format("woff2"); }
html[data-theme="editorial"] {
  --ed-ink: #17242b; --ed-muted: #526068; --ed-paper: #fffefa;
  --ed-panel: #f5f4ee; --ed-line: #dcded8; --ed-yellow: #f6df00;
  --ed-blue: #1479b8; --ed-serif: "Crimson Text", Georgia, serif;
  --ed-sans: Roboto, Helvetica, Arial, sans-serif;
  --ed-gutter: 56px; --ed-gap: 40px; --ed-section: 104px;
  --ed-width: 1260px; --ed-frame-inset: 40px;
  --ed-nav-overlap: 24px; --ed-hero-overlap: 80px;
}
[data-theme="editorial"] body { font-family: var(--ed-serif); color: var(--ed-ink); background: var(--ed-paper); }
[data-theme="editorial"] ::selection { background: var(--ed-yellow); color: var(--ed-ink); }
[data-theme="editorial"] body > header {
  position: relative; top: auto; width: calc(100% - 2 * var(--ed-frame-inset));
  max-width: var(--ed-width); margin: 0 auto calc(-1 * var(--ed-nav-overlap));
  padding-bottom: var(--ed-nav-overlap); background: var(--ed-paper); border: 0; backdrop-filter: none;
}
[data-theme="editorial"] body > header > div:first-child { height: 100px; padding-inline: var(--ed-gutter); max-width: var(--ed-width); }
[data-theme="editorial"] :is(header, footer) a[aria-label*="Startseite"] > span:first-child { display: none; }
[data-theme="editorial"] :is(header, footer) a[aria-label*="Startseite"]::before {
  content: ""; width: 22px; height: 32px; flex-shrink: 0;
  background: var(--ed-blue);
  clip-path: polygon(0 0, 68% 26%, 100% 100%, 32% 74%);
  margin-right: 5px;
}
[data-theme="editorial"] :is(header, footer) a[aria-label*="Startseite"] > span:last-child { font: 400 29px/1 var(--ed-serif); letter-spacing: -.8px; }
[data-theme="editorial"] body > header a[aria-label*="Startseite"] span { color: var(--ed-ink); }
[data-theme="editorial"] nav { font-family: var(--ed-sans); }
[data-theme="editorial"] .nav-link { font-size: 13px; color: var(--ed-ink); }
[data-theme="editorial"] .nav-link::after { background: var(--ed-blue); }
[data-theme="editorial"] :is(.btn-primary, .btn-secondary) {
  min-height: 48px; padding: 14px 22px; border: 1px solid var(--ed-ink); border-radius: 2px;
  box-shadow: none; font: 500 13px/1.4 var(--ed-sans); letter-spacing: .01em;
  transition: background-color .2s, color .2s, border-color .2s;
}
[data-theme="editorial"] .btn-primary { background: var(--ed-yellow); color: var(--ed-ink); border-color: var(--ed-yellow); }
[data-theme="editorial"] .btn-secondary { background: transparent; color: var(--ed-ink); border-color: var(--ed-line); }
[data-theme="editorial"] :is(.btn-primary, .btn-secondary):hover { transform: none; background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; box-shadow: none; }
[data-theme="editorial"] :is(a, button):focus-visible { outline: 3px solid var(--ed-blue); outline-offset: 5px; }
[data-theme="editorial"] main > section { padding-block: var(--ed-section); background: var(--ed-paper); border-color: var(--ed-line); scroll-margin-top: 28px; }
[data-theme="editorial"] main > section > .mx-auto { max-width: var(--ed-width); padding-inline: var(--ed-gutter); }
[data-theme="editorial"] main .grid { gap: var(--ed-gap); }
[data-theme="editorial"] main :is(h1, h2, h3, .font-display) { font-family: var(--ed-serif); color: var(--ed-ink); letter-spacing: -.025em; text-wrap: balance; }
[data-theme="editorial"] main p { font: 400 20px/1.6 var(--ed-serif); color: var(--ed-muted); letter-spacing: 0; }
[data-theme="editorial"] main :is(.text-cloud, .text-ink, .text-brand) { color: var(--ed-ink); }
[data-theme="editorial"] main [class*="rounded"] { border-radius: 0; box-shadow: none; }
[data-theme="editorial"] main :is(.bg-brand-soft, .bg-mist) { background: var(--ed-panel); }
[data-theme="editorial"] main .bg-brand { background: var(--ed-ink); }
[data-theme="editorial"] main .eyebrow {
  display: inline-flex; gap: 12px; align-items: center; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ed-muted); font: 500 11px/1.5 var(--ed-sans);
  letter-spacing: .14em; text-transform: uppercase;
}
[data-theme="editorial"] main .eyebrow::before { content: ""; width: 9px; height: 15px; flex: 0 0 9px; background: var(--ed-blue); transform: skew(24deg); }
[data-theme="editorial"] main .eyebrow > span { display: none; }
[data-theme="editorial"] .section-title { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.12; font-weight: 400; margin-top: 24px; }
[data-theme="editorial"] .section-title .text-brand { background: linear-gradient(transparent 74%, var(--ed-yellow) 74%, var(--ed-yellow) 91%, transparent 91%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme="editorial"] main h3 { font-size: 28px; line-height: 1.2; font-weight: 400; }
[data-theme="editorial"] main li { font: 400 14px/1.65 var(--ed-sans); }
[data-theme="editorial"] main [class*="border-cloud-line"] { border-color: var(--ed-line); }
[data-theme="editorial"] main :is(.shadow-lift, .shadow-cloud) { box-shadow: none; }
/* A photographic cover held between two inset editorial sheets. */
[data-theme="editorial"] #start { padding: 0 0 72px; border: 0; overflow: visible; }
[data-theme="editorial"] .hero-copy__editorial-title { display: block; }
[data-theme="editorial"] .editorial-cover {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative;
  min-height: 700px; padding: 72px max(var(--ed-gutter), calc((100% - 1148px) / 2)) calc(var(--ed-hero-overlap) + 64px);
  background: var(--ed-yellow) url("../images/editorial-hirsch-gelb.png") center / cover no-repeat;
}
[data-theme="editorial"] .editorial-cover__copy { position: relative; max-width: 530px; padding-right: 24px; align-self: center; }
[data-theme="editorial"] #start .editorial-cover__title { margin: 18px 0 0; color: #111; font-size: clamp(46px, 4.5vw, 66px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; text-wrap: initial; }
[data-theme="editorial"] #start .editorial-cover__eyebrow { margin: 0; color: #17242b; font: 500 11px/1.5 var(--ed-sans); letter-spacing: .12em; text-transform: uppercase; }
[data-theme="editorial"] #start .editorial-cover__lead { margin: 24px 0 0; color: #17242b; font-size: 21px; line-height: 1.5; max-width: 465px; }
[data-theme="editorial"] .editorial-cover__benefits { display: grid; gap: 12px; margin-top: 24px; }
[data-theme="editorial"] .editorial-cover__benefits li { position: relative; padding-left: 23px; font: 400 14px/1.5 var(--ed-sans); color: #17242b; }
[data-theme="editorial"] .editorial-cover__benefits li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 10px; background: var(--ed-blue); transform: skew(24deg); }
[data-theme="editorial"] .editorial-cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 32px; }
[data-theme="editorial"] .editorial-cover__actions .btn-primary { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; }
[data-theme="editorial"] .editorial-cover__actions .btn-primary:hover { background: var(--ed-paper); border-color: var(--ed-paper); color: var(--ed-ink); }
[data-theme="editorial"] .editorial-cover__alternative { font: 500 13px/1.5 var(--ed-sans); color: var(--ed-ink); text-decoration: underline; text-underline-offset: 5px; }
[data-theme="editorial"] .editorial-cover__alternative:hover { text-decoration-thickness: 2px; }
[data-theme="editorial"] #start .hero-content { display: block; position: relative; z-index: 1; width: calc(100% - 2 * var(--ed-frame-inset)); max-width: var(--ed-width); margin-top: calc(-1 * var(--ed-hero-overlap)); padding-block: 54px 42px; background: var(--ed-paper); box-shadow: 0 20px 50px -38px #17242b40; border-bottom: 1px solid var(--ed-line); }
[data-theme="editorial"] .hero-copy { max-width: 960px; }
[data-theme="editorial"] #start .hero-copy__editorial-title { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.08; font-weight: 400; margin: 24px 0; max-width: 850px; }
[data-theme="editorial"] #start .hero-copy > p { font-size: 24px; line-height: 1.5; max-width: 820px; margin-top: 0; }
[data-theme="editorial"] .hero-copy > .flex { margin-top: 30px; }
[data-theme="editorial"] .hero-copy > .flex:last-child { font: 400 12px/1.5 var(--ed-sans); color: var(--ed-muted); padding-top: 24px; border-top: 1px solid var(--ed-line); }
[data-theme="editorial"] .hero-copy > .flex:last-child svg { color: var(--ed-blue); }
/* Quiet regional signature, without decorative clutter. */
[data-theme="editorial"] #start + .regional-strip { padding: 0; background: var(--ed-panel); border-block: 1px solid var(--ed-line); }
[data-theme="editorial"] .regional-strip > div { padding-block: 30px; }
[data-theme="editorial"] .regional-strip p { position: relative; padding-left: 24px; font: 400 13px/1.9 var(--ed-sans); }
[data-theme="editorial"] .regional-strip p::before { content: ""; position: absolute; top: 7px; left: 0; width: 7px; height: 14px; background: var(--ed-blue); transform: skew(24deg); }
[data-theme="editorial"] .regional-strip .font-display { font-size: 25px; }
/* Services: numbered, open columns with a yellow rule. */
[data-theme="editorial"] #leistungen { counter-reset: service; }
[data-theme="editorial"] #leistungen .card { position: relative; counter-increment: service; padding: 30px 0 0; border-radius: 0; border: 0; border-top: 3px solid var(--ed-yellow); background: transparent; transform: none; box-shadow: none; }
[data-theme="editorial"] #leistungen .card::after { content: "0" counter(service); position: absolute; top: 25px; right: 0; font: 400 36px/1 var(--ed-serif); color: #a3abae; }
[data-theme="editorial"] #leistungen .card > div:first-child { width: 44px; height: 44px; color: var(--ed-blue); background: transparent; place-items: start; align-items: center; }
[data-theme="editorial"] #leistungen .card h3 { margin-top: 18px; }
[data-theme="editorial"] #leistungen .card p { margin-top: 14px; }
[data-theme="editorial"] #leistungen .card ul { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--ed-line); }
[data-theme="editorial"] #leistungen .card li > span { color: var(--ed-blue); }
/* Business questions, with one clear highlighted next step. */
[data-theme="editorial"] #praxis { background: var(--ed-panel); }
[data-theme="editorial"] main .bg-surface { padding: 40px; border: 0; background: var(--ed-paper); color: var(--ed-ink); }
[data-theme="editorial"] main .bg-surface [class*="text-"] { color: var(--ed-ink); }
[data-theme="editorial"] main .bg-surface [class*="bg-"] { background: transparent; }
[data-theme="editorial"] main .bg-surface [class*="border-"] { border-color: var(--ed-line); }
[data-theme="editorial"] main .bg-surface > .absolute { display: none; }
[data-theme="editorial"] #praxis .bg-surface > p:first-of-type { font: 500 11px/1.6 var(--ed-sans); color: var(--ed-muted); letter-spacing: .12em; }
[data-theme="editorial"] #praxis .bg-surface > div.relative > div { font: 400 16px/1.5 var(--ed-sans); padding: 20px 0; border: 0; border-bottom: 1px solid var(--ed-line); }
[data-theme="editorial"] #praxis .bg-surface > div.relative > div:last-child { background: #fbf4b4; margin-inline: -16px; padding-inline: 16px; border-color: transparent; }
[data-theme="editorial"] #praxis .bg-surface > p:last-child { font-size: 32px; line-height: 1.15; }
[data-theme="editorial"] #praxis .sm\:grid-cols-3 { gap: 18px; }
[data-theme="editorial"] #praxis .sm\:grid-cols-3 > div { padding: 18px 0 0; border: 0; border-top: 1px solid #bec6c7; background: transparent; }
[data-theme="editorial"] #praxis .sm\:grid-cols-3 p { font: 400 13px/1.6 var(--ed-sans); }
[data-theme="editorial"] #praxis .sm\:grid-cols-3 p:first-child { color: var(--ed-ink); font-weight: 600; font-size: 11px; }
[data-theme="editorial"] #governance article { padding: 26px 0; border: 0; border-top: 1px solid var(--ed-line); }
[data-theme="editorial"] #governance article > span { background: #edf4f8; color: #0f6094; font: 500 13px/1 var(--ed-sans); }
[data-theme="editorial"] #governance > div > p:last-child { font: 400 12px/1.7 var(--ed-sans); }
[data-theme="editorial"] #governance > div > p:last-child a { color: #0f6094; }
[data-theme="editorial"] #foerderung { background: #f7f5e5; border-block: 1px solid #e8e5cf; }
[data-theme="editorial"] #foerderung article { padding: 32px; border: 1px solid #e3e1d3; border-top: 3px solid var(--ed-yellow); background: var(--ed-paper); }
[data-theme="editorial"] #foerderung article > p:first-child { color: #0f6094; font: 500 11px/1.5 var(--ed-sans); letter-spacing: .13em; }
[data-theme="editorial"] #foerderung article a { font: 500 13px/1.5 var(--ed-sans); color: var(--ed-ink); text-decoration: underline; text-underline-offset: 5px; }
[data-theme="editorial"] #roadmap li { gap: 24px; padding-bottom: 32px; }
[data-theme="editorial"] #roadmap li:last-child { padding-bottom: 0; }
[data-theme="editorial"] #roadmap li > span { border: 1px solid var(--ed-line); background: var(--ed-paper); color: var(--ed-ink); font-size: 26px; }
[data-theme="editorial"] #roadmap li:first-child > span { background: var(--ed-yellow); border-color: var(--ed-yellow); }
[data-theme="editorial"] #roadmap li h3 { font-size: 26px; }
[data-theme="editorial"] #roadmap li p { font-size: 19px; }
/* A dark interlude gives the long page rhythm. Diamonds stay at its edge. */
[data-theme="editorial"] #kompetenz .bg-surface { position: relative; overflow: hidden; background: var(--ed-ink); padding: 72px 56px; }
[data-theme="editorial"] #kompetenz .bg-surface::after { content: ""; position: absolute; pointer-events: none; top: 0; right: 0; width: 108px; height: 120px; background: url("../images/bayerische-rauten.svg") center / 54px 60px; opacity: .35; mask-image: linear-gradient(225deg,#000,transparent 85%); }
[data-theme="editorial"] #kompetenz .bg-surface :is(h2,p) { color: #f9faf5; }
[data-theme="editorial"] #kompetenz .bg-surface > span { background: transparent; color: var(--ed-yellow); padding: 0; font: 500 11px/1.5 var(--ed-sans); letter-spacing: .14em; }
[data-theme="editorial"] #kompetenz .bg-surface > span > span { display: none; }
[data-theme="editorial"] #kompetenz h2 { font-size: 48px; line-height: 1.12; font-weight: 400; }
[data-theme="editorial"] #kompetenz .bg-surface > p { color: #c4cdce; }
[data-theme="editorial"] #kompetenz .grid { gap: 24px; }
[data-theme="editorial"] #kompetenz .grid > div { padding: 22px 0 0; border: 0; border-top: 1px solid #536067; }
[data-theme="editorial"] #kompetenz .grid p:first-child { color: var(--ed-yellow); font-size: 23px; }
[data-theme="editorial"] #kompetenz .grid p + p { color: #c4cdce; font: 400 13px/1.6 var(--ed-sans); }
[data-theme="editorial"] #kontakt { background: #f6df00; border: 0; }
[data-theme="editorial"] #kontakt .eyebrow { color: var(--ed-ink); }
[data-theme="editorial"] #kontakt p { color: #394027; }
[data-theme="editorial"] #kontakt .btn-primary { background: var(--ed-ink); border-color: var(--ed-ink); color: #fff; white-space: nowrap; }
[data-theme="editorial"] #kontakt .btn-primary:hover { background: #fffefa; border-color: #fffefa; color: var(--ed-ink); }
[data-theme="editorial"] footer { position: relative; background: var(--ed-paper); color: var(--ed-ink); }
[data-theme="editorial"] footer::before { content: ""; display: block; height: 5px; background: url("../images/bayerische-rauten.svg") right center / 36px 40px repeat-x; opacity: .65; }
[data-theme="editorial"] footer [class*="text-"] { color: var(--ed-muted); }
[data-theme="editorial"] footer a[aria-label="Zur Startseite"] > span:last-child { color: var(--ed-ink); }
[data-theme="editorial"] footer > div:first-of-type { max-width: var(--ed-width); padding: 56px var(--ed-gutter); }
[data-theme="editorial"] footer p { font: 400 18px/1.6 var(--ed-serif); }
[data-theme="editorial"] footer .footer-link { font: 400 13px/1.6 var(--ed-sans); }
[data-theme="editorial"] footer > div:last-child { border-color: var(--ed-line); font-family: var(--ed-sans); }
[data-theme="editorial"] footer > div:last-child > div { max-width: var(--ed-width); padding-inline: var(--ed-gutter); }
[data-theme="editorial"] .footer-link:hover { color: #0f6094; text-decoration: underline; }
[data-theme="editorial"] .mobile-nav-link { border-radius: 0; color: var(--ed-ink); }
@media (max-width: 1100px) and (min-width: 1024px) {
  [data-theme="editorial"] header nav { gap: 16px; }
  [data-theme="editorial"] body > header > div:first-child { padding-inline: 30px; }
}
@media (max-width: 1023px) {
  html[data-theme="editorial"] { --ed-gutter: 32px; --ed-gap: 30px; --ed-section: 72px; --ed-frame-inset: 24px; --ed-hero-overlap: 60px; }
  [data-theme="editorial"] #kompetenz .bg-surface { padding: 56px 32px; }
}
@media (max-width: 639px) {
  html[data-theme="editorial"] { --ed-gutter: 24px; --ed-gap: 28px; --ed-section: 56px; --ed-frame-inset: 12px; --ed-nav-overlap: 16px; --ed-hero-overlap: 32px; }
  [data-theme="editorial"] body > header > div:first-child { height: 78px; padding-inline: 16px; }
  [data-theme="editorial"] :is(header, footer) a[aria-label*="Startseite"] > span:last-child { font-size: 25px; }
  [data-theme="editorial"] body > header a[aria-label*="Startseite"]::before { width: 16px; height: 25px; margin-right: 0; }
  [data-theme="editorial"] #start .hero-content { padding-block: 34px; }
  [data-theme="editorial"] #start { padding-bottom: 40px; }

  [data-theme="editorial"] .editorial-cover { padding-inline: 24px; }
  [data-theme="editorial"] #start .editorial-cover__title { font-size: clamp(40px, 10.5vw, 52px); }
  [data-theme="editorial"] #start .editorial-cover__lead { font-size: 20px; }
  [data-theme="editorial"] #start .hero-copy__editorial-title { font-size: 40px; }
  [data-theme="editorial"] #start .hero-copy > p { font-size: 21px; }
  [data-theme="editorial"] .hero-copy > .flex:last-child { gap: 14px; }
  [data-theme="editorial"] .regional-strip > div { gap: 20px; }
  [data-theme="editorial"] .regional-strip p + p { padding-top: 18px; border-top: 1px solid var(--ed-line); }
  [data-theme="editorial"] .regional-strip p + p::before { top: 25px; }
  [data-theme="editorial"] .section-title { font-size: 36px; }
  [data-theme="editorial"] main .bg-surface { padding: 28px; }
  [data-theme="editorial"] #praxis .sm\:grid-cols-3 { grid-template-columns: 1fr; }
  [data-theme="editorial"] #governance article > div { margin-top: 18px; }
  [data-theme="editorial"] #foerderung article { padding: 24px; }
  [data-theme="editorial"] #roadmap li { gap: 18px; }
  [data-theme="editorial"] #kompetenz .bg-surface { padding: 44px 26px; }
  [data-theme="editorial"] #kompetenz h2 { font-size: 36px; }
  [data-theme="editorial"] #kontakt .btn-primary { width: 100%; }
}

/* Keep the complete argument and actions above the stag on smaller screens. */
@media (max-width: 900px) {
  [data-theme="editorial"] .editorial-cover {
    display: block; min-height: 0; padding-top: 52px; padding-bottom: 340px;
    background-image: linear-gradient(to bottom, var(--ed-yellow), transparent 100px), url("../images/editorial-hirsch-gelb.png");
    background-position: center bottom, 65% bottom; background-size: 100% 320px, auto 320px; background-repeat: no-repeat;
  }
  [data-theme="editorial"] .editorial-cover__copy { max-width: 570px; padding-right: 0; }
  [data-theme="editorial"] .editorial-cover__actions { gap: 20px 24px; }
}

/* Local character: an original editorial portrait before the contact section. */
[data-theme="editorial"] .local-roots__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
[data-theme="editorial"] .local-roots__figure { margin: 0; }
[data-theme="editorial"] .local-roots__figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
[data-theme="editorial"] .local-roots__figure figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font: 400 11px/1.6 var(--ed-sans); letter-spacing: .04em; }
[data-theme="editorial"] #local-roots-title { margin-top: 24px; font-size: clamp(42px, 4.5vw, 64px); }
[data-theme="editorial"] .local-roots__copy > p { margin-top: 22px; }
[data-theme="editorial"] .local-roots__copy .local-roots__lead { margin-top: 24px; font-size: 30px; line-height: 1.2; color: var(--ed-ink); }
[data-theme="editorial"] .local-roots__lead span { background: linear-gradient(transparent 77%, var(--ed-yellow) 77%, var(--ed-yellow) 94%, transparent 94%); }
[data-theme="editorial"] .local-roots__copy .local-roots__closing { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--ed-yellow); color: var(--ed-ink); font-size: 22px; line-height: 1.4; }
@media (max-width: 1023px) {
  [data-theme="editorial"] .local-roots__layout { gap: 36px; align-items: start; }
}
@media (max-width: 767px) {
  [data-theme="editorial"] .local-roots__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  [data-theme="editorial"] .local-roots__figure { max-width: 520px; }
  [data-theme="editorial"] #local-roots-title { font-size: 44px; }
  [data-theme="editorial"] .local-roots__copy .local-roots__lead { font-size: 28px; }
}
