/**
 * AT News-Editor - Frontend Stylesheet (Karten-Look)
 * Übernimmt das Design der Backend-Vorschau für die Live-Website.
 */

/* ==========================================================================
 *  AT NEWSPARSER - FRONTEND STYLING (News-Card Design)
 *  ========================================================================== */


 /* 1. Bild-Container & Die aufliegende Caption */
 .at-parser-image-container {
     position: relative;
     border-radius: 60px;
     margin-bottom: 10px !important;
     padding-bottom: 0px !important;
 }

 .at-parser-main-image {
     display: block;
     width: 100%;
     height: auto;
     border: none;
 }


 /* 2. Info-Box (Fotograf & WhatsApp) */
 .at-parser-info-box {
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 12px;
     color: #555;
     padding: 0 5px;
     position:relative;top:-8px;
 }

 .at-parser-credit {
     display: flex;
     flex-direction: column;
     gap: 2px;
     font-weight: 500;
 }

 /* WhatsApp Link */
.whatsapplink, .at-parser-whatsapp {
     display: inline-flex;
     align-items: center;
     text-decoration: none;
     font-size: 12px;
     font-weight: 600;
     color: #25D366;margin-top:5px;
 }

.whatsapplink:before, .at-parser-whatsapp:before {
     content: "";
     display: inline-block;
     width: 20px;
     height: 20px;
     margin-right: 4px;
     background-repeat: no-repeat;
     background-size: contain;vertical-align: middle;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2325D366' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-5.5-2.8-23.2-8.5-44.2-27.1-16.4-14.6-27.4-32.7-30.6-38.2-3.2-5.6-.3-8.6 2.5-11.3 2.5-2.5 5.5-6.5 8.3-9.7 2.8-3.3 3.7-5.6 5.5-9.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 13.2 5.8 23.5 9.2 31.5 11.8 13.3 4.2 25.4 3.6 35 2.2 10.7-1.5 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E");
 }

.whatsapplink {position: relative;float: right;top: -33px;}

.whatsapplink:hover, .at-parser-whatsapp:hover {
    color: #25D366 !important;
}

 /* Standardmäßig (auf dem Desktop) verstecken */
.whatsapplink, .at-parser-whatsapp {
    display: none !important;
}



 /* 3. Teaser-Text */
 .at-parser-teaser {
     font-size: 16px;
     line-height: normal!important;
     font-weight: bold!important;
     margin-top:-15px!important;
     margin-bottom:15px!important;
     color: #1a1a1a;
 }

 /* 4. Haupt-Artikeltext */
 .at-parser-content {
     font-size: 17px;
     line-height: normal!important;
     color: #333;
     font-weight: normal!important;
 }

 /* 5. Quelle am Ende */
 .manual_source {
     text-align: right;
     margin-top: 30px;
     padding-top: 15px;
     border-top: 1px solid #eee;
 }

 .manual_source a {
     text-decoration: underline;
     color: #0056b3;
     font-weight: 600;
 }

.read-more {color:#333333;font-size: 14px;text-decoration: underline;font-weight: bold!important;position:relative;top:-8px!important;}
.read-more {text-underline-offset: 3px;}


.ap_titlelink {color:#333333!important;position:relative;top:-10px;float:right;font-size:12px!important;font-weight: normal;text-decoration: underline;}
.ap_titlelink a {color:#333333;}




/* ==========================================================================
 *  AT NWZ-AutoPress - Style für die alten News aus dem alten Plugin
 *  ========================================================================== */
 .ap_text {font-weight:normal!important;}




 /* ==========================================================================
   Theme-Ausgleich
   --------------------------------------------------------------------------
   Behebt künstliche Abstände des Themes (.ct-media-container) und korrigiert
   die Positionierung des WhatsApp-Links in alten, statischen Beiträgen.
   ========================================================================== */


 /* 1. Künstlichen Abstand vom Theme-Bildcontainer & Bild eliminieren */
 .ct-media-container.has-hover-effect,
.ct-media-container.has-hover-effect img {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block;
}

/* 2. Komplett leere WordPress-Absätze am Anfang unsichtbar machen */
.entry-excerpt > p:first-child:empty {
    display: none !important;
}

/* 3. Oberen Abstand der Bild-Überschrift korrigieren */
.entry-excerpt .ap_bild {
    margin-top: 0 !important;
    padding-top: 2px;font-weight: normal!important
}


