body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #2D3C5F;
    display: flex;
    flex-direction: column;
    min-height: 100vh;   /* změněno z height:100vh -> min-height, aby stránka mohla růst */
}

.header {
    width: 100%;
    height: 12em;
    background-color: #2D3C5F;
    display: flex;               /* aktivuje flexbox */
    justify-content: space-evenly;     /* horizontálně vycentruje obsah */
    align-items: center;    
}
.header a img{
    height: 12em;
}

.header span{
    color: white;
    font-size: 2.5em;
    font-family: 'Playwrite AU SA', sans-serif;
}

.hamburger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.menu{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #A32250;
    width: 100%;
    height: 3em;
    gap: 1em;
    padding: 0;
    margin: 0;
    position: relative; /* přidáno */
}

.nav-menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-menu a{
    display: block;
    padding: 10px 15px;
    background-color: rgba(163, 34, 80,1);
    border-radius: 10px;
    text-align: center;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.nav-menu a:hover{
    background-color: #C4376A;
    color: white;
}

.admin-menu{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6A1B4D; /* tmavší odstín než hlavní menu */
    width: 100%;
    height: 2.5em;
    gap: 1em;
    padding: 0;
    margin: 0;
    position: relative;
}

.admin-menu .nav-menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.admin-menu .nav-menu a{
    display: block;
    padding: 8px 12px;
    background-color: rgba(106, 27, 77,1);
    border-radius: 8px;
    text-align: center;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.admin-menu .nav-menu a:hover{
    background-color: #8B2E66;
    color: white;
}

/* Hamburger pro mobilní zobrazení */
.admin-menu .hamburger{
    display: none; /* skrýt na desktopu */
    background: none;
    border: none;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

main {
    flex: 1;                 /* hlavní obsah roste */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.main-div {
    background-color: #f9f9f9;        /* světle šedé pozadí */
    color: #333;                       /* tmavě šedý text pro lepší čitelnost */
    padding: 20px;                     /* vnitřní odsazení */
    margin: 15px 0;                    /* mezera nahoře a dole */
    border-radius: 12px;               /* zaoblené rohy */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* jemný stín */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* moderní písmo */
    line-height: 1.6;  
    width: 70%;                /* lepší čitelnost textu */
}

.days-container {
    display: flex;
    flex-wrap: wrap;        /* zalomení na další řádek pokud se nevejde */
    gap: 20px;              /* mezera mezi dny */
    justify-content: center; /* vycentrování všech dnů */
}


.trener-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trener-card {
    background-color: #2D3C5F;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 25px 20px;
    width: 280px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s;
}

.trener-card:hover {
    transform: translateY(-5px);
}

.trener-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-bottom: 15px;
}

.trener-jmeno {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.trener-kontakt {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.trener-socials a {
    display: inline-block;
    margin: 0 8px;
}

.trener-socials a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s, opacity 0.3s;
}

.trener-socials a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.kontakty-card {
    background-color: #2D3C5F;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 25px 20px;
    width: 280px;
    text-align: left; /* Text zarovnaný vlevo */
    color: #fff;
    transition: transform 0.3s;
}
.kontakty-card h3 {
    text-align: center; /* Nadpis uprostřed */
}

.kontakty-card p {
    text-align: left; /* Text vlevo */
}

.home-li-li{
    background: #f5f6fa;
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    border-left: 5px solid #A32250;
    border-radius: 6px;
    display: flex;
    flex-direction: column; /* → děti budou pod sebou */
    align-items: flex-start; /* zarovnání vlevo */
    transition: all 0.2s ease-in-out;
}

.home-li li span {
    display: block;   /* každý řádek na novém řádku */
}

.day {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 45%;
    box-sizing: border-box;
}

.akce-buttons {
    display: flex;           /* formuláře vedle sebe */
    gap: 10px;               /* mezera mezi tlačítky */
    align-items: center;    /* vertikální zarovnání */
}

.akce-buttons form {
    margin: 0;               /* odstraní defaultní margin formuláře */
}

/* Základní styl tlačítka */

.akce-li {
    display: inline-flex; /* inline-flex umožní být vedle sebe a zároveň flex pro obsah */
    flex-direction: row; /* děti uvnitř budou vedle sebe (pokud máš víc prvků uvnitř) */
    align-items: center; /* vertikální zarovnání obsahu */
    background: #f5f6fa;
    margin: 0.5rem 0.5rem 0.5rem 0; /* mezera mezi li */
    padding: 0.8rem 1rem;
    border-left: 5px solid #A32250;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    width: 28%;
}

.akce-li-li{
    display: inline-flex;
}

.akce-container{
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px;
}


.btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.edit-btn {
    background-color: #3498db;
    color: white;
}

.edit-btn:hover {
    background-color: #2980b9;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Box formuláře */
form {
    background-color: #fff;        /* světlé pozadí pro kontrast */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 300px;
    text-align: center;
}

form h2 {
    color: #A32250;               /* hlavní akcentní barva */
    margin-bottom: 30px;
    font-size: 24px;
}

.h3{
    color: #A32250;
}

form input[type="text"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #2D3C5F;   /* tmavý okraj */
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: #A32250;        /* zvýraznění při kliknutí */
    outline: none;
}

form button {
    width: 100%;
    padding: 12px;
    background-color: #A32250;    /* akcentní barva */
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Select box */
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #2D3C5F;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

form select:focus {
    border-color: #A32250;
    outline: none;
}

/* Date input */
form input[type="date"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #2D3C5F;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

form input[type="date"]:focus {
    border-color: #A32250;
    outline: none;
}

/* Zpráva (např. $message) */
form p.message {
    background-color: #2D3C5F;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

form button:hover {
    background-color: #841b3d;    /* tmavší odstín pro efekt */
}
footer {
    display: flex;
    flex-direction: column;
    background-color: #555;
    color: white;
    padding: 20px 40px;
    box-sizing: border-box;
    width: 100%;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.footer-left {
    width: 75%;
}
.footer-left .footer-title {
    font-size: 0.9em;
    margin-bottom: 10px;
}
.sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.sponsors img {
    height: 50px;
    width: auto;
    display: block;
}
.footer-right {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-right .footer-title {
    font-size: 0.9em;
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons img {
    height: 30px;
    width: auto;
    display: block;
}
.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.85em;
    color: #ccc;
    border-top: 1px solid white;
    padding-top: 10px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-li {
    background: #f5f6fa;
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    border-left: 5px solid #2D3C5F;
    border-radius: 6px;
    display: flex;
    flex-direction: column; /* → děti budou pod sebou */
    align-items: flex-start; /* zarovnání vlevo */
    transition: all 0.2s ease-in-out;
}

.home-li strong {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.home-li span {
    font-size: 0.95em;
}


.kategorie {
    background: #f5f6fa;
    margin: 0.5rem 0;
    padding: 0.8rem 1rem;
    border-left: 5px solid #2D3C5F;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
}
ul li:hover {
    background: #e6e7ef;
    border-left-color: #A32250;
}
ul li span {
    color: #2D3C5F;
    font-weight: 500;
}
ul li a {
    background: #A32250;
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease-in-out;
}
ul li a:hover {
    background: #2D3C5F;
}
.treninky-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;             /* ← přidat */
    max-width: 1300px;       /* ← aby to nebylo moc široké */
    overflow-x: auto;
}

/* Grid pro měsíce */
.mesice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;             /* ← důležité */
}

/* Box měsíce */
.mesic-box {
    background: #f9f9fc;
    border: 1px solid #e1e1e8;
    border-radius: 8px;
    padding: 1rem;
}

/* Nadpis měsíce */
.mesic-box h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #A32250;
    border-bottom: 2px solid #2D3C5F;
    padding-bottom: 0.4rem;
    text-align: center;
    text-transform: capitalize;
}

/* Seznam */
.mesic-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mesic-box li {
    background: #fff;
    margin: 0.5rem 0;
    padding: 0.6rem 0.8rem;
    border-left: 5px solid #2D3C5F;
    border-radius: 6px;
    display: flex;
    justify-content: space-between; /* text vlevo, tlačítka vpravo */
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.mesic-box li:hover {
    background: #f0f0f8;
}

/* Datum + kategorie */
.mesic-box li span {
    color: #2D3C5F;
    font-weight: 500;
}

/* Tlačítko Docházka */
.mesic-box li a {
    background: #A32250;
    color: #fff;
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.2s ease-in-out;
}
.mesic-box li a:hover {
    background: #2D3C5F;
}

.mesic-box li.neaktivni {
    opacity: 0.6;
    font-style: italic;
}


.mesic-box a.toggle:hover {
    text-decoration: underline;
}



.info-bar {
    width: 100%;
    max-width: 1200px;  /* stejně jako main/treninky-container */
    margin: 0 auto 1rem auto;
    padding: 0.5rem 1rem;
    background: #f5f6fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #2D3C5F;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.info-bar-small {
    width: 300px;
    max-width: 1200px;  /* stejně jako main/treninky-container */
    margin: 0 auto 1rem auto;
    padding: 0.5rem 1rem;
    background: #f5f6fa;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    color: #2D3C5F;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.info-left {
    font-weight: 500;
}

.info-right {
    font-style: italic;
}

.clen-detail {
    text-decoration: none;       /* odstraní podtržení */
    color: #2D3C5F;              /* tmavě modrá barva */
    font-weight: bold;           /* zvýrazní text */
    transition: color 0.3s;      /* jemný přechod při hover */
}

.clen-detail:hover {
    color: #A32250;              /* akcentní barva při najetí myší */
    text-decoration: underline;  /* podtržení při hover */
}


.back-button {
    display: inline-block;
    margin-bottom: 20px;          /* odsazení od obsahu pod tlačítkem */
    padding: 8px 16px;            /* velikost tlačítka */
    background-color: #2D3C5F;    /* tmavá barva pozadí */
    color: #fff;                   /* bílý text */
    text-decoration: none;         /* bez podtržení */
    border-radius: 5px;            /* jemné zaoblení rohů */
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* lehký stín */
    transition: background-color 0.3s, transform 0.2s;
}

.back-button:hover {
    background-color: #A32250;     /* změna barvy při najetí */
    transform: translateY(-2px);   /* lehký pohyb nahoru při hover */
}
/* Formulář docházky */
.dochazka-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}

.dochazka-form h2 {
    text-align: center;
    color: #A32250;
    margin-bottom: 20px;
}

/* Tabulka docházky */
.dochazka-form table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.dochazka-form th, .dochazka-form td {
    padding: 10px;
    border: 1px solid #2D3C5F;
    text-align: left;
}

.dochazka-form th {
    background-color: #2D3C5F;
    color: #fff;
}

.dochazka-form tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* Checkbox */
.dochazka-form input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Tlačítko uložit */
.dochazka-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #A32250;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dochazka-form button[type="submit"]:hover {
    background-color: #841b3d;
    transform: translateY(-2px);
}

/* Zpět na seznam tréninků */
.dochazka-form .back-link {
    display: inline-block;
    margin-top: 10px;
    color: #2D3C5F;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
}

.dochazka-form .back-link:hover {
    color: #A32250;
    transform: translateX(-3px);
}

.treninky-list {
    display: block; /* výchozí otevřeno */
}

.toggle-btn {
    float: right;
    background: #A32250;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 28px;
    text-align: center;
    margin-left: 10px;
    transition: background 0.2s ease;
}
.toggle-btn:hover {
    background: #841b3d;
}

/* Sbalený stav */
.mesic-box.collapsed .treninky-list {
    display: none;
}

.mesic-box .treninky-list {
    display: none; /* defaultně skryté */
}

.mesic-box.expanded .treninky-list {
    display: block; /* rozbaleno po kliknutí */
}

.map-container {
  width: 100%;
  max-width: 800px; /* max velikost na PC */

}

.map-container iframe {
  width: 100%;
  height: 400px; /* výška na PC */
  border: 0;
}

.clen-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}
/* --- Media queries pro mobil a tablet --- */
/* --- TELEFON --- */
@media screen and (max-width: 900px) {
    /* Header */
    .header span {
        display: none; /* skryje text v headeru */
    }
    .header a img {
        height: 12em; /* menší logo pro telefon */
    }

.trener-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.akce-li {
    display: inline-block;
    background: #f5f6fa;
    margin: 0.5rem 0; padding:
    0.8rem 1rem;
    border-left: 5px solid #A32250;
    border-radius: 6px;
    display: flex;
    flex-direction: column; /* → děti budou pod sebou */ 
    align-items: flex-start; /* zarovnání vlevo */ 
    transition: all 0.2s ease-in-out;
    width: auto;
}


    .map.days-container{
        height: 250px;
    }
    /* Tlačítka */
    .home-button {
        font-size: 1em;
        padding: 1rem;
    }

    /* Formuláře */
    form {
        padding: 1.5rem;
    }
    form h2 {
        font-size: 1.5em;
    }
    form input[type="text"],
    form input[type="password"],
    form button {
        font-size: 1em;
        padding: 12px;
    }

    .info-bar {
        width: 75%;
    }

    .treninky-container {
        width: 75%;
    }

    /* Menu */
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0.5em;
        background-color: #A32250;
        position: absolute;
        top: 100%; /* hned pod hamburger menu */
        left: 5;
        width: 100%;
        padding: 1rem 0;
        z-index: 1000; /* aby bylo nad ostatními prvky */
    }

    .nav-menu.show {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .nav-menu a {
        padding: 10px 20px;       /* více prostoru pro text */
        font-size: 1.1em;
        text-align: left;          /* zarovnání vlevo */
        white-space: normal;       /* text se zalamuje, neřízne se */
        overflow: visible;         /* žádné tři tečky */
    }

    /* Rozbalovací seznam členů */
    .clenove-list {
        display: none; /* defaultně skryté */
        margin: 0.5em 0;
        padding-left: 1em;
        list-style-type: disc;
    }

    .mesic-box.expanded .clenove-list {
        display: block;
    }

    .toggle-btn {
        margin-left: 1em;
        cursor: pointer;
        font-size: 1em;
        background-color: #A32250;
        color: white;
        border: none;
        padding: 0.2em 0.6em;
        border-radius: 3px;
    }

    /* Styl jednotlivých členů */
    .clenove-list li {
        margin-bottom: 0.3em;
    }

    .clenove-list li a {
        text-decoration: none;
        color: white;
    }

    .clenove-list li.neaktivni a {
        color: #999;
    }

    .clen-detail{
        max-width: 100px;
    }

        .clenove-list {
        display: none;
        margin: 0.5em 0;
        padding-left: 1em;
        list-style-type: disc;
    }

    .mesic-box.expanded .clenove-list {
        display: block;
    }

    .toggle-btn {
        margin-left: 1em;
        cursor: pointer;
        font-size: 1em;
        background-color: #A32250;
        color: white;
        border: none;
        padding: 0.2em 0.6em;
        border-radius: 3px;
    }
    .toggle-btn-pc{
        display: none;
    }

    .days-container {
        flex-direction: column; /* řadí jednotlivé dny pod sebe */
        gap: 15px; /* mezera mezi dny */
        width: 100%;
    }

    .day {
        width: 100%; /* den zabere celou šířku rodiče */
    }

    .main-div{
        width: 80%;
    }

        .admin-menu .hamburger{
        display: block;
    }
    .admin-menu .nav-menu{
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .admin-menu.active .nav-menu{
        display: flex;
    }
}


.trenink-info-bar {
    display: flex;
    flex-wrap: wrap;       /* na menších obrazovkách se rozloží */
    gap: 1.5rem;           /* mezera mezi položkami */
    background-color: #A32250; /* tmavě růžová/magenta pozadí */
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.trenink-info-item {
    flex: 1 1 200px;       /* minimální šířka 200px, roztahuje se podle dostupného místa */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trenink-info-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.trenink-info-value {
    font-weight: 400;
    text-align: right;
}

/* --- TABLET --- */


/* --- NOTEBOOK --- */
@media screen and (min-width: 901px) and (max-width: 1440px) {
    .header span {
        display: inline;
        font-size: 1.9em;
    }
    .header a img {
        height: 12em;
    }
    .nav-menu a {
        font-size: 1.2em;
        padding: 12px 18px;
    }
    .home-button {
        font-size: 1.2em;
        padding: 1.5rem;
    }
}

/* --- PC --- */
@media screen and (min-width: 1441px) {
    .header span {
        display: inline;
        font-size: 2.5em;
    }
    .header a img {
        height: 12em;
    }
    .nav-menu a {
        font-size: 1.3em;
        padding: 12px 20px;
    }
    .home-button {
        font-size: 1.3em;
        padding: 1.5rem;
    }

    .toggle-btn{
        display:none;
    }
    .clen-detail{
        max-width: 100px;
    }

    .toggle-btn-pc {
        margin-left: 1em;
        cursor: pointer;
        font-size: 1em;
        background-color: #A32250;
        color: white;
        border: none;
        padding: 0.2em 0.6em;
        border-radius: 3px;
    }
}

