/* ===== KOMPONENTY OBSAHU ===== */
/* Responzivn� syst�m pro zobrazov�n� komponent s/bez sidebaru */

/* Hlavn� wrapper str�nky */

/* Obsah gener�tor - wrapper pro komponenty */
.obsah-gen {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.obsah-gen{
    width: 90%;
    margin: 0px auto;
}

/* Layout s sidebarem */
.obsah-gen:has(+ .sidebar) {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

/* Fallback pro prohl�~e
e bez podpory :has() */
.obsah-gen.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Komponenty - z�kladn� styly */
.komponenta {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Specifick� styly pro typy komponent */
.komponenta-heading h1 {
    color: var(--bold);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    position: relative;
}

.komponenta-subheading h2 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    position: relative;
}

.komponenta-text .text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.komponenta-text .text p {
    margin-bottom: 1rem;
}

.komponenta-text .text p:last-child {
    margin-bottom: 0;
}

/* Tabulky v komponentách */
.komponenta-table .text table,
.komponenta-text .text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ramecek);
}

.komponenta-table .text table th,
.komponenta-text .text table th {
    background: linear-gradient(135deg, var(--zbarva), var(--zelena_hlavni));
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.komponenta-table .text table td,
.komponenta-text .text table td {
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
    border: none;
}

.komponenta-table .text table tbody tr:hover,
.komponenta-text .text table tbody tr:hover {
    background: var(--modra_pozadi);
}

.komponenta-table .text table tbody tr:last-child td,
.komponenta-text .text table tbody tr:last-child td {
    border-bottom: none;
}

.komponenta-table .text table tbody tr:nth-child(even),
.komponenta-text .text table tbody tr:nth-child(even) {
    background: #fafafa;
}

.komponenta-table .text table tbody tr:nth-child(even):hover,
.komponenta-text .text table tbody tr:nth-child(even):hover {
    background: var(--modra_pozadi);
}

.komponenta-quote blockquote {
    border-left: 4px solid var(--zbarva);
    padding-left: 1.5rem;
    margin: 0;
    font-style: italic;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.5;
    background: var(--modra_pozadi);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.komponenta-quote blockquote::before {
    content: '"';
    position: absolute;
    top: 2px;
    left: 18px;
    font-size: 2rem;
    color: var(--zbarva);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Obr�zky */
.komponenta-image .obrazek {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.komponenta-image .obrazek img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.komponenta-image .obrazek:hover img {
    transform: scale(1.02);
}

.komponenta-image .obrazek .nazev {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text);
    font-style: italic;
    background: var(--sediva_pozadi);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Galerie */
.komponenta-gallery .gallery-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bold);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--modra_pozadi), #ffffff);
    border-left: 4px solid var(--zbarva);
    border-radius: 8px;
}

.komponenta-gallery .gallery-header i {
    color: var(--zbarva);
    font-size: 1.1rem;
}

.komponenta-gallery .galerie {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.komponenta-gallery .galerie .obrazek {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sediva_pozadi);
    border: 1px solid var(--ramecek);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.komponenta-gallery .galerie .obrazek:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.komponenta-gallery .galerie .obrazek img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.komponenta-gallery .galerie .obrazek:hover img {
    transform: scale(1.1);
}

.komponenta-gallery .galerie .obrazek .nazev {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.komponenta-gallery .galerie .obrazek::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--zbarva);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.komponenta-gallery .galerie .obrazek:hover::after {
    opacity: 1;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: calc(90vh - 120px);
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: calc(90vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 1002;
}

.lightbox-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lightbox-description {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lightbox-download {
    position: absolute;
    top: -40px;
    left: 0;
    background: transparent;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.lightbox-download:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Responzivní úpravy pro lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-image-container {
        max-width: 95vw;
        max-height: calc(95vh - 100px);
    }
    
    .lightbox-content img {
        max-width: 95vw;
        max-height: calc(95vh - 100px);
    }
    
    .lightbox-close {
        top: -35px;
        right: 10px;
        font-size: 1.5rem;
    }
    
    .lightbox-download {
        bottom: -45px;
        left: 0;
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        margin-top: 0.75rem;
    }
}

/* PY�lohy */
.komponenta-attachment .attachment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bold);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--zelena_pozadi), #ffffff);
    border-left: 4px solid var(--zelena_hlavni);
    border-radius: 8px;
}

.komponenta-attachment .attachment-header i {
    color: var(--zelena_hlavni);
    font-size: 1.1rem;
}

.komponenta-attachment .prilohy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.komponenta-attachment .prilohy .priloha {
    background: #ffffff;
    border: 1px solid var(--ramecek);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.komponenta-attachment .prilohy .priloha:hover {
    border-color: var(--zbarva);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.komponenta-attachment .prilohy .priloha a {
    color: var(--zbarva);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.komponenta-attachment .prilohy .priloha a:hover {
    color: var(--zelena_hlavni);
}

.komponenta-attachment .prilohy .priloha .file-icon {
    width: 40px;
    height: 40px;
    background: var(--modra_pozadi);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--zbarva);
    flex-shrink: 0;
}

.komponenta-attachment .prilohy .priloha .file-info {
    flex: 1;
}

.komponenta-attachment .prilohy .priloha .file-name {
    font-weight: 600;
    color: var(--bold);
    margin-bottom: 0.25rem;
}

.komponenta-attachment .prilohy .priloha .file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--placeholder);
}

.komponenta-attachment .prilohy .priloha .file-size {
    font-weight: 500;
}

.komponenta-attachment .prilohy .priloha .file-type {
    text-transform: uppercase;
    background: var(--zelena_pozadi);
    color: var(--zelena_hlavni);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.komponenta-attachment .prilohy .priloha .download-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    color: var(--placeholder);
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.komponenta-attachment .prilohy .priloha .download-btn:hover {
    background: var(--zelena_hlavni);
    transform: scale(1.1);
}

/* Tabulky */
.komponenta-table .text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.komponenta-table .text table th,
.komponenta-table .text table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.komponenta-table .text table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.komponenta-table .text table tr:hover {
    background: #f8f9fa;
}

/* ===== SIDEBAR STYLY ===== */
.sidebar {
    /*background: linear-gradient(135deg, #ffffff 0%, var(--sediva_pozadi) 100%);*/
    border-radius: 12px;
    padding: 0;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
    position: sticky;
    top: var(--menu-offset, 140px);
    border: 1px solid var(--ramecek);
    margin-bottom: 30px;
    z-index: 10;
}

.sidebar-widget {
    margin-bottom: 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--ramecek);
    transition: all 0.3s ease;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 30px;
}

.sidebar-widget-title {
    color: var(--bold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--zbarva);
}

.sidebar-widget-title i {
    color: var(--zbarva);
    font-size: 1rem;
}

.sidebar-widget-content {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Widget - Poslední články */
.widget-latest-articles .article-preview {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--sediva_pozadi);
    border-radius: 8px;
    border-left: 0px solid var(--zbarva);
    transition: all 0.3s ease;
}

.widget-latest-articles .article-preview:hover {
    background: var(--modra_pozadi);
    transform: translateX(5px);
}

.widget-latest-articles .article-preview:last-of-type {
    margin-bottom: 1rem;
}

.widget-latest-articles .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.widget-latest-articles .article-date {
    color: var(--placeholder);
    font-weight: 500;
}

.widget-latest-articles .article-category {
    background: var(--zbarva);
    color: white !important;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-latest-articles .article-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.widget-latest-articles .article-title a {
    color: var(--bold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-latest-articles .article-title a:hover {
    color: var(--zbarva);
}

.widget-latest-articles .article-excerpt {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.4;
}

.view-all-articles {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.view-all-articles a {
    color: var(--zbarva);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-articles a:hover {
    color: var(--zelena_hlavni);
    transform: translateX(5px);
}

/* Widget - Nejbližší akce */
.widget-upcoming-events .event-preview {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--sediva_pozadi);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.widget-upcoming-events .event-preview:hover {
    background: var(--modra_pozadi);
    transform: translateY(-2px);
}

.widget-upcoming-events .event-preview:last-of-type {
    margin-bottom: 1rem;
}

.widget-upcoming-events .event-date {
    background: var(--zbarva);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.widget-upcoming-events .event-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.widget-upcoming-events .event-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.widget-upcoming-events .event-info {
    flex: 1;
}

.widget-upcoming-events .event-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.widget-upcoming-events .event-title a {
    color: var(--bold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-upcoming-events .event-title a:hover {
    color: var(--zbarva);
}

.widget-upcoming-events .event-time,
.widget-upcoming-events .event-location {
    display: block;
    font-size: 0.8rem;
    color: var(--placeholder);
    margin-bottom: 0.25rem;
}

.widget-upcoming-events .event-time i,
.widget-upcoming-events .event-location i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--zbarva);
}

.view-all-events {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.view-all-events a {
    color: var(--zbarva);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-events a:hover {
    color: var(--zelena_hlavni);
    transform: translateX(5px);
}

/* Widget - Sociální sítě */
.widget-social .social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.widget-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--sediva_pozadi);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--ramecek);
}

.widget-social .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.widget-social .social-link.facebook:hover {
    background: var(--modra_hlavni);
    color: white;
    border-color: var(--modra_hlavni);
}

.widget-social .social-link.instagram:hover {
    background: var(--fialova_hlavni);
    color: white;
    border-color: var(--fialova_hlavni);
}

.widget-social .social-link.youtube:hover {
    background: var(--cervena_hlavni);
    color: white;
    border-color: var(--cervena_hlavni);
}

.widget-social .social-link i {
    font-size: 1rem;
}

/* Widget - Rychlé kontakty */
.widget-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.widget-contact .contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.widget-contact .contact-item i {
    color: #3498db;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.widget-contact .contact-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-contact .contact-item a:hover {
    color: #3498db;
}

.widget-contact .address-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-contact .company-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Widget - Tip */
.widget-tip .tip-content {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.widget-tip .tip-content p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.widget-tip .btn-newsletter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.widget-tip .btn-newsletter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== RESPONZIVN� DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 0px;
    }
    
    .obsah-gen:has(+ .sidebar),
    .obsah-gen.with-sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: 1;
        position: sticky;
        top: 20px;
        margin-bottom: 30px;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .sidebar-widget:last-child {
        padding-bottom: 30px;
    }
    
    .komponenta-heading h1 {
        font-size: 2rem;
    }
    
    .komponenta-subheading h2 {
        font-size: 1.5rem;
    }
    
    .komponenta-gallery .galerie {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .komponenta-gallery .galerie .obrazek img {
        height: 150px;
    }
}

/* Mobiln� telefon */
@media (max-width: 480px) {
    .page-wrapper {
        padding: 0 0px;
    }
    
    .obsah-gen {
        gap: 1rem;
    }
    
    .komponenta {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .komponenta-heading h1 {
        font-size: 1.75rem;
    }
    
    .komponenta-subheading h2 {
        font-size: 1.25rem;
    }
    
    .komponenta-gallery .galerie {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .komponenta-gallery .galerie .obrazek img {
        height: 120px;
    }
    
    .sidebar {
        padding: 0;
        margin-bottom: 30px;
        order: 1;
        position: sticky;
        top: 20px;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .sidebar-widget:last-child {
        padding-bottom: 30px;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .sidebar-widget-title {
        font-size: 1rem;
    }
    
    .komponenta-attachment .prilohy {
        flex-direction: column;
    }
    
    .komponenta-table .text table {
        font-size: 0.875rem;
    }
    
    .komponenta-table .text table th,
    .komponenta-table .text table td {
        padding: 0.5rem;
    }
}

/* Tmav� re~im (voliteln�) */
@media (prefers-color-scheme: dark) {
    .komponenta {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .komponenta-heading h1,
    .komponenta-subheading h2 {
        color: #ecf0f1;
    }
    
    .komponenta-text .text {
        color: #bdc3c7;
    }
    
    .sidebar {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .sidebar-title {
        color: #ecf0f1;
    }
    
    .sidebar-widget-title {
        color: #bdc3c7;
    }
    
    .sidebar-widget-content {
        color: #95a5a6;
    }
    
    .komponenta-table .text table th {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .komponenta-attachment .prilohy .priloha {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .komponenta-attachment .prilohy .priloha:hover {
        background: #4a5f7a;
    }
}

/* ===== NADPIS STRÁNKY A BREADCRUMBS ===== */
.page-header {
    background: linear-gradient(135deg, var(--zbarva) 0%, var(--zelena_hlavni) 100%);
    border-bottom: 2px solid var(--zbarva);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(23, 94, 230, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 91, 249, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(56, 159, 71, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.header-page-wrapper{
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-title-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.page-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}


/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.75rem;
    width: fit-content;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.breadcrumb-item.active span {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-size: 0.8rem;
}

/* Responzivní design pro nadpis */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .breadcrumb-list {
        gap: 0.5rem;
    }
    
    .breadcrumb-item {
        gap: 0.5rem;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    
    .breadcrumbs {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        border-radius: 25px;
    }
    
    .breadcrumb-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .breadcrumb-item {
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Tmavý režim pro nadpis a breadcrumbs */
@media (prefers-color-scheme: dark) {
    .page-header {
        background: linear-gradient(135deg, var(--zbarva) 0%, var(--zelena_hlavni) 100%);
        border-bottom-color: var(--zbarva);
    }
    
    .page-header::before {
        background: 
            radial-gradient(circle at 20% 50%, rgba(23, 94, 230, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(142, 91, 249, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(56, 159, 71, 0.3) 0%, transparent 50%);
    }
    
    .page-title {
        color: white;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .breadcrumbs {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .breadcrumb-item a {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .breadcrumb-item a:hover {
        color: white;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .breadcrumb-item.active span {
        color: white;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .breadcrumb-separator {
        color: rgba(255, 255, 255, 0.5);
    }
}

/* Content styly pro komponenty */
.komponenta section {
  margin-bottom: 2rem;
}

.komponenta h1, .komponenta h2, .komponenta h3, .komponenta h4, .komponenta h5, .komponenta h6 {
  color: var(--modra_hlavni);
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.komponenta h1 {
  font-size: 1.8rem;
  border-bottom: 3px solid var(--modra_ramecek);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.komponenta h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--modra_ramecek);
  padding-bottom: 0.5rem;
}

.komponenta h3 {
  font-size: 1.2rem;
}

.komponenta h4 {
  font-size: 1.1rem;
}

.komponenta h5, .komponenta h6 {
  font-size: 1rem;
}

.komponenta p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text);
}

.komponenta abbr {
  border-bottom: 1px dotted var(--modra_hlavni);
  text-decoration: none;
  cursor: help;
}

.komponenta ul, .komponenta ol {
  margin: 1rem 0;
  padding-left: 0;
}

.komponenta ul li, .komponenta ol li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  list-style: none;
  color: var(--text);
}

.komponenta ul li::before {
  content: "•";
  color: var(--modra_hlavni);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.komponenta ol {
  counter-reset: item;
}

.komponenta ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  color: var(--modra_hlavni);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.komponenta strong, .komponenta b {
  color: var(--bold);
  font-weight: 600;
}

.komponenta em, .komponenta i {
  font-style: italic;
  color: var(--text);
}

.komponenta table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--sediva_ramecek);
  border-radius: 8px;
  overflow: hidden;
}

.komponenta table th,
.komponenta table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--sediva_ramecek);
}

.komponenta table th {
  background-color: var(--modra_pozadi);
  color: var(--modra_hlavni);
  font-weight: 600;
}

.komponenta table tr:hover td {
  background-color: var(--sediva_pozadi);
}

.komponenta table tbody tr:nth-child(even) {
  background-color: #fafbfc;
}

.komponenta blockquote {
  border-left: 4px solid var(--modra_hlavni);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text);
  background-color: var(--modra_pozadi);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
}

.komponenta code {
  background-color: var(--sediva_pozadi);
  color: var(--bold);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

.komponenta pre {
  background-color: var(--sediva_pozadi);
  border: 1px solid var(--sediva_ramecek);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.komponenta pre code {
  background: none;
  padding: 0;
}

.komponenta a {
  color: var(--modra_hlavni);
  text-decoration: none;
  font-weight: 500;
}

.komponenta a:hover {
  text-decoration: underline;
}

.komponenta hr {
  border: none;
  height: 2px;
  background: var(--sediva_ramecek);
  margin: 2rem 0;
}

.komponenta dl {
  margin: 1rem 0;
}

.komponenta dt {
  font-weight: 600;
  color: var(--bold);
  margin-bottom: 0.5rem;
}

.komponenta dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}