/*
=========================================
CSS VÁLTOZÓK (Színek, Betűtípusok)
=========================================
*/
:root {
    /* Alapszínek */
    --color-primary: #0f4d97; /* Fő szín: Sötét Kék */
    --color-secondary: #3bc4f4; /* Kiegészítő/kiemelő szín: Sárga/Narancs */
    --color-text-dark: #343a40; /* Sötét szöveg/címsorok */
    --color-text-light: #f8f9fa; /* Világos szöveg */
    --color-background: #ffffff; /* Háttérszín (Fehér) */
    --color-header-bg: #102443; /* FELSŐ SÁV háttérszíne (Világosszürke) */
    --color-footer-bg: #0f4d97; /* Lábléc háttérszíne (Sötétszürke) */
    --menu-width: 250px; /* Menü szélessége */

    /* Betűtípusok */
    --font-body: 'Helvetica', sans-serif;
}

/* Alapstílusok (Reset) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    overflow-x: hidden; 
}

/*
=========================================
SLIDE-IN MENÜ (OFF-CANVAS)
=========================================
*/

/* A teljes oldal tartalmát burkoló konténer */
.page-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

/* Menü alaphelyzete */
.mobile-menu-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: var(--menu-width);
    height: 100%;
    background-color: var(--color-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

/* Menü nyitott állapotban */
.menu-open .mobile-menu-offcanvas {
    transform: translateX(0);
}

/* Oldal tartalmának eltolása, ha a menü nyitva van */
.menu-open .page-wrapper {
    transform: translateX(var(--menu-width));
}

.mobile-menu-offcanvas a {
    color: var(--color-text-light);
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/*
=========================================
FEJLÉC ÉS BRANDING (Felső szekció)
=========================================
*/
/* 1. FELSŐ SÁV (Csak menü és nyelv) */
.main-header {
    width: 100%;
    padding: 15px 5%;
    background-color: var(--color-header-bg);
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-icon-container {
    font-size: 1.8em;
    cursor: pointer;
    color: var(--color-primary);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: var(--color-text-dark);
}

/* ZÁSZLÓK MÉRETÉNEK VÁLTOZTATÁSA: Kisebb */
.flag-icon {
    width: 50px; 
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
}

/* 2. BRANDING SZEKCIÓ (Logó + Cím) */
.branding-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-background);
    text-align: center;
}

.logo-container {
    margin-right: 0;
    margin-bottom: 10px;
}

.branding-text {
    transform: none;
}
/* LOGÓ MÉRETÉNEK VÁLTOZTATÁSA: Nagyobb */
.logo-container img {
    max-height: 100px; 
    width: auto;
}

.logo-main-word {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

/* 3. Elérhetőségek sávja */
/* Elérhetőségek sávja - ÚJ STÍLUSOK */
.contact-bar-section {
    padding: 0 5%;
    background-color: var(--color-background);
}

.contact-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 15px 0;
}

.contact-items-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 1em;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.contact-icon {
    color: var(--color-secondary);
    margin-right: 8px;
    font-size: 1.2em;
}

/* Vonalak stílusa*/
.contact-line {
    height: 1px; /* Vékonyabb vonal */
    width: 100%;
    background-color: var(--color-secondary);
    margin: 8px 0;
    opacity: 0.7; /* Enyhén átlátszó */
}

/* Vagy gradient változat */
.contact-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-secondary) 20%, 
        var(--color-secondary) 80%, 
        transparent 100%);
    margin: 8px 0;
}

.top-line {
    margin-bottom: 15px;
}

.bottom-line {
    margin-top: 15px;
}

/*
=========================================
FŐ TARTALOM (MAIN)
=========================================
*/
.content-section {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-heading {
    font-size: 1.8em;
    color: var(--color-text-dark);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

.intro-text {
    text-align: justify;
}

.indented-paragraph {
    text-indent: 40px;
}

/* Email link stílusok */
.email-link {
    color: inherit; /* Örökli a szülő színét */
    text-decoration: none; /* Eltávolítja az aláhúzást */
    transition: color 0.3s ease; /* Simá átmenet hover effekthez */
    cursor: pointer;
}

.email-link:hover {
    color: var(--color-secondary); /* Másodlagos szín hover állapotban */
    text-decoration: underline; /* Aláhúzás hover állapotban */
}

/* Biztosítjuk, hogy a láblécben is megfelelően jelenjen meg */
.main-footer .email-link {
    color: var(--color-text-light);
}

.main-footer .email-link:hover {
    color: var(--color-secondary);
}


/*
=========================================
LÁBLÉC (FOOTER)
=========================================
*/
.main-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: 20px 5%;
    text-align: center;
    margin-top: 40px;
}

.footer-contact-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: none;
    margin-bottom: 15px;
}

.main-footer .contact-item {
    color: var(--color-text-light);
}

.main-footer .contact-icon {
    color: var(--color-secondary);
}

.copyright-text {
    font-size: 0.8em;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

/*
=========================================
RESZPONZIVITÁS (Media Queries)
=========================================
*/

/* Mobil nézet (767px alatt) */
@media (max-width: 767px) {
    /* Branding (Logó és Cím) beállításai mobilra */
    .branding-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .branding-text {
        transform: none;
    }
}

/* Tablet nézet (768px - 1024px) */
@media (max-width: 1024px) {
    .contact-items-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .contact-item {
        flex: 1 1 calc(50% - 15px);
        justify-content: flex-start;
        min-width: 200px;
    }
}

/* Mobil nézet (767px alatt) */
@media (max-width: 767px) {
    .contact-items-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .contact-item {
        flex: 1 1 100%;
        justify-content: flex-start;
        width: 100%;
    }
    
    .contact-line {
        margin: 5px 0;
    }
    
    .top-line {
        margin-bottom: 10px;
    }
    
    .bottom-line {
        margin-top: 10px;
    }
}

/*
=========================================
MUNKÁINK OLDAL (GALÉRIA STÍLUSOK)
=========================================
*/

.section-heading {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 30px;
}

/* Szűrő Gombok */
.filter-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 5px;
}

.filter-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Képgaléria Rács */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: opacity 0.3s ease;
}

/* Átlátszó fedőréteg a projektnévvel */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-text-light);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    transform: translateY(100%); 
    transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
    transform: translateY(0); 
}

/* Hidden osztály a JS szűréshez */
.hidden {
    display: none !important;
}

/* RESZPONZIVITÁS: Galéria */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr; 
    }
}

/*
=========================================
LIGHTBOX / MODAL STÍLUSOK (Nagyítás)
=========================================
*/

.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95); 
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px; 
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh; 
    display: block;
    object-fit: contain; 
}

/* Bezáró gomb (X) */
.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Navigációs nyilak (< >) */
.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Felirat (caption) */
.lightbox-caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px; 
}

/* Animáció a megjelenéshez (opcionális) */
.lightbox-content, .prev-btn, .next-btn {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/*
=========================================
VÉLEMÉNYEZÉS OLDAL STÍLUSOK
=========================================
*/

.review-page-content {
    padding: 40px 5%;
}

.review-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

/* BAL OLDAL: Vélemények lista */
.review-list {
    flex: 2; 
    min-width: 300px;
}

.review-box {
    background-color: #f8f8f8; 
    border: 1px solid #ddd;
    border-left: 5px solid var(--color-primary); 
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

.review-name {
    font-weight: bold;
    color: var(--color-text-dark);
}

.review-message {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.review-footer {
    display: flex;
    justify-content: flex-end; 
}

.review-date {
    font-size: 0.8em;
    color: #888;
}

/* Csillagok megjelenítése (Mind a listában, mind az űrlapon) */
.review-rating .fas, .star-rating .fas {
    color: #ccc; 
}

.review-rating .fas.filled, .star-rating .fas.filled {
    color: var(--color-secondary); 
}

/* JOBB OLDAL: Véleményező űrlap */
.review-form-wrapper {
    flex: 1; 
    min-width: 250px;
    background-color: var(--color-background);
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: fit-content; 
}

.review-form h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.star-rating {
    font-size: 1.5em;
    cursor: pointer;
}

.star-rating .fas {
    transition: color 0.2s ease;
}

.submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* RESZPONZIVITÁS: Mobilon a lista és az űrlap egymás alá kerül */
@media (max-width: 900px) {
    .review-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .review-list, .review-form-wrapper {
        flex: auto;
        width: 100%;
    }
}

/* SIKERES KÜLDÉS POPUP STÍLUS */
.success-modal {
    display: none; 
    position: fixed;
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: white;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s;
}

.modal-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
    color: #000;
    text-decoration: none;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Ideiglenes üzenet, amíg nincsenek vélemények */
.no-review-msg {
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    border: 1px dashed #ced4da;
    border-radius: 5px;
    text-align: center;
}

/*
=========================================
FOGLALÁS OLDAL STÍLUSOK
=========================================
*/

.booking-page-content {
    /* Fő konténer */
    max-width: 700px; 
    margin: 40px auto;
    padding: 0 5%;
}

.booking-wrapper {
    background-color: var(--color-background); /* Fehér háttér az űrlapnak */
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.booking-form h3 {
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ddd;
}

/* Általános űrlap stílusok (megoszlanak a review-form-mal) */
.booking-form .form-group {
    margin-bottom: 15px;
}

.booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.booking-form input:not([type="file"]),
.booking-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Irányítószám és Város egy sorban */
.address-group {
    display: flex;
    gap: 20px;
}

.address-group .zip-code {
    flex: 1; 
}

.address-group .city {
    flex: 2; 
}

/* Fájl feltöltés stílus */
.file-help-text {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 5px;
}

.booking-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 20px;
}

/* RESZPONZIVITÁS: Irányítószám és Város mobilon egymás alá kerül */
@media (max-width: 600px) {
    .address-group {
        flex-direction: column;
        gap: 0;
    }
    .address-group .zip-code,
    .address-group .city {
        flex: auto;
    }
}


/* Nyelvváltó kiemelés */
.language-switcher .lang-text {
    font-weight: 500;
    color: #6c757d; 
    transition: color 0.2s, font-weight 0.2s;
}

.language-switcher .lang-text.active {
    font-weight: bold;
    color: var(--color-primary); 
}

/* =========================================
FOGLALÁS: KÉTOSZLOPOS ELRENDEZÉS ÉS NAPTÁR STÍLUS
=========================================
*/

/* --- Kétoszlopos Foglalás Elrendezés (Változatlan) --- */
.booking-grid-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Bal oldal (Naptár) 1 rész, Jobb oldal (Űrlap) 2 rész */
    gap: 40px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-wrapper {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Kisebb képernyőn (mobil) egy oszlopba rendezés */
@media (max-width: 992px) {
    .booking-grid-container {
        grid-template-columns: 1fr;
    }
}

/* --- FLATPCIKR STÍLUS JAVÍTÁSOK (Színesebb és nagyobb naptár, ÉV a HÓNAP felett) --- */

/* A Flatpickr naptár fő konténer */
#calendar-container .flatpickr-calendar {
    width: 100%; 
    box-shadow: none; 
    border: none;
    background: none;
    margin-top: 10px;
    /* 🟢 MÉRETNÖVELÉS */
    font-size: 1.1em; 
}

/* 🟢 NAVIGÁCIÓS SÁV: ÉV-HÓNAP BEÁLLÍTÁSOK */
.flatpickr-months {
    background-color: var(--color-primary); /* Kék háttér a fejlécnek */
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 5px 0;
}

/* Az egyedi Flatpickr elemekre ható szabály */
.flatpickr-current-month {
    order: 2; 
    align-items: center;
    padding-top: 5px;
}

/* 🟢 ÉV MEGJELENÍTÉSE A HÓNAP FELETT */
.flatpickr-current-month .flatpickr-monthTitle {
    order: 2; /* A hónap kijelzés kerül le */
    color: white;
    font-weight: 500;
}

.flatpickr-current-month .numInputWrapper {
    order: 1; /* Az év beviteli mező (numInputWrapper) kerül felülre */
    margin-bottom: 2px;
    font-size: 1.2em;
}

.flatpickr-current-month .numInput {
    color: white;
    font-weight: bold;
    border: none;
    background: none;
    text-align: center;
    padding: 0;
    margin: 0;
    height: auto;
}

/* Aktuális hónap/év váltó gombok (navigációs nyilak) */
.flatpickr-prev-month, .flatpickr-next-month {
    fill: white; /* Fehér nyilak a kék háttéren */
    margin-top: 8px; 
}

/* Hét napjainak (Hé, Ke, Sze...) felirata */
.flatpickr-weekday {
    color: var(--color-primary); 
    font-weight: bold;
    font-size: 0.9em;
}

/* Aktív dátum/nap és tartomány stílusa (a kiemelt színnel) */
.flatpickr-day.selected, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange {
    background: var(--color-primary) !important; /* Fő szín */
    border-color: var(--color-primary) !important;
    color: white;
    border-radius: 5px; /* Kerekítés */
}

/* Ma kijelölése */
.flatpickr-day.today {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Aktív nap hover (nem tartomány része) */
.flatpickr-day:hover, .flatpickr-day:focus {
    color: var(--color-primary); 
    border-color: var(--color-primary);
    background: #e6f3ff; /* Halvány kék háttér a hoverhez */
}


/* --- ON/OFF KAPCSOLÓ STÍLUS (Hosszú gomb, fixált eltolással) --- */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: #fff;
    justify-content: flex-start; 
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 90px; /* Visszaállítva a 90px-re a helyes eltolásért */
  height: 34px;
}

.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--color-primary); /* Fő szín: Kék */
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
  -webkit-transform: translateX(46px); /* Eltolás 90px-es szélességhez (90 - 34 = 56) */
  -ms-transform: translateX(56px);
  transform: translateX(32px);
}

/* Lekerekített csúszka */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Kapcsoló állásának szövege */
.toggle-status {
    font-weight: bold;
    color: var(--color-primary);
}







/* ================================================= */
/* KÉNYSZERÍTETT NYOMTATÁSI BEÁLLÍTÁSOK (Print Media) */
/* Végleges verzió: Dinamikus eltolás (menu-open) + Fejléc/Lábléc Fixálva */
/* ================================================= */

@media print {
    
    /* 1. HÁTTÉRSZÍNEK KÉNYSZERÍTÉSE ÉS GLOBÁLIS RESET */
    * {
        -webkit-print-color-adjust: exact !important; 
        color-adjust: exact !important; 
    }
    
    /* A normál (menu-closed) állapot: Minden elem marad 0 margóval, teljes szélesen. */
    #page-wrapper, .main-footer {
        transform: none !important;
        margin-left: 0 !important;
        width: 100% !important; 
        padding-left: 15px !important; 
    }
    #mobile-menu {
        display: none !important; /* Alapértelmezetten elrejtve, ha a menü zárva van */
    }
    
    /* --- 2. FEJLÉC ÉS ZÁSZLÓK FIXÁLÁSA --- */
    .main-header {
        background-color: var(--color-header-bg) !important;
        display: flex !important;
        align-items: center !important;
        /* FIX: Logó balra, Zászlók jobbra kényszerítése */
        justify-content: space-between !important; 
        color: var(--color-text-dark) !important;
        padding: 5px 15px !important;
    }
    
    /* KULCS: A zászlók kényszerítése a jobb szélre a Flexboxon belül */
    .language-switcher {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Hamburger ikon elrejtése */
    .menu-icon-container, 
    #hamburger-menu {
        display: none !important;
    }
    
    /* --- 3. LÁBLÉC FIXÁLÁSA (SZÍNEK) --- */
    .main-footer {
        background-color: var(--color-footer-bg) !important;
        width: 100% !important; 
        margin: 0 !important; 
        padding-left: 15px !important; 
    }
    
    /* KULCS: Ikonok színének kényszerítése a másodlagos színre! */
    .main-footer .contact-icon, 
    .contact-bar.footer-contact-bar .contact-icon {
        color: var(--color-secondary) !important; 
        /* A háttér is megkapja a színt, hogy biztosan látszódjon */
        -webkit-text-fill-color: var(--color-secondary) !important;
    }

    /* Lábléc szövegének színe */
    .main-footer *,
    .contact-bar.footer-contact-bar * {
        color: var(--color-text-light) !important; 
    }

    /* ================================================= */
    /* FŐ LOGIKA: MI TÖRTÉNIK, HA A MENÜ NYITVA VAN (body.menu-open) */
    /* ================================================= */

    /* --- 4. MENÜ MEGJELENÍTÉSE ÉS TARTALOM ELTOLÁSA (CSAK ELSŐ OLDAL) --- */
    
    /* Menüsor megjelenítése */
    body.menu-open #mobile-menu {
        display: block !important;
        position: absolute !important; 
        top: 0 !important;
        left: 0 !important;
        width: var(--menu-width) !important; 
        height: 100vh !important; 
        background-color: var(--color-primary) !important; 
    }
    
    /* Oszlopos elrendezés kényszerítése */
    body.menu-open #mobile-menu a {
        display: block !important; 
        padding: 10px 20px !important;
        color: var(--color-text-light) !important; 
    }

    /* KULCS: A Fő Tartalom (page-wrapper) eltolása (CSAK az 1. oldalon!) */
    body.menu-open #page-wrapper {
        margin-left: var(--menu-width) !important; 
        width: auto !important; 
        padding-left: 0 !important; 
    }
    
    /* KULCS: Lábléc fixálása nyitott menüvel */
    body.menu-open .main-footer {
        /* A lábléc most már a tolt területhez képest 100% széles! */
        width: auto !important; 
        margin-left: var(--menu-width) !important; /* Eltolja a láblécet is a menüvel együtt */
        padding-left: 15px !important; 
    }
}