/* --- 1. ZÁKLADNÍ NASTAVENÍ --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f7f6;
    scroll-behavior: smooth;
}

/* --- 2. NAVIGACE --- */
nav {
    background: #00BFFF;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* --- 3. SPOLEČNÉ PRVKY --- */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    border-bottom: 2px solid #00BFFF;
    padding-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.card {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

ul {
    padding-left: 40px; 
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* --- 4. REFERENCE --- */
.reference-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px; 
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.reference-karta {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px; 
    max-width: 450px;
    border-left: 5px solid #00adef;
    text-align: left;
    transition: transform 0.3s ease;
}

.reference-karta .text {
    flex-grow: 1;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.reference-karta .autor {
    font-size: 0.9em;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: auto;
}

/* --- 5. NÁŠ TÝM --- */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00BFFF;
}

/* --- 6. FORMULÁŘ --- */
form {
    display: grid;
    gap: 15px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background: #00BFFF;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #2980b9;
}

/* --- 7. PATIČKA --- */
footer {
    background-color: #00BFFF;
    color: white;
    padding: 40px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h4 {
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Nový styl pro klikací řádky (Email, Instagram) */
.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    margin-bottom: 12px; /* Mezera mezi řádky pod sebou */
    transition: opacity 0.2s; /* Jemné ztmavení při najetí */
}

.footer-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Styl pro ikonky v patičce */
.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain; /* Aby se logo nedeformovalo */
}

/* Styl pro vytučněný text u odkazů */
.footer-text {
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    width: 100%;
}

/* --- 8. OBRÁZKY (Centrování a Responzivita) --- */
.foto-kontejner {
    text-align: center;
    padding: 20px;
}

.foto-kontejner img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-film {
    display: inline-block;
    background-color: #E63946;
    color: white !important;
    padding: 14px 28px;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* --- 9. GDPR A MODAL --- */
.gdpr-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 15px 0 5px 0;
    width: 100%;
}

#gdpr-check {
    width: auto !important; 
    margin: 0 !important;
}

.gdpr-label {
    margin: 0 !important;
    font-size: 14px;
    text-align: left;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 85%;
    max-width: 500px;
    position: relative;
}

/* --- 10. MOBILNÍ ÚPRAVY (POUZE PRO MOBILY) --- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }

    section {
        padding: 30px 15px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }
}
/* --- 8. OBRÁZKY --- */
.foto-kontejner {
    text-align: center;
    padding: 20px;
}

.foto-kontejner img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-film {
    display: inline-block;
    background-color: #E63946;
    color: white !important;
    padding: 14px 28px;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* --- 9. GDPR A MODAL --- */
.gdpr-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 15px 0 5px 0;
    width: 100%;
}

#gdpr-check {
    width: auto !important; 
    margin: 0 !important;
}

.gdpr-label {
    margin: 0 !important;
    font-size: 14px;
    text-align: left;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 85%;
    max-width: 500px;
    position: relative;
}

/* --- 10. JEN MOBILNÍ ÚPRAVY (Tady to byl problém) --- */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }

    section {
        padding: 30px 15px;
    }

    /* Tady jsem to opravil - pouze na mobilu se karty přizpůsobí */
    .reference-karta, .team-member {
        min-width: 250px; 
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }

    /* Checkbox musí zůstat malý i na mobilu */
    #gdpr-check {
        width: 20px !important;
    }
}


/* --- 11. COOKIE LIŠTA (Banner) --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2c3e50; /* Tmavě šedá pro seriózní vzhled */
    color: white;
    padding: 15px 0;
    z-index: 10001; /* Vždycky navrchu */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    display: none; /* JS to zapne, pokud není v paměti souhlas */
}

.cookie-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1; /* Text zabere co nejvíc místa */
}

.cookie-banner a {
    color: #00BFFF; /* Tvoje modrá z webu */
    text-decoration: underline;
    font-weight: bold;
}

.cookie-banner button {
    background: #00BFFF; /* Tvoje modrá z webu */
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
    width: auto !important; /* Důležité: aby to na mobilu neroztáhlo button */
    white-space: nowrap; /* Aby se text "Rozumím" nezalomil */
}

.cookie-banner button:hover {
    background: #2980b9; /* Tmavší modrá při najetí */
    transform: scale(1.05); /* Lehké zvětšení pro efekt */
}

/* Úpravy pro mobily */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column; /* Na mobilu pod sebe */
        text-align: center;
        gap: 12px;
    }

    .cookie-banner p {
        font-size: 13px;
    }

    .cookie-banner button {
        margin-left: 0;
        width: 100% !important; /* Na mobilu ať je button dobře trefitelný prstem */
    }
}