
/* --- a border vastagsága a méretezés része legyen --- */
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* --- kijelölhetetlen --- */
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- .clearfix: floating elemeket tartalmazó szülők magasságának helyes beállítása --- */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
    clear: both;
}
.clearfix:after {
}
.clearfix {
    *zoom: 1;
}

/* --- ajax-loader animáció <span class="loader"></span> --- */
.loader {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #9d683e;
    border-left: 4px solid #9d683e;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left: 2px;
}
/*.loader::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #eae3d5;
    display:block;
    position: absolute;
    right: -4px;
    top: -3px;
    border: 1px solid #9d683e;
}*/
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* --- alsó, dupla, döntött árnyék --- */
.doubleshadow {
    min-height: 50px;
    position: relative;
    margin: 0;
    padding: 0;
    background: white;
}
.doubleshadow.bordered {
    border-bottom: 1px solid #E4E4E4;
}
.doubleshadow:before,
.doubleshadow:after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 18px;
    left: 15px; /* különben kilóg oldalt */
    width: 70%;
    top: 30%;
    max-width: 500px;
    background: #FFF;
    -webkit-box-shadow: 0 15px 10px #777;
    -moz-box-shadow: 0 15px 10px #777;
    box-shadow: 0 15px 10px rgba(0,0,0,0.5);
    -webkit-transform: rotate(-2deg);
    -moz-transform: rotate(-2deg);
    -o-transform: rotate(-2deg);
    -ms-transform: rotate(-2deg);
    transform: rotate(-2deg);
}
.doubleshadow:after
{
    -webkit-transform: rotate(2deg);
    -moz-transform: rotate(2deg);
    -o-transform: rotate(2deg);
    -ms-transform: rotate(2deg);
    transform: rotate(2deg);
    right: 15px;
    left: auto;
}


/* --- linkek, telefonszámok --- */
.weblink,
.telszam {
    text-decoration: underline;
    white-space: nowrap;
}


/* --- a fő témaszín --- */
.activecolor,
.weblink,.telszam,
h1,h3,h4,
#menuitems a:hover > span {
    color: #97643B !important; /* #97643B / #7d5331 */
}
#menuitems .item_goback {
    border-color: #97643B !important;
}

.embla__dots > div.active::after,
h3::before {
    background-color: #97643B !important;
}

/* --- main elements --- */

html {
    min-width: 330px;
}

p {
    margin: 0;
}

h1 {
    margin: 0 0 0.5em 0;
    font-family: 'Source Serif Pro', serif;
    font-size: 180%;
    font-weight: normal;
}

h2 {
    display: inline-block;
    width: 100%;
    margin: 1em 0 0.25em 0;
    padding: 0 10px;
    font-family: 'Source Serif Pro', serif;
    font-size: 120%;
    font-weight: normal;
    background: #8B6C53;
    color: white;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
h1+h2 {
    margin-top: 0;
}

h3 {
    font-family: 'Source Serif Pro', serif;
    font-weight: bold;
    font-size: 110%;
    margin: 0.75em 0 0em 0;
    vertical-align: middle;

    /*background: rgb(187,160,100);
    background: linear-gradient(90deg, rgba(187,160,100,1) 0%, rgba(241,221,155,1) 48%, rgba(187,160,100,1) 100%);
    background: #eae3d5;
    padding: 0.2em 1em;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;*/
}
h3::before {
    content: "";
    display: inline-block;
    width: 0.35em;
    height: 0.35em;

    margin-right: 5px;
    margin-bottom: 3px;
    vertical-align: middle;

}

h4 {
    margin: 0.75em 0 0.25em 0;
    font-family: 'Source Serif Pro', serif;
    font-size: 120%;
    font-weight: normal;
}

ul { /* <ul> alatti és feletti margin eltávolítása */
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
    border: none;
    outline: none;
}
a img {
    border: none; /* IE */
    outline: none;
}
a:visited {
    background: inherit;
    color: inherit;
}


/* -------------------------------------------------------------------------- */
/* ------------------------- MOBIL, ALAP MEGJELENÉS ------------------------- */

body {
    -webkit-tap-highlight-color: transparent;
    font-family: 'Open Sans', sans-serif; /* google font */
    color: #444; /* alap betűszín */
    margin: 0;
    padding: 5px; /* csak mobilon */
    font-size: 16px; /* alap font size, minden ehhez viszonyul százalékértékekkel, a @media ezt módosítja */
}

.main_container {
    position: relative;
    z-index: 0; /* .doubleshadow láthatósága miatt kell */
    background: white;
    margin: 0 auto;
}

.largedisplayonly {
    display: none;
}
.mobileonly {
    display: initial;
}


/* --- HEADER ------------------------------ */

.header { /* a nem-mobilos header nem látszik */
    display: none;
}

/* a mobilon megjelenő felső logininfo sáv */
.header_mobileonly .activeuser {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 8px 0;
    font-size: 0.8em;
}
.header_mobileonly .activeuser img { /* user ikon */
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.header_mobileonly .cimfoto_container {
    text-align: center;
    background-size: cover;
}

/* logó container */
.header_mobileonly .cimfoto_container a {
    display: inline-block;
    vertical-align: top; /* hogy ne maradjon egy vékony plusz sáv a szülő div alján az inline megjelenés miatt*/
    width: 50%;
    background: white;
    padding: 15px 20px;
    border: 1px solid #97643B;
    outline: 8px solid white;
    margin: 30px;
}

/* logó image */
.header_mobileonly .cimfoto_container a img {
    display: block;
    width: 100%;
}


/* --- MENU -------------------------------- */

/* mobilon megjelenő "Menü"-sáv */
#menuheader {
    cursor: pointer;
    background: #454545;
    margin: 0 0 0px 0;
    padding: 10px;
    color: white;
    line-height: 30px;
    -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
}
#menuheader span { /* a Menü szöveg és ikonja */
    vertical-align: middle;
    padding-right: 28px;
    background: transparent url(imgs/opener.png) no-repeat center right;
    font-size: 112.5%;
}

/* -------------------- */

/* menuitem <a> elementeket tartalmazó szülő element*/
#menuitems {
    font-size: 105%;
    max-height: 0; /* alapból csukva van */
    overflow: hidden;
    background: #F1F1F1;
    transition: max-height 0.25s ease;
}

#menuitems.opened {
    -webkit-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
    box-shadow: 0 10px 6px -6px rgba(0,0,0,0.5);
}

/* a fő menüpontok */
#menuitems > a {
    display: block;
    padding: 2px 0;
    border-bottom: 1px solid #DCDCDC;
    cursor: pointer;
    line-height: 2.3em;
}

/* az egyes menuitemek belseje */
#menuitems > a > span {
    display: block;
    padding: 0 0 0 10px;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* vissza a főoldalra gomb */
#menuitems > a.item_goback {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
#menuitems > a.item_goback > span {
    background: #8d7967;
    color: white;
}
#menuitems > a.item_goback > span > span:first-child { /* balra nyíl */
    font-size: 1.2em;
    padding-right: 10px;
}
#menuitems > a.item_goback:hover > span {
    color: white !important;
}

/* a kiválaszott fő- vagy almenuitem belseje */
#menuitems a.activemenuitem > span {
    background: #EAE3D5;
    color: #6D482A;
}

/* --- almenük --- */

/* almenü elemeket tároló div */
#menuitems > div {
    border-bottom: 1px solid #DCDCDC;
}

/* az almenü-pontok */
#menuitems > div > a {
    display: block;
    border-top: 1px solid #DCDCDC;
    cursor: pointer;
    margin-left: 1em;
    font-size: 90%;
    padding: 2px 0;
}
#menuitems > div > a:first-child {
    border-top: none;
}

/* az egyes almenu-pontok szövege */
#menuitems > div > a > span {
    display: block;
    line-height: 2.3em;
    vertical-align: top;
    padding: 0 6px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#menuitems > div > a span::before { /* a felsorolásjel az almenüpont előtt */
    content: "\25AA";
    display: inline-block;
    padding: 0 6px 0 0;
}



/* --- TARTALOM ------------------------------------------------------------- */

.content {
    line-height: 30px;
    margin-top: 1.25em;
    min-height: 400px;
}

.content p {
    overflow: hidden; /* a hosszú linkek kilógnának */
    text-overflow: ellipsis;
}

.content > * {
    max-width: 100% !important;
}
/* IE10+ CSS only */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .content > * {
        width: 100%; /* IE max-width csak strict doctype alatt működik, azaz itt nem, így hackelünk */
    }
}

.contentimage {
    margin-top: 0.5em;
    display: inline-block;
    vertical-align: top;
    background: black;
}
.contentimage > img {
    display: inline-block;
    vertical-align: top;
}

.contentimage_label { /* DIV */
    text-align: right;
    font-size: 0.8em;
    font-style: italic;
    line-height: normal;
}
.contentimage_label::before {
    content: "- ";
}
.contentimage_label::after {
    content: " -";
}

/* --- FOOTER --------------------------------------------------------------- */

#footer {
    position: relative;
}

#footer_content {
    font-size: 0.75em;
    margin: 20px 0;
    height: 20px;
    line-height: 20px;
}

#footer_content span { /* | dividers */
    display: inline-block;
    padding: 0 0.5em;
    color: silver;
}


/* -------------------------------------------------------------------------- */
/* -------------------------- MINDEN, AMI NEM MOBIL ------------------------- */
/* -------------------------------------------------------------------------- */

@media all and (min-width: 620px) {
    body {
        overflow-y: scroll;
        padding: 0; /* mobilos padding kikapcsolása */
        background: white url('imgs/mainbg2.jpg') no-repeat left top;
    }

    .main_container {
        padding: 0.25em 2em;
        box-shadow: 0 0 20px 15px white;
    }

    h2 {
        min-width: 300px;
    }

    .largedisplayonly {
        display: initial;
    }
    .mobileonly {
        display: none;
    }


    /* --- HEADER ----------------------------------------------------------- */

    .header {
        display: block;
        padding: 0 0 10px 0;
        text-align: right;
    }
    .header_mobileonly { /* a mobilos header nem látszik */
        display: none;
    }

    .header_links { /* a legfelső vékony sáv */
        padding: 8px 0;
        line-height: 20px;
        font-size: 0.8em;
    }

    .header_links a {
        padding: 0 0 0 30px;
    }
    .header_links a:hover {
        text-decoration: underline;
    }

    .header_links a img { /* user ikon */
        vertical-align: middle;
        position: relative;
        top: -2px;
        width: 16px;
        height: 16px;
    }

    .cimfoto_container {
        position: relative;
    }

    /* logó */
    .cimfoto_container a img {
        position: absolute;
        left: 9.06323%;
        top: 20.73268%;
        width: 23.12646%;
    }


    .cimfoto { /* <img> */
        display: block;
        width: 100%;
        border: 1px solid #97643B;
        background: white;
    }


    /* --- LAP (MENÜ ÉS CONTENT) -------------------------------------------- */

    .lap {
        display: flex;
    }

    #mainmenu {
        min-width: 18%;
        max-width: 25%;
        flex-shrink: 0;
    }

    #menuheader { /* a "Menü"-sáv */
        display: none;
    }

    #menuitems {
        max-height: 5000px !important; /* akkor is jelenjen meg, ha mobilnézetben elrejtette JS */
        background: transparent;
        box-shadow: none; /* a mobilnézetes .shadow class felülbírálása */
    }

    .content {
        margin-top: 0.5em;
        flex-grow: 1;
    }
}


/* -------------------------------------------------------------------------- */
/* -------------------------- MIN-WIDTH: 620 > 799 -------------------------- */
/* -------------------------------------------------------------------------- */

@media all and (min-width: 620px) and (max-width: 799px) {
    body {
        font-size: 15px;
    }

    .main_container {
        width: 600px;
    }

    .content {
        padding: 0 0 0 12px;
        line-height: 26px;
    }

}


/* -------------------------------------------------------------------------- */
/* -------------------------- MIN-WIDTH: 800 > 999 -------------------------- */

@media all and (min-width: 800px) and (max-width: 999px) {
    body {
        font-size: 16px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 780px;
    }

    .content {
        padding: 0 0 0 16px;
        line-height: 28px;
    }

}


/* -------------------------------------------------------------------------- */
/* ------------------------- MIN-WIDTH: 1000 > 1199 ------------------------- */

@media all and (min-width: 1000px) and (max-width: 1199px) {
    body {
        font-size: 17px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 980px;
    }

    .content {
        padding: 0 0 0 20px;
        line-height: 28px;
    }

}


/* -------------------------------------------------------------------------- */
/* ----------------------- MIN-WIDTH: 1200 > FELFELÉ ------------------------ */

@media all and (min-width: 1200px) {
    body {
        font-size: 18px;
    }

    h2 {
        width: auto;
    }

    .main_container {
        width: 1180px;
    }

    .content {
        padding: 0 0 0 24px;
        line-height: 34px;
    }

}










/* -------------------------------------------------------------------------- */
/* --- GRID ----------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

.grid {
}

.griditem { /* <A> tag */
    display: flex;
    cursor: pointer;
    background: white;
    padding: 10px 5px;

    /* az alsó ::after border miatt */
    position: relative;
    margin: 0 0 10px 0;
}
.griditem::after { /* alsó border */
    content: '';
    width: 98%;
    height: 1px;
    background: #E8E8E8;
    position: absolute;
    bottom: -5px;
    left: 1%;
}

.griditem_pic {
    display: block;
    position: relative;
    background-position: center center;
    background-color: #F4F4F4;
    background-size: contain;
    background-repeat: no-repeat;

    width: 50%;
    padding-top: 28.125%; /* alapból 16:9 képarány */
}
.griditem_pic_empty::before {
    content: "- nincs kép -";
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    color: gray;
    font-style: italic;
}

.griditem_text {
    display: flex;
    flex-direction: column;

    width: 50%;
    line-height: normal;
    padding-left: 10px;

    overflow: hidden;
    text-overflow: ellipsis;
}

.griditem_text_title, .griditem_text_foot {
    font-size: 1.2em;
    font-weight: bold;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.griditem_text_description {
    flex-grow: 1;

    overflow: hidden;
    text-overflow: ellipsis;
}

.griditem_text_foot {
    text-align: right;
}

/* --- GRID: MINDEN, AMI NEM MOBIL ------------------------------------------ */

@media all and (min-width: 620px) {

    .griditem {
        display: inline-block;

        vertical-align: top;
        border-right: 1px solid #E8E8E8;
        mix-blend-mode: multiply;
        font-size: 0.8em;
        padding: 10px;
    }
    .griditem:hover {
        box-shadow: 0 0 8px 0 #AAA;
    }

    .griditem_pic {
        width: 100%;
        padding-top: 56.25%; /* 16:9 képarány */
    }

    .griditem_text {
        width: 100%;
        height: 7.6em; /* 7.6: 3 sor, 9: 4 sor */
        padding: 0;
    }

    .griditem_text_title {
        flex-shrink: 0;
    }
    .griditem_text_description {
        flex-shrink: 1;
        overflow: hidden;
    }
    .griditem_text_foot {
        padding-top: 2px;
        flex-shrink: 0;
    }


}

/* --- GRID: MIN-WIDTH: 620 > 799 ------------------------------------------- */

@media all and (min-width: 620px) and (max-width: 799px) {
    .griditem {
        width: 50%;
    }
    .griditem:nth-child(2n) {
        border-right: none;
    }
}
@media all and (min-width: 800px) and (max-width: 999px) {
    .griditem {
        width: 33.33%;
    }
    .griditem:nth-child(3n) {
        border-right: none;
    }
}
@media all and (min-width: 1000px) and (max-width: 1199px) {
    .griditem {
        width: 33.33%;
    }
    .griditem:nth-child(3n) {
        border-right: none;
    }
}
@media all and (min-width: 1200px) {
    .griditem {
        width: 25%;
    }
    .griditem:nth-child(4n) {
        border-right: none;
    }
}













/* -------------------------------------------------------------------------- */
/* --- KATLINKS ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */

.katlinks {
    text-align: center;
}

.katlink { /* <A> tag */
    cursor: pointer;
    background: white;
    border: 1px solid #E8E8E8;
    margin: 20px;
    display: inline-block;
    padding: 10px 10px 5px 10px;
    vertical-align: top;
    width: 45%;
    margin: 8px;
}

/* kép */
.katlink > div {
    background-position: center center;
    background-color: #F4F4F4;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    padding-top: 56.25%; /* 16:9 képarány */
    /*filter: saturate(0);*/
}

/* szöveg */
.katlink > span {
    display: block;
    line-height: normal;
    font-weight: bold;
    font-size: 0.9em;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- KATLINKS: MINDEN, AMI NEM MOBIL -------------------------------------- */

@media all and (min-width: 620px) {

    .katlink {
        margin: 1.5%;
        width: 31.3%;
    }

    .katlink:hover {
        box-shadow: 0 0 8px 0 #AAA;
    }

    .katlink:nth-child(1), .katlink:nth-child(2), .katlink:nth-child(3) {
        margin-top: 0;
    }

    .katlink:nth-child(3n) {
        margin-right: 0;
    }

    .katlink:first-child, .katlink:nth-child(4n) {
        margin-left: 0;
    }

    .katlink > span {
        font-size: 0.8em;
    }
}

/* --- KATLINKS: MIN-WIDTH: 620 > 799 --------------------------------------- */

@media all and (min-width: 620px) and (max-width: 799px) {
    .katlink {
        font-size: 0.9em;
    }
}

/* --- KATLINKS: MIN-WIDTH: 620 > 799 --------------------------------------- */

@media all and (min-width: 800px) {
    .katlink {
        font-size: 1.2em;
    }
}