/* --------------------------------------------------------
 * FINALER CSS-CODE FÜR TYPO3 EXT:NEWS
 * -------------------------------------------------------- */

/* --------------------------------------------------------
 * TEIL 1: OVERLAY UND BILDER (Keine Änderung)
 * -------------------------------------------------------- */

#c174 .news-img-wrap {
    background: transparent !important;
    border-radius: 10px !important;
    overflow: hidden;
}

#c174 .news-img-wrap a::before,
#c174 .news-img-wrap a::after {
    content: '';
    opacity: 0 !important;
    background: transparent !important;
    transition: none !important;
}

#c174 .news-img-wrap a {
    position: relative;
    display: block;
    background-color: rgba(0, 123, 255, 0.7) !important;
    transition: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
}

#c174 .news-img-wrap a:hover {
    background-color: rgba(0, 123, 255, 0.7) !important;
}

#c174 .news-img-wrap a img,
#c174 .news-img-wrap picture {
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

/* --------------------------------------------------------
 * TEIL 2: ARTIKEL-KACHEL (Linkes Margin auf 0 gesetzt)
 * -------------------------------------------------------- */

#c174 .article {
    width: 430px !important;
    height: 570px !important;
    max-width: 430px !important;
    max-height: 570px !important;
    overflow-y: hidden !important;
    background-color: transparent !important;
    border: none !important;
    transition: none !important;
    position: relative;
    z-index: 0;
    box-sizing: border-box !important;
    /* Angepasst: Links 0px Margin für Linksbündigkeit mit Header */
    margin: 30px 30px 30px 0 !important; 
}

#c174 .article:hover {
    background-color: transparent !important;
}

#c174 .article .container.newsItem {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

/* --------------------------------------------------------
 * TEIL 3: TEASERTEXT BEGRENZUNG (Keine Änderung)
 * -------------------------------------------------------- */

#c174 .article .teaser-text div[itemprop="description"] p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* --------------------------------------------------------
 * TEIL 4: SCHRIFTART (Keine Änderung)
 * -------------------------------------------------------- */

#c174,
#c174 .article * {
    font-family: 'Roboto', sans-serif !important;
}

/* --------------------------------------------------------
 * TEIL 5: INDIVIDUELLE FARBGESTALTUNG (Für Workaround beibehalten)
 * -------------------------------------------------------- */

#c174 .article h3 { color: #ffffff !important; }
#c174 .article .teaser-text p { color: #ffffff !important; }
#c174 .news-list-date time { color: #ffffff !important; }

/* Originaler Linktext wird auf transparent gesetzt */
#c174 .article .moreLink a { 
    color: transparent !important; 
    position: relative; 
    display: inline-block; 
}

/* Farbe für den neuen Text beim Hover */
#c174 .article:hover h3,
#c174 .article:hover .teaser-text p,
#c174 .article:hover .news-list-date time,
#c174 .article:hover .moreLink a {
    color: #ffffff !important;
}

/* Neuen Text "Mehr lesen" im Artikel über ::before einfügen */
#c174 .article .moreLink a::before {
    content: "Mehr lesen"; 
    color: #ffffff !important;
}

/* --------------------------------------------------------
 * TEIL 6: FLEX-CONTAINER (Kacheln links ausrichten)
 * -------------------------------------------------------- */

#c174 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important; 
    min-width: 1400px !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 auto; 
}

/* --------------------------------------------------------
 * TEIL 7: HEADER & TEASER VERSCHIEBEN (Keine Änderung)
 * -------------------------------------------------------- */

#c174 .article .newsContentDescription {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px !important;
}

#c174 .article .newsContentDescription h3,
#c174 .article .newsContentDescription .teaser-text {
    margin-top: 0 !important;
}

/* --------------------------------------------------------
 * TEIL 8: EIN STRICH + HERSTELLER NEWS IN EINER ZEILE (GEÄNDERT: 10px Margin links)
 * -------------------------------------------------------- */

/* Header-Container: Flex-Start, damit der Titel (H2-Container) ganz links beginnt */
#c174 .news-list-view .newsHeadArea {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 20px;
    padding-bottom: 0;
    /* Wichtig: Auf die linke Seite des Containers verschieben */
    justify-content: flex-start !important; 
    width: 100%; 
    max-width: 1400px; 
    margin-left: 30px !important; /* <--- HIER WURDE 10PX MARGIN HINZUGEFÜGT */
    margin-right: auto;
}

/* Container für den H2 (Titel) */
#c174 .news-list-view .newsDescriptionHeadline {
    /* Wichtig: Sicherstellen, dass dieser Container nicht zu viel Platz einnimmt */
    flex-grow: 0;
    flex-shrink: 0;
}

/* Grauer Original-Strich ausblenden */
#c174 .news-list-view .bgLine {
    display: none !important;
}

/* Original-H2 unsichtbar, aber ohne Platz zu belegen */
#c174 .news-list-view .newsDescriptionHeadline h2 {
    color: transparent !important;
    /* Original-H2 komplett aus dem Layout entfernen, damit es keinen Platz belegt */
    position: absolute; 
    left: -9999px; 
    margin: 0 !important;
}

/* Neuer Titel ohne Strich darunter */
#c174 .news-list-view .newsDescriptionHeadline::before {
    content: "Hersteller News";
    display: block; 
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0px; 
    border-bottom: none; 
    width: 100%; 
}

/* Den Link "Alle Events" nach rechts schieben und Inhalt überschreiben */
#c174 .news-list-view .newsMoreSection {
    margin-left: auto !important; /* Den Link nach ganz rechts drücken */
}

/* REGEL ZUM ÜBERSCHREIBEN DES LINKTEXTES "Alle Events" ZU "Alle News" */
#c174 .news-list-view .newsMoreSection .moreLink a {
    color: transparent !important; 
    text-decoration: none !important; 
    position: relative;
}

#c174 .news-list-view .newsMoreSection .moreLink a::before {
    content: "Alle News" !important; 
    color: #333 !important; 
    text-decoration: none !important; 
}

/* --------------------------------------------------------
 * TEIL 9: BEEINFLUSSUNG API HIGHLIGHTS (KORRIGIERT: Abstand durch Leerzeichen)
 * -------------------------------------------------------- */

/* 1. Header-Container (Rahmenbedingungen) */
#c70 .sliderHeadArea {
    display: flex !important;
    align-items: center !important; 
    margin-bottom: 20px; 
    padding-bottom: 0;
    justify-content: flex-start !important; 
    width: 100%; 
    max-width: 1400px; 
    margin-left: 10px !important; 
    margin-right: auto;
    position: relative; 
    /* Gap auf 0 setzen, da der Abstand jetzt über das ::before kommt */
    gap: 0 !important; 
}

/* 2. Originaltext "api Highlights" ausblenden */
#c70 .sliderHeadArea .sliderHeadline {
    color: transparent !important; 
    position: relative; 
    display: block !important; 
    font-size: 0; 
    padding: 0 !important;
    
    /* Vertikale Korrektur */
    margin-top: -17px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    
    /* Rechter Margin entfernt, da es nicht funktioniert hat */
    margin-right: 0 !important; 
}

/* 3. Neuen formatierten Text "api Highlights" per ::before einfügen */
#c70 .sliderHeadArea .sliderHeadline::before {
    /* 💥 KORREKTUR: Zwei geschützte Leerzeichen (\A0\A0) hinzugefügt 💥 */
    content: "api Highlights\A0\A0"; 
    
    display: block; 
    color: #333;
    font-size: 1.6rem;
    font-weight: 700; 
    font-family: 'Roboto', sans-serif !important; 
    position: relative; 
    padding-bottom: 0 !important;
    border-bottom: none !important;
    line-height: 1.2; 
}

/* 4. Pfeile rechts behalten und nach oben drücken */
#c70 .sliderHeadArea .sliderArrows {
    margin-left: auto !important;
    align-self: center !important;
    position: relative;
    
    /* Vertikale Korrektur */
    margin-top: -15px !important;
}

/* 5. Original-Strich (bgLine) definitiv ausblenden */
#c70 .sliderHeadArea .bgLine {
    display: none !important;
    height: 0 !important; 
    border: none !important; 
}