/* ============================================================
   Pinterest-Style Masonry Layout  —  ht24-pinterest.css
   ============================================================ */

/* ----  Masonry Grid (CSS columns — stream feed, viele Items) ---- */
.cp-masonry-grid {
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
    -webkit-column-gap: 20px;
    -moz-column-gap: 20px;
    column-gap: 20px;
    padding: 24px 0 10px;
}
@media (max-width: 1199px) {
    .cp-masonry-grid { -webkit-column-count: 3; -moz-column-count: 3; column-count: 3; }
}
@media (max-width: 991px) {
    .cp-masonry-grid { -webkit-column-count: 2; -moz-column-count: 2; column-count: 2; }
}
@media (max-width: 575px) {
    .cp-masonry-grid { -webkit-column-count: 1; -moz-column-count: 1; column-count: 1; }
}

/* ---- Flex Grid (Empfehlungen + Widget-Cards — wenige Items, kein Leerraum rechts) ---- */
.cp-flex-grid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 10px;
}
.cp-flex-grid > .cp-pin-card,
.cp-flex-grid > .cp-widget-card {
    -webkit-flex: 1 1 220px;
    flex: 1 1 220px;
    min-width: 0;
    margin-bottom: 0;
    display: block;
}

/* Pin-Cards: max-width passend zur Masonry-Spaltenbreite — verhindert
   dass die letzte Kachel einer unvollen Reihe auf vollen Viewport wächst */
.cp-flex-grid > .cp-pin-card {
    max-width: calc(25% - 15px);   /* 4-Spalten (≥1200px) */
}
@media (max-width: 1199px) {
    .cp-flex-grid > .cp-pin-card {
        max-width: calc(33.333% - 14px);   /* 3-Spalten */
    }
}
@media (max-width: 991px) {
    .cp-flex-grid > .cp-pin-card,
    .cp-flex-grid > .cp-widget-card {
        -webkit-flex-basis: 180px;
        flex-basis: 180px;
    }
    .cp-flex-grid > .cp-pin-card {
        max-width: calc(50% - 10px);   /* 2-Spalten */
    }
}
@media (max-width: 575px) {
    .cp-flex-grid > .cp-pin-card,
    .cp-flex-grid > .cp-widget-card {
        -webkit-flex: 0 0 100%;
        flex: 0 0 100%;
    }
    .cp-flex-grid > .cp-pin-card {
        max-width: 100%;
    }
}

/* ---- Pin Card ---- */
.cp-pin-card {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-pin-card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ---- Card Link wrapper ---- */
.cp-pin-link,
.cp-pin-link:hover,
.cp-pin-link:focus,
.cp-pin-link:visited {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* ---- Card Image (aspect-ratio via padding trick) ---- */
.cp-pin-image {
    width: 100%;
    padding-top: 62%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #eceef0;
}

/* ---- Card Body ---- */
.cp-pin-body {
    padding: 11px 14px 14px;
}

/* ---- Type Badge ---- */
.cp-pin-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2px 7px;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 6px;
    line-height: 16px;
}
.cp-pin-badge--news         { background-color: #2196F3; }
.cp-pin-badge--event        { background-color: #43A047; }
.cp-pin-badge--produkt      { background-color: #FB8C00; }
.cp-pin-badge--job          { background-color: #8E24AA; }
.cp-pin-badge--galerie      { background-color: #00ACC1; }
.cp-pin-badge--videos       { background-color: #E53935; }
.cp-pin-badge--empfehlung   { background-color: #546E7A; }

/* ---- Card Title ---- */
.cp-pin-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 2px 0 6px;
    color: #1a1a1a;
}

/* ---- Card Teaser ---- */
.cp-pin-teaser {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ---- Card Tags ---- */
.cp-pin-tags {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}
.cp-pin-tags i {
    color: #ccc;
    margin-right: 1px;
}

/* ============================================================
   Compact Widget Bar (above the masonry grid)
   ============================================================ */
.cp-widget-bar-wrapper {
    clear: both;
    background: #f4f5f7;
    border-top: 1px solid #e2e5e9;
    border-bottom: 1px solid #e2e5e9;
    padding: 10px 0;
}
.cp-widget-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cp-widget-bar-inner {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
    padding: 2px 0 4px;
}
.cp-widget-bar-item {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    white-space: normal;
    min-width: 200px;
    max-width: 270px;
    background: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 1px 5px rgba(0,0,0,.07);
    font-size: 12px;
}
/* Tone down widget headings inside bar */
.cp-widget-bar-item h3.side-title,
.cp-widget-bar-item .side-title h3 {
    font-size: 12px !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
}
.cp-widget-bar-item div.widget {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Wetter-Widget — volle Breite, eine Zeile */
.cp-widget-bar-weather {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0 !important;
    max-width: none !important;
}
.cp-bar-weather-row {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
.cp-bar-weather-row > img {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.cp-bar-weather-main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.cp-bar-weather-temp {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}
.cp-bar-weather-city {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    line-height: 1.2;
    white-space: nowrap;
}
.cp-bar-weather-desc {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    text-transform: capitalize;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.cp-bar-weather-sep {
    width: 1px;
    height: 28px;
    background: #dde0e4;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin: 0 4px;
}
.cp-bar-weather-sep--sm {
    height: 14px;
    margin: 0 2px;
}
.cp-bar-weather-detail {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 3px;
}
.cp-bar-weather-detail .wi {
    font-size: 22px;
    color: #0a71b3;
    line-height: 1;
}
.cp-bar-forecast-item {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    gap: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.cp-forecast-day {
    font-size: 9px;
    color: #999;
    white-space: nowrap;
}
.cp-forecast-temp {
    font-size: 10px;
    font-weight: 600;
    color: #333;
}

/* mehr-Button */
.cp-bar-weather-mehr {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    background: none;
    border: 1px solid #dde0e4;
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 10px;
    color: #0a71b3;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    margin-left: auto;
}
.cp-bar-weather-mehr:hover {
    background: #f0f7ff;
    border-color: #0a71b3;
}
/* Aufklapp-Panel */
.cp-bar-weather-popup {
    display: none;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e8eaed;
    font-size: 11px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

/* ── Mini Wetter-Filmstreifen ── */
.cp-bar-weather-imgslider {
    overflow: hidden;
    height: 36px;
    border-radius: 5px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 624px;   /* 6 × 104 px (100 Bild + 4 margin) */
}
.cp-imgslider-track {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-animation: cp-wetter-scroll 31s linear infinite;
    animation: cp-wetter-scroll 31s linear infinite;
    will-change: transform;
}
.cp-imgslider-track img {
    height: 36px;
    width: 100px;
    object-fit: cover;
    border-radius: 3px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: block;
    margin-right: 4px;  /* margin statt gap → letztes Bild hat auch 4px → -50% ist exakt */
}
@-webkit-keyframes cp-wetter-scroll {
    0%   { -webkit-transform: translateX(0);    transform: translateX(0); }
    100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes cp-wetter-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* Progressiv: je Breakpoint −1 Slot (104 px), am Ende komplett weg */
@media (max-width: 1799px) { .cp-bar-weather-imgslider { width: 520px; } }  /* 5 Bilder */
@media (max-width: 1599px) { .cp-bar-weather-imgslider { width: 416px; } }  /* 4 Bilder */
@media (max-width: 1399px) { .cp-bar-weather-imgslider { width: 312px; } }  /* 3 Bilder */
@media (max-width: 1199px) { .cp-bar-weather-imgslider { width: 208px; } }  /* 2 Bilder */
@media (max-width:  991px) { .cp-bar-weather-imgslider { width: 104px; } }  /* 1 Bild  */
@media (max-width:  767px) { .cp-bar-weather-imgslider { display: none; } } /* weg      */

/* Newsletter widget compact form */
.cp-widget-bar-newsletter p.cp-bar-nl-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cp-widget-bar-newsletter .input-group input {
    font-size: 12px;
    height: 30px;
    padding: 4px 8px;
}
.cp-widget-bar-newsletter .btn {
    height: 30px;
    padding: 4px 10px;
    font-size: 12px;
}

/* ============================================================
   Section Titles & Dividers between masonry blocks
   ============================================================ */
.cp-masonry-section-title {
    padding: 20px 0 8px;
}
.cp-masonry-section-title h2,
.cp-masonry-section-divider h2 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px;
    display: inline-block;
}
.cp-masonry-section-title small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 1px;
}
.cp-masonry-section-divider {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid #e2e5e9;
}

/* ============================================================
   Widget Cards (Bottom Section — same visual as Pin Cards)
   ============================================================ */
.cp-widget-card {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-widget-card:hover {
    -webkit-transform: translateY(-4px);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* ---- Header Strip ---- */
.cp-widget-card-header {
    background: linear-gradient(135deg, #f0f2f4 0%, #e6e9ec 100%);
    border-bottom: 1px solid #dde0e4;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.cp-widget-card-header i {
    color: #96bd0d;
    margin-right: 5px;
}

/* ---- Body ---- */
.cp-widget-card-body {
    padding: 12px 14px 14px;
    font-size: 13px;
}

/* Unterdrücke alte Widget-Wrapper innerhalb der Card */
.cp-widget-card-body .widget {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.cp-widget-card-body .side-title,
.cp-widget-card-body h3.side-title {
    display: none !important;
}
.cp-widget-card-body .cp-sidebar-content {
    padding: 0 !important;
}

/* Video-Card: kein padding damit Video bündig sitzt */
.cp-widget-card-body--video {
    padding: 0 !important;
}
.cp-widget-card-body--video .widget,
.cp-widget-card-body--video .widget-sidebar-video {
    margin: 0 !important;
    padding: 0 !important;
}
.cp-widget-card-body--video iframe,
.cp-widget-card-body--video video {
    display: block;
    width: 100%;
    border-radius: 0 0 16px 16px;
}

/* Listen-Styling innerhalb Widget-Cards */
.cp-widget-card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cp-widget-card-body ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f2f4;
    line-height: 1.4;
}
.cp-widget-card-body ul li:last-child {
    border-bottom: none;
}
.cp-widget-card-body ul li a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
}
.cp-widget-card-body ul li a:hover {
    color: #96bd0d;
}

/* Autoren-Logos innerhalb Widget-Card */
.cp-widget-card-body ul.authors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}
.cp-widget-card-body ul.authors li {
    border: none;
    padding: 0;
    flex: 0 0 auto;
}
.cp-widget-card-body ul.authors li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8eaec;
    -webkit-transition: transform 0.15s ease;
    transition: transform 0.15s ease;
}
.cp-widget-card-body ul.authors li img:hover {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
}

/* ============================================================
   Bottom Widgets Wrapper
   ============================================================ */
.cp-bottom-widgets {
    background: #f4f5f7;
    border-top: 1px solid #e2e5e9;
    padding: 24px 0 4px;
    margin-top: 10px;
}

/* ============================================================
   Pinterest main container
   ============================================================ */
.cp-pinterest-main {
    clear: both;
    padding-left: 12px;
    padding-right: 12px;
}

/* ============================================================
   Full-Width Header — Pinterest Layout
   ============================================================ */

/* Beide container im Header auf volle Breite aufweiten */
.cp-layout-pinterest #cp-header .container {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Logo-Row: weißer Hintergrund, subtile Trennlinie nach unten */
.cp-layout-pinterest .cp-logo-row {
    background: #ffffff;
    border-bottom: 1px solid #e8eaec;
}

/* Nav-Leiste: gleiche Farbe wie Topbar */
.cp-layout-pinterest .cp-megamenu {
    background: #0a71b3;
    border-bottom: 3px solid #96bd0d;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Inline-Border am ul.main-menu entfernen */
.cp-layout-pinterest .cp-megamenu ul.main-menu {
    border: none !important;
    background: transparent !important;
}

/* Nav-Links: weißer Text */
.cp-layout-pinterest .cp-megamenu .cp-mega-menu .main-menu > li > a {
    color: rgba(255,255,255,0.85) !important;
}
.cp-layout-pinterest .cp-megamenu .cp-mega-menu .main-menu > li > a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.12) !important;
}
.cp-layout-pinterest .cp-megamenu .cp-mega-menu .main-menu > li.active > a {
    color: #ffffff !important;
    background: rgba(255,255,255,0.12) !important;
}

/* Aktiver Menüpunkt: weißer Unterstrich */
.cp-layout-pinterest .cp-megamenu .cp-mega-menu .main-menu > li.active {
    border-bottom: 2px solid rgba(255,255,255,0.6);
}

/* Mobile Toggle-Label: weißes Icon */
.cp-layout-pinterest .cp-megamenu label {
    color: #ffffff !important;
}

/* Dropdown-Menüs: weißer Hintergrund */
.cp-layout-pinterest .cp-megamenu .drop-down,
.cp-layout-pinterest .cp-megamenu .cp-mega-menu .drop-down {
    background: #ffffff !important;
    border-top: 2px solid #0a71b3 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16) !important;
}

/* Dropdown-Links: dunkler Text */
.cp-layout-pinterest .cp-megamenu .drop-down li a,
.cp-layout-pinterest .cp-megamenu .drop-down li h3 a,
.cp-layout-pinterest .cp-megamenu .drop-down li h5 a {
    color: #333333 !important;
}
.cp-layout-pinterest .cp-megamenu .drop-down li a:hover,
.cp-layout-pinterest .cp-megamenu .drop-down li h3 a:hover {
    color: #0a71b3 !important;
}

/* Dropdown-Überschriften (mm-title) */
.cp-layout-pinterest .cp-megamenu .drop-down .mm-title,
.cp-layout-pinterest .cp-megamenu .drop-down h2 {
    color: #0a71b3 !important;
    border-bottom-color: #e0e4e8 !important;
}

/* Alte Suchleiste unterhalb der Nav ausblenden */
.cp-layout-pinterest .cp-megamenu-2 {
    display: none !important;
}

/* Topbar: volle Breite */
.cp-layout-pinterest .cp-topbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Anker für die absolut positionierte Suchform */
.cp-layout-pinterest #cp-header {
    position: relative;
}

/* Suchform: absolut am oberen rechten Rand des Headers (= Topbar-Ebene) */
.cp-topbar-search {
    position: absolute;
    right: 24px;
    top: 0;
    height: 40px;          /* gleiche Höhe wie .cp-topbar */
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    z-index: 20;
}
.cp-topbar-search input[type="text"] {
    height: 26px;
    width: 240px;
    padding: 3px 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    border-right: none;
    border-radius: 13px 0 0 13px;
    outline: none;
    -webkit-transition: width 0.2s ease, background 0.2s ease;
    transition: width 0.2s ease, background 0.2s ease;
}
.cp-topbar-search input[type="text"]:focus {
    width: 300px;
    background: rgba(255,255,255,0.25);
}
.cp-topbar-search input[type="text"]::-webkit-input-placeholder { color: rgba(255,255,255,0.6); }
.cp-topbar-search input[type="text"]::-moz-placeholder           { color: rgba(255,255,255,0.6); }
.cp-topbar-search input[type="text"]:-ms-input-placeholder        { color: rgba(255,255,255,0.6); }

.cp-topbar-search button {
    height: 26px;
    width: 32px;
    padding: 0;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    border-left: none;
    border-radius: 0 13px 13px 0;
    cursor: pointer;
    font-size: 13px;
    -webkit-transition: background 0.2s ease;
    transition: background 0.2s ease;
}
.cp-topbar-search button:hover {
    background: rgba(255,255,255,0.35);
}

/* Auf schmalen Viewports Suchform ausblenden */
@media (max-width: 767px) {
    .cp-topbar-search { display: none; }
}

/* ============================================================
   Weather bar — responsive wrapping
   ============================================================ */
/* Tablet: detail-Elemente umbrechen, Trennstriche ausblenden */
@media (max-width: 991px) {
    .cp-bar-weather-row {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        gap: 6px;
    }
    .cp-bar-weather-sep { display: none; }
    .cp-bar-weather-detail { font-size: 10px; }
    .cp-bar-weather-mehr { margin-left: 0; }
}
/* Mobil: nur Icon + Temp + City + mehr-Button sichtbar */
@media (max-width: 575px) {
    .cp-bar-weather-detail,
    .cp-bar-weather-desc,
    .cp-bar-forecast-item { display: none; }
    .cp-bar-weather-mehr { display: -webkit-flex; display: flex; }
}
