.tam-module{
  --tam-accent:#66795f;
  --tam-hotspot-hover-color:#a8b89f;
  --tam-hotspot-hover-spread:7px;
  --tam-tab-bg:#fff;
  --tam-tab-text:#27272a;
  --tam-tab-border:#ddd;
  --tam-tab-active-bg:#66795f;
  --tam-tab-active-text:#fff;
  --tam-tab-hover-bg:#eef2ea;
  --tam-tab-radius:3px;
  --tam-tab-padding-x:18px;
  max-width:1500px;
  margin:0 auto;
  color:#27272a;
  font-family:inherit;
}
.tam-intro{padding:18px 0 20px}
.tam-kicker{font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;margin-bottom:8px;color:#666}
.tam-intro h2{
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(2rem,4vw,4.4rem);
  line-height:1.02;
  margin:.05em 0 .25em;
}
.tam-intro h2:after{content:"";display:block;width:90px;border-bottom:2px solid var(--tam-accent);margin-top:12px}
.tam-intro p{font-size:1rem;color:#666;margin:0}

.tam-front-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;scrollbar-width:thin}
.tam-front-tab{
  flex:0 0 auto;
  border:1px solid var(--tam-tab-border);
  color:var(--tam-tab-text);
  background:var(--tam-tab-bg);
  padding:12px var(--tam-tab-padding-x);
  border-radius:var(--tam-tab-radius);
  cursor:pointer;
  font:inherit;
  min-width:120px;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.tam-front-tab:hover:not(.is-active),.tam-front-tab:focus-visible:not(.is-active){background:var(--tam-tab-hover-bg)}
.tam-front-tab.is-active{background:var(--tam-tab-active-bg);border-color:var(--tam-tab-active-bg);color:var(--tam-tab-active-text)}

.tam-front-layout{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px);gap:0;align-items:start;min-width:0}
.tam-front-stage-wrap{min-width:0;min-height:0}
.tam-front-stage{position:relative;overflow:hidden;background:#eee;width:100%;height:auto;min-height:0;aspect-ratio:auto}
.tam-front-stage img{display:block;width:100%!important;max-width:100%;height:auto!important;max-height:none!important;object-fit:contain;aspect-ratio:auto}
.tam-front-hotspots{position:absolute;inset:0;z-index:2}
.tam-front-hotspot{
  position:absolute;
  transform:translate(-50%,-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  border:3px solid #fff;
  background:var(--tam-accent);
  color:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.23);
  cursor:pointer;
  font-size:25px;
  line-height:32px;
  display:grid;
  place-items:center;
  transition:box-shadow .2s ease,transform .2s ease,background-color .2s ease;
  isolation:isolate;
}
.tam-front-hotspot:hover,
.tam-front-hotspot:focus-visible{
  box-shadow:0 0 0 var(--tam-hotspot-hover-spread) color-mix(in srgb,var(--tam-hotspot-hover-color) 48%, transparent),0 8px 28px rgba(0,0,0,.38);
  transform:translate(-50%,-50%) scale(1.22);
  z-index:5;
}
.tam-front-hotspot:focus-visible{outline:3px solid #111;outline-offset:3px}
.tam-front-hotspot.is-active{box-shadow:0 0 0 calc(var(--tam-hotspot-hover-spread) * .72) color-mix(in srgb,var(--tam-hotspot-hover-color) 32%, transparent),0 3px 14px rgba(0,0,0,.23)}
@media(hover:hover) and (pointer:fine){
  .tam-front-hotspot:hover{transform:translate(-50%,-50%) scale(1.22)}
}

.tam-front-panel{
  position:relative;
  background:#fff;
  padding:0;
  box-shadow:-12px 0 30px rgba(0,0,0,.08);
  height:100%;
  min-height:0;
  min-width:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.tam-panel-inner{padding:34px 32px;transition:transform .28s cubic-bezier(.22,.61,.36,1),opacity .22s ease;transform:translateX(0);opacity:1}
.tam-panel-inner.is-leaving{transform:translateX(18%);opacity:0}
.tam-panel-inner.is-entering{transform:translateX(22%);opacity:0}
.tam-front-panel .tam-panel-kicker{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:#666}
.tam-front-panel h3{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.7rem,2.4vw,2.65rem);font-weight:400;line-height:1.06;margin:12px 0 14px}
.tam-front-panel p{color:#666;line-height:1.55;margin:0 0 22px}

.tam-checks{list-style:none!important;padding:0!important;margin:0 0 28px!important}
.tam-checks li{position:relative;padding:8px 0 8px 38px;line-height:1.35}
.tam-checks li:before{
  content:'✓';
  position:absolute;
  left:0;
  top:5px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:color-mix(in srgb,var(--tam-accent) 12%,white);
  color:var(--tam-accent);
  display:grid;
  place-items:center;
  font-weight:700;
}
.tam-module[data-list-icon-style="circle"] .tam-checks li:before{
  content:'';
  width:12px;
  height:12px;
  left:7px;
  top:13px;
  border-radius:50%;
  background:transparent;
  border:2px solid var(--tam-accent);
}
.tam-module[data-list-icon-style="plus-circle"] .tam-checks li:before{
  content:'+';
  background:color-mix(in srgb,var(--tam-accent) 12%,white);
  color:var(--tam-accent);
}
.tam-module[data-list-icon-style="none"] .tam-checks li{
  padding-left:0;
}
.tam-module[data-list-icon-style="none"] .tam-checks li:before{
  content:none;
}
.tam-panel-empty{color:#777}

@media (prefers-reduced-motion:reduce){
  .tam-panel-inner,.tam-front-hotspot,.tam-front-tab{transition:none!important}
}
@media (max-width:900px){
  .tam-front-layout{grid-template-columns:1fr}
  .tam-front-stage{aspect-ratio:auto}
  .tam-front-panel{box-shadow:none;border:1px solid #e6e6e6}
  .tam-panel-inner{padding:24px 20px}
  .tam-intro{padding-top:5px}
  .tam-front-hotspot{width:38px;height:38px}
}

/* The detail image is an independent floating card, not part of the scrolling panel. */
.tam-detail-float{
  position:absolute;
  z-index:12;
  top:16px;
  right:-10px;
  width:128px;
  height:128px;
  border:var(--tam-detail-border-width,4px) solid var(--tam-detail-border-color,#fff);
  border-radius:9px;
  background:var(--tam-detail-border-color,#fff);
  padding:0;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  cursor:zoom-in;
  transform:rotate(var(--tam-detail-tilt,3deg));
  transition:transform .2s ease,box-shadow .2s ease;
  overflow:hidden;
}
.tam-detail-float[hidden]{display:none!important}
.tam-detail-float img{display:block;width:100%;height:100%;object-fit:contain}
@media (hover:hover) and (pointer:fine){
  .tam-detail-float:hover{transform:rotate(0deg) scale(1.6);box-shadow:0 13px 34px rgba(0,0,0,.34);z-index:25}
}
.tam-detail-float.is-expanded,.tam-detail-float:focus-visible{transform:rotate(0deg) scale(1.6);box-shadow:0 13px 34px rgba(0,0,0,.34);z-index:25}
.tam-has-detail .tam-panel-inner{padding-top:160px}
@media(max-width:900px){
  .tam-detail-float{right:8px;top:calc(var(--tam-stage-height, 0px) + 18px);bottom:auto;transform:rotate(var(--tam-detail-tilt,3deg));width:112px;height:112px}
  .tam-detail-float.is-expanded,.tam-detail-float:focus-visible{transform:rotate(0deg) scale(1.5)}
  .tam-has-detail .tam-panel-inner{padding-top:126px}
}
@media(prefers-reduced-motion:reduce){.tam-detail-float{transition:none}}

/* Quadratischer, pro Ansicht einstellbarer Bildausschnitt */
.tam-front-stage{aspect-ratio:1/1!important;height:auto;position:relative;overflow:hidden}
.tam-front-media{position:absolute;left:0;top:0;width:100%;height:100%}
.tam-front-media>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important}
.tam-front-media>.tam-front-hotspots{position:absolute;inset:0}
@media(max-width:900px){.tam-front-stage{aspect-ratio:1/1!important}}

/* 4:3-Bildfläche mit automatischem Blur-Hintergrund für abweichende Seitenverhältnisse */
.tam-front-stage{
  aspect-ratio:4/3!important;
  height:auto!important;
  position:relative;
  overflow:hidden;
  background:#eee;
}
.tam-front-blur{
  position:absolute;
  inset:-24px;
  z-index:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(22px);
  transform:scale(1.08);
  opacity:.72;
  pointer-events:none;
}
.tam-front-media{
  position:absolute;
  z-index:1;
  overflow:visible;
}
.tam-front-media>img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  display:block;
}
.tam-front-media>.tam-front-hotspots{position:absolute;inset:0}
@media(max-width:900px){.tam-front-stage{aspect-ratio:4/3!important}}

/* 1.0.12: Kategorien ohne horizontalen Scrollbereich und ohne abgeschnittene Schaltflächen. */
.tam-module .tam-front-tabs{
  display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;
  overflow:visible;max-width:100%;padding:0 0 10px;
  scrollbar-width:none;
}
.tam-module .tam-front-tab{
  flex:0 1 auto;min-width:0;max-width:100%;white-space:normal;
  overflow-wrap:break-word;text-align:center;
}
/* Der Inhaltsbereich wächst mit seinem Text; kein interner Scrollbalken. */
.tam-module .tam-front-panel{
  height:auto!important;max-height:none!important;overflow:visible!important;
  overscroll-behavior:auto;
}
.tam-module .tam-front-layout{align-items:start;min-width:0}
.tam-module{min-width:0;max-width:100%}
@media(max-width:600px){
  .tam-module .tam-front-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .tam-module .tam-front-tab{width:100%;padding:10px 8px;}
}

/* Exakt zwei Kategorie-Zeilen in jeder Bildschirmgröße, auch auf Mobilgeräten. */
.tam-module .tam-front-tabs{
  display:grid!important;
  grid-template-columns:repeat(var(--tam-tab-cols,3),minmax(0,1fr))!important;
  grid-template-rows:repeat(2,auto);
  gap:8px;overflow:visible!important;
}
.tam-module .tam-front-tabs .tam-front-tab{
  width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;
  padding:12px min(var(--tam-tab-padding-x),2vw);
}

/* Kompakte einzeilige Beschriftungen in zwei Buttonreihen */
.tam-module .tam-front-tabs .tam-front-tab{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;min-width:0;padding:10px min(var(--tam-tab-padding-x),1.3vw)!important;font-size:clamp(.65rem,1.7vw,.95rem);line-height:1.2;}

/* 1.0.14: Aufzählungen auf Smartphones kompakter darstellen. */
@media(max-width:780px){
  .tam-module .tam-checks{margin-bottom:16px!important}
  .tam-module .tam-checks li{padding-top:4px;padding-bottom:4px;line-height:1.3}
  .tam-module .tam-checks li:before{top:2px}
}


/* Adaptive Kategorienleiste: identische Aufteilung in beiden Plugins. */
.terra-adaptive-tabs.terra-adaptive-tabs{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:8px!important;overflow:visible!important;max-width:100%;
 grid-template-columns:none!important;grid-template-rows:none!important;
}
.terra-adaptive-tabs .terra-adaptive-row{
 display:flex;gap:8px;justify-content:center;align-items:stretch;width:100%;min-width:0;
}
.terra-adaptive-tabs .terra-adaptive-row > button{
 box-sizing:border-box;flex:var(--terra-btn-weight,1) 1 0!important;
 width:0!important;min-width:0!important;max-width:none!important;
 white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
 overflow-wrap:normal!important;word-break:normal!important;
 font-size:var(--terra-adaptive-font,12px)!important;line-height:1.2!important;
 padding:10px 5px!important;text-align:center;justify-content:center;
}

/* Der vergroesserte Detailrahmen bleibt auf Bildschirmen anklickbar. */
.tam-front-layout{overflow:visible}
.tam-detail-float{transform-origin:85% 10%}

/* 1.0.18: responsive layout and complete, readable category labels. */
.tam-module{container-type:inline-size}
.tam-module .tam-front-tabs.terra-adaptive-tabs{display:flex!important;flex-direction:column!important;gap:8px!important;overflow:visible!important}
.tam-module .terra-adaptive-row{display:flex;flex-wrap:nowrap;gap:8px;justify-content:center;width:100%}
.tam-module .terra-adaptive-row>.tam-front-tab{flex:1 1 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;font-size:14px!important;line-height:1.3!important;padding:12px 10px!important;box-sizing:border-box}
.tam-module .tam-front-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px);align-items:stretch;gap:0;min-width:0}
.tam-module .tam-front-stage-wrap{align-self:start;min-width:0}
.tam-module .tam-front-panel{box-sizing:border-box;min-width:0;min-height:0;height:var(--tam-stage-height,auto)!important;overflow:visible!important;box-shadow:-12px 0 30px rgba(0,0,0,.08)}
.tam-module .tam-panel-inner{display:flow-root;padding:clamp(18px,2.2vw,34px) clamp(18px,2.1vw,32px);box-sizing:border-box}
/* Detail thumbnails participate in the panel's content flow, never reserve blank space above it. */
.tam-module .tam-panel-inner>.tam-detail-float{position:relative!important;float:right;top:auto!important;right:auto!important;bottom:auto!important;display:block;margin:0 0 14px 16px;width:clamp(88px,9vw,128px);height:clamp(88px,9vw,128px);transform-origin:85% 10%;box-sizing:border-box}
.tam-module .tam-panel-inner>.tam-detail-float[hidden]{display:none!important}
.tam-module.tam-has-detail .tam-panel-inner{padding-top:clamp(18px,2.2vw,34px)!important}
.tam-module .tam-detail-float img{width:100%;height:100%;object-fit:contain}
@container (max-width: 1150px){
 .tam-module .tam-front-layout{grid-template-columns:minmax(0,1fr)}
 .tam-module .tam-front-panel{height:auto!important;min-height:0;box-shadow:0 8px 22px rgba(0,0,0,.07);border:1px solid #e6e6e6}
 .tam-module .tam-panel-inner{padding:20px!important}
 .tam-module.tam-has-detail .tam-panel-inner{padding-top:20px!important}
 .tam-module .tam-panel-inner>.tam-detail-float{width:112px;height:112px}
}
@container (max-width: 480px){
 .tam-module .terra-adaptive-row>.tam-front-tab{font-size:13px!important;padding:10px 7px!important}
 .tam-module .tam-panel-inner>.tam-detail-float{width:90px;height:90px;margin-left:12px}
}

/* 1.0.20: Nur die vertikalen Abstände der Ausstattungs-Aufzählungen verdichten. */
.tam-module .tam-checks li{padding-top:4px;padding-bottom:4px}
.tam-module .tam-checks li:before{top:1px}
@media(max-width:780px){
 .tam-module .tam-checks li{padding-top:3px;padding-bottom:3px}
 .tam-module .tam-checks li:before{top:0}
}
