/* ---- collapsible footer columns on phones ---- */
@media (max-width:640px){
  .footer2-cols{flex-direction:column;gap:0;text-align:left}
  .footer2-cols .footer-col{border-top:1px solid rgba(255,255,255,.18)}
  .footer2-cols .footer-col:last-of-type{border-bottom:1px solid rgba(255,255,255,.18)}
  /* .footer2 in front: the React pages add their own footer CSS after this
     file, with an equally specific h5 colour that would otherwise win */
  .footer2 .footer2-cols .footer-col h5{
    font-size:16px;letter-spacing:.01em;text-transform:none;
    color:#fff;margin:0;padding:17px 0;cursor:pointer;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    -webkit-tap-highlight-color:transparent;
  }
  /* chevron */
  .footer2-cols .footer-col h5::after{
    content:'';flex:none;width:9px;height:9px;margin-right:0;
    border-right:2px solid currentColor;border-bottom:2px solid currentColor;
    transform:translateY(-3px) rotate(45deg);
    transition:transform .25s ease;
  }
  .footer2-cols .footer-col.is-open h5::after{transform:translateY(1px) rotate(-135deg)}
  /* grid-rows 0fr -> 1fr animates open without needing a fixed height */
  .footer2-cols .footer-col-body{
    display:grid;grid-template-rows:0fr;
    transition:grid-template-rows .3s ease;
  }
  .footer2-cols .footer-col.is-open .footer-col-body{grid-template-rows:1fr}
  .footer2-cols .footer-col-body>div{overflow:hidden;min-height:0}
  .footer2-cols .footer-col a{font-size:15px;margin-bottom:14px}
  .footer2-cols .footer-col.is-open .footer-col-body>div{padding-bottom:6px}
}

/* the homepage footer's 44px corner is the one to keep; the React shell
   ships 160px, which reads as a different footer on those pages */
@media (max-width:1024px){
  .footer2{border-radius:36px!important}
}
@media (max-width:640px){
  /* centre the subscribe box rather than letting it sit flush right */
  .footer2-subscribe{margin-left:auto!important;margin-right:auto!important;
    max-width:100%;box-sizing:border-box}
  .footer2-newsletter,.footer2-intro,.footer2-social{
    margin-left:auto;margin-right:auto;width:100%}
  .footer2-social{justify-content:center}
}

/* Impressum / Datenschutz sit directly under the copyright line, in the
   intro column, instead of in their own ruled strip above the wordmark. */
.footer2-intro .footer2-legal{padding:12px 0 0;border-top:none;gap:20px}

/* Social icons line up under their "Folgen Sie uns" heading. The shared
   .icon-btns row centres itself, which left them floating mid-column under a
   left-aligned heading on desktop; the stacked (<=1024px) footer is centred
   throughout, so there they stay centred. */
.footer2-newsletter .footer2-social{justify-content:flex-start}
@media (max-width:1024px){.footer2-newsletter .footer2-social{justify-content:center}}

/* ---- EU / EFRE funding notice (mandatory, every page) ----
   Under "Impressum | Datenschutz", on the red footer. Logos at the old
   site's width proportions EU : EFRE : Sachsen = 440 : 855 : 175, the
   Sachsen shield with its sentence beside it, then the explanatory line. */
.footer2-efre{margin-top:6px;padding:20px 0 26px;border-top:1px solid rgba(255,255,255,.2);max-width:420px;color:#fff;text-align:left}
.footer2-efre-logos{display:flex;align-items:center;gap:4%;margin-bottom:14px}
.footer2-efre-logos img{display:block;height:auto;min-width:0}
.footer2-efre .efre-eu{width:calc(96% * 440 / 1295)}
.footer2-efre .efre-efre{width:calc(96% * 855 / 1295)}
.footer2-efre-sachsen{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}
.footer2-efre .efre-sn{flex:none;width:calc(96% * 175 / 1295);min-width:40px;height:auto}
.footer2-efre-sachsen p{margin:0;font-size:12px;line-height:1.4;color:#fff}
.footer2-efre-note{margin:0;font-size:11px;line-height:1.45;color:rgba(255,255,255,.72)}
@media (max-width:1024px){
  .footer2-efre{margin:6px auto 0;padding-bottom:30px}
}
@media (max-width:340px){
  .footer2-efre-logos{flex-wrap:wrap;row-gap:10px}
  .footer2-efre .efre-eu{width:40%}
  .footer2-efre .efre-efre{width:100%}
}
/* desktop: a compact compliance footnote, not a section of its own */
@media (min-width:1025px){
  .footer2-efre{max-width:230px;padding:14px 0 18px;margin-top:2px}
  .footer2-efre-logos{margin-bottom:9px}
  .footer2-efre-sachsen{gap:8px;margin-bottom:7px}
  .footer2-efre .efre-sn{min-width:26px}
  .footer2-efre-sachsen p{font-size:10px;line-height:1.35}
  .footer2-efre-note{font-size:9px;line-height:1.4}
}
/* newsletter signup: status line + note under the form */
.footer2-nl-msg{font-size:13px;line-height:1.4;margin-top:8px;min-height:0}
.footer2-nl-msg.ok{color:#fff;font-weight:700}
.footer2-nl-msg.err{color:#fff;background:rgba(0,0,0,.18);padding:6px 10px;border-radius:8px;display:inline-block}
.footer2-nl-note{font-size:11px;line-height:1.4;color:rgba(255,255,255,.75);margin:8px 0 0}
.footer2-nl-note a{color:inherit;text-decoration:underline}
/* tablet + phone: the same compact footnote (Oct 2026), a little larger
   type than desktop for legibility on small screens */
@media (max-width:1024px){
  .footer2-efre{max-width:250px;padding:14px 0 22px}
  .footer2-efre-logos{margin-bottom:9px}
  .footer2-efre-sachsen{gap:8px;margin-bottom:7px}
  .footer2-efre .efre-sn{min-width:28px}
  .footer2-efre-sachsen p{font-size:10.5px;line-height:1.35}
  .footer2-efre-note{font-size:9.5px;line-height:1.4}
}

/* ---- EU / Saxony funding notice (from the official EFRE poster, 2026-10-06) ----
   Blue panel with white heading and the poster's yellow star, the two white
   boxes, the link; then the white logo strip (EU emblem with "Kofinanziert von
   der Europäischen Union", Saxony coat of arms with its sentence). Colours
   taken from the poster: blue #134094, green #51AE30, star #FFED00.
   Texts, link and alt texts editable in Seiteninhalte (Footer); an emptied
   field keeps the poster text (data-cms-keep-default, cms-apply.js). */
:is(.footer2,.euf-dialog) .euf{margin:0;border-radius:18px;overflow:hidden;background:#fff;color:#141414;
  font-family:var(--font-body,'Lato',system-ui,sans-serif);text-align:left}
:is(.footer2,.euf-dialog) .euf-panel{background:#134094;padding:28px 32px 22px;display:grid;
  grid-template-columns:minmax(200px,280px) minmax(0,1fr);gap:18px 36px;align-items:start}
:is(.footer2,.euf-dialog) .euf p{margin:0;opacity:1}
:is(.footer2,.euf-dialog) .euf-title{color:#fff;font-family:var(--font-display,'Montserrat',system-ui,sans-serif);font-weight:800;line-height:1.05}
:is(.footer2,.euf-dialog) .euf-t1{display:block;font-size:40px;letter-spacing:-.01em;white-space:nowrap}
:is(.footer2,.euf-dialog) .euf-t1::after{content:'';display:inline-block;width:.62em;height:.62em;margin-left:.12em;vertical-align:top;
  background:url(/assets/logos/foerderhinweis-stern.svg) center/contain no-repeat}
:is(.footer2,.euf-dialog) .euf-t2{display:block;font-size:21px;margin-top:6px}
:is(.footer2,.euf-dialog) .euf-boxes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px 18px}
:is(.footer2,.euf-dialog) .euf .euf-label{color:#51AE30;font-family:var(--font-display,'Montserrat',system-ui,sans-serif);font-weight:700;font-size:13.5px;line-height:1.3;margin:0 0 7px}
:is(.footer2,.euf-dialog) .euf-card{background:#fff;color:#141414;padding:12px 14px;font-size:12.5px;line-height:1.5}
:is(.footer2,.euf-dialog) .euf-card p{color:#141414;margin:0 0 8px}
:is(.footer2,.euf-dialog) .euf-card p:last-child{margin-bottom:0}
:is(.footer2,.euf-dialog) .euf-card .euf-tight{margin-bottom:0}
:is(.footer2,.euf-dialog) .euf .euf-link{grid-column:1/-1;justify-self:end;color:#fff;font-family:var(--font-display,'Montserrat',system-ui,sans-serif);
  font-weight:700;font-size:15px;text-decoration:none;display:inline-block;padding:0;margin:0;white-space:nowrap}
:is(.footer2,.euf-dialog) .euf .euf-link::after{content:'';display:inline-block;width:.8em;height:.8em;margin-left:.15em;vertical-align:top;
  background:url(/assets/logos/foerderhinweis-stern.svg) center/contain no-repeat}
:is(.footer2,.euf-dialog) .euf .euf-link:hover,:is(.footer2,.euf-dialog) .euf .euf-link:focus-visible{text-decoration:underline;color:#fff;opacity:1}
:is(.footer2,.euf-dialog) .euf-strip{display:flex;align-items:center;flex-wrap:wrap;gap:16px 36px;padding:16px 32px;background:#fff}
:is(.footer2,.euf-dialog) .euf-eu{height:46px;width:auto;display:block}
:is(.footer2,.euf-dialog) .euf-sn{display:flex;align-items:center;gap:12px}
:is(.footer2,.euf-dialog) .euf-sn img{height:54px;width:auto;display:block;flex:none}
:is(.footer2,.euf-dialog) .euf-sn p{font-size:12.5px;line-height:1.4;color:#141414;max-width:330px}
@media (max-width:1024px){
  /* the footer is one column here (order: wordmark first, then the rest) -
     the notice goes last, as on desktop */
  .footer2 .euf-host{order:3;margin-bottom:28px}
}
@media (max-width:900px){
  :is(.footer2,.euf-dialog) .euf-panel{grid-template-columns:1fr}
  :is(.footer2,.euf-dialog) .euf .euf-link{justify-self:start}
}
@media (max-width:640px){
  :is(.footer2,.euf-dialog) .euf{border-radius:14px}
  :is(.footer2,.euf-dialog) .euf .euf-link{font-size:14px}
  :is(.footer2,.euf-dialog) .euf-panel{padding:22px 18px 18px;gap:14px}
  :is(.footer2,.euf-dialog) .euf-t1{font-size:32px}
  :is(.footer2,.euf-dialog) .euf-t2{font-size:18px}
  :is(.footer2,.euf-dialog) .euf-boxes{grid-template-columns:1fr;gap:12px}
  :is(.footer2,.euf-dialog) .euf-strip{padding:14px 18px;gap:14px}
  :is(.footer2,.euf-dialog) .euf-eu{height:40px}
  :is(.footer2,.euf-dialog) .euf-sn img{height:48px}
  :is(.footer2,.euf-dialog) .euf-sn p{font-size:12px}
}

/* ---- funding notice: collapsed in the footer, full notice in a dialog ----
   Without JavaScript the full notice (.euf-host) stays a plain block at the
   bottom of the footer and the small button is hidden. footer-mobile.js sets
   html.euf-js: then the block is hidden, the small button shows under
   Impressum / Datenschutz / Cookie-Einstellungen, and the notice opens in a
   native <dialog> (Esc, focus trap; click outside closes; /#foerderhinweis). */
.footer2 .euf-host{margin:40px 0 8px}
.euf-mini-wrap{display:none}
html.euf-js .footer2 .euf-host{display:none}
html.euf-js .euf-mini-wrap{display:block}
.footer2 .euf-mini-wrap{margin:2px 0 0}
.footer2 .euf-mini{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin:0;padding:0;border:0;background:none;
  color:rgba(255,255,255,.85);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.footer2 .euf-mini-logos{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:8px;padding:3px 8px 3px 3px;line-height:0}
.footer2 .euf-mini-logos img{height:30px;width:auto;display:block}
.footer2 .euf-mini-text{display:block;font-size:12px;line-height:1.4;max-width:300px}
.footer2 .euf-mini-label{color:rgba(255,255,255,.85)}
.footer2 .euf-mini-more{white-space:nowrap;margin-left:6px;color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.footer2 .euf-mini:hover .euf-mini-label{color:#fff}
.footer2 .euf-mini:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:8px}
dialog.euf-dialog{position:fixed;inset:0;margin:auto;height:fit-content;padding:0;border:0;background:transparent;width:min(960px,calc(100vw - 32px));max-width:none;
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.35)}
dialog.euf-dialog::backdrop{background:rgba(10,12,20,.62)}
.euf-dialog .euf-dialog-inner{position:relative}
.euf-dialog .euf-close{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border:0;border-radius:999px;
  background:rgba(255,255,255,.16);color:#fff;font:700 22px/1 system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center}
.euf-dialog .euf-close:hover{background:rgba(255,255,255,.28)}
.euf-dialog .euf-close:focus-visible{outline:2px solid #fff;outline-offset:2px}
.euf-dialog .euf-panel{padding-right:64px}
@media (max-width:640px){
  .footer2 .euf-mini-logos img{height:28px}
  .footer2 .euf-mini-wrap{margin:4px 0 0}
  dialog.euf-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}
  .euf-dialog .euf-panel{padding-right:18px;padding-top:56px}
}
@media (max-width:1024px){
  /* the footer centres Impressum / Datenschutz / Cookie-Einstellungen here -
     the collapsed notice follows them */
  .footer2 .euf-mini-wrap{display:none;margin:6px 0 30px}
  html.euf-js .footer2 .euf-mini-wrap{display:flex;justify-content:center}
  .footer2 .euf-mini{align-items:center;text-align:center}
  .footer2 .euf-mini-text{max-width:340px}
}
html.euf-open{overflow:hidden}
