/*
Theme Name: Pogner's Restaurant
Theme URI:
Description: Motyw dla restauracji Pogner's Restaurant & Kegelbahn München. Przepisany z Ruby on Rails.
Author:
Author URI:
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pogners
*/

/* ==========================================================================
   Zmienne kolorów
   ========================================================================== */
:root {
    --main-color: #260000;
    --bright-color: #FCFAF7;
    --grey-color: #C0BFBD;
}

/* ==========================================================================
   Podstawy
   ========================================================================== */
html {
    height: 100%;
}

body {
    font-family: "DejaVu Serif", Verdana, serif;
    background-color: white;
    min-height: 100%;
    position: relative;
    line-height: 1.9em;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    overflow-y: scroll;
}

a {
    color: #240006;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-wrapper {
    background-color: white;
    max-width: 1005px;
    margin: 0 auto;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1005px;
}

.row {
    margin-right: 0;
    margin-left: 0;
    padding-left: 30px;
    padding-right: 30px;
}

.col-md-6 {
    padding-left: 0;
    padding-right: 50px;
}

main {
    margin: 40px 0 50px 0;
    padding: 0;
}

/* ==========================================================================
   Nagłówek i nawigacja
   ========================================================================== */
.page-header {
    border-bottom: 0;
    margin: 0;
    padding: 0;
}

#logo {
    position: relative;
    float: left;
    width: 100%;
    text-align: center;
    margin: 50px 0;
    min-height: 119px;
}

#logo a img {
    max-width: 400px;
    height: auto;
}

nav.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70.4px;
    background-color: var(--main-color);
    border-radius: 10px;
    overflow: hidden;
}

.nav-toggle {
    display: none;
}

nav.nav-container ul {
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 17px;
}

nav.nav-container ul li {
    float: left;
    padding: 5px 15px;
}

nav.nav-container ul li a {
    color: var(--bright-color);
    font-size: 0.9em;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: block;
}

nav.nav-container ul li a:hover,
nav.nav-container ul li.current-menu-item a,
nav.nav-container ul li.current-page-ancestor a {
    color: var(--main-color);
    background-color: var(--bright-color);
}

/* clearfix po logo */
nav.nav-container::before {
    content: '';
    display: block;
    clear: both;
}

/* ==========================================================================
   Stopka
   ========================================================================== */
footer.site-footer {
    border-top: 1px solid rgba(38, 0, 0, 0.3);
    padding: 20px 0;
    width: 100%;
    font-size: 0.9em;
    line-height: 1.5em;
}

.footer-list {
    font-size: 0.9em;
    line-height: 1.5em;
    padding: 0;
    list-style: none;
}

#logo-footer {
    margin-bottom: 5px;
}

#logo-footer img {
    max-width: 200px;
    height: auto;
}

.footer-col-contact {
    text-align: left;
}

.footer-col-contact .footer-list {
    padding-left: 0;
}

.footer-impressum {
    margin-top: 10px;
    padding-left: 0;
}

.footer-impressum a {
    font-size: 0.9em;
    line-height: 1.5em;
}

footer h5 {
    margin-top: 0;
}

/* ==========================================================================
   Galeria
   ========================================================================== */
.photo-thumb {
    max-width: 200px;
    max-height: 100px;
    margin: 3px;
}

#links {
    text-align: center;
}

img.slide-content {
    max-width: 250px;
}

/* ==========================================================================
   Strona kontaktu
   ========================================================================== */
.contact-map-link {
    display: block;
}

.contact-map-img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-map-placeholder {
    width: 100%;
    height: 350px;
    background: var(--bright-color);
    border: 1px solid var(--grey-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--main-color);
}

.contact-map-placeholder p {
    margin-bottom: 16px;
    font-size: 1.1em;
}

.contact-map-placeholder-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--main-color);
    color: var(--bright-color);
    font-size: 0.9em;
}

/* ==========================================================================
   Aktionen — wspólne
   ========================================================================== */
.aktionen-wrapper {
    margin: 20px 0;
}

.aktionen-wrapper h2 {
    margin-bottom: 15px;
    margin-left: 10px;
}

/* Karuzela dla 1–3 tabliczek — tylko na mobile, na desktop ukryta */
.jcarousel-mobile {
    display: none;
}

/* Statyczny rząd (1–4 tabliczki) — liczba kolumn sterowana klasą modyfikatora */
.aktionen-static {
    display: grid;
    gap: 12px;
    padding: 10px 0;
}

.aktionen-static-3col {
    grid-template-columns: repeat(3, 1fr);
}

.aktionen-static-4col {
    grid-template-columns: repeat(4, 1fr);
}

/* Tabliczki w siatce rozciągają się na całą kolumnę */
.aktionen-static .chalkboard,
.chalkboard-empty {
    width: 100%;
    min-height: 358px;
    background-image: url('images/chalkboard-black.jpg');
    background-color: #260000;
}

/* ==========================================================================
   Chalkboard / Karuzela Aktionen
   ========================================================================== */
@font-face {
    font-family: 'DejaVu Serif';
    font-style: normal;
    font-weight: 400;
    src: local('DejaVu Serif'), local('DejaVuSerif'),
         url('./fonts/DejaVuSerif.woff') format('woff');
}
@font-face {
    font-family: 'DejaVu Serif';
    font-style: italic;
    font-weight: 400;
    src: local('DejaVu Serif Italic'), local('DejaVuSerif-Italic'),
         url('./fonts/DejaVuSerif-Italic.woff') format('woff');
}
@font-face {
    font-family: 'DejaVu Serif';
    font-style: normal;
    font-weight: 700;
    src: local('DejaVu Serif Bold'), local('DejaVuSerif-Bold'),
         url('./fonts/DejaVuSerif-Bold.woff') format('woff');
}
@font-face {
    font-family: 'DejaVu Serif';
    font-style: italic;
    font-weight: 700;
    src: local('DejaVu Serif Bold Italic'), local('DejaVuSerif-BoldItalic'),
         url('./fonts/DejaVuSerif-BoldItalic.woff') format('woff');
}

@font-face {
    font-family: 'SqueakyChalkSound';
    src: url('./fonts/SqueakyChalkSound.ttf') format('truetype');
    font-display: swap;
}

.chalkboard {
    background-image: url('images/chalkboard-black.jpg');
    width: 240px;
    min-height: 358px;
    font-family: 'SqueakyChalkSound', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* W karuzeli .chalkboard jest wewnętrznym divem wewnątrz <li> */
.jcarousel li > .chalkboard {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.chalkboard a,
.chalkboard p {
    opacity: 0.85;
    text-align: center;
    padding: 10px;
    color: white;
}

.chalkboard a {
    padding: 0;
}

.jcarousel-wrapper {
    margin: 20px auto;
    position: relative;
    border: 10px solid #fff;
    border-radius: 5px;
}

.jcarousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.jcarousel ul {
    width: 20000em;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}

.jcarousel li {
    width: 100px;
    height: 370px;
    float: left;
    border: 1px solid #fff;
    box-sizing: border-box;
    background-color: #260000;
}

.jcarousel img {
    display: block;
    max-width: 150px;
    height: auto !important;
    margin-right: auto;
    margin-left: auto;
}

.jcarousel-control-prev,
.jcarousel-control-next {
    position: absolute;
    top: 50%;
    margin-top: -15px;
    width: 30px;
    height: 30px;
    text-align: center;
    background: #4E443C;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 1px #000;
    font: 24px/27px Arial, sans-serif;
    border-radius: 30px;
    box-shadow: 0 0 4px #F0EFE7;
}

.jcarousel-control-prev {
    left: 15px;
}

.jcarousel-control-next {
    right: 15px;
}

.jcarousel-pagination {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translate(-50%, 0);
    margin: 0;
}

.jcarousel-pagination a {
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    height: 10px;
    width: 10px;
    line-height: 10px;
    background: #fff;
    color: #4E443C;
    border-radius: 10px;
    text-indent: -9999px;
    margin-right: 7px;
    box-shadow: 0 0 2px #4E443C;
}

.jcarousel-pagination a.active {
    background: #4E443C;
    color: #fff;
    box-shadow: 0 0 2px #F0EFE7;
}

/* ==========================================================================
   Menu boczne (right-menu) - pozostawione na potrzeby innych stron
   ========================================================================== */
.right-menu {
    line-height: 1.5em;
}

.sidebar-submenu {
    margin-left: 15px;
    font-size: 0.9em;
    margin-top: 2px;
}

.right-menu ul li {
    border-radius: 10px;
    overflow: hidden;
}

.right-menu ul li a {
    padding: 5px 15px;
    display: block;
    color: #240006;
    text-decoration: none;
}

.right-menu ul li a:hover,
.right-menu ul li.active_menu > a {
    background-color: var(--main-color);
    color: var(--bright-color);
    text-decoration: none;
}

/* ==========================================================================
   Pomocnicze
   ========================================================================== */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
    font-style: italic;
}

.text-justify {
    text-align: justify;
}

/* ==========================================================================
   Menu restauracji
   ========================================================================== */

.menu-header {
    font-weight: bold;
}

/* Usuwa linie między wierszami tabeli (Bootstrap dodaje border-top na td) */
.no-border > tbody > tr > td,
.no-border > tbody > tr > th {
    border: none !important;
    vertical-align: middle;
}

/* Wyrównanie kolumn cen: stały layout zapewnia spójne szerokości we wszystkich tabelach sekcji */
.table.menu:not(.menu-lunch) {
    table-layout: fixed;
}
.table.menu:not(.menu-lunch) td.col-2 {
    width: 80px;
}
.table.menu:not(.menu-lunch) td.col-3 {
    width: 110px;
    white-space: nowrap;
}

.menu_item_name {
    font-weight: bold;
}

.menu-item-desc {
    font-size: 0.8em;
    margin: 0;
}

.dish-label {
    font-size: 0.8em;
    font-weight: bold;
    color: var(--main-color);
    line-height: 1.3em;
}

/* ==========================================================================
   Menu lunchowe (Mittagsgerichte)
   ========================================================================== */
.menu-lunch .menu_item_name {
    text-align: center;
    font-weight: normal;
}

.menu-lunch .menu-item-desc {
    text-align: center;
    font-size: 14px;
}

.menu-lunch .dish-label {
    text-align: center;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 2em;
}

.section-price {
    font-size: 0.8em;
    font-weight: bold;
}

.menu-lunch h3 {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================================================
   Przycisk toggle sidebara menu dań (widoczny tylko na mobile)
   ========================================================================== */
.sidebar-toggle {
    display: none;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 767px) {
    nav.nav-container {
        height: auto;
        min-height: 54px;
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .nav-toggle {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        align-self: stretch;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .nav-toggle-bars {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        flex-shrink: 0;
    }

    .nav-toggle-bars span {
        display: block;
        height: 3px;
        background-color: var(--bright-color);
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-toggle-label {
        color: var(--bright-color);
        font-size: 0.95em;
        font-family: inherit;
    }

    nav.nav-container.nav-open .nav-toggle-bars span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    nav.nav-container.nav-open .nav-toggle-bars span:nth-child(2) {
        opacity: 0;
    }
    nav.nav-container.nav-open .nav-toggle-bars span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    #primary-nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    nav.nav-container.nav-open #primary-nav {
        display: block;
    }

    nav.nav-container ul li {
        float: none;
        padding: 2px 5px;
    }

    nav.nav-container ul li a {
        padding: 8px 15px;
    }

    nav.nav-container ul {
        width: 100%;
    }

    .row {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Sidebar toggle — menu dań */
    .sidebar-toggle {
        order: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background-color: var(--main-color);
        color: var(--bright-color);
        border: none;
        border-radius: 8px;
        padding: 10px 15px;
        font-size: 1em;
        font-family: inherit;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .sidebar-toggle-label {
        font-weight: bold;
    }

    .sidebar-toggle-bars {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 20px;
        height: 14px;
    }

    .sidebar-toggle-bars span {
        display: block;
        height: 2px;
        background-color: var(--bright-color);
        border-radius: 1px;
        transition: transform 0.2s, opacity 0.2s;
    }

    .sidebar-toggle[aria-expanded="true"] .sidebar-toggle-bars span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .sidebar-toggle[aria-expanded="true"] .sidebar-toggle-bars span:nth-child(2) {
        opacity: 0;
    }
    .sidebar-toggle[aria-expanded="true"] .sidebar-toggle-bars span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menu-row {
        display: flex;
        flex-direction: column;
    }

    .menu-row .col-xs-8 {
        order: 2;
        width: 100%;
        float: none;
    }

    .menu-row .right-menu {
        order: 1;
        width: 100%;
        float: none;
        display: none;
        margin-bottom: 10px;
    }

    .menu-row .right-menu.sidebar-open {
        display: block;
    }

    .site-footer .col-xs-4 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }

    #logo-footer img {
        max-width: 160px;
    }

    .contact-map-placeholder {
        height: 200px;
    }

    /* Aktionen: na mobile ukryj siatkę, pokaż karuzelę */
    .aktionen-static {
        display: none;
    }

    .jcarousel-mobile {
        display: block;
    }
}
