/* ==============================
   tricoma.energy – Help-Seite (clean)
=============================== */

/* Design-Tokens */
:root{
  --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);
  --border-strong:  rgba(0,134,221,0.20);
  --accent:         #ff9900;
  --accent-hover:   #e58900;
  --radius:         12px;
  --radius-lg:      16px;
  --shadow:         0 4px 12px rgba(0,0,0,.10);
  --shadow-hover:   0 8px 25px rgba(255,153,0,.25);
  --gap:            clamp(14px, 2vw, 22px);
  --maxw:           1200px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font: 16px/1.55 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a{
  color: var(--primary-blue);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover{ color: var(--primary-blue); }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: clamp(18px,3vw,28px); }

/* Hero / Suche */
.hero{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px,4vw,36px) var(--gap);
}
.title{ display:flex; align-items:center; gap:12px; margin:0 0 12px 0; }
.title svg{ width:26px; height:26px; color: var(--accent); }
h1{ font-size: clamp(22px,4vw,30px); margin: 0; }
.subtitle{ color: var(--text-gray); margin: 6px 0 18px; }

/* Wrapper bleibt wie gehabt – EINZEILIG erzwingen */
.search{
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;       
  gap: 8px;                
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 6px;             
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Input optisch „integriert“: keine eigene Umrandung/Box */
.search input{
  flex: 1 1 auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  color: var(--text-dark);
  font-size: 16px;
  height: 42px;
  line-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  -webkit-appearance: none;
}

/* Bootstrap-Button in der Leiste: einzeilig & gleiche Höhe wie Input */
.search .btn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;             
  padding: 0 16px;
  line-height: 1;
  margin: 0;
  align-self: center;
  white-space: nowrap;     
  border-radius: 10px;      
}

/* Fokusrahmen des Wrappers bleibt dein blaues Glow */
.search:focus-within{
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-15);
}

#te-help-banner .te-help-search .btn{ text-transform: none; }



.helper{ font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* Sektionen */
section{ margin: 40px 0; }
.sec-head{
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.sec-head h2{ font-size: clamp(18px,3vw,22px); margin: 0; }
.sec-head a{ font-size: 14px; color: var(--primary-blue); }

/* Grid */
.grid{ display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.cards-3 > *{ grid-column: span 12; }
@media (min-width: 680px){ .cards-3 > *{ grid-column: span 6; } }
@media (min-width: 980px){ .cards-3 > *{ grid-column: span 4; } }
.cards-4 > *{ grid-column: span 12; }
@media (min-width: 680px){ .cards-4 > *{ grid-column: span 6; } }
@media (min-width: 980px){ .cards-4 > *{ grid-column: span 3; } }

/* Karten – generisch (für Tutorial-Karten etc.) */
.card{
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover{
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card .eyebrow{ font-size: 12px; color: var(--text-gray); }
.card h3{ font-size: 16px; margin: 0; }
.row{ display:flex; align-items:center; gap:8px; color: var(--text-gray); font-size:13px; }

/* Kategorie-Karte (Liste) – alte kleine Links */
.pill{
  display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-gray);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.list{ display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.list a{
  display:flex; align-items:center; gap:8px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.list a:hover{
  border-color: var(--accent);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,153,0,.15);
}

/* Breadcrumbs */
.breadcrumbs{ display:flex; flex-wrap:wrap; gap:8px; font-size:13px; color: var(--text-light); margin-bottom:12px; }
.breadcrumbs a{ color: var(--primary-blue); }

/* States / Utilities */
.hidden{ display:none !important; }

/* Footer */
footer{
  border-top: 1px solid var(--border);
  color: var(--text-light);
  padding: 24px var(--gap);
  text-align: center;
  background: var(--bg);
}

/* Fokus sichtbarer (A11y) */
:where(a,button,[role="button"],.card,.list a):focus-visible{
  outline: 3px solid var(--primary-blue-15);
  outline-offset: 2px;
  border-radius: 10px;
}

/* === Orange Hover-Rand/Glow bei großen Karten deaktiviert (Meistgelesen + Kategorien) === */
#categoryGrid > .card:hover,
#mostReadGrid > .card:hover {
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
  transform: translateY(-4px);
}

/* ===== Help-Banner (statisch, mit Avatar + Suche) ===== */
#te-help-banner{
  position: relative;
  height: clamp(280px, 45vw, 500px);
  overflow: hidden;
  isolation: isolate;
  margin-top:0;
}
#te-help-banner .te-help-bg{
  position: absolute;
  inset: 0;
  background-image: url("/templates/tricoma_energy/Labels/leistungen_slider_4.jpg");
  background-size: cover;
  background-position: center;
}
#te-help-banner .te-help-floating{
  position: absolute;
  width: min(96%, 1100px);
  left: 50%; bottom: 2.5rem; transform: translate(-50%, 0);
  z-index: 2;
}
@media (min-width: 768px){
  #te-help-banner .te-help-floating{
    top: 50%; bottom: auto; transform: translate(-50%, -50%);
  }
}
@media (min-width: 1400px){
  #te-help-banner .te-help-floating{ width: 1200px; }
}
#te-help-banner .te-help-card{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(2px);
  border-top: 5px solid #ff9900;
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
#te-help-banner .te-help-card-grid{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(14px, 2.5vw, 24px);
  align-items: center;
}
@media (max-width: 820px){
  #te-help-banner .te-help-card-grid{ grid-template-columns: 1fr; }
}
/* Avatar */
#te-help-banner .te-help-avatar-wrap{ display:flex; align-items:center; justify-content:center; }
#te-help-banner .te-help-avatar{
  width: clamp(110px, 12vw, 160px); height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
  user-select: none; pointer-events: none;
}
/* Texte */
#te-help-banner .te-help-title{
  margin: 0 0 .25rem 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; color: var(--text-dark); text-align: center;
}
#te-help-banner .te-help-subtitle{
  margin: 0 0 .5rem 0; color: var(--text-gray); text-align: center; font-size: clamp(14px, 2vw, 16px);
}
/* Bullets */
#te-help-banner .te-help-bullets{
  display:flex; flex-wrap:wrap; gap:10px 18px;
  list-style:none; padding:0; margin:.25rem 0 1rem 0; justify-content:center;
}
#te-help-banner .te-help-bullets li{
  position:relative; padding-left:22px; font-size:14px; color:var(--text-dark);
}
#te-help-banner .te-help-bullets li::before{
  content:"\2713";
  position:absolute; left:0; top:0.15em; display:inline-block;
  font:700 14px/1 'Open Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--primary-blue);
}
/* Suche im Banner */
#te-help-banner .te-help-search{
  margin: 0 auto; max-width: 880px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
}
#te-help-banner .te-help-search button{ text-transform: lowercase; }

/* =========================================================
   Kategorie-Karten mit Bild + Kachel-Liste + Button (.kc-*)
========================================================= */
.kc-card{
  display:flex; 
  flex-direction:column; 
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  height: 100%;         
}
.kc-card:hover{
  transform: translateY(-4px);
  border-color: var(--border);      
  box-shadow: var(--shadow);       
}

/* Bild oben */
.kc-img{
  height: 190px;            
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto; 
}
@media (min-width: 980px){
  .kc-img{ height: 190px; }      
}

/* Body füllt die Karte, damit der CTA nach unten kann */
.kc-body{ 
  display:flex; 
  flex-direction:column; 
  padding:1.25rem; 
  flex: 1;                    
}

/* --- Titel + Beschreibung: fixe Zeilenhöhen/Min-Höhen --- */
.kc-title{
  margin: 0 0 .35rem 0;
  font-size: 20px;
  font-weight: 600;
  color: #343434;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: .5rem;

  line-height: 1.25;                 /* 1 Zeile fest einplanen */
  min-height: calc(1.25em * 1);      /* sorgt für identischen Startpunkt */
}

.kc-desc{
  margin: .5rem 0 .75rem;
  color: var(--text-gray);

  line-height: 1.4;                   /* 2 Zeilen fest einplanen */
  min-height: calc(1.4em * 2);
  display: -webkit-box;               /* bei langen Texten auf 2 Zeilen clampen */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tutorial-Kacheln */
.kc-list{ display:flex; flex-direction:column; gap:.6rem; }

.kc-item{
  /* Layout */
  display:flex; align-items:center; gap:.5rem;
  padding:.75rem .85rem;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  color: var(--text-dark);
  text-decoration:none;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);

  /* Hover/Fokus */
  transition: border-color .2s ease, transform .16s ease, box-shadow .2s ease, color .2s ease;

  /* -> Fixhöhe für 2 Zeilen: (line-height * 2 * 1em) + vertikale Paddings */
  --kc-item-lh: 1.4;
  --kc-item-lines: 2;
  line-height: var(--kc-item-lh);
  min-height: calc(var(--kc-item-lh) * 1em * var(--kc-item-lines) + 1.5rem); /* 1.5rem = .75rem top + .75rem bottom */
}

.kc-item svg{ flex:0 0 auto; }

/* Text: auf 2 Zeilen clampen; Überlauf ausblenden */
.kc-item span{
  display: -webkit-box;
  -webkit-line-clamp: 2;             /* exakt 2 Zeilen sichtbar */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover/Focus – Orange Rahmen/Glow wie gewünscht */
.kc-item:hover{
  border-color: var(--accent);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,153,0,.18);
}
.kc-item:focus-visible{
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(255,153,0,.25),
    0 6px 18px rgba(255,153,0,.18);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.

{
  margin-top: auto;        
  padding-top: 12px;     
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 980px){
  .kc-cta{ padding-top: 16px; } 
}

/* ===== Meistgelesen – Bild-Platzhalter oben rechts ===== */
.mr-card{
  /* die card ist schon flex/column – wir nutzen das */
  position: relative;
  padding-top: 1.25rem;          /* Platz fürs Badge oben rechts */
  padding-bottom: 1.25rem;       /* kleiner Unterboden */
  min-height: 150px;             /* optional: gleiche mindesthöhe, Feintuning erlaubt */
  display: flex;
  flex-direction: column;
}

.mr-meta{
  margin-top: auto;              /* schiebt Meta an das Kartenende = unten */
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  font-size: 14px;
  /* Links ist Standard – kein extra justify nötig */
}

.mr-chip{ display:inline-flex; align-items:center; gap:6px; }
.mr-sep{ opacity:.6; user-select:none; }

/* Badge bleibt oben rechts */
.mr-photo{
  position:absolute; top:10px; right:10px;
  width:36px; height:36px; object-fit:cover; border-radius:10px; display:block;
}

/* Standard bleibt */
section { margin: 40px 0; }

/* Kontaktband: keinen unteren Außenabstand, stattdessen Innenabstand */
#kontakt { 
  margin: 20px 0 0 0;   /* oben 20px, unten 0 */
  padding: 20px 0;      /* Innenabstand statt Außenabstand */
}
