/* Template1405 Portal-Layout v1.0.3 */
.t1405-portal-page{
  --t1405-bg:#f6f3ec;
  --t1405-ink:#17221f;
  --t1405-muted:#66716d;
  --t1405-accent:#315f52;
  --t1405-accent-dark:#21483e;
  --t1405-gold:#a9854f;
  --t1405-line:rgba(28,49,43,.16);
  --t1405-radius:28px;
  --t1405-shadow:0 26px 75px rgba(16,31,28,.16);
  background:var(--t1405-bg);
  color:var(--t1405-ink);
}
.t1405-portal-page *{box-sizing:border-box}
.t1405-portal-page h1,.t1405-portal-page h2,.t1405-portal-page h3{
  font-family:Georgia,"Times New Roman",serif;
  color:var(--t1405-ink);
  line-height:1.08;
}
.t1405-portal-page h1{font-size:clamp(2.6rem,5vw,5rem);margin:.25rem 0 1.4rem}
.t1405-portal-page h2{font-size:clamp(2rem,3.4vw,3.4rem);margin:.2rem 0 1rem}
.t1405-portal-page h3{font-size:1.55rem}
.t1405-eyebrow{margin:0 0 .85rem;color:var(--t1405-accent);font-size:.76rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.t1405-hero{min-height:680px;display:flex;align-items:flex-end;padding:clamp(3rem,8vw,7rem) max(24px,calc((100vw - 1180px)/2));background-position:center;background-size:cover;background-color:#29453d}
.t1405-hero-content{max-width:820px;padding:clamp(2rem,5vw,4.5rem);border-radius:var(--t1405-radius);background:rgba(246,243,236,.93);box-shadow:var(--t1405-shadow);backdrop-filter:blur(10px)}
.t1405-lead,.t1405-hero-content p:not(.t1405-eyebrow){color:#47524f;font-size:1.08rem;line-height:1.7}
.t1405-button-row{display:flex;flex-wrap:wrap;align-items:center;gap:1.2rem;margin-top:2rem}
.t1405-button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:.75rem 1.25rem;border-radius:999px;background:var(--t1405-accent);color:#fff!important;text-decoration:none;font-weight:750;box-shadow:0 10px 25px rgba(49,95,82,.22)}
.t1405-button:hover{background:var(--t1405-accent-dark)}
.t1405-text-link{font-weight:750;text-underline-offset:5px}
.t1405-section{width:min(1180px,calc(100% - 40px));margin:auto;padding:clamp(4rem,8vw,8rem) 0}
.t1405-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,7vw,7rem);align-items:start}
.t1405-split p:not(.t1405-eyebrow){color:var(--t1405-muted);font-size:1.15rem;line-height:1.8}
.t1405-section-heading{display:flex;justify-content:space-between;gap:3rem;align-items:flex-end;width:min(1180px,calc(100% - 40px));margin:0 auto 2.4rem}
.t1405-section-heading>p{max-width:520px;color:var(--t1405-muted)}
.t1405-tree-section{width:100%;padding:clamp(4rem,7vw,7rem) max(20px,calc((100% - 1180px)/2));background:#e7e1d5}
.t1405-tree-preview{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:0;border-radius:var(--t1405-radius);background:#15231f;cursor:zoom-in;box-shadow:var(--t1405-shadow)}
.t1405-tree-preview img{display:block;width:100%;height:min(62vw,680px);object-fit:contain;background:#d8d3c8}
.t1405-tree-preview span{position:absolute;right:20px;bottom:20px;padding:.8rem 1rem;border-radius:999px;background:rgba(18,33,29,.92);color:#fff;font-weight:750}
.t1405-tree-dialog{width:min(96vw,1500px);height:min(94vh,1100px);padding:1rem;border:0;border-radius:20px;background:#171d1b;color:#fff}
.t1405-tree-dialog::backdrop{background:rgba(5,10,8,.84);backdrop-filter:blur(8px)}
.t1405-tree-dialog-viewport{height:calc(100% - 42px);overflow:auto;border-radius:12px;background:#e6e2d8}
.t1405-tree-dialog-viewport img{display:block;width:auto;max-width:none;min-width:1400px;height:auto}
.t1405-tree-dialog>p{margin:.55rem 0 0;text-align:center;font-size:.82rem}
.t1405-dialog-close{position:absolute;top:24px;right:24px;z-index:2;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:#fff!important;color:#111!important;font-size:1.8rem;line-height:1;cursor:pointer}
.t1405-line-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.t1405-line-grid article{min-height:240px;padding:2rem;border:1px solid var(--t1405-line);border-radius:20px;background:rgba(255,255,255,.58)}
.t1405-line-grid article>span{color:var(--t1405-gold);font-weight:850}
.t1405-line-grid p{color:var(--t1405-muted)}
.t1405-profile{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:clamp(2rem,7vw,7rem);align-items:center}
.t1405-profile>img{width:100%;max-height:420px;object-fit:contain;border-radius:var(--t1405-radius);background:#fff;box-shadow:var(--t1405-shadow)}
.t1405-access-panel{display:grid;grid-template-columns:1.4fr .6fr;gap:3rem;align-items:center;width:min(1180px,calc(100% - 40px));margin:0 auto 6rem;padding:clamp(2rem,5vw,4rem);border-radius:var(--t1405-radius);background:#1e3932;color:#fff}
.t1405-access-panel h2{color:#fff}
.t1405-access-panel .t1405-eyebrow{color:#d7bd91}
.t1405-access-panel p{color:#d9e2df}
.t1405-access-panel>div:last-child{text-align:center}
@media(max-width:850px){
  .t1405-split,.t1405-access-panel,.t1405-profile{grid-template-columns:1fr}
  .t1405-line-grid{grid-template-columns:1fr}
  .t1405-section-heading{display:block}
  .t1405-hero{min-height:590px}
  .t1405-hero-content{padding:2rem}
}
@media(max-width:520px){
  .t1405-hero{padding-left:14px;padding-right:14px}
  .t1405-hero-content{padding:1.45rem}
  .t1405-button-row{align-items:flex-start;flex-direction:column}
  .t1405-tree-dialog-viewport img{min-width:1000px}
}


/* =========================================================
   Template1405 – Kopf- und Fusszeile v1.0.4
   ========================================================= */
body.tng-home,
body.tng-nav {
  background:#f6f3ec;
}

.t1405-site-header {
  position:sticky;
  top:0;
  z-index:1000;
  border-bottom:1px solid rgba(25,37,35,.14);
  background:rgba(246,243,236,.94);
  box-shadow:0 8px 28px rgba(16,31,28,.08);
  backdrop-filter:blur(16px);
}

.t1405-header-main {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  width:min(1180px,calc(100% - 40px));
  min-height:82px;
  margin:auto;
  padding:10px 0;
}

.t1405-brand {
  display:flex;
  min-width:0;
  align-items:center;
  gap:.9rem;
  color:#192523!important;
  text-decoration:none!important;
}

.t1405-brand img {
  width:54px;
  height:58px;
  flex:0 0 auto;
  object-fit:contain;
}

.t1405-brand-copy {
  min-width:0;
}

.t1405-brand-copy strong,
.t1405-brand-copy small {
  display:block;
}

.t1405-brand-copy strong {
  overflow:hidden;
  color:#192523;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.25rem,2.2vw,1.85rem);
  font-weight:600;
  line-height:1.05;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.t1405-brand-copy small {
  margin-top:.28rem;
  color:#66706d;
  font-size:.76rem;
  letter-spacing:.02em;
}

.t1405-portal-switch {
  display:flex;
  align-items:center;
  gap:.55rem;
}

.t1405-portal-switch a {
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:.45rem .9rem;
  border:1px solid rgba(49,95,82,.22);
  border-radius:999px;
  color:#315f52!important;
  font-size:.78rem;
  font-weight:750;
  text-decoration:none!important;
}

.t1405-portal-switch a:hover,
.t1405-portal-switch a.is-active {
  background:#315f52;
  color:#fff!important;
}

.t1405-tng-nav {
  background:#405966;
}

.t1405-tng-nav-inner {
  width:min(1180px,calc(100% - 40px));
  margin:auto;
}

.t1405-tng-nav .nav-menu {
  width:100%;
  height:auto;
  margin:0;
  padding:0;
  float:none!important;
}

.t1405-tng-nav div.icons {
  padding:0;
}

.t1405-tng-nav ul.tngdd {
  margin:0;
  padding:0;
  background:transparent;
}

.t1405-tng-nav ul.tngdd .menulink {
  min-height:50px;
  width:auto;
  margin:0;
  padding:14px 18px 12px 20px;
  border-radius:0;
  background-position:1px 20px!important;
  font-size:14px;
}

.t1405-tng-nav ul.tngdd .menuhover,
.t1405-tng-nav ul.tngdd .menulink:hover {
  margin:0;
  border-radius:0;
  background-color:#263f4b!important;
}

.t1405-tng-nav .tngsmallicon {
  min-height:50px;
  height:auto;
  padding:14px 12px 10px;
  line-height:1.4;
}

.t1405-page-start {
  width:min(1180px,calc(100% - 40px));
  margin:auto;
}

.t1405-site-footer {
  margin-top:0;
  border-top:1px solid rgba(25,37,35,.14);
  background:#f6f3ec;
  color:#66706d;
}

.t1405-footer-main {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  width:min(1180px,calc(100% - 40px));
  margin:auto;
  padding:28px 0;
  font-size:.84rem;
}

.t1405-footer-main a {
  color:#315f52!important;
  font-weight:700;
  text-decoration:none;
}

.t1405-footer-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:1rem;
}

.t1405-footer-system {
  border-top:1px solid rgba(25,37,35,.10);
  background:#e9e5dc;
}

.t1405-footer-system-inner {
  width:min(1180px,calc(100% - 40px));
  margin:auto;
  padding:14px 0;
  font-size:.76rem;
  text-align:center;
}

.t1405-footer-system-inner,
.t1405-footer-system-inner a {
  color:#65706d!important;
}

/* Alten Template-262-Fussbereich neutralisieren */
.t1405-site-footer .contentBox2a,
.t1405-site-footer .contentBox2b,
.t1405-site-footer .contentBox3a,
.t1405-site-footer .contentBox3b,
.t1405-site-footer .contentBox3c {
  float:none;
  width:auto;
  margin:0;
}

@media(max-width:760px) {
  .t1405-site-header {
    position:relative;
  }

  .t1405-header-main {
    min-height:70px;
    align-items:flex-start;
    flex-direction:column;
    gap:.8rem;
    padding:12px 0;
  }

  .t1405-brand img {
    width:46px;
    height:50px;
  }

  .t1405-brand-copy strong {
    white-space:normal;
  }

  .t1405-portal-switch {
    width:100%;
  }

  .t1405-portal-switch a {
    flex:1;
  }

  .t1405-tng-nav-inner {
    width:100%;
  }

  .t1405-footer-main {
    align-items:flex-start;
    flex-direction:column;
    gap:1rem;
  }
}

/* Template1405 v2.0.0 – Museum viewer */
.t1405-tree-card{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(400px,1.28fr);gap:clamp(2rem,5vw,5rem);align-items:center;width:min(1080px,100%);margin:auto;padding:clamp(1.5rem,3vw,2.5rem);border-radius:28px;background:#f8f4eb;box-shadow:0 22px 60px rgba(37,42,36,.14)}
.t1405-document-subtitle{font-family:Georgia,"Times New Roman",serif;font-style:italic;color:#7b7469}.t1405-tree-actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:1.3rem}.t1405-button-native{border:0;cursor:pointer}
.t1405-tree-frame{display:flex;justify-content:center;align-items:center}.t1405-tree-preview-card{width:100%;padding:22px;border:1px solid #d8d0c2;border-radius:18px;background:#eee8dc;box-shadow:0 16px 36px rgba(51,45,35,.16)}.t1405-tree-preview-card img{display:block;width:100%;height:auto;max-height:560px;object-fit:contain;background:#fff}.t1405-tree-preview-card span{right:32px;bottom:32px}
.t1405-tree-dialog{width:min(98vw,1760px);height:min(97vh,1160px);padding:0;border:0;border-radius:18px;overflow:hidden;background:#ece6da;color:#3d4039;box-shadow:0 40px 120px rgba(0,0,0,.38);animation:t1405MuseumIn .22s ease-out}.t1405-tree-dialog::backdrop{background:rgba(28,29,25,.72);backdrop-filter:blur(7px)}
@keyframes t1405MuseumIn{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
.t1405-museum-head{display:flex;align-items:center;justify-content:center;gap:18px;min-height:108px;padding:18px 24px;border-bottom:1px solid #d7d0c4;background:#f7f3ea;text-align:center}.t1405-museum-head img{width:54px;height:62px;object-fit:contain}.t1405-museum-head h2{margin:0;color:#3d4039;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.25rem,2.2vw,2rem);font-weight:500}.t1405-museum-head p{margin:.35rem 0 0;color:#7b7469;font-family:Georgia,"Times New Roman",serif;font-style:italic}
.t1405-tree-dialog-viewport{position:relative;height:calc(100% - 170px);overflow:hidden;background:#ece6da;cursor:grab;touch-action:none}.t1405-tree-dialog-viewport.is-dragging{cursor:grabbing}.t1405-tree-canvas{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}.t1405-tree-canvas img{display:block;max-width:none;width:auto;height:auto;user-select:none;pointer-events:none;box-shadow:0 16px 42px rgba(45,40,32,.24)}
.t1405-tree-toolbar{display:flex;align-items:center;justify-content:center;gap:.65rem;min-height:62px;padding:10px 16px;border-top:1px solid #d7d0c4;background:#f7f3ea}.t1405-tree-toolbar button,.t1405-tree-toolbar a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.48rem .82rem;border:1px solid #d7d0c4;border-radius:8px;background:#fff!important;color:#3d4039!important;font-size:.84rem;text-decoration:none!important;cursor:pointer}.t1405-tree-toolbar button:hover,.t1405-tree-toolbar a:hover{background:#e8e0d3!important}
.t1405-tree-tip{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:.65rem .9rem;border-radius:999px;background:rgba(61,64,57,.88);color:#fff;font-size:.8rem;opacity:0;pointer-events:none}.t1405-tree-tip.is-visible{animation:t1405Tip 3.2s ease both}@keyframes t1405Tip{0%{opacity:0;transform:translate(-50%,8px)}12%,75%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-4px)}}
@media(max-width:850px){.t1405-tree-card{grid-template-columns:1fr}.t1405-museum-head{min-height:96px}.t1405-tree-dialog-viewport{height:calc(100% - 212px)}.t1405-tree-toolbar{flex-wrap:wrap}.t1405-tree-toolbar a,.t1405-tree-toolbar button{flex:1 1 auto}}


/* Template1405 v2.1.0 – frei konfigurierbare Portal-Karten */
.t1405-line-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.t1405-line-card{display:flex;min-height:100%;overflow:hidden;border:1px solid var(--t1405-line);border-radius:22px;background:rgba(255,255,255,.62);box-shadow:0 14px 34px rgba(16,31,28,.08);transition:transform .2s ease,box-shadow .2s ease;flex-direction:column}
.t1405-line-card:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(16,31,28,.13)}
.t1405-line-image{height:210px;overflow:hidden;background:#e8e2d7}
.t1405-line-image img{display:block;width:100%;height:100%;object-fit:cover}
.t1405-line-body{display:flex;flex:1;flex-direction:column;padding:1.8rem}
.t1405-line-body>span{color:var(--t1405-gold);font-size:.78rem;font-weight:850;letter-spacing:.14em}
.t1405-line-body h3{margin:.55rem 0 .8rem}
.t1405-line-body p{color:var(--t1405-muted);line-height:1.65}
.t1405-card-link{align-self:flex-start;margin-top:auto;padding-top:1rem;color:var(--t1405-accent)!important;font-weight:800;text-decoration:none!important}
.t1405-card-link:hover{color:var(--t1405-accent-dark)!important}
@media(max-width:900px){.t1405-line-grid{grid-template-columns:1fr}.t1405-line-image{height:260px}}
