/* 2.9.01: Ausschließlich die drei neuen Layouts 45–47 und deren Galerie-Buttons. */
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest){--ttf-card-width:80%;}
/* Hero: Bild als eigene Ebene, damit es links und unten in die Seitenfarbe ausläuft. */
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero{
  isolation:isolate!important;position:relative!important;min-height:clamp(570px,43vw,790px)!important;
  background-image:none!important;background-color:var(--bg)!important;
  padding:clamp(64px,7vw,125px) max(10%,calc((100% - 1550px)/2)) 140px!important;
}
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero::before{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:-1!important;
  background-image:var(--ttf-hero-photo)!important;background-size:cover!important;background-position:center center!important;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 38%,#000 100%),linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%)!important;
  mask-image:linear-gradient(to right,transparent 0%,#000 38%,#000 100%),linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%)!important;
  -webkit-mask-composite:source-in!important;mask-composite:intersect!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;
}
body .ttf-praxiswebseite.layout-freiheit_fest{--ttf-hero-photo:url('../assets/ttf-fixed-freiheit.webp')}
body .ttf-praxiswebseite.layout-balance_fest{--ttf-hero-photo:url('../assets/ttf-fixed-balance.webp')}
body .ttf-praxiswebseite.layout-vertrauen_fest{--ttf-hero-photo:url('../assets/ttf-fixed-vertrauen.webp')}
/* Sanfter, asymmetrischer Wellensaum – keine harten Bildkanten. */
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero::after{
  content:""!important;display:block!important;position:absolute!important;left:0!important;right:0!important;bottom:-2px!important;
  width:100%!important;height:95px!important;z-index:0!important;pointer-events:none!important;
  background:var(--bg)!important;clip-path:polygon(0 63%,8% 67%,17% 82%,26% 84%,36% 67%,47% 60%,58% 77%,69% 86%,79% 65%,89% 58%,100% 77%,100% 100%,0 100%)!important;
}
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero-text{
  position:relative!important;z-index:2!important;width:min(100%,650px)!important;max-width:650px!important;
  margin:0!important;padding:0!important;transform:none!important;background:transparent!important;
}
/* Drei gleich große obere Kacheln, danach eine gleich breite Gesamt-Kachel. */
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-neu-kacheln{
  width:80%!important;max-width:1500px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(14px,1.5vw,26px)!important;margin:-12px auto 36px!important;position:relative!important;z-index:3!important;
}
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-neu-kachel{
  min-height:210px!important;height:100%!important;padding:clamp(20px,2vw,34px)!important;
  border-radius:20px!important;gap:12px!important;
}
body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest)>section.ttf-praxis-abschnitt{
  width:80%!important;max-width:1500px!important;margin:24px auto!important;
  padding:clamp(30px,3vw,54px)!important;border-radius:22px!important;
}
/* Die Galerie zeigt beide Buttons auch bei allen sieben festen Vorlagen. */
#ttf-designgalerie .ttf-fixed-card .ttf-design-card-inhalt>a.ttf-design-button{
 display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:center!important;
 width:100%!important;min-height:43px!important;margin:8px 0 0!important;padding:9px 10px!important;
 text-align:center!important;box-sizing:border-box!important;white-space:normal!important;text-decoration:none!important;
}
#ttf-designgalerie .ttf-fixed-card .ttf-design-card-inhalt>a.ttf-design-button:not(.ttf-design-button-zweit){background:var(--card-primary,#476b76)!important;color:white!important;border:1px solid var(--card-primary,#476b76)!important;}
#ttf-designgalerie .ttf-fixed-card .ttf-design-card-inhalt>a.ttf-design-button-zweit{background:white!important;color:var(--card-primary,#476b76)!important;border:1px solid var(--card-primary,#476b76)!important;}
.ttf-fixed-card--freiheit_fest{--card-primary:#356b91}.ttf-fixed-card--balance_fest{--card-primary:#617c50}.ttf-fixed-card--vertrauen_fest{--card-primary:#315c7c}
@media(max-width:900px){
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-neu-kacheln,
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest)>section.ttf-praxis-abschnitt{width:90%!important}
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-neu-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero{min-height:520px!important;padding:45px 7% 110px!important;align-items:flex-start!important}
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-praxis-hero::before{
  background-position:65% center!important;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 40%,transparent 100%)!important;mask-image:linear-gradient(to bottom,transparent 0%,#000 40%,transparent 100%)!important;
 }
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest) .ttf-neu-kacheln{width:calc(100% - 32px)!important;grid-template-columns:1fr!important;margin:0 auto 24px!important}
 body .ttf-praxiswebseite:is(.layout-freiheit_fest,.layout-balance_fest,.layout-vertrauen_fest)>section.ttf-praxis-abschnitt{width:calc(100% - 32px)!important;padding:26px 20px!important}
}
