/* Thomas-Krenn.AG – freigegebenes Gebäudefoto Standort Freyung mit Quellenangabe.
   Foto ohne Zuschnitt (natürliches Seitenverhältnis). Logo-Darstellung bleibt unverändert (siehe tk-media-logo.css). */
.tk-credit{margin:0;font-size:.72rem;line-height:1.45;color:#5d6b7c}
.tk-credit a{position:relative;z-index:2;color:inherit;text-decoration:underline;text-underline-offset:2px}
.tk-credit a:hover{color:#ff7d00}
.tk-credit a:focus-visible{outline:3px solid #55a3ff;outline-offset:2px}
.tk-photo{display:block}
.tk-photo img{display:block;width:100%;height:auto}

/* Startseite: Top-Referenz-Karte */
.tkh--photo{position:relative;padding:0;gap:0;overflow:hidden}
.tkh--photo:focus-within{outline:3px solid #55a3ff;outline-offset:3px}
.tkh__media{display:block;margin:0;background:#0b2a50}
.tkh__inner{display:flex;flex:1;flex-direction:column;gap:clamp(1rem,1.8vw,1.4rem);padding:clamp(1.5rem,2.6vw,2.25rem)}
.tkh--photo .tkh__cta{color:#fff;text-decoration:none}
.tkh--photo .tkh__cta:before{content:"";position:absolute;inset:0;z-index:1}
.tkh--photo .tkh__cta:focus-visible{outline:none}
.tkh--photo .tk-credit{color:#9fb6d3}
/* ab Tablet: Foto und Titel nebeneinander, Leistungen darunter */
@media (min-width:761px){
  .tkh--photo{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:auto 1fr auto auto auto}
  .tkh--photo .tkh__inner{display:contents}
  .tkh__media{grid-column:1;grid-row:1/3;align-self:start}
  .tkh--photo .tkh__top{grid-column:2;grid-row:1;flex-direction:column;align-items:flex-start;gap:.55rem;padding:clamp(1.1rem,1.8vw,1.5rem) clamp(1.1rem,1.8vw,1.6rem) 0}
  .tkh--photo .tkh__title{grid-column:2;grid-row:2;max-width:none;padding:.8rem clamp(1.1rem,1.8vw,1.6rem) 1rem;font-size:clamp(1.05rem,1.45vw,1.4rem);line-height:1.2}
  .tkh--photo .tkh__groups{grid-column:1/-1;grid-row:3;margin:clamp(1rem,1.6vw,1.3rem) clamp(1.25rem,2.2vw,2rem) 0}
  .tkh--photo .tkh__cta{grid-column:1/-1;grid-row:4;padding:clamp(.85rem,1.3vw,1.1rem) clamp(1.25rem,2.2vw,2rem) 0}
  .tkh--photo .tk-credit{grid-column:1/-1;grid-row:5;padding:.5rem clamp(1.25rem,2.2vw,2rem) clamp(1.1rem,1.8vw,1.5rem)}
}
@media (min-width:761px) and (max-width:1100px){
  .tkh--photo .tkh__group{grid-template-columns:1fr;gap:.2rem;padding:.6rem 0}
}
@media (max-width:760px){
  .tkh--photo{padding:0;gap:0}
  .tkh__inner{padding:1.3rem 1.15rem 1.35rem;gap:.95rem}
}

/* Referenzen-Hub: Featured-Block (nur .rh2-tk--photo, Vorreiter teilt einzelne rh2-tk__-Klassen) */
.rh2-tk--photo{position:relative}
.rh2-tk--photo:focus-within{outline:3px solid #55a3ff;outline-offset:3px}
.rh2-tk__media{margin:0}
.rh2-tk__media img{border-radius:8px}
.rh2-tk__media .tk-credit{margin-top:.55rem}
.rh2-tk--photo .rh2-tk__brand{justify-content:flex-start;gap:1.5rem}
.rh2-tk--photo .rh2-feature__cta{text-decoration:none}
.rh2-tk--photo .rh2-feature__cta:before{content:"";position:absolute;inset:0;z-index:1}
.rh2-tk--photo .rh2-feature__cta:focus-visible{outline:none}
@media (max-width:991px){
  .rh2-tk__media{flex:1 1 100%}
}

/* Case Study: Projektsteckbrief im Hero */
.tk2-sheet--photo{--tk2-px:clamp(1.4rem,2.4vw,2rem);padding:0 var(--tk2-px) var(--tk2-px);overflow:hidden}
.tk2-photo{margin:0 calc(var(--tk2-px)*-1) .9rem}
.tk2-photo figcaption{display:grid;gap:.15rem;padding:.65rem var(--tk2-px) 0}
.tk2-photo__title{color:var(--tk2-navy,#031f43);font-size:.86rem;font-weight:750;line-height:1.35}
@media (max-width:640px){
  .tk2-sheet--photo{--tk2-px:1.1rem;padding-bottom:1.2rem}
}

/* Nur bei bestätigter Logo-Freigabe: offizielles Original-Logo ohne Rahmen/Kasten gemäß Corporate Design Manual */
.tkh--photo .tkh__logo{width:auto;height:auto;padding:0;border-radius:0;background:none}
.tkh--photo .tkh__logo img{width:132px;height:auto;object-fit:initial}
.rh2-tk--photo .rh2-tk__logo{width:auto;height:auto;padding:0;border:0;border-radius:0;background:none}
.rh2-tk--photo .rh2-tk__logo img{width:170px;height:auto;object-fit:initial}
.tk2-sheet--photo .tk2-sheet__logo{height:auto;padding:.4rem 0 1rem}
.tk2-sheet--photo .tk2-sheet__logo img{width:150px;height:auto}
@media (min-width:761px) and (max-width:1100px){.tkh--photo .tkh__logo img{width:108px}}
@media (max-width:760px){.tkh--photo .tkh__logo img{width:108px}}
@media (max-width:640px){
  .rh2-tk--photo .rh2-tk__logo img{width:140px}
  .tk2-sheet--photo .tk2-sheet__logo img{width:120px}
}
