/* =========================================================
   templatemp.css (mp2)
   - Hero: Action Photo + Overlay + Corner Logo (Vektor PNG)
   - Termine: echte Liste + Filter
   - Social Embeds responsive
   - scoped auf #top.mp2
   ========================================================= */

/* ---------- Reset / Base ---------- */
#top.mp2, #top.mp2 * { box-sizing: border-box; }
#top.mp2{
  --bg0:#070b14;
  --card1: rgba(255,255,255,.07);
  --card2: rgba(255,255,255,.05);
  --brd1: rgba(255,255,255,.10);
  --brd2: rgba(255,255,255,.16);
  --txt:#e9eef7;
  --muted: rgba(233,238,247,.74);
  --muted2: rgba(233,238,247,.58);
  --accent: rgba(49,138,255,.96);
  --ok: rgba(37,211,102,.22);
  --warn: rgba(255,200,0,.18);

  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(49,138,255,.25), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(0,212,255,.12), transparent 55%),
    var(--bg0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#top.mp2 img{ max-width:100%; height:auto; display:block; }
#top.mp2 a{ color:inherit; text-decoration:none; }
#top.mp2 button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }
#top.mp2 p{ margin:0 0 14px; line-height:1.7; }
#top.mp2 ul{ margin:0; padding-left:18px; }
#top.mp2 li{ margin:8px 0; color: var(--muted); }
#top.mp2 :focus-visible{ outline:2px solid rgba(255,255,255,.9); outline-offset:3px; }

#top.mp2 .mp2-container{ width:min(1120px, calc(100% - 36px)); margin:0 auto; }
html{ scroll-behavior: smooth; }

/* ---------- Typo ---------- */
#top.mp2 .mp2-kicker{ letter-spacing:.10em; text-transform:uppercase; font-size:12px; color:var(--muted2); }
#top.mp2 .mp2-h1{ font-size:clamp(32px, 4vw, 54px); line-height:1.03; margin:12px 0 10px; letter-spacing:-0.02em; }
#top.mp2 .mp2-h1 span{ font-weight:650; color:rgba(233,238,247,.92); }
#top.mp2 .mp2-h2{ font-size:clamp(22px, 2.1vw, 30px); margin:6px 0 0; letter-spacing:-0.01em; }
#top.mp2 .mp2-h3{ font-size:18px; margin:0 0 8px; }
#top.mp2 .mp2-lead{ font-size:16px; color:var(--muted); margin:0 0 16px; }
#top.mp2 .mp2-muted{ color:var(--muted); }
#top.mp2 .mp2-small{ font-size:12px; color:var(--muted2); }
#top.mp2 .mp2-space-2{ margin-top:14px; }

/* ---------- Card ---------- */
#top.mp2 .mp2-card{
  background: linear-gradient(180deg, var(--card1), var(--card2));
  border:1px solid var(--brd1);
  border-radius:18px;
  padding:20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}
#top.mp2 .mp2-card:hover{ border-color:var(--brd2); transform:translateY(-2px); filter:brightness(1.03); }

/* ---------- Buttons ---------- */
#top.mp2 .mp2-cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
#top.mp2 .mp2-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 15px; border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-weight:750; line-height:1; white-space:nowrap;
  transition: transform .14s ease, filter .14s ease, background .14s ease, border-color .14s ease;
}
#top.mp2 .mp2-btn--primary{ background:var(--accent); border-color:var(--accent); color:#071021; }
#top.mp2 .mp2-btn--ghost{ background:rgba(255,255,255,.06); }
#top.mp2 .mp2-btn--whatsapp{ background:var(--ok); border-color:rgba(37,211,102,.40); }
#top.mp2 .mp2-btn:hover{ transform:translateY(-1px); filter:brightness(1.06); }
#top.mp2 .mp2-btn:active{ transform:translateY(0); filter:brightness(1.0); }

/* ---------- Badges ---------- */
#top.mp2 .mp2-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
#top.mp2 .mp2-badge{
  font-size:12px; padding:7px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:rgba(233,238,247,.88);
}

/* =========================================================
   NAV
   ========================================================= */
#top.mp2 .mp2-nav{
  position:sticky; top:0; z-index:999;
  background: rgba(7,11,20,.62);
  border-bottom:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}
body.mp2-scrolled #top.mp2 .mp2-nav{
  background: rgba(7,11,20,.90);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
#top.mp2 .mp2-nav__inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; }

#top.mp2 .mp2-brand{ display:flex; align-items:center; gap:12px; min-width:230px; }
#top.mp2 .mp2-brand__logo{ width:42px; height:42px; }
#top.mp2 .mp2-brand__txt strong{ display:block; font-size:14px; }
#top.mp2 .mp2-brand__txt em{ display:block; font-style:normal; font-size:12px; color:var(--muted2); }

#top.mp2 .mp2-menu{ display:flex; align-items:center; gap:8px; }
#top.mp2 .mp2-menu > a,
#top.mp2 .mp2-dd__btn{
  padding:10px 12px; border-radius:12px; border:1px solid transparent;
  color:rgba(233,238,247,.92);
}
#top.mp2 .mp2-menu > a:hover,
#top.mp2 .mp2-dd__btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
#top.mp2 .mp2-menu__legal{ font-size:12px; color:var(--muted2); margin-left:6px; }

/* Burger */
#top.mp2 .mp2-burger{
  width:46px; height:42px; border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  display:none; align-items:center; justify-content:center; gap:5px; flex-direction:column;
}
#top.mp2 .mp2-burger span{ width:18px; height:2px; background:rgba(255,255,255,.92); border-radius:3px; }

/* Dropdown */
#top.mp2 .mp2-dd{ position:relative; }
#top.mp2 .mp2-dd__btn{ display:flex; align-items:center; gap:8px; }
#top.mp2 .mp2-dd__chev{ opacity:.85; transition: transform .14s ease; }
#top.mp2 .mp2-dd.is-open .mp2-dd__chev{ transform: rotate(180deg); }

#top.mp2 .mp2-dd__panel{
  position:absolute; top:calc(100% + 10px); left:0;
  min-width:280px; padding:10px; border-radius:16px;
  background: rgba(10,14,26,.96);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
  display:none;
}
#top.mp2 .mp2-dd.is-open .mp2-dd__panel{ display:block; }
#top.mp2 .mp2-dd__panel a{ display:block; padding:10px 12px; border-radius:12px; }
#top.mp2 .mp2-dd__panel a:hover{ background: rgba(255,255,255,.07); }
#top.mp2 .mp2-dd__sep{ height:1px; background: rgba(255,255,255,.10); margin:8px 0; }

/* Mobile nav */
@media (max-width: 960px){
  #top.mp2 .mp2-burger{ display:flex; }
  #top.mp2 .mp2-menu{
    position: fixed; left:0; right:0; top:66px;
    margin:0 auto; width:min(1120px, calc(100% - 16px));
    background: rgba(10,14,26,.98);
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    padding:10px;
    display:none;
    flex-direction:column;
    gap:6px;
    box-shadow: 0 22px 80px rgba(0,0,0,.55);
  }
  body.mp2-navOpen #top.mp2 .mp2-menu{ display:flex; }
  #top.mp2 .mp2-menu > a, #top.mp2 .mp2-dd__btn{ width:100%; text-align:left; }
  #top.mp2 .mp2-dd__panel{ position:static; display:none; min-width:0; box-shadow:none; margin-top:6px; }
  #top.mp2 .mp2-dd.is-open .mp2-dd__panel{ display:block; }
}

/* =========================================================
   HERO
   ========================================================= */
#top.mp2 .mp2-hero{ padding: 18px 0 10px; }

#top.mp2 .mp2-heroBg{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  box-shadow: 0 22px 90px rgba(0,0,0,.50);
}

#top.mp2 .mp2-heroBg__img{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

#top.mp2 .mp2-heroBg__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(7,11,20,.86) 0%, rgba(7,11,20,.52) 45%, rgba(7,11,20,.86) 100%),
    radial-gradient(700px 450px at 18% 18%, rgba(49,138,255,.30), transparent 60%),
    radial-gradient(700px 450px at 86% 18%, rgba(0,212,255,.18), transparent 60%);
}

/* Corner Logo */
#top.mp2 .mp2-heroCorner{
  position:absolute;
  right: 16px;
  top: 16px;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,11,20,.42);
  backdrop-filter: blur(12px);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(49,138,255,.20) inset,
    0 0 40px rgba(49,138,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
}
#top.mp2 .mp2-heroCorner img{
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.45));
}
@media (max-width: 960px){
  #top.mp2 .mp2-heroCorner{ right:12px; top:12px; width:72px; height:72px; border-radius:18px; }
  #top.mp2 .mp2-heroCorner img{ width:52px; height:52px; }
}

#top.mp2 .mp2-heroBg__content{
  position: relative;
  padding: 26px;
  z-index: 1;
}

#top.mp2 .mp2-hero__grid{
  display:grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 960px){
  #top.mp2 .mp2-hero__grid{ grid-template-columns: 1fr; }
}

/* Mini list */
#top.mp2 .mp2-miniList{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
#top.mp2 .mp2-miniItem{
  padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
#top.mp2 .mp2-miniItem strong{ display:block; }
#top.mp2 .mp2-miniItem span{ display:block; font-size:12px; color:var(--muted2); margin-top:2px; }
#top.mp2 .mp2-miniItem:hover{ background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); transform: translateY(-1px); }

/* Hero tiles */
#top.mp2 .mp2-heroTiles{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:10px;
  margin: 16px 0 0;
}
@media (max-width: 960px){
  #top.mp2 .mp2-heroTiles{ grid-template-columns: repeat(2, 1fr); }
}
#top.mp2 .mp2-tile{
  display:flex; gap:10px; align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
#top.mp2 .mp2-tile__icon{ font-size:20px; }
#top.mp2 .mp2-tile span{ display:block; font-size:12px; color:var(--muted2); margin-top:2px; }
#top.mp2 .mp2-tile:hover{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.16); transform:translateY(-1px); }

/* =========================================================
   Sections + Grids
   ========================================================= */
#top.mp2 .mp2-section{ padding: 44px 0; position: relative; }
#top.mp2 .mp2-section::before{
  content:""; position:absolute; left:0; right:0; top:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}

#top.mp2 .mp2-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; margin-bottom:18px;
}
@media (max-width: 960px){
  #top.mp2 .mp2-head{ flex-direction:column; align-items:flex-start; }
}

#top.mp2 .mp2-grid{ display:grid; gap: 16px; }
#top.mp2 .mp2-grid--2{ grid-template-columns: repeat(2, 1fr); }
#top.mp2 .mp2-grid--3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px){
  #top.mp2 .mp2-grid--2, #top.mp2 .mp2-grid--3{ grid-template-columns: 1fr; }
}

/* ===== Talenttraining: MEHR VERTIKALER ABSTAND =====
   Nur für das Grid mit id="talent-qa" (die 3 Kacheln)
   row-gap steuert die vertikale Luft (wenn es umbricht / mehrere Reihen hat).
   Zusätzlich geben wir der Call-Karte darunter mehr Abstand nach oben.
*/
#top.mp2 #talent-qa{
  row-gap: 26px;     /* <<< mehr vertikaler Abstand */
  column-gap: 16px;  /* horizontal bleibt normal */
}
#top.mp2 .mp2-call{
  margin-top: 26px;  /* <<< Abstand zur Reihe darüber */
}

/* Pills/links */
#top.mp2 .mp2-pill{
  display:inline-flex; padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:12px; margin-bottom:10px;
}
#top.mp2 .mp2-link{ display:inline-flex; margin-top:10px; opacity:.95; }
#top.mp2 .mp2-link:hover{ opacity:1; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   TERMINE: Filter + Cards
   ========================================================= */
#top.mp2 .mp2-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
@media (max-width: 960px){
  #top.mp2 .mp2-filters{ justify-content:flex-start; }
}

#top.mp2 .mp2-filter{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,247,.90);
  font-weight:750;
  font-size:13px;
  line-height:1;
  transition: transform .14s ease, filter .14s ease, background .14s ease, border-color .14s ease;
}
#top.mp2 .mp2-filter:hover{ transform: translateY(-1px); filter: brightness(1.06); }
#top.mp2 .mp2-filter.is-active{
  background: rgba(49,138,255,.22);
  border-color: rgba(49,138,255,.55);
}

#top.mp2 .mp2-terms{ display:grid; gap:16px; }

#top.mp2 .mp2-term__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

#top.mp2 .mp2-term__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  padding:7px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(233,238,247,.88);
  white-space: nowrap;
}
#top.mp2 .mp2-term__badge--ok{ background: var(--ok); border-color: rgba(37,211,102,.40); }
#top.mp2 .mp2-term__badge--few{ background: var(--warn); border-color: rgba(255,200,0,.35); }

#top.mp2 .mp2-term__meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 12px;
  margin-top: 12px;
}
@media (max-width: 960px){
  #top.mp2 .mp2-term__meta{ grid-template-columns: 1fr; }
}

#top.mp2 .mp2-metaItem{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:14px;
  padding:10px 12px;
}
#top.mp2 .mp2-metaItem b{ display:block; font-size:12px; color: var(--muted2); margin-bottom: 3px; }
#top.mp2 .mp2-metaItem span{ display:block; color: rgba(233,238,247,.90); }

/* =========================================================
   SOCIAL Embeds
   ========================================================= */
#top.mp2 .mp2-embed{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  overflow:hidden;
}
#top.mp2 .mp2-embed__head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
#top.mp2 .mp2-embed__head strong{ font-size: 14px; }
#top.mp2 .mp2-embed__body{ padding: 0; }

#top.mp2 .mp2-iframe{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
#top.mp2 .mp2-iframe iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}

/* =========================================================
   FORM
   ========================================================= */
#top.mp2 .mp2-form label{ display:block; font-size:12px; color:var(--muted2); margin:0 0 6px; }
#top.mp2 .mp2-form input,
#top.mp2 .mp2-form select,
#top.mp2 .mp2-form textarea{
  width:100%;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:11px 12px;
  color: var(--txt);
}
#top.mp2 .mp2-form textarea{ min-height: 120px; resize: vertical; }
#top.mp2 .mp2-row2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 960px){ #top.mp2 .mp2-row2{ grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
#top.mp2 .mp2-footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding: 30px 0 18px;
  margin-top: 10px;
}
#top.mp2 .mp2-footer__grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 960px){ #top.mp2 .mp2-footer__grid{ grid-template-columns: 1fr; } }

#top.mp2 .mp2-footer__brand{ display:flex; gap:12px; align-items:center; }
#top.mp2 .mp2-footer__brand img{ width:46px; height:46px; }
#top.mp2 .mp2-footer__brand span{ display:block; color: var(--muted2); font-size: 12px; }

#top.mp2 .mp2-footer__col h4{ margin:0 0 8px; font-size:14px; }
#top.mp2 .mp2-footer__col p{ margin:0; color: var(--muted); }
#top.mp2 .mp2-footer__col a:hover{ text-decoration: underline; text-underline-offset: 3px; }

#top.mp2 .mp2-footer__bottom{
  display:flex; justify-content:space-between; gap:12px;
  margin-top:14px; padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  color: var(--muted2);
}
@media (max-width: 960px){ #top.mp2 .mp2-footer__bottom{ flex-direction: column; } }

/* Safety */
#top.mp2 main, #top.mp2 section, #top.mp2 header, #top.mp2 footer, #top.mp2 nav, #top.mp2 aside{ display:block; }
#top.mp2 .mp2-btn, #top.mp2 .mp2-link{ width:auto; }
/* =========================================================
   FIX: Weißer Rahmen + doppeltes Sticky
   Nur auf Talentakademie (itemid-101)
   ========================================================= */

/* 1) Joomla/Cassiopeia Header entfernen (damit nur mp2-nav sichtbar ist) */
body.itemid-101 header.header.container-header.full-width{
  display:none !important;
}

/* 2) Weißer Rahmen / helle Außenflächen weg (Wrapper/Grid) */
body.itemid-101,
body.itemid-101 .site,
body.itemid-101 .site-grid,
body.itemid-101 .grid-child,
body.itemid-101 .container-component,
body.itemid-101 main{
  background: #070b14 !important;
}

/* 3) Typische "weiße Box" / Rahmen durch Container-Padding/Margins killen */
body.itemid-101 .site-grid{
  padding: 0 !important;
  margin: 0 !important;
}
body.itemid-101 .container-component{
  padding: 0 !important;
  margin: 0 !important;
}
body.itemid-101 .grid-child{
  padding: 0 !important;
  margin: 0 !important;
}

/* 4) SP Page Builder oft mit weißem Background */
body.itemid-101 #sp-page-builder,
body.itemid-101 .sppb-page-container,
body.itemid-101 .sppb-section,
body.itemid-101 .sppb-row-container{
  background: transparent !important;
}
/* =========================================================
   FOOTER
   ========================================================= */
#top.mp2 .mp2-footer{
  border-top:1px solid rgba(255,255,255,.10);
  padding: 30px 0 18px;
  margin-top: 20px;
  background: rgba(7,11,20,.85);
}

#top.mp2 .mp2-footer__grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:16px;
  align-items:start;
}

@media (max-width: 960px){
  #top.mp2 .mp2-footer__grid{ grid-template-columns: 1fr; }
}

#top.mp2 .mp2-footer__brand{
  display:flex;
  gap:12px;
  align-items:center;
}

#top.mp2 .mp2-footer__brand img{
  width:46px;
  height:46px;
  object-fit:contain;
}

#top.mp2 .mp2-footer__brand span{
  display:block;
  color: rgba(233,238,247,.58);
  font-size: 12px;
}

#top.mp2 .mp2-footer__col h4{
  margin:0 0 8px;
  font-size:14px;
}

#top.mp2 .mp2-footer__col p{
  margin:0;
  color: rgba(233,238,247,.74);
  font-size: 14px;
}

#top.mp2 .mp2-footer__col a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

#top.mp2 .mp2-footer__bottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  color: rgba(233,238,247,.58);
  font-size: 13px;
}

@media (max-width: 960px){
  #top.mp2 .mp2-footer__bottom{
    flex-direction: column;
  }
}
/* SPPB / Joomla: verhindert, dass Inhalte nach unten abgeschnitten werden */
body.itemid-101 #sp-page-builder,
body.itemid-101 #sp-page-builder .page-content,
body.itemid-101 #sp-page-builder .sppb-section,
body.itemid-101 #sp-page-builder .sppb-section .sppb-row-container{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Falls die letzte Section ein hartes Padding/Margin 0 hat */
body.itemid-101 #sp-page-builder .sppb-section:last-child{
  padding-bottom: 40px !important;
}
/* =========================================================
   SPPB / Joomla FIX (Itemid 101 = Talentakademie)
   - entfernt weißen Rahmen/Shadow
   - verhindert Abschneiden unten
   - sorgt dafür, dass Footer sichtbar ist
   ========================================================= */

body.itemid-101 main,
body.itemid-101 .site-grid,
body.itemid-101 .grid-child.container-component{
  background: transparent !important;
}

/* SPPB: keine weißen Box-Shadows / Rahmen */
body.itemid-101 #sp-page-builder .sppb-section,
body.itemid-101 #sp-page-builder .page-content .sppb-section{
  box-shadow: none !important;
  background: transparent !important;
}

/* SPPB: häufige Ursache, warum Footer “verschwindet” */
body.itemid-101 #sp-page-builder,
body.itemid-101 #sp-page-builder .page-content,
body.itemid-101 #sp-page-builder .sppb-section,
body.itemid-101 #sp-page-builder .sppb-row-container{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Wenn das Template dem Main oben zu viel “sticky padding” gibt */
body.itemid-101 main{
  padding-top: 0 !important;
}

/* Etwas Luft unten, damit Footer nicht an der Kante klebt */
body.itemid-101 #top.mp2{
  padding-bottom: 40px;
}

/* =========================================================
   Footer Styling (falls noch nicht vorhanden / zur Sicherheit)
   ========================================================= */
#top.mp2 .mp2-footer{
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

#top.mp2 .mp2-footer__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

#top.mp2 .mp2-footer__brand{
  display: flex;
  gap: 12px;
  align-items: center;
}

#top.mp2 .mp2-footer__brand img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

#top.mp2 .mp2-footer__col h4{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#top.mp2 .mp2-footer__col p{
  margin: 0;
  opacity: .85;
}

#top.mp2 .mp2-footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  opacity: .85;
}

@media (max-width: 900px){
  #top.mp2 .mp2-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  #top.mp2 .mp2-footer__grid{ grid-template-columns: 1fr; }
  #top.mp2 .mp2-footer__bottom{ flex-direction: column; align-items: flex-start; }
}
body.itemid-101 #sp-page-builder,
body.itemid-101 #sp-page-builder .page-content,
body.itemid-101 #sp-page-builder .sppb-section,
body.itemid-101 #sp-page-builder .sppb-row-container{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
/* ==========================
   Footer Fine-Tuning
   ========================== */

/* weniger Abstand vor dem Footer */
#top.mp2 .mp2-footer{
  margin-top: 28px !important;   /* war optisch zu groß */
  padding-top: 22px !important;
  padding-bottom: 18px !important;
}

/* Grid kompakter + bessere Lesbarkeit */
#top.mp2 .mp2-footer__grid{
  gap: 14px !important;
}

/* Footer-Bottom: weniger Höhe + links/rechts sauber */
#top.mp2 .mp2-footer__bottom{
  margin-top: 14px !important;
  padding-top: 10px !important;
  padding-bottom: 4px !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* “Nach oben” nicht so weit rechts kleben */
#top.mp2 .mp2-footer__bottom a{
  opacity: .85;
}

/* Optional: Text etwas heller/knackiger */
#top.mp2 .mp2-footer__col p,
#top.mp2 .mp2-footer__bottom{
  opacity: .9 !important;
}
/* ==========================
   Footer: Inline Legal + Social
   ========================== */

#top.mp2 .mp2-footer__bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

#top.mp2 .mp2-footer__legal{
  display: flex;
  gap: 8px;
  align-items: center;
}

#top.mp2 .mp2-footer__legal a{
  text-decoration: none;
  opacity: .9;
}

#top.mp2 .mp2-footer__legal a:hover{
  opacity: 1;
}

#top.mp2 .mp2-footer__social{
  display: flex;
  gap: 10px;
  font-size: 18px;
}

#top.mp2 .mp2-footer__social a{
  text-decoration: none;
  opacity: .85;
  transition: transform .15s ease, opacity .15s ease;
}

#top.mp2 .mp2-footer__social a:hover{
  opacity: 1;
  transform: translateY(-2px);
}

#top.mp2 .mp2-footer__copy{
  opacity: .7;
  white-space: nowrap;
}
/* ===========================
   NEWS Cards: Bild oben + Overlay
   =========================== */

#top.mp2 .mp2-newsCard{
  padding: 0;
  overflow: hidden;
}

#top.mp2 .mp2-cardMedia{
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* dunkles Overlay für bessere Lesbarkeit */
#top.mp2 .mp2-cardMedia::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.10),
    rgba(0,0,0,.55)
  );
}

#top.mp2 .mp2-cardBody{
  padding: 18px 18px 20px;
}

/* Optional: hübscher Hover */
#top.mp2 .mp2-newsCard:hover .mp2-cardMedia{
  transform: scale(1.02);
  transition: transform .35s ease;
}
#top.mp2 .mp2-cardMedia{
  transition: transform .35s ease;
}
/* =========================================================
   SOCIAL EMBEDS: Mockup Cover Images
   ========================================================= */

#top.mp2 .mp2-embed--withCover{
  overflow: hidden;
}

#top.mp2 .mp2-embedCover{
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* leichte Abdunklung + “Glas”-Look wie der Rest */
#top.mp2 .mp2-embedCover::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%),
    radial-gradient(80% 120% at 20% 10%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 60%);
  pointer-events:none;
}

/* optional: kleines Label unten links auf dem Bild */
#top.mp2 .mp2-embedCover::before{
  content:"Preview";
  position:absolute;
  left:14px;
  bottom:14px;
  padding:6px 10px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Body etwas kompakter unter dem Cover */
#top.mp2 .mp2-embed--withCover .mp2-embed__head{
  padding-top: 16px;
}

#top.mp2 .mp2-embedNote{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 12px 0 4px;
  color: rgba(233,238,247,.75);
  font-size: 14px;
}

#top.mp2 .mp2-embedNote span:first-child{
  color: rgba(233,238,247,.95);
  font-weight: 700;
}

/* responsive: Cover etwas höher auf großen Screens */
@media (min-width: 992px){
  #top.mp2 .mp2-embedCover{ height: 260px; }
}
