/* index.html */

/* === Suche === */
.search-wrapper { position: relative; max-width: 700px; margin: 0 auto; }
#search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.results-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    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 #eee; padding-bottom: 2px; color: #333; }
.results-box a {
    display: block;
    padding: 8px 10px;
    margin: 4px 0;
    text-decoration: none;
    color: #222;
    border-radius: 6px;
    transition: background 0.2s;
}
.results-box a:hover { background: #f0f0f0; }
.results-box p { margin: 5px 10px; color: #888; }

/* === Karten === */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

h2 { font-size: 1.6rem; font-weight: 600; color: #333; margin-bottom: 1rem; }
main { background: #f9fafc; min-height: 100vh; }

@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: rgba(0, 0, 0, 0.2);
        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: #222;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.card {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/*.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
} */
 
/* Widget Inhalt */
#widget1, #widget2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #333;
}

/* Loader Animation */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.loader {
    border: 4px solid #eee;
    border-top: 4px solid #007bff;
    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: #f8f9fa;
    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: #eef4ff;
}

/* Verlinkung unten */
.hc-widget-link {
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
}
.hc-widget-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.hc-widget-link a:hover {
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .hc-widget-head {
        font-size: 1rem;
    }
    #widget1, #widget2 {
        padding: 0.75rem;
    }
}

/* ☀️ Optional: Darkmode */
@media (prefers-color-scheme: dark) {
    .card {
        background: #1e1f22;
        color: #e8e8e8;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    .hc-widget-list li {
        background: #2a2b2f;
    }
    .hc-widget-list li:hover {
        background: #3a3b40;
    }
    .hc-widget-link a {
        color: #4da3ff;
    }
}

.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: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.comment-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* transform: translateY(-2px); */
}

/* 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: #6c757d;
    transition: color 0.2s ease;
}

.comment-box .dropdown .btn:hover {
    color: black; /* rot beim Hover, Hinweis auf Aktion "löschen" */
}

/* Dropdown-Menü: leicht abgerundete Ecken, sanfte Schatten */
.comment-box .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 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: #fff;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* 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(--bs-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.app-name {
    font-size: 0.9rem;
}
/* ENDE APPS */

/* archiv.html */
/* news-archive.css */

.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.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 */

/* coming_soon.html */
/* coming-soon.css */

.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 */

/* 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 */