/* Service-Leiste (Aufbauanleitungen, Materialkunde, Videos, Kataloge, Händlersuche), Quick-Wins Paket 1.
   crawl/clean_hooks/ikonen.py setzt je Eintrag tg-ico--<art>. Vorher: Kataloge und Materialkunde beide mit "i",
   pinkes Icon beim Überfahren, Leiste klappte beim Überfahren lange Texte unterschiedlicher Länge auf. */
:root { --tg-gruen: #004e2d; --tg-grau: #4b4b4a; }

/* eigene Icons je Ziel (Lucide-Formen auf FontAwesome-Codes, siehe icons/icons.css) */
#service .serviceicon.tg-ico--material:before, #responsive-service a.tg-ico--material:before { content: "\f1b3"; }
#service .serviceicon.tg-ico--katalog:before, #responsive-service a.tg-ico--katalog:before { content: "\f02d"; }

/* Handy-Menü: Icons ohne Prägeschatten, in Markengrün */
#responsive-service .serviceButton:before { color: var(--tg-gruen); text-shadow: none; }

@media (min-width: 1080px) {
  /* Höhe aus dem Inhalt statt fest 55px plus 10px Innenabstand mit overflow:hidden (schnitt unten ab);
     vor dem Einblenden ganz unter dem Rand (das Seitenskript setzt .slide-in, dann bottom: 0) */
  #service { min-height: 0; max-height: none; height: auto; padding: 0; bottom: -120px; }
  #service .grid.grid--small { display: flex; flex-wrap: nowrap; align-items: stretch; }
  #service .grid.grid--small > .grid__column { float: none; flex: 1 1 0; width: auto; min-width: 0; border-left: 0;
    border-right: 1px solid #e2e2e1; padding: 0; transition: background-color .2s ease-out; }
  #service .grid.grid--small > .grid__column:last-child { border-right: 0; }
  #service .neos-contentcollection, #service .serviceteaser, #service .serviceButton { height: 100%; }
  #service .serviceButton a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px;
    align-items: center; align-content: center; height: 100%; min-height: 80px; padding: 14px 18px; border: 0; float: none;
    box-sizing: border-box; text-decoration: none; }
  #service .serviceButton a:before { content: none; }
  #service .serviceicon { grid-row: 1 / span 2; grid-column: 1; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; font-size: 30px; line-height: 1; color: var(--tg-gruen); text-shadow: none; float: none; margin: 0; }
  #service .serviceButton a h4 { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 3px; color: #2b2b2a; line-height: 1.15 !important; }
  #service .serviceButton a .short { grid-column: 2; grid-row: 2; align-self: start; margin: 0; color: #5b5b5a; line-height: 1.3; }
  #service .serviceButton a .long { display: none; }
  /* kein Aufklappen mehr beim Überfahren der ganzen Leiste */
  #service:hover { max-height: none; min-height: 0; box-shadow: 0 0 5px 4px #d4d4d4; }
  .serviceDocked #service:hover { box-shadow: none; }
  /* Überfahren und Tastatur-Fokus: der ganze Eintrag in Markengrün */
  #service .grid.grid--small > .grid__column:hover, #service .grid.grid--small > .grid__column:focus-within { background: var(--tg-gruen); }
  #service .grid__column:hover .serviceicon, #service .grid__column:focus-within .serviceicon,
  #service .grid__column:hover .serviceButton a h4, #service .grid__column:focus-within .serviceButton a h4,
  #service .grid__column:hover .serviceButton a .short, #service .grid__column:focus-within .serviceButton a .short {
    color: #fff; text-shadow: none; }
  #service .serviceButton a:focus-visible { outline: 3px solid #ee7f00; outline-offset: -3px; }
}
@media (min-width: 1080px) and (prefers-reduced-motion: reduce) {
  #service .grid.grid--small > .grid__column { transition: none; }
}
