/* Alapstílusok */
:root {
    --primary-color: #8a4fff; /* lila */
    --secondary-color: #ff85a2; /* rózsaszín */
    --light-color: #f9f1f0; /* beige */
    --dark-color: #333;
    --text-color: #333;
    --light-text: #f9f1f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-base: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: var(--font-base);
}

/* Kihagyási link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Fejléc */
header {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-image {
    height: 100px;
    width: auto;
    transition: transform 0.3s;
}



.header-content {
    width: 100%;
    text-align: center;
}

header h1 {
    font-size: calc(2 * var(--font-base));
    margin-bottom: 1rem;
}

/* Navigáció */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: calc(1.1 * var(--font-base));
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Fő tartalom */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Lábléc */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

footer h2 {
    margin-bottom: 1rem;
    font-size: calc(1.5 * var(--font-base));
}

footer a {
    color: var(--light-text);
    text-decoration: underline;
}

footer address {
    font-style: normal;
    margin-bottom: 1rem;
}

/* Hozzáférési panel */
.accessibility-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.accessibility-panel button {
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(0.9 * var(--font-base));
}

.accessibility-panel button:hover {
    background-color: var(--secondary-color);
}

.font-size-controls {
    display: flex;
    gap: 5px;
}

.font-size-controls button {
    flex: 1;
    min-width: 40px;
}

/* Nagy kontraszt stílus */
/* KONTRAZST STÍLUSOK */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

.high-contrast a {
    color: #ff0 !important;
    text-decoration: underline !important;
}

.high-contrast .btn {
    border: 2px solid #fff !important;
}

/* BETŰMÉRET ÁLLÍTÁS */
html {
    font-size: 16px;
    transition: font-size 0.3s ease;
}

/* GOMBOK STÍLUSA */
#contrast-toggle, 
#font-decrease, 
#font-reset, 
#font-increase {
    padding: 8px 12px;
    background: #8a4fff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

.font-size-controls {
    display: flex;
    gap: 5px;
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
    :root {
        --font-base: 14px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .accessibility-panel {
        position: static;
        margin-top: 20px;
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --font-base: 15px;
    }
}
/* main.css vagy content.css VÉGÉRE illeszd */

/* SPECIFIKUS CÍMEK KONTRASZT MÓDBAN */
.high-contrast fieldset legend,
.high-contrast .form-section h2,
.high-contrast .form-group > h2,
.high-contrast .checkbox-group h2 {
    color: #ff0 !important; /* Sárga szín */
    background-color: #000 !important; /* Fekete háttér */
    padding: 5px 10px !important;
    border: 2px solid #ff0 !important;
    display: inline-block !important;
    margin-bottom: 15px !important;
}

/* LISTÁK KONTRASZT MÓDBAN */
.high-contrast .checkbox-group {
    background-color: #111 !important;
    border: 1px solid #ff0 !important;
    padding: 15px !important;
    margin-top: 10px !important;
}

.high-contrast .checkbox-group label {
    color: #fff !important;
    display: block !important;
    padding: 8px 5px !important;
    margin: 5px 0 !important;
    border-left: 3px solid #ff0 !important;
}

/* RADIO BUTTON STÍLUSOK */
.high-contrast input[type="radio"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ff0 !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -2px !important;
    background-color: #222 !important;
}

.high-contrast input[type="radio"]:checked::before {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 8px !important;
    height: 8px !important;
    background: #ff0 !important;
    border-radius: 50% !important;
}
/* Gomb stílusok az index2.html-hez */
.cta a {
    color: #8a4fff; /* Lila szöveg */
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.cta a:hover {
    color: #f9f1f0 !important; /* Világos szöveg hover állapotban */
    background-color: #8a4fff; /* Lila háttér hover állapotban */
    text-decoration: none;
}

/* Kontraszt módban is látható maradjon */
.high-contrast .cta a:hover {
    color: #000 !important;
    background-color: #ff0 !important;
}
/* DEFAULT STYLES */
footer a.tracked-link {
    color: #f9f1f0; /* White */
    text-decoration: underline;
  }
  
  /* VISITED STATE (after clicking) */
  footer a.tracked-link.visited {
    color: #d8d8d8; /* Light gray */
    opacity: 0.8;
  }
  
  /* MENU LINKS (never change) */
  nav a,
  nav a:visited {
    color: #f9f1f0 !important;
  }

/* HÁTTÉRKÉP BEÁLLÍTÁSA */
body {
    background-image: url('hatterkep.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #f0f0f0; /* Tartalék háttérszín */
}

/* TARTALOM ÁTLÁTSZÓ HÁTTÉRREL */
main {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
}

