.kfnw-tl{--kfnw-gap:16px; --kfnw-radius:14px; --kfnw-border: rgba(0,0,0,.08); --kfnw-muted: rgba(0,0,0,.65);}

.kfnw-tl__tabs{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;}
.kfnw-tl__tab{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:999px;
  border:1px solid var(--kfnw-border);
  text-decoration:none;
  line-height:1;
}
.kfnw-tl__tab.is-active{font-weight:600;}

.kfnw-tl__panel[aria-hidden="true"]{display:none;}

.kfnw-tl__list{display:flex; flex-direction:column; gap:12px;}

.kfnw-tl__list--cols-2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.kfnw-tl__list--cols-2 .kfnw-tl__month{grid-column:1 / -1;}

@media (max-width: 700px){
  .kfnw-tl__list--cols-2{grid-template-columns:1fr;}
}
/* featured (recurring) block columns are defined *after* the base rule below
   to avoid being overridden by later CSS. */



.kfnw-tl__item{
  display:grid;
  grid-template-columns: 170px 1fr;
  gap: var(--kfnw-gap);
  border:1px solid var(--kfnw-border);
  border-left: 6px solid var(--kfnw-team-color, #2e7d32);
  border-radius: var(--kfnw-radius);
  padding:14px 14px;
  background: #fff;
}

.kfnw-tl__when{min-width:0;}
.kfnw-tl__date{font-weight:600;}
.kfnw-tl__time{color: var(--kfnw-muted); margin-top:4px;}

.kfnw-tl__title-row{display:flex; gap:10px; align-items:baseline; flex-wrap:wrap;}
.kfnw-tl__title{margin:0; font-size:1.05em;}
.kfnw-tl__team{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--kfnw-team-color, #2e7d32);
  color: var(--kfnw-team-color, #2e7d32);
  font-size:0.85em;
  line-height:1.2;
}

.kfnw-tl__team-link{ text-decoration:none; }
.kfnw-tl__team-link:focus-visible{ outline:2px solid currentColor; outline-offset:2px; border-radius:999px; }

.kfnw-tl__desc{margin-top:8px; color: var(--kfnw-muted);}
.kfnw-tl__empty{padding:12px 0; color: var(--kfnw-muted);}

.kfnw-tl__pagination{margin-top:16px;}
.kfnw-tl__pagination ul{display:flex; gap:8px; list-style:none; padding:0; margin:0; flex-wrap:wrap;}
.kfnw-tl__pagination li{margin:0;}
.kfnw-tl__pagination a, .kfnw-tl__pagination span{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:10px;
  border:1px solid var(--kfnw-border);
  text-decoration:none;
}
.kfnw-tl__pagination .current{font-weight:600;}

@media (max-width: 700px){
  .kfnw-tl__item{grid-template-columns: 1fr;}
  .kfnw-tl__when{display:flex; justify-content:space-between; gap:10px; align-items:baseline;}
  .kfnw-tl__time{margin-top:0;}
}


.kfnw-tl__filter{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px;}
.kfnw-tl__filter-label{font-weight:600;}
.kfnw-tl__filter-select{padding:8px 10px; border-radius:10px; border:1px solid var(--kfnw-border);}

.kfnw-tl__month{margin-top:8px; font-weight:700; opacity:.85;}


/* Team Dashboard */
.kfnw-teamdash{--kfnw-gap:24px; --kfnw-radius:20px; --kfnw-border: rgba(16,24,40,.08); --kfnw-muted: rgba(16,24,40,.68); --kfnw-surface:#fff; --kfnw-surface-soft:#f8fafb; color:#101828;}
.kfnw-teamdash__shell{max-width:1120px; margin:0 auto;}
.kfnw-teamdash__header{margin:0 auto 28px;}
.kfnw-teamdash__header-main{display:grid; grid-template-columns:minmax(120px,160px) minmax(0,1fr) auto; gap:24px; align-items:start; padding:28px; border:1px solid var(--kfnw-border); border-radius:calc(var(--kfnw-radius) + 4px); background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,251,.96)); box-shadow:0 14px 40px rgba(16,24,40,.04);}
.kfnw-teamdash__logo{display:flex; justify-content:center; align-items:center; min-height:96px;}
.kfnw-teamdash__logo-img{max-width:140px; max-height:140px; width:auto; height:auto; display:block;}
.kfnw-teamdash__logo--placeholder{font-weight:700; padding:14px 18px; border:1px solid var(--kfnw-border); border-radius:18px; background:var(--kfnw-surface-soft);}
.kfnw-teamdash__intro-wrap{min-width:0;}
.kfnw-teamdash__eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; color:var(--kfnw-team-color, #2e7d32); margin-bottom:10px;}
.kfnw-teamdash__teamname{margin:0 0 10px; font-size:clamp(1.6rem, 2vw, 2.2rem); line-height:1.1;}
.kfnw-teamdash__intro{color:var(--kfnw-muted); max-width:68ch; line-height:1.65;}
.kfnw-teamdash__intro > :first-child{margin-top:0;}
.kfnw-teamdash__intro > :last-child{margin-bottom:0;}
.kfnw-teamdash__header-actions{display:flex; align-items:flex-start; justify-content:flex-end;}
.kfnw-teamdash__meta-bar{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;}
.kfnw-teamdash__meta-pill{display:inline-flex; flex-direction:column; gap:2px; padding:10px 14px; min-width:170px; border:1px solid var(--kfnw-border); border-radius:14px; background:rgba(255,255,255,.9);}
.kfnw-teamdash__meta-pill span{font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--kfnw-muted);}
.kfnw-teamdash__meta-pill strong{font-size:.96rem; line-height:1.35;}
.kfnw-teamdash__grid{display:grid; grid-template-columns:1.45fr .95fr; gap:var(--kfnw-gap); align-items:start;}
.kfnw-teamdash__grid > .kfnw-teamdash__tile:first-child{grid-row:span 2;}
.kfnw-teamdash__tile{border:1px solid var(--kfnw-border); border-radius:var(--kfnw-radius); padding:22px; background:var(--kfnw-surface); min-width:0; box-shadow:0 6px 24px rgba(16,24,40,.03);}
.kfnw-teamdash--tinted .kfnw-teamdash__tile,.kfnw-teamdash--tinted .kfnw-teamdash__header-main,.kfnw-teamdash--tinted .kfnw-teamdash__slider{background:color-mix(in srgb, var(--kfnw-team-color, #2e7d32) min(var(--kfnw-team-tint, 12%), 8%), #fff);}
.kfnw-teamdash__title{margin:0 0 14px; font-size:1rem; line-height:1.3;}
.kfnw-teamdash__list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px;}
.kfnw-teamdash__list--posts{gap:14px;}
.kfnw-teamdash__row{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; min-width:0; padding:10px 0; border-top:1px solid rgba(16,24,40,.06);}
.kfnw-teamdash__row:first-child{border-top:0; padding-top:0;}
.kfnw-teamdash__row--stacked{flex-direction:column; gap:4px;}
.kfnw-teamdash__link{min-width:0; color:inherit; text-decoration:none; font-weight:600; line-height:1.45;}
.kfnw-teamdash__link:hover,.kfnw-teamdash__slide-title:hover{text-decoration:underline;}
.kfnw-teamdash__text{min-width:0; line-height:1.45;}
.kfnw-teamdash__meta{color:var(--kfnw-muted); font-size:.9em; white-space:nowrap;}
.kfnw-teamdash__empty{color:var(--kfnw-muted);}
.kfnw-teamdash__contact-person{margin-bottom:12px; font-weight:600; line-height:1.5;}
.kfnw-teamdash__btn{display:inline-flex; align-items:center; justify-content:center; padding:11px 15px; border-radius:999px; border:1px solid color-mix(in srgb, var(--kfnw-team-color, #2e7d32) 40%, #d0d5dd); background:color-mix(in srgb, var(--kfnw-team-color, #2e7d32) 6%, #fff); color:var(--kfnw-team-color, #2e7d32); text-decoration:none; font-weight:600; transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;}
.kfnw-teamdash__btn:hover{transform:translateY(-1px); box-shadow:0 8px 20px rgba(16,24,40,.06);}
.kfnw-teamdash__btn--ghost{background:#fff;}
.kfnw-teamdash__slider{margin:0 0 24px; border:1px solid var(--kfnw-border); border-radius:var(--kfnw-radius); padding:18px; background:var(--kfnw-surface); box-shadow:0 6px 24px rgba(16,24,40,.03);}
.kfnw-teamdash__slider-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px;}
.kfnw-teamdash__slider-headline{display:flex; flex-direction:column; gap:2px;}
.kfnw-teamdash__slider-title{margin:0; font-size:1.05rem; line-height:1.3;}
.kfnw-teamdash__slider-nav{display:flex; gap:8px;}
.kfnw-teamdash__slider-btn{display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; border:1px solid var(--kfnw-border); background:#fff; cursor:pointer; font-size:20px; line-height:1; transition:background-color .18s ease, transform .18s ease;}
.kfnw-teamdash__slider-btn:hover{background:var(--kfnw-surface-soft); transform:translateY(-1px);}
.kfnw-teamdash__slider-track{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px;}
.kfnw-teamdash__slide{display:none; min-width:0; border:1px solid rgba(16,24,40,.06); border-radius:16px; background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,251,.92));}
.kfnw-teamdash__slide.is-visible{display:block;}
.kfnw-teamdash__slide-body{padding:14px 14px 15px;}
.kfnw-teamdash__slide-date{font-size:.8rem; color:var(--kfnw-muted); margin-bottom:8px;}
.kfnw-teamdash__slide-title{display:block; color:inherit; text-decoration:none; font-weight:700; line-height:1.4; margin-bottom:8px;}
.kfnw-teamdash__slide-excerpt{color:var(--kfnw-muted); font-size:.92rem; line-height:1.55;}
@media (max-width: 980px){
  .kfnw-teamdash__header-main{grid-template-columns:120px 1fr; }
  .kfnw-teamdash__header-actions{grid-column:1 / -1; justify-content:flex-start;}
  .kfnw-teamdash__grid{grid-template-columns:1fr;}
  .kfnw-teamdash__grid > .kfnw-teamdash__tile:first-child{grid-row:auto;}
  .kfnw-teamdash__slider-track{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width: 640px){
  .kfnw-teamdash__header{margin-bottom:20px;}
  .kfnw-teamdash__header-main{grid-template-columns:1fr; padding:20px; gap:18px;}
  .kfnw-teamdash__logo{justify-content:flex-start;}
  .kfnw-teamdash__logo-img{max-width:112px; max-height:112px;}
  .kfnw-teamdash__meta-pill{min-width:0; width:100%;}
  .kfnw-teamdash__tile,.kfnw-teamdash__slider{padding:16px;}
  .kfnw-teamdash__slider-track{grid-template-columns:1fr;}
  .kfnw-teamdash__row{flex-direction:column; gap:4px;}
  .kfnw-teamdash__meta{white-space:normal;}
}

.kfnw-tl--color-tint .kfnw-tl__content{background: var(--kfnw-team-tint, transparent); border-radius:12px; padding:10px;}
.kfnw-tl--color-solid .kfnw-tl__content{background: var(--kfnw-team-color, #2e7d32); color:#fff; border-radius:12px; padding:10px;}
.kfnw-tl--color-solid .kfnw-tl__desc, .kfnw-tl--color-solid .kfnw-tl__location, .kfnw-tl--color-solid .kfnw-tl__export a{color:#fff; opacity:.95;}
.kfnw-tl--color-solid .kfnw-tl__team{border-color:#fff; color:#fff;}

.kfnw-tl__team-top{margin-bottom:8px;}
.kfnw-tl__cancelled{display:inline-flex; padding:4px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.25); font-size:.85em;}
.kfnw-tl__title[data-cancelled="1"]{text-decoration: line-through; opacity:.85;}
.kfnw-tl__location{margin-top:4px;}
.kfnw-tl__location a{text-decoration:underline;}
.kfnw-tl__export{margin-top:10px; font-size:.9em; display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.kfnw-tl__export a{text-decoration:underline;}
.kfnw-tl__export-sep{opacity:.6;}

.kfnw-tl__featured{margin-bottom:18px; padding:14px; border:1px solid var(--kfnw-border); border-radius: var(--kfnw-radius); background:#fff;}
.kfnw-tl__featured-title{margin:0 0 12px 0; font-size:1.1em;}
.kfnw-tl__featured-list{display:flex; flex-direction:column; gap:12px;}
.kfnw-tl__featured-list.kfnw-tl__featured-list--cols-2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.kfnw-tl__featured-list.kfnw-tl__featured-list--cols-2 .kfnw-tl__featured-item{height:100%;}
@media (max-width: 700px){
  .kfnw-tl__featured-list.kfnw-tl__featured-list--cols-2{grid-template-columns:1fr;}
}
.kfnw-tl__featured-item{border:1px solid var(--kfnw-border); border-left:6px solid var(--kfnw-team-color, #2e7d32); border-radius: var(--kfnw-radius); padding:14px; background: var(--kfnw-team-tint, #fff);}
.kfnw-tl__featured-head{display:flex; justify-content:flex-start; margin-bottom:6px;}
.kfnw-tl__featured-head .kfnw-tl__team{font-size:.85em;}
.kfnw-tl__featured-item-title{margin:0;}
.kfnw-tl__featured-next{margin-top:6px; opacity:.85;}


/* v0.3 tweaks: spacing + cleaner layout */
.kfnw-tl__filter{margin-bottom:22px;}
.kfnw-tl__tabs{margin-bottom:22px;}
.kfnw-tl__tab{padding:10px 16px;}

.kfnw-tl__item{padding:16px;}
.kfnw-tl__content{align-self:stretch; width:100%;}
.kfnw-tl--color-tint .kfnw-tl__content{background: var(--kfnw-team-tint, rgba(0,0,0,.04));}
.kfnw-tl--color-tint .kfnw-tl__content,
.kfnw-tl--color-solid .kfnw-tl__content{padding:12px 14px;}

.kfnw-tl__title-row{display:flex; align-items:flex-start; gap:12px;}
.kfnw-tl__title-left{display:flex; flex-direction:column; gap:6px; min-width:0;}
.kfnw-tl__export--compact{margin-top:0; margin-left:auto; font-size:.85em; opacity:.8; white-space:nowrap;}
.kfnw-tl__export--compact a{text-decoration:none; border-bottom:1px solid currentColor;}
.kfnw-tl__export--compact a:hover{opacity:.9;}
.kfnw-tl__desc{margin-top:10px;}
.kfnw-tl__location{margin-top:10px; font-size:.95em; opacity:.9;}

@media (max-width:700px){
  .kfnw-tl__export--compact{margin-left:0;}
  .kfnw-tl__title-row{flex-direction:column;}
}


/* v0.4 layout: full right tint + export pinned */
.kfnw-tl__content{position:relative;}
.kfnw-tl--color-tint .kfnw-tl__content{background: var(--kfnw-team-tint, rgba(0,0,0,.04));}
.kfnw-tl__export-wrap{position:absolute; top:10px; right:12px;}
.kfnw-tl__export--compact{margin:0; font-size:.82em; opacity:.85;}
.kfnw-tl__export--compact a{padding:0; border-bottom:1px solid currentColor; text-decoration:none;}
.kfnw-tl__title-row{padding-right:96px;}
.kfnw-tl__team-left{margin-top:10px;}
.kfnw-tl__when .kfnw-tl__team{font-size:.82em;}

@media (max-width:700px){
  .kfnw-tl__export-wrap{position:static; margin-top:6px; margin-left:auto;}
  .kfnw-tl__title-row{padding-right:0;}
}


/* v0.5: tint/solid should cover the entire right column area (not only inner content box) */
.kfnw-tl__item{position:relative; overflow:hidden; --kfnw-left-col:170px;}
.kfnw-tl__item > *{position:relative; z-index:1;}

.kfnw-tl--color-tint .kfnw-tl__item::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left: calc(var(--kfnw-left-col) + var(--kfnw-gap));
  right:0;
  background: var(--kfnw-team-tint, rgba(0,0,0,.04));
  z-index:0;
}

.kfnw-tl--color-solid .kfnw-tl__item::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  left: calc(var(--kfnw-left-col) + var(--kfnw-gap));
  right:0;
  background: var(--kfnw-team-color, #2e7d32);
  opacity:.12;
  z-index:0;
}

/* inner content transparent in tint mode; background comes from ::after */
.kfnw-tl--color-tint .kfnw-tl__content{background: transparent !important;}

@media (max-width: 700px){
  .kfnw-tl__item{--kfnw-left-col:0px;}
  .kfnw-tl--color-tint .kfnw-tl__item::after,
  .kfnw-tl--color-solid .kfnw-tl__item::after{ left:0; }
}


/* v0.6: clearer calendar links (may be longer) */
.kfnw-tl__export--compact{white-space:normal; max-width:100%; text-align:right;}
.kfnw-tl__export--compact a{display:inline-block;}
@media (max-width:700px){
  .kfnw-tl__export--compact{text-align:left;}
}


/* v0.7: calendar export icons */
.kfnw-tl__export--icons{
  display:flex;
  gap:10px;
  align-items:center;
}

.kfnw-tl__export-icon{
  font-size:1.15em;
  text-decoration:none;
  line-height:1;
  opacity:.75;
}

.kfnw-tl__export-icon:hover{
  opacity:1;
}

.kfnw-tl__export-icon--single{}
.kfnw-tl__export-icon--series{
  font-size:0.9em;
  opacity:.55;
}

.kfnw-tl__export-icon--series:hover{
  opacity:.85;
}



/* v0.7.2: export icons under team tag (left column) */
.kfnw-tl__when .kfnw-tl__export--icons{
  margin-top:8px;
  gap:8px;
  justify-content:flex-start;
}

.kfnw-tl__when .kfnw-tl__export-icon{
  font-size:1.05em;
}



/* v0.7.3: same subtle frame for the lower list panels as the featured section */
.kfnw-tl__panels{
  border:1px solid var(--kfnw-border);
  border-radius: var(--kfnw-radius);
  background:#fff;
  padding:14px;
}

.kfnw-tl__panel{margin:0;}
.kfnw-tl__list{margin-top:0;}
.kfnw-tl__pagination{margin-top:14px;}


/* v1.0.2: export icons top-right INSIDE left column */
.kfnw-tl__when{
  position:relative;
}

.kfnw-tl__export-left{
  position:absolute;
  top:6px;
  right:6px;
}

.kfnw-tl__export-left .kfnw-tl__export--icons{
  gap:6px;
}

.kfnw-tl__export-left .kfnw-tl__export-icon{
  font-size:1em;
}



/* v1.0.3: cleaner export icons */
.kfnw-sr{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.kfnw-tl__when{padding-right:54px;} /* room for icons */
.kfnw-tl__export-left{top:10px; right:10px;}

.kfnw-tl__export-left .kfnw-tl__export--icons{gap:6px;}
.kfnw-tl__export-left .kfnw-tl__export-icon{
  width:30px; height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--kfnw-border);
  border-radius:10px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity:1;
}

.kfnw-tl__export-left .kfnw-tl__export-icon:hover{
  background:#fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.kfnw-tl__export-left .kfnw-tl__export-icon .kfnw-icon{
  width:16px; height:16px;
  fill: currentColor;
  opacity:.8;
}

@media (max-width:700px){
  .kfnw-tl__when{padding-right:44px;}
  .kfnw-tl__export-left{top:8px; right:8px;}
  .kfnw-tl__export-left .kfnw-tl__export-icon{width:28px; height:28px; border-radius:10px;}
}


/* v1.0.4: export icons ABOVE date in left column */
.kfnw-tl__when{
  padding-top:44px; /* space for icons row */
}

.kfnw-tl__export-left{
  top:8px;
  right:8px;
}



/* v1.0.5: cleaner positioning of export icons above date */
.kfnw-tl__when{
  padding-top:26px; /* reduced vertical gap */
}

.kfnw-tl__export-left{
  top:6px;
  left:12px;
  right:auto;
}

.kfnw-tl__export-left .kfnw-tl__export--icons{
  gap:6px;
}

@media (max-width:700px){
  .kfnw-tl__when{padding-top:22px;}
  .kfnw-tl__export-left{top:6px; left:10px;}
}


/* v1.0.6: prevent overlap – icons get own row above date */
.kfnw-tl__when{
  padding-top:0;
}

.kfnw-tl__export-left{
  position:static;
  margin-bottom:8px;
}

.kfnw-tl__export-left .kfnw-tl__export--icons{
  justify-content:flex-start;
}



/* v1.0.7: slightly smaller export icons */
.kfnw-tl__export-left .kfnw-tl__export-icon{
  width:26px;
  height:26px;
}

.kfnw-tl__export-left .kfnw-icon{
  width:14px;
  height:14px;
}

/* v1.1.0: tabs like example */
.kfnw-tl__tabs{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;}
.kfnw-tl__tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border:1px solid var(--kfnw-border);
  border-radius:12px;
  background:#f6f7f9;
  color:inherit;
  text-decoration:none;
  font-weight:600;
}
.kfnw-tl__tab.is-active{
  background:#fff;
  border-color:#d8dadd;
}


/* v1.2.0: Team-Übersicht */
.kfnw-teams{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:34px 46px;
  margin: 10px 0 30px;
}

.kfnw-teams--cols-1{grid-template-columns: 1fr;}
.kfnw-teams--cols-2{grid-template-columns: repeat(2, minmax(0,1fr));}
.kfnw-teams--cols-3{grid-template-columns: repeat(3, minmax(0,1fr));}
.kfnw-teams--cols-4{grid-template-columns: repeat(4, minmax(0,1fr));}

.kfnw-team__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
}

.kfnw-team__actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.kfnw-team__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background: var(--kfnw-team-color);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.kfnw-team__btn:hover{filter: brightness(.97);}

.kfnw-team__termine{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--kfnw-border);
  background:#fff;
  text-decoration:none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity:.9;
}
.kfnw-team__termine:hover{opacity:1; box-shadow:0 2px 6px rgba(0,0,0,.06);}
.kfnw-team__termine .kfnw-icon{fill:currentColor; opacity:.85;}

/* Team-Übersicht: Mail-Icon (nur wenn Kontakt-E-Mail gesetzt) */
.kfnw-team__mail{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--kfnw-border);
  background:#fff;
  text-decoration:none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity:.9;
}
.kfnw-team__mail:hover{opacity:1; box-shadow:0 2px 6px rgba(0,0,0,.06);} 
.kfnw-team__mail .kfnw-icon{fill:currentColor; opacity:.85;}

.kfnw-team__box{
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(0,0,0,.04);
}
@supports (background: color-mix(in srgb, #000 10%, #fff)) {
  .kfnw-team__box{
    background: color-mix(in srgb, var(--kfnw-team-color) calc(var(--kfnw-team-tint-opacity, .18) * 100%), #ffffff);
  }
}

@media (max-width: 900px){
  .kfnw-teams{grid-template-columns: 1fr; gap:22px;}
}


/* v1.3.1: Team-Übersicht – gleichgroße Boxen + Teamfarbe deutlicher */
.kfnw-team{
  display:flex;
  flex-direction:column;
}

.kfnw-team__box{
  flex:1;
  min-height: 110px;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,.06);
  /* Fallback: neutrale Fläche + klare Teamfarbe als Akzent */
  background: rgba(0,0,0,.04);
  border-left: 6px solid var(--kfnw-team-color);
}

@supports (background: color-mix(in srgb, #000 10%, #fff)) {
  .kfnw-team__box{
    border-left-color: transparent;
    background: color-mix(in srgb, var(--kfnw-team-color) calc(var(--kfnw-team-tint-opacity, .18) * 100%), #ffffff);
  }
}

.kfnw-team__box p{ margin: 0; }
.kfnw-team__box p + p{ margin-top: 10px; }


/* v1.5.0: Filter (Typ + Suche) */
.kfnw-tl__filter{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.kfnw-tl__filter--below{ margin-top: 14px; }
.kfnw-tl__filter-input{
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--kfnw-border);
  padding: 0 12px;
  min-width: 220px;
}
.kfnw-tl__filter-search{ flex: 1 1 240px; }
@media (max-width: 700px){
  .kfnw-tl__filter-input{ min-width:0; width:100%; }
}


/* v1.5.2: Dezenter, kompakter Filter (eine Reihe) */
.kfnw-tl__filter{ margin: 14px 0 18px; }
.kfnw-tl__filter-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.kfnw-tl__filter-label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 140px;
}
.kfnw-tl__filter-text{ font-size: 11px; opacity:.75; }
.kfnw-tl__filter-input{
  height: 34px;
  border-radius: 10px;
  border:1px solid var(--kfnw-border);
  padding: 0 10px;
  font-size: 14px;
  background:#fff;
}
.kfnw-tl__filter-search{ min-width: 220px; flex: 1 1 220px; }
.kfnw-tl__filter-btn{
  height: 34px;
  border-radius: 10px;
  padding: 0 14px;
  border:1px solid var(--kfnw-border);
  background:#fff;
  font-weight:600;
  cursor:pointer;
}
@media (max-width: 760px){
  .kfnw-tl__filter-label{ min-width: 0; flex:1 1 160px; }
  .kfnw-tl__filter-btn{ width: 100%; }
}

.kfnw-tl__location-label{
  font-size: 12px;
  opacity: .75;
  margin-top: 10px;
  margin-bottom: 4px;
}


/* v1.5.3: kompakter Filter wie Referenz */
.kfnw-tl__filter{ margin: 14px 0 18px; }
.kfnw-tl__filter-row{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.kfnw-tl__filter-label{ display:flex; flex-direction:column; gap:6px; min-width:150px; }
.kfnw-tl__filter-label--search{ flex: 1 1 260px; min-width: 220px; }
.kfnw-tl__filter-text{ font-size: 11px; opacity:.75; }
.kfnw-tl__filter-input{
  height: 34px;
  border-radius: 10px;
  border:1px solid var(--kfnw-border);
  padding: 0 10px;
  font-size: 14px;
  background:#fff;
}
.kfnw-tl__filter-search{ width:100%; }
.kfnw-tl__filter-btn{
  height: 34px;
  border-radius: 10px;
  padding: 0 14px;
  border:1px solid var(--kfnw-border);
  background:#fff;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}
@media (max-width: 760px){
  .kfnw-tl__filter-label{ min-width: 0; flex:1 1 160px; }
  .kfnw-tl__filter-btn{ width: 100%; }
}

.kfnw-tl__location-label{
  font-size: 12px;
  opacity: .75;
  margin-top: 10px;
  margin-bottom: 4px;
}


/* v1.5.6: kompakter Filter (eine Reihe) */
.kfnw-tl__filter{ margin: 14px 0 18px; }
.kfnw-tl__filter-row{ display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.kfnw-tl__filter-label{ display:flex; flex-direction:column; gap:6px; min-width:150px; }
.kfnw-tl__filter-label--search{ flex:1 1 260px; min-width:220px; }
.kfnw-tl__filter-text{ font-size:11px; opacity:.75; }
.kfnw-tl__filter-input{ height:34px; border-radius:10px; border:1px solid var(--kfnw-border); padding:0 10px; font-size:14px; background:#fff; }
.kfnw-tl__filter-btn{ height:34px; border-radius:10px; padding:0 14px; border:1px solid var(--kfnw-border); background:#fff; font-weight:600; cursor:pointer; white-space:nowrap; }
@media (max-width: 760px){
  .kfnw-tl__filter-label{ min-width:0; flex:1 1 160px; }
  .kfnw-tl__filter-btn{ width:100%; }
}
.kfnw-tl__location-label{ font-size:12px; opacity:.75; margin-top:10px; margin-bottom:4px; }

/* Teamfarbe bei regelmäßigen Terminen */
.kfnw-tl__featured-item{ border-left:6px solid var(--kfnw-team-color, #ccc); }


/* v1.6.2: Ensure filter styles win over theme */
.kfnw-tl .kfnw-tl__filter{ margin: 14px 0 18px !important; }
.kfnw-tl .kfnw-tl__filter-row{ display:flex !important; align-items:flex-end !important; gap:12px !important; flex-wrap:wrap !important; }
.kfnw-tl .kfnw-tl__filter-label{ display:flex !important; flex-direction:column !important; gap:6px !important; min-width:150px !important; }
.kfnw-tl .kfnw-tl__filter-label--search{ flex:1 1 260px !important; min-width:220px !important; }
.kfnw-tl .kfnw-tl__filter-text{ font-size:11px !important; opacity:.75 !important; }
.kfnw-tl .kfnw-tl__filter-input{
  height:34px !important;
  min-height:34px !important;
  max-height:34px !important;
  width:100% !important;
  border-radius:10px !important;
  border:1px solid var(--kfnw-border) !important;
  padding:0 10px !important;
  font-size:14px !important;
  background:#fff !important;
  box-sizing:border-box !important;
}
.kfnw-tl .kfnw-tl__filter-btn{
  height:34px !important;
  min-height:34px !important;
  border-radius:10px !important;
  padding:0 14px !important;
  border:1px solid var(--kfnw-border) !important;
  background:#fff !important;
  font-weight:600 !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
@media (max-width: 760px){
  .kfnw-tl .kfnw-tl__filter-label{ min-width:0 !important; flex:1 1 160px !important; }
  .kfnw-tl .kfnw-tl__filter-btn{ width:100% !important; }
}

.kfnw-tl__featured-subtext{
  margin-top:4px;
  font-size:0.95em;
  opacity:.85;
}


/* Make "Serie abonnieren" link more subtle */
.kfnw-tl__featured .kfnw-tl__export a{
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  opacity: 0.65;
  text-decoration-thickness: 1px;
}
.kfnw-tl__featured .kfnw-tl__export a:hover{
  opacity: 1;
}
.kfnw-tl__featured .kfnw-tl__export a:hover{
  opacity: 1;
}




/* Team overview: subtle contact person line */
.kfnw-team__contact {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.7;
}


.kfnw-team__contact-label {
    font-weight: 600;
    opacity: 0.75;
}


/* Contact form */
.kfnw-contact { max-width: 720px; }

/* Boxed layout (similar to Team-Übersicht) */
.kfnw-contact__box{
    border: 1px solid rgba(0,0,0,.08);
    border-left: 6px solid #00AD8D; /* Teamfarbe Allgemein */
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}
.kfnw-contact__row { margin: 12px 0; }
.kfnw-contact__label { display:block; font-size: 14px; margin-bottom: 6px; }
.kfnw-contact__input, .kfnw-contact__select, .kfnw-contact__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}
.kfnw-contact__textarea { resize: vertical; }
.kfnw-contact__row--checkbox { margin-top: 16px; }
.kfnw-contact__checkbox { font-size: 13px; opacity: 0.85; }
.kfnw-contact__submit {
    padding: 12px 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #00AD8D;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
}

.kfnw-contact__submit:hover,
.kfnw-contact__submit:focus{
    filter: brightness(0.92);
}

.kfnw-contact__actions{
    display:flex;
    justify-content:center;
    margin-top: 18px;
}
.kfnw-contact__notice { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.kfnw-contact__notice ul { margin: 0; padding-left: 18px; }
.kfnw-contact__notice--success { background: rgba(46,125,50,0.12); }
.kfnw-contact__notice--error { background: rgba(211,47,47,0.10); }


.kfnw-contact__hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.kfnw-contact__row--turnstile { margin-top: 16px; }


.kfnw-contact__row--two {
    display: flex;
    gap: 12px;
}
.kfnw-contact__row--two .kfnw-contact__col {
    flex: 1 1 0;
}
@media (max-width: 640px) {
    .kfnw-contact__row--two {
        flex-direction: column;
        gap: 0;
    }
}


/* Team-Übersicht (Shortcode [kfnw_team_uebersicht]) - neues Kartenlayout */
.kfnw-teamcard{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:#fff;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.kfnw-teamcard__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.kfnw-teamcard__logo{min-width:0;}
.kfnw-teamcard__logo-img{display:block; max-width:240px; height:auto;}
.kfnw-teamcard__logo--placeholder{
  font-weight:700;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:12px;
}

.kfnw-teamcard__icons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.kfnw-teamcard__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  color:#000;
  text-decoration:none;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.kfnw-teamcard__icon .kfnw-icon{display:block; fill:currentColor;}
.kfnw-teamcard__icon:hover{
  color: var(--kfnw-team-color);
  border-color: color-mix(in srgb, var(--kfnw-team-color) 35%, rgba(0,0,0,.10));
  transform: translateY(-1px);
}

.kfnw-teamcard__box{
  padding:16px 18px;
  border-radius:16px;
  background: color-mix(in srgb, var(--kfnw-team-color, #2e7d32) var(--kfnw-team-tint, 12%), #fff);
  color: rgba(0,0,0,.75);
}

.kfnw-teamcard__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.kfnw-teamcard__contact{
  color: rgba(0,0,0,.70);
  font-size: 13px;
  line-height: 1.35;
  min-width:0;
}

.kfnw-teamcard__contact-label{
  color: rgba(0,0,0,.55);
}

.kfnw-teamcard__more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background: var(--kfnw-team-color);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  white-space:nowrap;
}

.kfnw-teamcard__more:hover{filter: brightness(0.95);}

@media (max-width: 520px){
  .kfnw-teamcard__top{align-items:center;}
  .kfnw-teamcard__logo-img{max-width:200px;}
  .kfnw-teamcard__bottom{flex-direction:column; align-items:flex-start;}
}

/* v2.1.25: cleaner premium team dashboard */
.kfnw-teamdash{--kfnw-gap:22px; --kfnw-radius:24px; --kfnw-border:rgba(16,24,40,.07); --kfnw-muted:rgba(16,24,40,.66); --kfnw-surface:#fff; --kfnw-surface-soft:#f6f7f8; color:#111827;}
.kfnw-teamdash__shell{max-width:1140px;}
.kfnw-teamdash__header{margin:0 auto 22px;}
.kfnw-teamdash__header-main{grid-template-columns:minmax(180px,240px) minmax(0,1fr); gap:30px; padding:34px 38px; align-items:center; border-radius:28px; background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,251,.92)); box-shadow:0 18px 48px rgba(16,24,40,.05);}
.kfnw-teamdash__logo{justify-content:flex-start; align-items:center; min-height:160px; padding:16px 20px; border-radius:24px; background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,251,.9)); border:1px solid rgba(16,24,40,.05); box-shadow:inset 0 1px 0 rgba(255,255,255,.8);}
.kfnw-teamdash__logo-img{max-width:220px; max-height:170px; width:auto; height:auto;}
.kfnw-teamdash__logo--placeholder{min-height:160px; width:100%; display:flex; align-items:center; justify-content:center; text-align:center; font-size:1rem;}
.kfnw-teamdash__teamname{margin:0 0 12px; font-size:clamp(2rem, 4vw, 3.25rem); letter-spacing:-.03em;}
.kfnw-teamdash__intro{max-width:64ch; font-size:1.02rem; line-height:1.72;}
.kfnw-teamdash__meta-bar{gap:12px; margin-top:22px;}
.kfnw-teamdash__meta-pill{padding:12px 16px; min-width:180px; border-radius:16px; background:rgba(255,255,255,.92); box-shadow:0 8px 18px rgba(16,24,40,.04);}
.kfnw-teamdash__grid{grid-template-columns:minmax(0,1.55fr) minmax(280px,.82fr); gap:22px;}
.kfnw-teamdash__stack{display:grid; gap:22px;}
.kfnw-teamdash__tile{padding:24px 24px 22px; border-radius:24px; box-shadow:0 10px 30px rgba(16,24,40,.035);}
.kfnw-teamdash__title{margin:0 0 16px; font-size:1rem; letter-spacing:.01em;}
.kfnw-teamdash__row{padding:12px 0;}
.kfnw-teamdash__link{font-weight:650;}
.kfnw-teamdash__contact-person{margin-bottom:10px; font-size:1rem;}
.kfnw-teamdash__btn{padding:10px 14px; font-size:.95rem;}
.kfnw-teamdash__slider{margin:0 0 22px; padding:16px 16px 18px; border-radius:24px; box-shadow:0 10px 30px rgba(16,24,40,.035);}
.kfnw-teamdash__slider-head{margin-bottom:12px; align-items:center;}
.kfnw-teamdash__slider-title{font-size:1rem;}
.kfnw-teamdash__slider-track{gap:12px;}
.kfnw-teamdash__slide{overflow:hidden; border-radius:18px; background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,251,.9));}
.kfnw-teamdash__slide-media{display:block; aspect-ratio:16/9; background:color-mix(in srgb, var(--kfnw-team-color, #2e7d32) 10%, #eef2f4); overflow:hidden;}
.kfnw-teamdash__slide-image{display:block; width:100%; height:100%; object-fit:cover; transition:transform .35s ease;}
.kfnw-teamdash__slide:hover .kfnw-teamdash__slide-image{transform:scale(1.03);}
.kfnw-teamdash__slide-body{padding:14px 14px 16px;}
.kfnw-teamdash__slide-date{font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px;}
.kfnw-teamdash__slide-title{font-size:1rem; margin-bottom:8px; letter-spacing:-.01em;}
.kfnw-teamdash__slide-excerpt{color:var(--kfnw-muted); line-height:1.55;}
.kfnw-teamdash__list--links .kfnw-teamdash__row{padding:10px 0;}
.kfnw-teamdash__list--links .kfnw-teamdash__link{display:inline-flex; align-items:center; gap:8px;}
.kfnw-teamdash__list--links .kfnw-teamdash__link::after{content:'↗'; font-size:.85em; opacity:.6;}
.kfnw-teamdash--no-links .kfnw-teamdash__grid{grid-template-columns:minmax(0,1.68fr) minmax(260px,.72fr);}
@media (max-width: 960px){
  .kfnw-teamdash__header-main{grid-template-columns:1fr; gap:20px; padding:26px;}
  .kfnw-teamdash__logo{justify-content:center; min-height:120px;}
  .kfnw-teamdash__logo-img{max-width:200px; max-height:140px;}
  .kfnw-teamdash__grid,.kfnw-teamdash--no-links .kfnw-teamdash__grid{grid-template-columns:1fr;}
  .kfnw-teamdash__stack{grid-template-columns:1fr 1fr;}
}
@media (max-width: 720px){
  .kfnw-teamdash__teamname{font-size:clamp(1.8rem, 9vw, 2.4rem);}
  .kfnw-teamdash__intro{font-size:.98rem;}
  .kfnw-teamdash__stack{grid-template-columns:1fr;}
  .kfnw-teamdash__slider-track{grid-template-columns:1fr;}
}

/* v2.1.34: dashboard aside with boxed logo + stacked meta */
.kfnw-teamdash__header-main{
  align-items:center;
}
.kfnw-teamdash__logo{
  justify-content:center;
  align-items:center;
  min-height:auto;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.kfnw-teamdash__logo-img{
  width:auto;
  height:auto;
  max-width:260px;
  max-height:150px;
  object-fit:contain;
  filter:none;
}
.kfnw-teamdash__intro-wrap{
  min-width:0;
}
.kfnw-teamdash__inline-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-top:14px;
}
.kfnw-teamdash__inline-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:inherit;
  text-decoration:none;
  font-weight:600;
  line-height:1.4;
}
.kfnw-teamdash__inline-link::after{
  content:"↗";
  font-size:.9em;
  opacity:.55;
}
.kfnw-teamdash__inline-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}
.kfnw-teamdash__inline-link:focus-visible{
  outline:2px solid color-mix(in srgb, var(--kfnw-team-color, #2e7d32) 35%, transparent);
  outline-offset:3px;
  border-radius:6px;
}
@media (max-width: 980px){
  .kfnw-teamdash__logo-img{
    max-width:220px;
    max-height:128px;
  }
}
@media (max-width: 640px){
  .kfnw-teamdash__logo{
    justify-content:flex-start;
  }
  .kfnw-teamdash__logo-img{
    max-width:180px;
    max-height:110px;
  }
  .kfnw-teamdash__inline-links{
    margin-top:12px;
  }
}


/* v2.1.34: boxed logo aligned with heading + stacked meta */
.kfnw-teamdash__header-main{
  grid-template-columns:minmax(220px,260px) minmax(0,1fr);
  align-items:start;
}
.kfnw-teamdash__aside{
  display:grid;
  gap:14px;
  align-self:start;
}
.kfnw-teamdash__logo{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:132px;
  padding:18px 20px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,251,.9));
  border:1px solid rgba(16,24,40,.06);
  box-shadow:0 10px 24px rgba(16,24,40,.035), inset 0 1px 0 rgba(255,255,255,.8);
}
.kfnw-teamdash__logo-img{
  width:100%;
  height:auto;
  max-width:230px;
  max-height:110px;
  object-fit:contain;
}
.kfnw-teamdash__logo--placeholder{
  min-height:132px;
}
.kfnw-teamdash__meta-bar--stack{
  display:grid;
  gap:12px;
  margin-top:0;
}
.kfnw-teamdash__meta-bar--stack .kfnw-teamdash__meta-pill{
  min-width:0;
  width:100%;
}
.kfnw-teamdash__intro-wrap{
  padding-top:6px;
}
.kfnw-teamdash__inline-links{
  margin-top:18px;
}
@media (max-width: 960px){
  .kfnw-teamdash__header-main{
    grid-template-columns:1fr;
  }
  .kfnw-teamdash__aside{
    max-width:320px;
  }
}
@media (max-width: 640px){
  .kfnw-teamdash__logo{
    min-height:118px;
    padding:16px 18px;
  }
  .kfnw-teamdash__logo-img{
    max-width:200px;
    max-height:96px;
  }
  .kfnw-teamdash__aside{
    max-width:none;
  }
}


/* v2.1.35: compact stacked meta cards with boxed links */
.kfnw-teamdash__meta-bar--stack{
  gap:10px;
}
.kfnw-teamdash__meta-pill--compact{
  padding:14px 16px;
  border-radius:16px;
}
.kfnw-teamdash__meta-pill--compact span,
.kfnw-teamdash__meta-pill--links > span{
  display:block;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(15,23,42,.62);
  margin-bottom:6px;
}
.kfnw-teamdash__meta-pill--compact strong{
  font-size:15px;
  line-height:1.35;
}
.kfnw-teamdash__meta-pill--links{
  display:block;
  padding:14px 16px;
  border-radius:16px;
}
.kfnw-teamdash__links-stack{
  display:grid;
  gap:8px;
}
.kfnw-teamdash__boxed-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:inherit;
  text-decoration:none;
  font-weight:600;
  line-height:1.4;
}
.kfnw-teamdash__boxed-link::after{
  content:"↗";
  font-size:.88em;
  opacity:.55;
}
.kfnw-teamdash__boxed-link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}
.kfnw-teamdash__boxed-link:focus-visible{
  outline:2px solid color-mix(in srgb, var(--kfnw-team-color, #2e7d32) 35%, transparent);
  outline-offset:3px;
  border-radius:6px;
}
.kfnw-teamdash__inline-links{
  display:none;
}
@media (max-width: 640px){
  .kfnw-teamdash__meta-pill--compact,
  .kfnw-teamdash__meta-pill--links{
    padding:13px 14px;
  }
  .kfnw-teamdash__meta-pill--compact strong{
    font-size:14px;
  }
}


/* v2.1.36: tighter meta cards, separate links box, cleaner logo sizing, location in term list */
.kfnw-teamdash__header-main{
  grid-template-columns:minmax(220px,250px) minmax(0,1fr);
  gap:26px;
}
.kfnw-teamdash__aside{
  gap:12px;
  justify-items:start;
}
.kfnw-teamdash__logo{
  width:100%;
  min-height:124px;
  padding:16px 18px;
}
.kfnw-teamdash__logo-img{
  max-width:210px;
  max-height:96px;
}
.kfnw-teamdash__meta-bar--stack{
  width:100%;
  gap:8px;
}
.kfnw-teamdash__meta-bar--stack .kfnw-teamdash__meta-pill,
.kfnw-teamdash__meta-pill--links{
  width:min(188px, 100%);
  min-width:0;
}
.kfnw-teamdash__meta-pill--compact{
  padding:10px 12px;
  border-radius:14px;
}
.kfnw-teamdash__meta-pill--compact span,
.kfnw-teamdash__meta-pill--links > span{
  font-size:11px;
  letter-spacing:.11em;
  margin-bottom:4px;
}
.kfnw-teamdash__meta-pill--compact strong{
  font-size:14px;
  line-height:1.3;
}
.kfnw-teamdash__meta-pill--links{
  display:block;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--kfnw-border);
  background:rgba(255,255,255,.92);
  box-shadow:0 8px 18px rgba(16,24,40,.04);
}
.kfnw-teamdash__links-stack{
  gap:7px;
}
.kfnw-teamdash__boxed-link{
  font-size:.94rem;
  font-weight:550;
}
.kfnw-teamdash__row{
  gap:6px;
}
.kfnw-teamdash__meta{
  font-size:.82rem;
}
.kfnw-teamdash__submeta{
  display:block;
  color:var(--kfnw-muted);
  font-size:.78rem;
  line-height:1.5;
}
@media (max-width: 960px){
  .kfnw-teamdash__aside,
  .kfnw-teamdash__meta-bar--stack,
  .kfnw-teamdash__meta-pill--links{
    width:100%;
  }
  .kfnw-teamdash__meta-bar--stack .kfnw-teamdash__meta-pill,
  .kfnw-teamdash__meta-pill--links{
    width:min(220px, 100%);
  }
}
@media (max-width: 640px){
  .kfnw-teamdash__meta-bar--stack .kfnw-teamdash__meta-pill,
  .kfnw-teamdash__meta-pill--links{
    width:100%;
  }
  .kfnw-teamdash__logo{
    min-height:112px;
  }
  .kfnw-teamdash__logo-img{
    max-width:186px;
    max-height:84px;
  }
}

/* v2.1.37: links tile beside term list, location under title */
.kfnw-teamdash__stack{
  align-content:start;
}
.kfnw-teamdash__tile--links{
  order:0;
}
.kfnw-teamdash__row-main{
  display:grid;
  gap:4px;
  min-width:0;
  flex:1 1 auto;
}
.kfnw-teamdash__row .kfnw-teamdash__link,
.kfnw-teamdash__row .kfnw-teamdash__text{
  display:block;
}
.kfnw-teamdash__submeta{
  margin-top:0;
  max-width:54ch;
}
.kfnw-teamdash__tile--links .kfnw-teamdash__links-stack{
  gap:10px;
}
.kfnw-teamdash__tile--links .kfnw-teamdash__boxed-link{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
@media (max-width: 720px){
  .kfnw-teamdash__row{
    gap:8px;
  }
  .kfnw-teamdash__meta{
    white-space:normal;
  }
}


/* v2.1.38: mobile header optimization */
@media (max-width: 860px){
  .kfnw-teamdash__header-main{
    grid-template-columns:1fr !important;
    gap:18px;
    padding:20px;
    overflow:hidden;
  }
  .kfnw-teamdash__aside{
    order:1;
    width:100%;
    max-width:none;
    gap:12px;
  }
  .kfnw-teamdash__intro-wrap{
    order:2;
    min-width:0;
    width:100%;
    padding-top:0;
  }
  .kfnw-teamdash__logo{
    width:100%;
    min-height:unset;
    justify-content:center;
  }
  .kfnw-teamdash__logo-img{
    max-width:min(100%, 250px);
    max-height:120px;
  }
  .kfnw-teamdash__meta-bar--stack{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .kfnw-teamdash__header-main{
    padding:18px;
    border-radius:22px;
  }
  .kfnw-teamdash__aside{
    gap:10px;
  }
  .kfnw-teamdash__logo{
    padding:14px 16px;
    border-radius:16px;
  }
  .kfnw-teamdash__logo-img{
    max-width:min(100%, 220px);
    max-height:104px;
  }
  .kfnw-teamdash__teamname{
    font-size:clamp(1.9rem, 9vw, 2.6rem);
    line-height:1.04;
    word-break:break-word;
  }
  .kfnw-teamdash__intro{
    max-width:none;
  }
}
