/* Teambuilding only – photo-first editorial redesign, not a flat poster. */
.team-ref-page {
  background:linear-gradient(180deg,#fffaf7 0%,#fffdfb 35%,#f7fbf7 100%);
}
.team-ref-page .team-ref-hero {
  width:min(calc(100% - 60px),1460px);
  min-height:585px;
  margin:30px auto 30px;
  border-radius:34px;
  display:block;
  overflow:hidden;
  isolation:isolate;
  box-shadow:0 18px 50px rgba(39,65,51,.13);
  background:#f8f2e7;
}
.team-ref-page .team-ref-hero__image-wrap {
  inset:0;
  width:100%;
  height:100%;
  position:absolute;
  border:0;
  border-radius:0;
  z-index:-1;
}
.team-ref-page .team-ref-hero__image-wrap::after {
  background:linear-gradient(90deg,rgba(255,253,249,.97) 0%,rgba(255,253,249,.95) 27%,rgba(255,253,249,.67) 43%,rgba(255,253,249,.03) 73%);
}
.team-ref-page .team-ref-hero__image-wrap img {
  width:100%; height:100%; object-fit:cover; object-position:center 50%;
}
.team-ref-page .team-ref-hero__content {
  display:flex;
  position:relative;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  width:100%;
  min-height:585px;
  padding:78px 58px 184px;
  background:transparent;
}
.team-ref-page .team-ref-hero h1 {
  font-size:clamp(58px,5vw,84px);
  line-height:1.03;
  letter-spacing:-.045em;
  margin:13px 0 17px;
}
.team-ref-page .team-ref-hero__lead {max-width:550px;font-size:clamp(21px,1.8vw,27px);line-height:1.35;font-weight:750}
.team-ref-page .team-ref-hero__scribble {width:150px;margin:18px 0 0 130px;opacity:.9}
.team-ref-page .team-ref-benefits {
  position:absolute;
  left:48px;bottom:32px;
  width:min(825px,calc(100% - 96px));
  min-height:112px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  padding:12px 8px;
  border-radius:22px;
  border:1px solid rgba(230,234,226,.9);
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 28px rgba(37,68,51,.11);
  backdrop-filter:blur(8px);
}
.team-ref-page .team-ref-benefit,
.team-ref-page .team-ref-benefit:last-child {
  background:transparent;
  border-radius:0;
  padding:8px 12px;
  gap:10px;
  font-size:13px;
  line-height:1.35;
  color:#1c4646;
}
.team-ref-page .team-ref-benefit:not(:last-child){border-right:1px solid #f0d5df}
.team-ref-page .team-ref-benefit__icon {width:52px;height:52px;border-radius:15px;background:#fff2f5;flex:none}
.team-ref-page .team-ref-benefit__icon svg{width:34px;height:34px}
.team-ref-page .team-ref-dashboard {
  width:min(calc(100% - 60px),1460px);
  margin:0 auto;
  padding:29px;
  border-radius:32px;
  border:1px solid #f0e8e1;
  box-shadow:0 20px 55px rgba(39,66,54,.06);
}
.team-ref-page .team-ref-dashboard__top {grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr);gap:27px}
.team-ref-page .team-ref-highlight {grid-template-columns:1fr;min-height:0;gap:17px;padding:15px;background:linear-gradient(140deg,#fff5f7,#fffafa);border:1px solid #ffe8ee}
.team-ref-page .team-ref-highlight img {width:100%;height:280px;max-height:none;object-fit:cover;object-position:center 48%;border:4px solid #fff;border-radius:20px;box-shadow:0 7px 24px rgba(124,66,88,.14)}
.team-ref-page .team-ref-highlight__copy {padding:5px 18px 16px}
.team-ref-page .team-ref-highlight h2 {font-size:clamp(27px,2.7vw,39px);margin:5px 0 11px}
.team-ref-page .team-ref-highlight__copy>p:last-child {font-size:16px;line-height:1.6;max-width:570px}
.team-ref-page .team-ref-highlight__badge {font-size:13px;margin-bottom:12px;padding:7px 13px 7px 7px}
.team-ref-page .team-ref-catalog {padding:16px 8px 10px 0;justify-content:flex-start}
.team-ref-page .team-ref-catalog__heading {flex-wrap:wrap;gap:12px}
.team-ref-page .team-ref-catalog__heading h2 {font-size:clamp(28px,2.5vw,36px);white-space:normal}
.team-ref-page .team-ref-catalog__heading>span{font-size:13px;padding:9px 13px}
.team-ref-page .team-ref-catalog__intro {font-size:15px;line-height:1.6;margin:15px 0 20px}
.team-ref-page .team-ref-exercise-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.team-ref-page .team-ref-exercise,
.team-ref-page .team-ref-exercise-more{min-height:125px;padding:14px 10px;border-radius:16px}
.team-ref-page .team-ref-exercise {gap:10px}
.team-ref-page .team-ref-exercise strong {font-size:13px;line-height:1.3;letter-spacing:0}
.team-ref-page .team-ref-exercise__visual svg {width:38px;height:38px}
.team-ref-page .team-ref-catalog__hint {font-size:11px;line-height:1.5;margin-top:16px}
.team-ref-page .team-ref-dashboard__bottom {grid-template-columns:1fr 1fr;gap:24px;margin-top:27px}
.team-ref-page .team-ref-cert,
.team-ref-page .team-ref-duration {min-height:270px;padding:20px;border-radius:23px}
.team-ref-page .team-ref-cert{grid-template-columns:36% 64%}
.team-ref-page .team-ref-cert__body h2{font-size:27px;white-space:normal}
.team-ref-page .team-ref-cert__body>p{font-size:14px}
.team-ref-page .team-ref-cert__body li{font-size:13px}
.team-ref-page .team-ref-cert__toggle{font-size:12px}
.team-ref-page .team-ref-duration{gap:12px}
.team-ref-page .team-ref-duration legend{font-size:27px;margin-bottom:13px}
.team-ref-page .team-ref-duration__choice{padding:16px;gap:14px;min-height:79px}
.team-ref-page .team-ref-duration__choice strong{font-size:17px}
.team-ref-page .team-ref-duration__choice small{font-size:12px;line-height:1.4}
.team-ref-page .team-ref-cta {grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:22px;background:#f0f8f1;border-radius:23px;padding:18px 24px}
.team-ref-page .team-ref-cta__button{min-width:280px;min-height:60px;padding:16px 24px;font-size:16px}
.team-ref-page .team-ref-cta__count{min-height:unset;order:-1;text-align:left;font-size:14px;color:#466d61;font-weight:700}
.team-ref-page .team-ref-expanded__grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.team-ref-page .team-ref-next{max-width:1460px;margin:20px auto 0;padding:28px 30px 65px}
@media (max-width:1100px) {
  .team-ref-page .team-ref-hero__content{padding:57px 36px 180px}
  .team-ref-page .team-ref-hero{min-height:540px}
  .team-ref-page .team-ref-hero__content{min-height:540px}
  .team-ref-page .team-ref-hero h1{font-size:62px}
  .team-ref-page .team-ref-benefits{left:30px;bottom:24px;width:min(750px,calc(100% - 60px))}
  .team-ref-page .team-ref-dashboard__top{grid-template-columns:1fr;gap:19px}
  .team-ref-page .team-ref-highlight{grid-template-columns:45% 55%;gap:16px;align-items:center}
  .team-ref-page .team-ref-highlight img{height:280px}
  .team-ref-page .team-ref-catalog{padding:15px 8px 8px}
  .team-ref-page .team-ref-exercise-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .team-ref-page .team-ref-exercise{min-height:130px}
  .team-ref-page .team-ref-exercise strong{font-size:11px}
  .team-ref-page .team-ref-dashboard__bottom{grid-template-columns:1fr 1fr}
  .team-ref-page .team-ref-cert{grid-template-columns:37% 63%}
}
@media (max-width:760px) {
  .team-ref-page .team-ref-hero {width:calc(100% - 26px);display:flex;flex-direction:column;min-height:0;border-radius:24px;margin:18px auto 22px}
  .team-ref-page .team-ref-hero__image-wrap {position:relative;inset:auto;width:100%;height:310px;flex:none;border:0;border-radius:0;order:0;z-index:0}
  .team-ref-page .team-ref-hero__image-wrap::after{background:none}
  .team-ref-page .team-ref-hero__image-wrap img{object-position:56% 52%}
  .team-ref-page .team-ref-hero__content{min-height:0;order:1;width:100%;padding:29px 26px 26px;background:#fffefa}
  .team-ref-page .team-ref-hero h1{font-size:clamp(41px,8.7vw,60px);margin:7px 0 11px}
  .team-ref-page .team-ref-hero__lead{font-size:18px}
  .team-ref-page .team-ref-hero__scribble{margin:12px 0 15px 85px;width:115px}
  .team-ref-page .team-ref-benefits{position:static;margin:6px 0 0;width:100%;padding:9px;min-height:0;grid-template-columns:1fr;box-shadow:none;border:1px solid #f2e7e6;background:linear-gradient(140deg,#fff8fa,#f8fff9)}
  .team-ref-page .team-ref-benefit,.team-ref-page .team-ref-benefit:last-child{display:flex;gap:12px;padding:8px;border:0;border-bottom:1px solid #f0e2e5;font-size:13px}
  .team-ref-page .team-ref-benefit:last-child{border-bottom:0}
  .team-ref-page .team-ref-benefit br{display:none}
  .team-ref-page .team-ref-dashboard{width:calc(100% - 22px);padding:13px;border-radius:23px}
  .team-ref-page .team-ref-highlight{grid-template-columns:1fr;gap:12px;padding:10px}
  .team-ref-page .team-ref-highlight img{height:250px}
  .team-ref-page .team-ref-highlight__copy{padding:7px 11px 15px}
  .team-ref-page .team-ref-catalog{padding:20px 5px 11px}
  .team-ref-page .team-ref-catalog__heading h2{font-size:29px}
  .team-ref-page .team-ref-catalog__intro{font-size:14px}
  .team-ref-page .team-ref-exercise-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .team-ref-page .team-ref-exercise,.team-ref-page .team-ref-exercise-more{min-height:120px;padding:11px 7px}
  .team-ref-page .team-ref-exercise strong{font-size:11.3px}
  .team-ref-page .team-ref-dashboard__bottom{grid-template-columns:1fr;gap:15px;margin-top:15px}
  .team-ref-page .team-ref-cert,.team-ref-page .team-ref-duration{min-height:0}
  .team-ref-page .team-ref-cert{grid-template-columns:34% 66%;padding:16px}
  .team-ref-page .team-ref-cert__body h2{font-size:22px}
  .team-ref-page .team-ref-duration legend{font-size:24px}
  .team-ref-page .team-ref-duration__choice{min-height:75px;padding:13px}
  .team-ref-page .team-ref-cta{grid-column:auto;flex-direction:column-reverse;padding:18px 15px;gap:10px}
  .team-ref-page .team-ref-cta__button{min-width:0;width:100%}
  .team-ref-page .team-ref-cta__count{order:unset;text-align:center}
  .team-ref-page .team-ref-expanded__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .team-ref-page .team-ref-next{padding:30px 24px 50px}
}
@media (max-width:420px) {
  .team-ref-page .team-ref-hero__image-wrap{height:225px}
  .team-ref-page .team-ref-hero__content{padding:25px 18px 23px}
  .team-ref-page .team-ref-hero h1{font-size:42px}
  .team-ref-page .team-ref-hero__lead{font-size:16px}
  .team-ref-page .team-ref-benefits{padding:6px}
  .team-ref-page .team-ref-benefit,.team-ref-page .team-ref-benefit:last-child{gap:8px;font-size:12px}
  .team-ref-page .team-ref-highlight img{height:194px}
  .team-ref-page .team-ref-exercise strong{font-size:10.7px}
  .team-ref-page .team-ref-cert{grid-template-columns:104px minmax(0,1fr);padding:12px 10px}
  .team-ref-page .team-ref-cert__illustration{height:198px}
  .team-ref-page .team-ref-cert__body h2{font-size:20px}
}

/* Real Urkundenpaket illustration; replaces the old CSS-drawn certificate stack. */
.team-ref-page .team-ref-cert__illustration {
  height: 230px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.team-ref-page .team-ref-cert__image {
  display: block;
  width: 100%;
  max-width: 235px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 68%, transparent 96%);
  mask-image: radial-gradient(ellipse at center, #000 68%, transparent 96%);
}
@media(max-width:760px){
  .team-ref-page .team-ref-cert__illustration{height:190px}
  .team-ref-page .team-ref-cert__image{max-width:195px}
}
@media(max-width:420px){
  .team-ref-page .team-ref-cert__illustration{height:145px}
  .team-ref-page .team-ref-cert__image{max-width:135px}
}
