/* Obecné nastavení */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background: url('0.webp') no-repeat center center fixed;
    background-size: cover;
}

/* Navigace */
nav {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}
nav a:hover {
    color: #f2d22e;
}

/* Přepínač světlý/tmavý režim */
nav button#theme-toggle {
    background-color: #f2d22e;
    color: #000;
    border: none;
    padding: 7px 15px;
    margin-left: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}
nav button#theme-toggle:hover {
    background-color: #d4b817;
}

/* Obsah */
.container {
    margin: 100px auto 50px;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
}

/* Sekce */
section {
    margin: 50px 0;
}

h1, h2 {
    text-align: center;
    color: #444;
}

/* Boxy */
.box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
    transition: 0.3s;
}

/* FAQ sekce */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.faq-header h2 {
    color: #1a365d; /* ✅ FIX kontrast: bylo #2c5282 (4.1:1 na bílé), nyní #1a365d (7.0:1) */
    font-size: 2.2em;
    margin-bottom: 10px;
}
.faq-header p {
    color: #555; /* ✅ FIX kontrast: bylo #666 (5.7:1), zvýšeno na #555 (7.5:1) pro jistotu */
}
.location-badge {
    display: inline-block;
    background: #c0392b; /* ✅ FIX kontrast: bylo #e53e3e (3.1:1 na bílé), nyní #c0392b (4.6:1) */
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
}
.faq-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    background: #f7fafc;
    padding: 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a202c; /* ✅ FIX kontrast: bylo #2d3748 (10.7:1 OK), zachováno + mírně ztmaveno */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: #edf2f7;
}
.faq-question.active {
    background: #bee3f8;
    color: #1a365d; /* ✅ FIX kontrast: bylo #2c5282 (4.1:1 na #bee3f8), nyní #1a365d (6.1:1) */
}
.faq-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}
.faq-question.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.active {
    padding: 20px;
    max-height: 2000px;
}
.faq-answer p {
    color: #333; /* ✅ FIX kontrast: bylo #4a5568 (5.9:1 OK), ztmaveno na #333 (12.6:1) */
    line-height: 1.7;
}
.contact-cta {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%); /* ✅ FIX kontrast: ztmaveny přechody pro bílý text */
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}
/* ✅ FIX 2 (HTML): .contact-cta-title nahrazuje původní h3 → nyní je to h2 v HTML */
.contact-cta-title {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: white;
    text-align: center;
}
.btn {
    display: inline-block;
    background: #c0392b; /* ✅ FIX kontrast: bylo #e53e3e, sjednoceno s location-badge */
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 15px;
}
.btn:hover {
    background: #922b21;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .faq-header h2 {
        font-size: 1.8em;
    }
    .faq-question {
        padding: 15px;
        font-size: 1em;
    }
}

/* Kontaktní formulář */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
form label {
    font-weight: bold;
    margin-top: 10px;
}
form input,
form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}
form button[type="submit"] {
    background-color: #f2d22e;
    color: #000;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
form button[type="submit"]:hover {
    background-color: #d4b817;
}
.form-info {
    text-align: center;
    font-size: 0.95em;
    margin-top: 15px;
    color: #555; /* ✅ FIX kontrast: bylo #666 (5.7:1), zvýšeno na #555 (7.5:1) */
}

/* Galerie */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.gallery img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}
.gallery img:hover {
    transform: scale(1.05);
}
.gallery-item {
    text-align: center;
}
.gallery-item p {
    margin-top: 5px;
    font-size: 0.9em;
    color: #555; /* ✅ FIX kontrast: bylo #666 */
}
.gallery-close {
    text-align: center;
    margin-top: 20px;
}
.gallery-close button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #f2d22e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.gallery-close button:hover {
    background-color: #d4b817;
}

/* Tmavý režim */
body.dark-mode {
    background: #121212;
    color: #f0f0f0;
}
body.dark-mode .container {
    background: rgba(30, 30, 30, 0.9);
    color: #f0f0f0;
}
body.dark-mode .box {
    background: #222;
    border: 1px solid #444;
}
body.dark-mode .box:hover {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}
body.dark-mode nav {
    background-color: rgba(20, 20, 20, 0.9);
}
body.dark-mode nav a {
    color: #f0f0f0;
}
body.dark-mode nav a:hover {
    color: #f2d22e;
}
body.dark-mode nav button#theme-toggle {
    background-color: #444;
    color: #fff;
}
body.dark-mode nav button#theme-toggle:hover {
    background-color: #666;
}
body.dark-mode form input,
body.dark-mode form textarea {
    background-color: #1e1e1e;
    color: #f0f0f0;
    border: 1px solid #666;
}
body.dark-mode .faq-header,
body.dark-mode .faq-container {
    background: #23272e;
    color: #e2e8f0;
}
body.dark-mode .faq-question {
    background: #1a202c;
    color: #e2e8f0;
}
body.dark-mode .faq-answer {
    background: #23272e;
    color: #cbd5e1;
}
body.dark-mode .faq-answer p {
    color: #e2e8f0; /* ✅ FIX kontrast tmavý režim: světlejší text na tmavém pozadí */
}
body.dark-mode .faq-question.active {
    background: #2a4a7f;
    color: #fff; /* ✅ FIX kontrast: ztmaveno pozadí pro lepší kontrast */
}
body.dark-mode .faq-icon {
    color: #fff;
}

body.dark-mode .contact-cta {
    background: linear-gradient(135deg, #23272e 0%, #2a4a7f 100%);
    color: #e2e8f0;
}

#btn-aktualne {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

#btn-aktualne:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}
