* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #ecf0f8;
    color: rgba(0, 0, 0, .6);
}

a {
    color: #2361dd;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    background: rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 10000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.6);
}



a:hover {
    text-decoration: underline;
}

.container,
.top-bar,
.footer-inner,
.divider {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.top-bar {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.container {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid #dedede;
}

.logo {
    display: block;
    width: 398px;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    margin: 50px 20px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
}

.projekt-cim,
.reszletes-cim,
.dokumentum-cim {
    color: #2361dd;
    font-weight: 400;
    text-transform: uppercase;
}

.projekt-cim {
    margin: 30px 0 15px;
    font-size: 20px;
}

.reszletes-cim,
.dokumentum-cim {
    margin: 30px 0 15px;
    font-size: 18px;
}

.info-table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px;
    border-top: 1px solid #2361dd;
    border-bottom: 1px solid #2361dd;
    vertical-align: top;
}

.info-table td:first-child {
    width: 35%;
    font-weight: 700;
}

.leiras p {
    margin: 0 0 15px;
    line-height: 1.6;
    text-align: justify;
}

.dokumentumok {
    margin: 40px 0;
}

.doc-card {
	display: flex;
	margin-bottom: 10px;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    padding: 12px 15px;
    color: rgba(0, 0, 0, .7);
    background: #fafafa;
    border: 1px solid #dedede;
    transition: all .2s ease;
}

.doc-card:hover {
    color: #2361dd;
    background: #f0f5ff;
    border-color: #2361dd;
    text-decoration: none;
}

.doc-icon {
    font-size: 20px;
}

.doc-icon svg {
    display: block;
}

.doc-text {
    font-size: 14px;
}

.kapcsolat {
    margin-top: 40px;
    line-height: 1.6;
}

.kapcsolat strong {
    display: block;
    margin-bottom: 5px;
}

.back-link {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 8px 16px;
    font-size: 13px;
    color: #2361dd;
    border: 1px solid #2361dd;
    border-radius: 4px;
    transition: all .2s ease;
}

.back-link:hover {
    color: #fff;
    background: #2361dd;
    text-decoration: none;
}

.accessibility-icon {
    position: absolute;
    right: 0;
    margin-top: -37px;
    width: 35px;
    height: auto;
    cursor: pointer;
    transition: transform .2s ease;
}

.accessibility-icon:hover {
    transform: scale(1.1);
}

.divider {
    border: none;
    border-top: 1px solid #dedede;
    margin-top: 30px;
    margin-bottom: 10px;
}

.site-footer {
    padding: 0 10px 20px;
    font-size: 12px;
    text-align: center;
    color: rgba(0, 0, 0, .5);
}

.site-footer a {
    color: rgba(0, 0, 0, .6);
}


.galeria {
    margin: 40px 0;
}

.galeria-cim {
    margin: 30px 0 15px;
    color: #2361dd;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
}

.galeria-alcim {
    margin-bottom: 15px;
    font-size: 16px;
    color: rgba(0, 0, 0, .7);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.galeria-item {
    display: block;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #dedede;
}

.galeria-item img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.galeria-item:hover img {
    transform: scale(1.04);
    opacity: .9;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0, 0, 0, .85);
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 90vh;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .45);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 25px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 38px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ffeb3b;
}

body.accessible-mode .galeria-cim,
body.accessible-mode .galeria-alcim {
    color: #ffeb3b !important;
}

body.accessible-mode .galeria-item {
    border-color: #ffeb3b;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-item img {
        height: auto;
    }
}


/* Akadálymentes mód */
body.accessible-mode {
    background: #000 !important;
    color: #ffeb3b !important;
    font-size: 18px;
}

body.accessible-mode .container {
    background: #000;
    border-color: #ffeb3b;
}

body.accessible-mode h1,
body.accessible-mode .projekt-cim,
body.accessible-mode .reszletes-cim,
body.accessible-mode .dokumentum-cim,
body.accessible-mode a {
    color: #ffeb3b !important;
}

body.accessible-mode a {
    text-decoration: underline;
}

body.accessible-mode .info-table td,
body.accessible-mode .info-table tr,
body.accessible-mode .doc-card,
body.accessible-mode .back-link {
    border-color: #ffeb3b !important;
}

body.accessible-mode .doc-card {
    background: #000;
}

body.accessible-mode .back-link:hover {
    color: #000 !important;
    background: #ffeb3b;
}



.projekt-fejlec {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.projekt-fejlec .logo {
    display: block;
    width: 398px;
    max-width: 100%;
    height: auto;
    margin: 0 0 20px 0;
}

.projekt-fejlec h1 {
    margin: 40px 20px 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
}






/* Mobil */
@media (max-width: 768px) {
    .container {
        margin: 20px 0;
        padding: 15px;
    }

    .logo {
        width: 260px;
    }

    h1 {
        margin: 30px 0;
        font-size: 15px;
    }

    .projekt-cim {
        font-size: 18px;
    }

    .reszletes-cim,
    .dokumentum-cim {
        font-size: 16px;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table td {
        padding: 8px 10px;
        border: none !important;
    }

    .info-table tr {
        border-bottom: 1px solid #2361dd;
    }

    .info-table td:first-child {
        width: 100%;
        padding-bottom: 4px;
    }

    .info-table td:last-child {
        padding-top: 4px;
        padding-bottom: 10px;
    }

    .accessibility-icon {
        right: 20px;
    }
	
	 .projekt-fejlec {
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .projekt-fejlec .logo {
        width: 260px;
    }

    .projekt-fejlec h1 {
        margin: 25px 0 5px;
        font-size: 15px;
    }
}