/* Seitenspezifische Stile. Farben kommen aus hc_theme.css (var(--hc-…)),
   damit Hell-/Dunkel-Modus überall greift – keine Hexwerte hartcodieren. */

/* index.html */

/* === Suche === */
.search-wrapper { position: relative; max-width: 700px; margin: 0 auto; }
#search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    color: var(--hc-ink);
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    box-shadow: var(--hc-shadow);
}
#search-input::placeholder { color: var(--hc-muted); }
.results-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--hc-shadow-lg);
    padding: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}
.results-box h3 {
    font-size: 14px; margin: 10px 0 5px;
    border-bottom: 1px solid var(--hc-line);
    padding-bottom: 2px; color: var(--hc-ink);
}
.results-box a {
    display: block;
    padding: 8px 10px;
    margin: 4px 0;
    text-decoration: none;
    color: var(--hc-ink);
    border-radius: 6px;
    transition: background 0.2s;
}
.results-box a:hover { background: var(--hc-hover); }
.results-box p { margin: 5px 10px; color: var(--hc-muted); }

/* === Karten === (Basis-Styling in hc_theme.css) */
h2 { font-size: 1.6rem; font-weight: 600; color: var(--hc-ink); margin-bottom: 1rem; }

@media (min-width: 768px) { /* ab md */
    .scroll-box {
        max-height: 550px;
        overflow-y: auto;
        scrollbar-width: thin;
    }
    .scroll-box::-webkit-scrollbar {
        width: 6px;
    }
    .scroll-box::-webkit-scrollbar-thumb {
        background-color: var(--hc-line);
        border-radius: 3px;
    }
}

/* News-Artikel füllen Breite der Card */
.news-preview .card { width: 100%; }

/* Allgemeine Widget-Stile */
.hc-widget-head {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--hc-ink);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

/* Widget Inhalt */
#widget1, #widget2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--hc-ink);
}

/* Loader Animation */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.loader {
    border: 4px solid var(--hc-line);
    border-top: 4px solid var(--hc-accent);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Aufgaben- oder Vertragslisten */
.hc-widget-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}
.hc-widget-list li {
    padding: 0.3rem 0.5rem;
    background: var(--hc-card-2);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}
.hc-widget-list li:hover {
    background: var(--hc-hover);
}

/* Verlinkung unten */
.hc-widget-link {
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
}
.hc-widget-link a {
    color: var(--hc-accent-ink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.hc-widget-link a:hover {
    color: var(--hc-accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .hc-widget-head {
        font-size: 1rem;
    }
    #widget1, #widget2 {
        padding: 0.75rem;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ENDE index.html */

/* news_detail.html */
.comment-box {
    background-color: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.comment-box:hover {
    box-shadow: var(--hc-shadow);
}

/* Profilbilder */
.comment-box img {
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown-Button: kleiner, dezenter Button */
.comment-box .dropdown .btn {
    background-color: transparent;
    border: none;
    padding: 0.25rem;
    color: var(--hc-muted);
    transition: color 0.2s ease;
}

.comment-box .dropdown .btn:hover {
    color: var(--hc-ink);
}

/* Dropdown-Menü: leicht abgerundete Ecken, sanfte Schatten */
.comment-box .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: var(--hc-shadow);
}

/* Kommentartext */
.comment-box p {
    margin-bottom: 0;
}

/* Optional: kleine Animation für das Dropdown */
.dropdown-menu {
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* Bei Hover auf Kommentar leicht hervorheben */
.comment-box:hover .dropdown .btn i {
    transform: scale(1.1);
}

/* Karte: Artikel */
.article-card {
    background-color: var(--hc-card);
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--hc-shadow-lg);
}

/* Artikelbild */
.article-img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Mobile: Bild oben */
@media (max-width: 767px) {
    .article-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .article-img {
        width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
    }
}

/* ENDE news_detail.html */

/* apps.html */
.app-tile {
    transition: transform 0.2s ease;
}

.app-tile:hover {
    transform: scale(1.05);
}

.app-icon {
    width: 80px;
    height: 80px;
    background-color: var(--hc-card);
    border: 1px solid var(--hc-line);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hc-shadow);
}

.app-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.app-name {
    font-size: 0.9rem;
}
/* ENDE apps.html */

/* archiv.html */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hc-shadow-lg);
}

.news-card-img {
    width: 100%;
    height: 180px; /* feste Höhe, kann angepasst werden */
    object-fit: cover;
    border-top-left-radius: 0.375rem; /* passt zu Bootstrap Card */
    border-top-right-radius: 0.375rem;
}

/* ENDE archiv.html */

/* coming_soon.html */
.min-vh-70 {
    min-height: 70vh; /* zentriert vertikal auf großen Bildschirmen */
}

.list-group-item {
    background-color: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}
/* ENDE coming_soon.html */

/* HC Standard-Apps */
.hc-status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: gray;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    vertical-align: middle;
}
/* ENDE Standard-Apps */
