/* 
 * Tábor Vlna - Responsivní design
 * Verze: 3.0 - Optimalizovaná
 * Vytvořeno: 2026-01-30
 * Breakpointy: 1200px, 992px, 768px, 576px, 360px
 */

/* ═══════════════════════════════════════════════════════════════════════
   GLOBÁLNÍ OPRAVY
   ═══════════════════════════════════════════════════════════════════════ */

/* Oprava duplicitního křížku v mobilním menu */
.nav_close::before,
.nav_close::after {
    content: none !important;
    display: none !important;
}

/* Skrytí burger menu když je drawer otevřený (jinak se zobrazuje X přes drawer) */
body.no_scroll .nav_toggle {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINT: 1200px - Velké tablety / Malé desktopy
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    
    /* Utility */
    .in {
        padding: 0 25px;
    }
    
    /* HP Intro */
    #hp_intro {
        padding: 50px 25px 70px;
        gap: 40px;
    }
    
    #hp_intro .col-left h2 {
        font-size: 4rem;
    }
    
    /* Kdo jsme */
    #kdo_jsme {
        padding: 60px 25px;
    }
    
    #kdo_jsme .col-left {
        max-width: 350px;
    }
    
    /* HP Slovo */
    #hp_slovo {
        padding: 80px 25px;
    }
    
    /* HP Galerie */
    #hp_galerie {
        padding: 60px 25px;
    }
    
    /* Patička */
    #paticka {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 60px 25px 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINT: 992px - Tablety / Menu breakpoint
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    
    /* ─────────────────────────────────────────────────────────────────
       Menu - skrytí desktop, zobrazení burger
       ───────────────────────────────────────────────────────────────── */
    #menu {
        display: none !important;
    }
    
    /* Navigace na mobilu - burger vpravo */
    #zahlavi nav {
        flex: 1 !important;
        justify-content: flex-end !important;
    }
    
    .nav_toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    
    /* Záhlaví */
    #zahlavi .in {
        padding: 12px 20px;
        min-height: 70px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kontakty - tabulky na 100% šířky - kompletní reset
       ───────────────────────────────────────────────────────────────── */
    .tinymce table.kontakty,
    .tinymce table.kontakty tbody,
    .tinymce table.kontakty thead,
    .tinymce table.kontakty tr,
    .tinymce table.kontakty th,
    .tinymce table.kontakty td {
        display: block;
        width: 100%;
    }
    
    .tinymce table.kontakty.lide td,
    .tinymce table.kontakty.lide th {
        text-align: center;
    }
    
    .tinymce table.kontakty.lide td img {
        margin: 20px auto;
    }
    
    .tinymce table.kontakty.lide tr {
        margin-bottom: 40px;
        padding-bottom: 40px;
        border-bottom: 1px dashed rgba(0,0,0,0.1);
    }
    
    .tinymce table.kontakty.lide tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .tinymce table.kontakty.adresy th,
    .tinymce table.kontakty.adresy td {
        text-align: center;
        padding: 15px;
    }
    
    .tinymce table.kontakty.adresy tr {
        margin-bottom: 30px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Intro
       ───────────────────────────────────────────────────────────────── */
    #hp_intro {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px 60px;
    }
    
    #hp_intro .col-left {
        text-align: center;
        order: 2;
    }
    
    #hp_intro .col-right {
        order: 1;
    }
    
    #hp_intro .col-left h2 {
        font-size: 3.6rem;
    }

    /* HP Benefits */
    #hp_benefits .benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #hp_benefits .benefit {
        padding: 20px;
    }

    /* ─────────────────────────────────────────────────────────────────
       HP Countdown
       ───────────────────────────────────────────────────────────────── */
    #hp_countdown {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    #hp_countdown_wrapper::before {
        top: -30px;
        height: 40px;
    }
    
    .count-left {
        min-width: 100%;
    }
    
    .count-left .count-title {
        font-size: 2.6rem;
    }
    
    .count-right {
        justify-content: center;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kdo jsme
       ───────────────────────────────────────────────────────────────── */
    #kdo_jsme {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }
    
    #kdo_jsme_wrapper::after {
        height: 50px;
    }
    
    #kdo_jsme .col-left {
        max-width: 100%;
        text-align: center;
    }
    
    #kdo_jsme .col-left h2 {
        font-size: 3.2rem;
    }
    
    #kdo_jsme .col-right {
        width: 100%;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Slovo
       ───────────────────────────────────────────────────────────────── */
    #hp_slovo {
        flex-direction: column;
        padding: 70px 20px;
        text-align: center;
    }
    
    #hp_slovo .col-left img {
        width: 200px;
        height: 200px;
    }
    
    #hp_slovo .col-right {
        max-width: 100%;
        text-align: center;
    }
    
    #hp_slovo .col-right p {
        padding-left: 0;
        font-size: 1.8rem;
    }
    
    #hp_slovo .col-right p::before {
        display: none;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Galerie
       ───────────────────────────────────────────────────────────────── */
    #hp_galerie {
        padding: 50px 20px;
    }
    
    #hp_galerie h2 {
        font-size: 3.2rem;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .galerie-grid img {
        height: 200px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Info
       ───────────────────────────────────────────────────────────────── */
    #hp_info {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    #hp_info_wrapper::before {
        top: -40px;
        height: 50px;
    }
    
    .info-left h2 {
        font-size: 2.6rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Call to action
       ───────────────────────────────────────────────────────────────── */
    #hp_call_to_action {
        padding: 70px 20px;
    }
    
    #hp_call_to_action_wrapper::before {
        top: -40px;
        height: 50px;
    }
    
    #hp_call_to_action > div:first-child {
        font-size: 2.4rem;
    }
    
    #hp_call_to_action > div:nth-child(2) {
        font-size: 3.6rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Patička
       ───────────────────────────────────────────────────────────────── */
    #paticka {
        grid-template-columns: repeat(2, 1fr);
        padding: 50px 20px 35px;
    }
    
    footer::before {
        top: -45px;
        height: 55px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Stránky
       ───────────────────────────────────────────────────────────────── */
    #content_obsah.struktura main {
        padding: 50px 20px;
    }
    
    /* Události */
    #content_obsah.udalosti main {
        padding: 50px 20px;
    }
    
    .udalosti_uvod header h1 {
        font-size: 3.2rem;
    }
    
    /* Detail události */
    #content_obsah.udalost_detail main {
        padding: 50px 20px;
    }
    
    .udalost_uvod header h1 {
        font-size: 3rem;
    }
    
    .udalost_info_table th {
        width: 45%;
    }
    
    /* Formulář */
    .udalost_registrace_form {
        padding: 30px;
    }
    
    .udalost_registrace_form h2 {
        font-size: 2.6rem;
    }
    
    .form_line_inline {
        flex-direction: column;
        gap: 0;
    }
    
    .form_line_half,
    .form_line_third,
    .form_line_two_thirds {
        flex: none;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINT: 768px - Tablety (portrait)
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    
    /* Utility */
    .in {
        padding: 0 15px;
    }
    
    /* Nadpisy */
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Intro
       ───────────────────────────────────────────────────────────────── */
    #hp_intro {
        padding: 30px 15px 50px;
    }
    
    #hp_intro .col-left h2 {
        font-size: 3rem;
    }
    
    #hp_intro .col-left p {
        font-size: 1.6rem;
    }
    
    #hp_intro .col-right img {
        border-radius: 15px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Countdown
       ───────────────────────────────────────────────────────────────── */
    #hp_countdown {
        padding: 35px 15px;
    }
    
    .count-left .count-title {
        font-size: 2.2rem;
    }
    
    .count-item {
        padding: 20px 22px;
        min-width: 80px;
    }
    
    .count-item .count-number {
        font-size: 2.8rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kdo jsme
       ───────────────────────────────────────────────────────────────── */
    #kdo_jsme {
        padding: 50px 15px;
    }
    
    #kdo_jsme .col-left h2 {
        font-size: 2.8rem;
    }
    
    #kdo_jsme .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #kdo_jsme .box {
        padding: 25px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Slovo
       ───────────────────────────────────────────────────────────────── */
    #hp_slovo {
        padding: 60px 15px;
        gap: 40px;
    }
    
    #hp_slovo .col-left img {
        width: 180px;
        height: 180px;
    }
    
    #hp_slovo .col-right p {
        font-size: 1.7rem;
    }
    
    #hp_slovo .col-right > div:first-of-type {
        font-size: 2rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Galerie
       ───────────────────────────────────────────────────────────────── */
    #hp_galerie {
        padding: 40px 15px;
    }
    
    #hp_galerie h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }
    
    .galerie-grid {
        gap: 12px;
    }
    
    .galerie-grid img {
        height: 150px;
        border-radius: 12px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Info
       ───────────────────────────────────────────────────────────────── */
    #hp_info {
        padding: 35px 15px;
    }
    
    .info-left h2 {
        font-size: 2.2rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Call to action
       ───────────────────────────────────────────────────────────────── */
    #hp_call_to_action {
        padding: 60px 15px;
    }
    
    #hp_call_to_action > div:first-child {
        font-size: 2rem;
    }
    
    #hp_call_to_action > div:nth-child(2) {
        font-size: 3rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Patička
       ───────────────────────────────────────────────────────────────── */
    #paticka {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 45px 15px 30px;
    }
    
    #paticka .column {
        text-align: center;
    }
    
    #paticka .column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Social link centrování */
    #paticka .column .social-link {
        justify-content: center;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Copyright
       ───────────────────────────────────────────────────────────────── */
    #copyright {
        padding: 20px 15px;
    }
    
    #copyright span {
        display: block;
        margin: 5px 0;
    }
    
    #copyright span:not(:first-child)::before {
        content: none;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Stránky
       ───────────────────────────────────────────────────────────────── */
    #content_obsah.struktura main {
        padding: 40px 15px;
    }
    
    .obsah_uvod header h1 {
        font-size: 2.8rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kontakty - menší obrázky
       ───────────────────────────────────────────────────────────────── */
    .tinymce table.kontakty.lide td img {
        width: 150px;
        min-width: 150px;
        height: 150px;
    }

    /* Události */
    #content_obsah.udalosti main {
        padding: 40px 15px;
    }
    
    .udalosti_uvod header h1 {
        font-size: 2.8rem;
    }
    
    .udalosti_vypis {
        grid-template-columns: 1fr;
    }
    
    .udalosti_vypis .udalost {
        padding: 25px;
    }
    
    /* Detail události */
    #content_obsah.udalost_detail main {
        padding: 40px 15px;
    }
    
    .udalost_uvod header h1 {
        font-size: 2.6rem;
    }
    
    /* Tabulka info - stack na mobilu */
    .udalost_info_table {
        border-radius: 12px;
    }
    
    .udalost_info_table table,
    .udalost_info_table thead,
    .udalost_info_table tbody,
    .udalost_info_table th,
    .udalost_info_table td,
    .udalost_info_table tr {
        display: block;
    }
    
    .udalost_info_table th {
        width: 100%;
        padding: 12px 15px 5px;
    }
    
    .udalost_info_table td {
        padding: 5px 15px 15px;
    }
    
    .udalost_info_table tr:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Formulář
       ───────────────────────────────────────────────────────────────── */
    .udalost_registrace_form {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .udalost_registrace_form h2 {
        font-size: 2.4rem;
    }
    
    .form_section h3 {
        font-size: 1.8rem;
    }
    
    .form_line {
        margin-bottom: 20px;
    }
    
    .form_line input,
    .form_line textarea {
        padding: 12px 15px;
    }
    
    .platba_option {
        padding: 12px 15px;
    }
    
    .udalost_registrace_form button[type="submit"] {
        width: 100%;
        padding: 16px 30px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kontakty tabulky
       ───────────────────────────────────────────────────────────────── */
    .tinymce table.kontakty {
        display: block;
    }
    
    .tinymce table.kontakty tr {
        display: block;
        margin-bottom: 20px;
    }
    
    .tinymce table.kontakty th,
    .tinymce table.kontakty td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .tinymce table.kontakty.lide td:last-child {
        width: 100%;
        text-align: center;
    }
    
    .tinymce table.kontakty.lide td img {
        margin: 0 auto;
    }
    
    /* TINYMCE */
    .tinymce h2 {
        font-size: 2.4rem;
        margin: 30px 0 15px;
    }
    
    .tinymce h3 {
        font-size: 2rem;
    }
    
    /* FAQ */
    .faq-item summary {
        padding: 18px 45px 18px 20px;
    }
    
    .faq-content {
        padding: 0 20px 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINT: 576px - Velké mobily
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
    
    /* Záhlaví */
    #zahlavi .in {
        padding: 10px 15px;
        min-height: 60px;
    }
    
    #zahlavi .logo img {
        height: 40px;
    }
    
    /* Nav drawer */
    .nav_drawer_inner {
        width: 100%;
        padding: 70px 20px 30px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Intro
       ───────────────────────────────────────────────────────────────── */
    #hp_intro {
        padding: 25px 15px 40px;
    }
    
    #hp_intro .col-left h2 {
        font-size: 2.6rem;
    }
    
    #hp_intro .col-left .label-vlna {
        font-size: 1.8rem;
    }
    
    #hp_intro .btn {
        width: 100%;
        text-align: center;
        padding: 14px 25px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Countdown
       ───────────────────────────────────────────────────────────────── */
    #hp_countdown {
        padding: 30px 15px;
    }
    
    #hp_countdown_wrapper::before {
        top: -25px;
        height: 35px;
    }
    
    .count-left .count-title {
        font-size: 2rem;
    }
    
    .count-right {
        gap: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .count-item {
        padding: 15px 12px;
        min-width: 0;
        flex: 1;
        border-radius: 12px;
    }
    
    .count-item .count-number {
        font-size: 2.4rem;
    }
    
    .count-item .count-label {
        font-size: 1rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Kdo jsme
       ───────────────────────────────────────────────────────────────── */
    #kdo_jsme {
        padding: 40px 15px;
    }
    
    #kdo_jsme_wrapper::after {
        height: 40px;
    }
    
    #kdo_jsme .col-left h2 {
        font-size: 2.4rem;
    }
    
    #kdo_jsme .col-left .label-vlna {
        font-size: 1.8rem;
    }
    
    #kdo_jsme .box {
        padding: 20px;
        border-radius: 12px;
    }
    
    #kdo_jsme .box h3 {
        font-size: 1.8rem;
    }
    
    #kdo_jsme .btn {
        width: 100%;
        text-align: center;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Slovo
       ───────────────────────────────────────────────────────────────── */
    #hp_slovo {
        padding: 50px 15px;
        gap: 30px;
    }
    
    #hp_slovo .col-left img {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }
    
    #hp_slovo .col-right p {
        font-size: 1.6rem;
    }
    
    #hp_slovo .col-right > div:first-of-type {
        font-size: 1.8rem;
    }
    
    #hp_slovo .col-right > div:last-of-type {
        font-size: 1.2rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Galerie
       ───────────────────────────────────────────────────────────────── */
    #hp_galerie {
        padding: 35px 15px;
    }
    
    #hp_galerie .label-vlna {
        font-size: 1.8rem;
    }
    
    #hp_galerie h2 {
        font-size: 2.4rem;
        margin-bottom: 25px;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .galerie-grid img {
        height: 120px;
        border-radius: 10px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Info
       ───────────────────────────────────────────────────────────────── */
    #hp_info {
        padding: 30px 15px;
    }
    
    #hp_info_wrapper::before {
        top: -35px;
        height: 45px;
    }
    
    .info-left .label-vlna {
        font-size: 1.8rem;
    }
    
    .info-left h2 {
        font-size: 2rem;
    }
    
    .info-right .btn {
        width: 100%;
        padding: 15px 30px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       HP Call to action
       ───────────────────────────────────────────────────────────────── */
    #hp_call_to_action {
        padding: 50px 15px;
    }
    
    #hp_call_to_action_wrapper::before {
        top: -35px;
        height: 45px;
    }
    
    #hp_call_to_action > div:first-child {
        font-size: 1.8rem;
    }
    
    #hp_call_to_action > div:nth-child(2) {
        font-size: 2.4rem;
    }
    
    #hp_call_to_action .btn {
        width: 100%;
        padding: 15px 35px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Patička
       ───────────────────────────────────────────────────────────────── */
    footer::before {
        top: -35px;
        height: 45px;
    }
    
    #paticka {
        padding: 35px 15px 25px;
        gap: 20px;
    }
    
    #paticka .column h4 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    /* Copyright */
    #copyright {
        font-size: 1.1rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Tlačítka obecně
       ───────────────────────────────────────────────────────────────── */
    .btn {
        padding: 12px 25px;
        font-size: 1.4rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Stránky
       ───────────────────────────────────────────────────────────────── */
    #content_obsah.struktura main,
    #content_obsah.udalosti main,
    #content_obsah.udalost_detail main {
        padding: 30px 15px;
    }
    
    .obsah_uvod header h1,
    .udalosti_uvod header h1,
    .udalost_uvod header h1 {
        font-size: 2.4rem;
    }
    
    /* Události výpis */
    .udalosti_vypis .udalost {
        padding: 20px;
        border-radius: 15px;
    }
    
    .udalosti_vypis .udalost > a {
        font-size: 1.8rem;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       Formulář
       ───────────────────────────────────────────────────────────────── */
    .udalost_registrace_form {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .udalost_registrace_form h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    .form_section {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .form_section h3 {
        font-size: 1.6rem;
    }
    
    .form_line input,
    .form_line textarea {
        padding: 12px;
        border-radius: 10px;
    }
    
    .platba_option {
        padding: 12px;
        border-radius: 10px;
        flex-wrap: wrap;
    }
    
    .priplatek_badge {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .cena_summary {
        padding: 20px 15px;
    }
    
    /* ─────────────────────────────────────────────────────────────────
       TINYMCE
       ───────────────────────────────────────────────────────────────── */
    .tinymce {
        font-size: 1.5rem;
    }
    
    .tinymce h2 {
        font-size: 2.2rem;
    }
    
    .tinymce h3 {
        font-size: 1.8rem;
    }
    
    .tinymce ul,
    .tinymce ol {
        padding-left: 20px;
    }
    
    /* FAQ tabulka v obsahu */
    .tinymce table.galerie td {
        display: block;
        padding: 5px 0;
    }
    
    /* Galerie mini */
    .galerie_mini a {
        height: 100px;
    }
    
    .galerie_mini img {
        height: 100px;
    }
    
    /* Success stránka */
    .success_message {
        padding: 20px;
    }
    
    .registrace_summary {
        padding: 20px 15px;
    }
    
    .qr_platba {
        padding: 20px 15px;
    }
    
    .qr_platba img {
        max-width: 160px;
    }
    
    .important_notice {
        padding: 20px 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   BREAKPOINT: 360px - Malé mobily
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
    
    #hp_intro .col-left h2 {
        font-size: 2.2rem;
    }
    
    .count-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .count-item {
        min-width: auto;
    }
    
    #kdo_jsme .col-left h2 {
        font-size: 2.2rem;
    }
    
    #hp_call_to_action > div:nth-child(2) {
        font-size: 2rem;
    }
    
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    .galerie-grid img {
        height: 180px;
    }
    
    .udalosti_vypis .udalost > a {
        font-size: 1.6rem;
    }
    
    .udalost_registrace_form h2 {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   VYSOKÉ ROZLIŠENÍ - Retina
   ═══════════════════════════════════════════════════════════════════════ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOVER MEDIA QUERY - Pouze pro zařízení s hover
   ═══════════════════════════════════════════════════════════════════════ */

@media (hover: hover) {
    /* Efekty pouze na zařízeních s myší */
    .btn:hover {
        transform: translateY(-3px);
    }
    
    #kdo_jsme .box:hover {
        transform: translateY(-5px);
    }
    
    .udalosti_vypis .udalost:hover {
        transform: translateY(-5px);
    }
    
    .galerie-grid a:hover img {
        transform: scale(1.03);
    }
    
    .galerie_mini a:hover img {
        transform: scale(1.05);
    }
}

/* Pro touch zařízení - bez hover efektů */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }
    
    #kdo_jsme .box:active {
        transform: scale(0.98);
    }
    
    .udalosti_vypis .udalost:active {
        transform: scale(0.98);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PRINT STYLY
   ═══════════════════════════════════════════════════════════════════════ */

@media print {
    
    /* Skrytí nepotřebných prvků */
    #header_zahlavi,
    .nav_toggle,
    .nav_drawer,
    footer,
    .btn,
    .admin_box,
    #hp_countdown_wrapper,
    #hp_call_to_action_wrapper {
        display: none !important;
    }
    
    /* Reset pozadí a barev */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    /* Zobrazení URL u odkazů */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    /* Zabránění přerušení obsahu */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, blockquote {
        orphans: 3;
        widows: 3;
    }
    
    /* Stránky */
    #content_obsah.struktura main,
    #content_obsah.udalosti main,
    #content_obsah.udalost_detail main {
        padding: 0 !important;
        max-width: 100% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PREFERENCE: Snížený pohyb
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav_drawer_inner {
        transition: none;
    }
    
    .nav_toggle_bar {
        transition: none;
    }
    
    .btn:hover,
    #kdo_jsme .box:hover,
    .udalosti_vypis .udalost:hover {
        transform: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   LANDSCAPE ORIENTACE - Mobily
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-height: 500px) and (orientation: landscape) {
    
    /* Zmenšení výšky záhlaví */
    #zahlavi .in {
        min-height: 50px;
        padding: 8px 15px;
    }
    
    #zahlavi .logo img {
        height: 35px;
    }
    
    /* Zmenšení padding sekcí */
    #hp_intro {
        padding: 20px 15px 30px;
    }
    
    #hp_countdown {
        padding: 25px 15px;
    }
    
    #hp_slovo {
        padding: 40px 15px;
    }
    
    .nav_drawer_inner {
        padding: 60px 20px 20px;
    }
    
    .menu_all li a {
        padding: 12px 20px;
    }
}