.te-wiki{
  --primary-blue:#0086dd;
  --primary-blue-15:rgba(0,134,221,.15);
  --primary-blue-10:rgba(0,134,221,.10);
  --text-dark:#1f2937;
  --text-gray:#6b7280;
  --text-light:#9ca3af;
  --bg:#ffffff;
  --surface:#ffffff;
  --border:rgba(0,134,221,0.10);
  --accent:#ff9900;
  --accent-hover:#e58900;
  --radius:12px;
  --shadow:0 4px 12px rgba(0,0,0,.10);
}

.te-wiki-hero{
  position:relative;
  height:clamp(280px,45vw,500px);
  overflow:hidden;
  isolation:isolate;
  background:#fff;
}

.te-wiki-hero-bg{
  position:absolute;
  inset:0;
  background-image:url("/bilder/Headergrafik_Wiki.jpg");
  background-size:cover;
  background-position:center;
  filter:none;
  z-index:0;
}

.te-wiki-hero-inner{
  position:absolute;
  width:min(96%,1100px);
  left:50%;
  bottom:2.5rem;
  transform:translate(-50%,0);
  z-index:2;
}

@media (min-width:768px){
  .te-wiki-hero-inner{
    top:50%;
    bottom:auto;
    transform:translate(-50%,-50%);
  }
}

@media (min-width:1400px){
  .te-wiki-hero-inner{
    width:1200px;
  }
}

.te-wiki-card{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(2px);
  border-top:5px solid var(--accent,#ff9900);
  border-radius:16px;
  padding:clamp(16px,3vw,28px);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  overflow:visible;
}

.te-wiki-grid{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:clamp(14px,2.5vw,24px);
  align-items:center;
}

@media (max-width:820px){
  .te-wiki-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
}

.te-wiki-voltbert{
  display:flex;
  align-items:center;
  justify-content:center;
}

.te-wiki-voltbert img{
  width:clamp(190px,22vw,280px);
  height:auto;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.25));
  user-select:none;
  pointer-events:none;
}


.te-wiki-title{
  margin:0 0 .25rem 0;
  font-size:clamp(34px,4vw,56px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-0.02em;
  color:var(--text-dark,#1f2937);
  text-align:center;
}

.te-wiki-subtitle{
  margin:0 0 .75rem 0;
  color:var(--text-gray,#6b7280);
  text-align:center;
  font-size:clamp(14px,2vw,16px);
}

.te-wiki-search{
  display:flex;
  align-items:stretch;
  gap:10px;
  max-width:880px;
  margin:0 auto;
  background:var(--surface,#fff);
  border:1px solid var(--border,rgba(0,134,221,0.10));
  border-radius:calc(var(--radius,12px) + 4px);
  padding:6px;
  height:52px;
  box-shadow:var(--shadow,0 4px 12px rgba(0,0,0,.10));
  transition:border-color .2s ease, box-shadow .2s ease;
}

.te-wiki-search:focus-within{
  border-color:var(--primary-blue,#0086dd);
  box-shadow:0 0 0 3px var(--primary-blue-15,rgba(0,134,221,.15));
}

.te-wiki-search input{
  flex:1;
  background:transparent;
  border:0 !important;
  outline:none;
  box-shadow:none !important;
  color:var(--text-dark,#1f2937);
  font-size:16px;
  padding:0 12px;
  height:100%;
}

.te-wiki-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:100%;
  padding:0 16px;

  border:0;
  border-radius:10px;
  cursor:pointer;
  color:#fff;
  background:var(--accent,#ff9900);
  font-weight:700;
  line-height:1;
  box-shadow:0 4px 12px rgba(255,153,0,.25);
  text-transform:lowercase;
}



.te-wiki-btn:hover{
  background:var(--accent-hover,#e58900);
  box-shadow:0 8px 22px rgba(255,153,0,.35);
  transform:translateY(-1px);
}

.te-wiki-az-in{
  margin-top:12px;
  width:100%;
  max-width:880px;
  margin-left:auto;
  margin-right:auto;
}

.te-wiki-az-in #glossar_suche{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
  justify-content:flex-start;
  align-items:center;
  padding:0;
  margin:0;
  list-style:none;
  width:100%;
}

.te-wiki-az-in #glossar_suche li{
  flex:0 0 auto;
}

.te-wiki-az-in #glossar_suche li:last-child{
  margin-left:auto;
}

.te-wiki-az-in #glossar_suche li a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border,rgba(0,134,221,0.10));
  background:rgba(255,255,255,.85);
  color:var(--text-dark,#1f2937);
  font-size:13px;
  white-space:nowrap;
  transition:border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.te-wiki-az-in #glossar_suche li a:hover{
  border-color:var(--accent,#ff9900);
  transform:translateY(-1px);
}

.te-wiki-az-in #glossar_suche li[class*="_aktiv"] a{
  border-color:var(--primary-blue,#0086dd);
  box-shadow:0 0 0 3px var(--primary-blue-10,rgba(0,134,221,.10));
}


/* ==============================
   Wiki / Glossar – Kacheln unten 
============================== */

/* Grid */
#glossar{
  list-style:none;
  margin:0;
  padding:0;

  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:clamp(12px, 2vw, 18px);
}

@media (max-width:1100px){
  #glossar{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width:820px){
  #glossar{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:520px){
  #glossar{ grid-template-columns:1fr; }
}

/* WICHTIG: killt die "Box um die Box" (kommt oft vom LI) */
#glossar > li{
  margin:0;
  padding:0;

  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;

  width:auto !important;
  max-width:none !important;
  float:none !important;
}

/* Card-Link */
#glossar > li > a{
  width:100% !important;
  justify-content:flex-start;
  padding-right:52px; 
  max-width:none !important;
  min-width:0 !important;

  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  /* links mehr Platz wegen Streifen */
  padding:16px 18px 16px 22px;
  min-height:64px;

  box-sizing:border-box !important;

  background:#fff !important;
  color:var(--text-dark,#1f2937) !important;
  text-decoration:none;

  font-weight:700;
  line-height:1.2;
  white-space:normal !important;
  word-break:break-word;
  text-align:left;

  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(0,0,0,.08);

  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;

  position:relative;
  overflow:hidden; /* damit der Streifen sauber mit der Rundung clipped */
}

/* Streifen LINKS: außen am Rand, rund wie Suchbox-Rand */
#glossar > li > a::before{
  content:"";
  position:absolute;
  left:0;          /* AUSSEN am Rand */
  top:0;
  bottom:0;
  width:8px;

  /* Rundung wie Card links */
  border-radius:14px 0 0 14px;

  background:linear-gradient(
    180deg,
    rgba(0,134,221,.95),
    rgba(0,134,221,.35)
  );

  /* wirkt wie "Edge Highlight" (ähnlich Suchbox-Rand) */
  box-shadow:inset -1px 0 0 rgba(255,255,255,.55);
  transition:background .18s ease;
  pointer-events:none;
}

/* Pfeil rechts */
#glossar > li > a::after{
  content:"&#8594;";
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%); 
  
  font-weight:900;
  font-size:18px;
  line-height:1;

  color:var(--primary-blue,#0086dd);
  opacity:.85;

  transition:color .18s ease, transform .16s ease, opacity .18s ease;
}

/* Hover */
#glossar > li > a:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(0,0,0,.14);
  border-color:rgba(0,134,221,.22);
}

#glossar > li > a:hover::before{
  background:linear-gradient(
    180deg,
    rgba(255,153,0,.95),
    rgba(255,153,0,.35)
  );
}

#glossar > li > a:hover::after{
  color:var(--accent-orange,#ff9900);
  transform:translateY(-50%) translateX(3px);
  opacity:1;
}

/* Focus (Tastatur) */
#glossar > li > a:focus-visible{
  outline:3px solid rgba(0,134,221,.35);
  outline-offset:3px;
}

