/* Minimalistisches Dot-Density Design / Metaverse Podcast Inspiration */
.nerdhub-calendar-wrapper { max-width: 900px; margin: 0 auto; }

.nh-submit-box { background: #f8f9fa; border-radius: 8px; padding: 20px; margin-top: 40px; margin-bottom: 30px; border: 1px solid #e9ecef; }
.nh-submit-box h3 { margin-top: 0; font-size: 1.2rem; }
.nh-submit-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nh-input-url { flex-grow: 1; min-width: 250px; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.nh-btn-submit { background: #000; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.nh-btn-submit:hover { background: #333; }

.nh-alert-success { background: #d4edda; color: #155724; padding: 10px; border-radius: 6px; margin-bottom: 15px; }

.nh-filters { margin-bottom: 20px; }
.nh-pill { display: inline-block; background: #eee; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; text-decoration: none; color: #555; margin-right: 5px; }
.nh-pill.active { background: #000; color: #fff; }

/* Das Heatmap-Band */
.nh-heatmap-band { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 15px; margin-bottom: 30px; border-bottom: 1px solid #eee; }
.nh-heatmap-band::-webkit-scrollbar { height: 6px; }
.nh-heatmap-band::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.nh-heatmap-band::-webkit-scrollbar-thumb { background: #e8f4fd; border-radius: 3px; transition: background 0.3s ease; }
.nh-heatmap-band::-webkit-scrollbar-thumb:hover { background: #d0e7f9; }
.nh-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 28px; height: 50px; border-radius: 14px; background: #f4f5f7; transition: all 0.2s; cursor: pointer; padding-bottom: 8px; flex-shrink: 0; position: relative; }
.nh-arrow-pille { align-self: flex-end; background: transparent !important; border: none !important; }
.nh-arrow-pille .nh-day-label { color: #007bff !important; font-weight: 800 !important; font-size: 1.25rem !important; margin-bottom: auto; margin-top: auto; }
.nh-day:hover { background: #e0e0e0; }
.nh-day.today { border: 1px solid rgba(0, 0, 0, 0.2); background: #fff; box-shadow: 0 0 12px rgba(0, 123, 255, 0.1); z-index: 10; }
.nh-day.today .nh-day-label { color: #007bff !important; }
.nh-day.has-events { background: #e8f4fd; }
.nh-day.is-weekend { background: #e2e4e7; }
.nh-day-label { font-size: 0.75rem; font-weight: 600; color: #555; margin-bottom: auto; margin-top: 5px; }
.nh-dot { width: 5px; height: 5px; background: #007bff; border-radius: 50%; display: block; }

/* === NEU: Heatmap Event Lines (Gantt Style) === */
.nh-heatmap-band {
    position: relative;
    padding-bottom: 25px !important; /* Mehr Platz für Spuren */
}

.nh-event-line {
    position: absolute;
    height: 4px; /* Dünne Linien wie gewünscht */
    background: hsl(211, 85%, 65%);
    border-radius: 2px;
    z-index: 20;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 1; /* Volle Deckkraft damit Rahmen überdeckt werden */
}

.nh-event-line:hover {
    opacity: 1;
    height: 6px;
    z-index: 20;
}

/* Unified Slot System - 5 Tracks (Höhergelegt für mehr Bodenfreiheit) */
.nh-event-line.track-1, .nh-event-dot.track-1 { bottom: 57px; }
.nh-event-line.track-2, .nh-event-dot.track-2 { bottom: 52px; }
.nh-event-line.track-3, .nh-event-dot.track-3 { bottom: 47px; }
.nh-event-line.track-4, .nh-event-dot.track-4 { bottom: 42px; }
.nh-event-line.track-5, .nh-event-dot.track-5 { bottom: 37px; }

/* Gemeinsame Marker-Optik (Filigraner Look) */
.nh-event-line, .nh-event-dot {
    position: absolute;
    height: 4px !important;
    background: hsl(211, 85%, 65%) !important;
    border-radius: 2px !important;
    z-index: 30; /* Höher als die Pillen (10) */
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 1 !important;
}

.nh-event-dot {
    width: 4px !important;
    transform: translateX(-2px); /* Zentrierung am X-Anker (Half of 4px) */
}

/* Animation beim Erscheinen */
@keyframes nhLineGrow {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}
.nh-event-line {
    animation: nhLineGrow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Monatstrennung im Heatmap-Band */
.nh-month-group + .nh-month-group {
    border-left: 1px solid rgba(0, 0, 0, 0.06); /* Zarter transparenter Trenner */
    padding-left: 15px;
}

/* Timeline */
.nh-timeline-card { border-left: 3px solid #007bff; padding: 15px 20px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; border-radius: 0 8px 8px 0; }
.nh-timeline-card h4 { margin: 0 0 5px 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.nh-timeline-card a { color: #1a1a1a; text-decoration: none; }
.nh-timeline-card a:hover { color: #007bff; }
.nh-card-meta { font-size: 0.88rem; color: #555; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.nh-card-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.nh-card-meta .dashicons { color: #007bff; font-size: 16px; width: 16px; height: 16px; }
.nh-card-content p { margin: 0; line-height: 1.6; color: #333; font-size: 1rem; }

/* === NEU: Mini Card Styles === */
.nh-event-card-mini {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 2px solid #ccc;
    transition: all 0.2s ease;
}

.nh-event-card-mini:hover {
    background: #f0f2f5;
    border-left-color: #007bff;
    transform: translateX(3px);
}

.nh-mini-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none !important;
    color: #444 !important;
    font-size: 0.9rem;
}

.nh-mini-tag {
    background: #e9ecef;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    flex-shrink: 0;
}

.nh-mini-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nh-mini-city {
    color: #999;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Sticky Headers für Datumsgruppierung */
.nh-day-group { margin-bottom: 30px; position: relative; display: flex !important; flex-direction: column; overflow: visible !important; scroll-margin-top: 80px; }
.nh-sticky-date { position: -webkit-sticky; position: sticky; top: 0px; background: #fff; padding: 12px 15px; margin: 0 0 15px 0; font-size: 1.1rem; font-weight: bold; z-index: 10; border-radius: 8px 8px 0 0; align-self: flex-start; height: auto; width: 100%; box-sizing: border-box; }
.nh-weekday { color: #888; font-weight: 500; font-size: 0.95rem; margin-left: 4px; }
.nh-meta-time { display: inline-block; margin-left: 10px; font-weight: 600; color: #2c3e50; }

/* Sticky Blocker Overrides für Block-Themes (FSE wie TwentyTwentyFive) */
html, body, #page, .entry-content, .post-content, .wp-site-blocks, .wp-block-post-content, .wp-block-group, .wp-block-columns, .wp-block-column { overflow: visible !important; }

/* === Modern Filters Styles (Phase 12) === */
.nh-filters-modern { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

.nh-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Zeilenumbruch statt doppeltem Scrollbalken auf Mobile */
    padding: 6px 2px 12px 2px;
    margin-bottom: 10px;
}

.nh-tab-label {
    align-self: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
    white-space: nowrap;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nh-filter-tabs::-webkit-scrollbar { height: 4px; }
.nh-filter-tabs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.nh-tab-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}
.nh-tab-btn:hover { background: #e9ecef; }
.nh-tab-btn.active { background: #000; color: #fff; border-color: #000; }

.nh-filter-panels {
    position: relative;
    margin-bottom: 15px;
}

.nh-panel-content {
    display: none; 
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 15px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    animation: nhFadeIn 0.2s ease-in-out;
}
.nh-panel-content.open {
    display: flex;
}

/* Die Pillen (Buttons) im Drawer */
.nh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #000 !important; /* Schwarzer Rahmen laut User */
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
}
.nh-pill:hover { background: #f8f9fa; }

.nh-pill input {
    display: none !important; /* Checkbox unsichtbar machen */
}

/* Checkmark Logik */
.nh-pill-check {
    display: none;
    font-size: 0.85rem;
}
.nh-pill input:checked + .nh-pill-text + .nh-pill-check::before {
    content: " ✓";
}
.nh-pill input:checked + .nh-pill-text + .nh-pill-check {
    display: inline;
}

/* Active tags unten bleiben wie gehabt */
.nh-active-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.nh-active-tag { display: inline-flex; align-items: center; gap: 6px; background: #000; color: #fff; font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-weight: 600; }
.nh-active-tag span { font-size: 0.7rem; opacity: 0.8; }

@keyframes nhFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Breadcrumb Styles === */
.nh-breadcrumb { margin-bottom: 25px; font-size: 0.82rem; color: #888; display: flex; align-items: center; gap: 4px; font-family: inherit; }
.nh-breadcrumb a { color: #555; text-decoration: none !important; font-weight: 500; transition: all 0.15s; }
.nh-breadcrumb a:hover { color: #000; }
.nh-breadcrumb .nh-separator { color: #bbb; font-size: 0.75rem; margin: 0 4px; }
.nh-breadcrumb .nh-current { color: #111; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

/* === Custom UX Tooltip === */
#nh-custom-tooltip {
    position: absolute;
    top: 0; left: 0;
    z-index: 9999;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.85rem;
    min-width: 180px;
}
#nh-custom-tooltip.nh-tooltip-visible {
    opacity: 1;
    transform: translate(-50%, -20px);
}
#nh-custom-tooltip ul {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    row-gap: 8px;
    column-gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
}
#nh-custom-tooltip li {
    display: contents;
}
.nh-tt-time {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
}
.nh-tt-title {
    font-weight: 500;
}
.nh-tt-hint {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
}
/* === iCal Subscription Styles === */
.nh-filter-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px; /* Maximaler Abstand zur Filterleiste */
    padding: 0 4px;
}

.nh-subscribe-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nh-btn-subscribe {
    background: #fff;
    color: #444;
    border: 1px solid #e0e0e0;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.64rem;
    font-weight: 300;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.nh-btn-subscribe:hover {
    background: #e9ecef;
    border-color: #ccc;
    color: #000;
}

.nh-btn-icon {
    font-size: 0.75rem;
}

.nh-subscribe-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 15px;
    animation: nhFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-subscribe-popover.nh-hidden {
    display: none;
}

.nh-popover-header {
    margin-bottom: 12px;
}

.nh-popover-header strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #000;
}

.nh-popover-header p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

.nh-subscribe-options {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.nh-subscribe-options li {
    margin-bottom: 6px;
}

.nh-sub-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nh-sub-opt:hover {
    background: #fff;
    border-color: #000;
    transform: translateX(4px);
}

.nh-popover-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
    text-align: center;
}

.nh-popover-footer small {
    display: block;
    font-size: 0.65rem;
    color: #999;
    line-height: 1.3;
}

.nh-popover-help {
    background: rgba(255, 243, 205, 0.4);
    border: 1px solid rgba(255, 238, 186, 0.6);
    border-radius: 8px;
    padding: 8px 10px;
    margin: 4px 0 12px 0;
    line-height: 1.4;
}

.nh-popover-help p {
    font-size: 0.7rem;
    color: #856404;
    margin: 0;
}

.nh-popover-help em {
    font-style: normal;
    font-weight: 700;
    color: #705403;
}

/* Mobile Adjustments for Popover */
@media (max-width: 600px) {
    .nh-filter-meta { justify-content: center; }
    .nh-subscribe-container { width: auto; margin-top: 0; }
    .nh-subscribe-popover { width: 280px; left: 50%; transform: translateX(-50%); right: auto; }
}
