

/* ==================== */
/* Základní reset a globální styly */
/* ==================== */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, "MS Trebuchet", sans-serif;
    margin: 15px auto;
    line-height: 1.6;
}

.center {
    max-width: 984px;
    padding: 0 1rem;
    margin: 0 auto;
}

/* ==================== */
/* Hlavička a navigace */
/* ==================== */
header#stranka_zahlavi {
    width: 100%;
    height: 100%;
    background-color: white;
}

#stranka_zahlavi nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#stranka_zahlavi nav ul li {
    display: inline-block;
    margin-right: 20px;
}

.dropbtn, #stranka_zahlavi nav ul li a {
    display: inline-block;
    color: white;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
    background-color: red;
}

//dropdownmenu
/* CSS pro dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  left: 0;
  top: 100%;
  z-index: 100;
}

.dropdown-content.active {
  display: block;
}
/* Lepší kontrast písma v dropdownu */
.dropdown-content .menu-link {
  color: #222 !important;      /* tmavě šedá, dobře čitelná */
  background: none;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content .menu-link:hover,
.dropdown-content .menu-link:focus {
  background: #f0f0f0;
  color: #1976d2 !important;   /* zvýraznění při najetí */
}
/* ==================== */
/* Hlavní obsah */
/* ==================== */
section#prispevky {
    float: left;
    width: 100%;
}

/* Pozadí sekcí */
section#background2 {
    width: 100%;
    height: 50vw;
    max-height: 540px;
    background: black url("/media/TheTestMovie.jpg") no-repeat center/cover;
}

/* Články s obrázky */
article#Iam,
article#fotografie,
article#graf_design,
article#publikace {
    border: 5px solid white;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    margin-bottom: 2rem;
}

article#Iam {
    background-image: url("/Ich.jpg");
    height: 50vw;
    max-height: 520px;
}

article#fotografie {
    background-image: url("/fotografie.jpg");
    height: 50vw;
    max-height: 520px;
}

article#graf_design {
    background-image: url("/log.jpg");
    background-size: contain;
    height: 50vw;
    max-height: 1000px;
}

article#publikace {
    background-image: url("/Public.jpg");
    background-size: contain;
    height: 70vw;
    max-height: 1000px;
}

nav#mainMenu {

background: #333;
}

/* Hover efekty */
article#Iam:hover,
article#fotografie:hover,
article#graf_design:hover,
article#publikace:hover {
    border: 5px dotted black;
}

/* ==================== */
/* Pole prací (nový grid systém pro quarter) */
/* ==================== */
 .tiles.quarter {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            padding: 0;
        }
        
    
        

@media (max-width: 1024px) {
  .tiles.quarter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tiles.quarter {
    grid-template-columns: 1fr;
  }
}






     

.tile-small img,
.tile-pan img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px 8px 0 0;
    /* Pokud chceš, aby obrázek měl stejný rádius jako tile-pan */
}


.tile-small {
    position: relative;
    height: 300px;
    list-style: none;
    border: 3px solid white;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: none;
}
.tile-pan {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
}
.meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 15px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    border-radius: 0 0 8px 8px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}


@media (max-width: 768px) {
    html {
        height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
        display: flex;
        flex-direction: column;
    }
    
    main {
        flex: 1;
    }
    
    footer#stranka_zapati {
        margin-top: auto;
        padding: 1.5rem 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    }







/* Hover efekty */
.tile-small:hover {
  border: 3px dotted #000;
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ==================== */
/* Responzivní úpravy */
/* ==================== */
@media (max-width: 768px) {
  .meta {
    padding: 10px;
    font-size: 0.85rem;
  }
  .tile-small {
    margin-bottom: 15px;
  }
}

/* ==================== */
/* Patička */
/* ==================== */
footer#stranka_zapati {
    clear: both;
    width: 100%;
    display: block;
    text-align: center;
    padding: 2rem 0;
}

/* ==================== */
/* Ostatní prvky */
/* ==================== */
div#logo {
    background-image: url('/media/KICL_1_small.png');
    background-size: 404px 118px;
    width: 404px;
    height: 118px;
    background-color: #fff;
}

div#logo:hover {
    background-image: url('/media/KICL_2_small.png');
}



/* Preference centrum */
.cookie-preferences {
    display: none;
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.cookie-category {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
}

.category-description {
    color: #fff;
    font-size: 0.9em;
    margin: 5px 0 0 25px;
}

.btn-save {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  left: 0;
  top: 100%;
  z-index: 100;
}

.dropdown-content.active {
  display: block;
}

.dropdown-content .menu-link {
  color: #222 !important;
  background: none;
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content .menu-link:hover,
.dropdown-content .menu-link:focus {
  background: #f0f0f0;
  color: #1976d2 !important;
}

/* Dropdown menu - vždy pouze přes JS, žádný hover! */
.dropdown-content {
  display: none;
  position: relative;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  left: 0;
  top: 100%;
  z-index: 100;
}



.dropdown-content.active {
  display: block;
}

/* Zobrazení dropdownu při aktivní třídě (funguje na všech rozlišeních) */
.dropdown.active .dropdown-content,
.dropdown.open .dropdown-content {
  display: block;
}




/* Mobilní úpravy */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
}

/* Jazykový přepínač */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-switcher img {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

article img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* Pro různé poměry stran */
figure.image[style*="aspect-ratio"] {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: var(--aspect-ratio);
}

figure.image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ck-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.ck-resizer {
    border: 2px solid #007bff;
    border-radius: 4px;
}

.debug-container {
    border: 2px solid #ccc;
    padding: 20px;
    margin: 20px 0;
}

.debug { padding: 5px; margin: 2px; }
.debug.success { background: #dfd; }
.debug.error { background: #fdd; }
.debug.info { background: #ddf; }



.ck-content .image img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1rem auto;
}

/* V generovaném obsahu */
article img {
    max-width: 100%;
    height: auto;
}

.ck-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Úchyt pro změnu velikosti */
.ck-content img.ck-resizable-image {
    cursor: ew-resize;
    border: 2px dashed #007bff;
}

/* Úchytky pro resize */
.ck-editor__editable .image .ck-image-resizer {
    border: 3px solid #007bff;
    border-radius: 5px;
}

.responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

figure.image.responsive {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
}

/* Zarovnání článku na střed stránky */
article {
    max-width: 800px; /* Nastav podle potřeby */
    margin: 0 auto;   /* Horizontální centrování */
    padding: 20px;    /* Vnitřní odsazení */
    text-align: center; /* Centrování textu */
}

/* Zarovnání nadpisu a shoutu na střed */
article h1,
article .shout {
    text-align: center;
}

/* Zarovnání obsahu na střed (pokud máš div.content) */
article .content {
    text-align: center;
}

/* Zarovnání obrázků na střed a responzivita */
article .content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/* Cookie lišta */
#cookie-bar button {
    margin-left: 10px;
    padding: 5px 15px;
    cursor: pointer;
}




