/* ==========================
   Tschibaklawak Restaurant
   ========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f6f6f6;
    color:#222;
    line-height:1.6;
}

/* ===== Header ===== */

header{

    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 40px;

    background:#ffd400;

    box-shadow:0 3px 15px rgba(0,0,0,.2);

}

.logoBox{

    display:flex;
    align-items:center;
    gap:18px;

}

.logoBox h1{

    font-size:34px;

}

#subtitle{

    color:#444;

}

nav{

    display:flex;
    gap:30px;

}

nav a{

    text-decoration:none;

    color:#222;

    font-weight:bold;

    transition:.3s;

}

nav a:hover{

    color:white;

}

/* ===== Hero ===== */

.hero{

    height:70vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:linear-gradient(135deg,#ffe95e,#ffc107);

}

.heroContent{

    animation:fadeIn 1.2s;

}

.hero h2{

    font-size:55px;

    margin-bottom:20px;

}

.hero p{

    font-size:22px;

    margin-bottom:35px;

}

.hero button{

    padding:16px 32px;

    border:none;

    border-radius:12px;

    background:#222;

    color:white;

    cursor:pointer;

    font-size:20px;

    transition:.3s;

}

.hero button:hover{

    background:white;

    color:#222;

}

/* ===== Bereiche ===== */

section{

    padding:70px 12%;

}

section h2{

    text-align:center;

    margin-bottom:35px;

    font-size:38px;

}

/* ===== Suche ===== */

#search{

    width:100%;

    padding:15px;

    font-size:18px;

    border-radius:12px;

    border:2px solid #ffd400;

    margin-bottom:35px;

}

/* ===== Karten ===== */

#menuContainer{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

}

.card{

    background:white;

    border-radius:18px;

    padding:25px;

    box-shadow:0 8px 18px rgba(0,0,0,.15);

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

}

.card h3{

    margin-bottom:15px;

    color:#d49b00;

}

.card ul{

    padding-left:20px;

}

.card li{

    margin-bottom:10px;

}

/* ===== Kontakt ===== */

#contact{

    background:#fff6d0;

}

/* ===== Footer ===== */

footer{

    background:#222;

    color:white;

    text-align:center;

    padding:30px;

}

/* ===== Animation ===== */

@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ===== Handy ===== */

@media(max-width:800px){

header{

    flex-direction:column;

    gap:20px;

}

nav{

    flex-wrap:wrap;

    justify-content:center;

}

.hero h2{

    font-size:36px;

}

.hero p{

    font-size:18px;

}

.logoBox{

    flex-direction:column;

    text-align:center;

}

}

/* Animation */

.card{

opacity:1;
transform:none;

}

.card.show{

opacity:1;
transform:translateY(0);

transition:.8s;

}

/* Sprachleiste */

#languageBar{

margin-left:auto;

}

#languageBar button{

margin:4px;
padding:8px 10px;
font-size:18px;
border:none;
border-radius:8px;
cursor:pointer;
background:white;

}

#languageBar button:hover{

background:#222;
color:white;

}

/* Dunkelmodus */

.dark{

background:#222;
color:white;

}

.dark .card{

background:#333;
color:white;

}

.dark header{

background:#caa100;

}

.searchBox{
    position: relative;
    width: 100%;
    height: 58px;   /* gleiche Höhe wie das Eingabefeld */
    margin-bottom: 35px;
}

#search{
    width: 100%;
    height: 58px;
    padding: 0 55px 0 18px;
    font-size: 18px;
    border: 3px solid #ffd400;
    border-radius: 18px;
    background: white;
    outline: none;
    box-sizing: border-box;
}

#clearSearch{
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    display: none;
    align-items: center;
    justify-content: center;

    background: #ffd400;
    border-radius: 50%;

    font-size: 20px;
    font-weight: bold;
    line-height: 1;

    color: #444;
    cursor: pointer;
    user-select: none;
}

#clearSearch:hover{
    background: #f0c000;
    color: #000;
}

/* ===== Restaurant-Menü ===== */

.restaurantMenu{

    position:relative;

}

.restaurantButton{

    text-decoration:none;

    color:#222;

}

.restaurantDropdown{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    background:white;

    min-width:220px;

    border-radius:12px;

    box-shadow:0 8px 18px rgba(0,0,0,.2);

    overflow:hidden;

}

.restaurantDropdown a{

    display:block;

    padding:14px;

    color:#222;

    text-decoration:none;

}

.restaurantDropdown a:hover{

    background:#ffd400;

}

.restaurantMenu:hover .restaurantDropdown{

    display:block;

}

/* ===== Restaurant-Auswahl ===== */

.restaurantMenu{
    position:relative;
}

.restaurantButton{

    background:#222;
    color:white;

    border:none;

    padding:8px 14px;

    border-radius:10px;

    cursor:pointer;

    font-size:15px;

    margin-bottom:10px;

}

.restaurantDropdown{

    display:none;

    position:absolute;

    top:42px;

    left:0;

    background:white;

    border-radius:12px;

    box-shadow:0 8px 18px rgba(0,0,0,.2);

    min-width:220px;

    overflow:hidden;

    z-index:1000;

}

.restaurantDropdown a{

    display:block;

    padding:14px;

    color:#222;

    text-decoration:none;

}

.restaurantDropdown a:hover{

    background:#ffd400;

}

.restaurantMenu:hover .restaurantDropdown{

    display:block;

}

.card li{

    margin-bottom:10px;

}

.card li strong{

    float:right;

}

.cartIcon{

    margin-left:10px;

    cursor:pointer;

    border:none;

    background:#ffd400;

    border-radius:8px;

    padding:6px 10px;

}

.addCartBox{

    display:none;

    margin-top:10px;

    padding:12px;

    background:#f7f7f7;

    border-radius:12px;

}

.addCartBox button{

    margin-right:8px;

}

header{
    position:sticky;
    top:0;
    z-index:1000;
}

#cartButton{
    position:absolute;
    right:40px;
    top:8px;

    display:flex;
    align-items:center;
    gap:10px;

    padding:6px 12px;

    background:white;
    color:#222;

    border-radius:8px;

    text-decoration:none;
    font-weight:bold;

    z-index:2000;
}

#cartButton:hover{
    background:#222;
    color:white;
}

.cartHeader{

    position:sticky;
    top:0;
    z-index:1000;

    height:80px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#ffd400;

    box-shadow:0 3px 15px rgba(0,0,0,.2);

}

.cartHeader{

    position:sticky;
    top:0;
    z-index:1000;

    height:80px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#ffd400;

    box-shadow:0 3px 15px rgba(0,0,0,.2);

}

.cartHeader h1{

    margin:0;
    font-size:30px;
    color:#222;

}

.cartBack{
    position:absolute;
    left:30px;
    top:50%;
    transform:translateY(-50%);

    text-decoration:none;

    color:#222;
    font-weight:bold;

    background:white;

    padding:8px 14px;

    border-radius:10px;

    border:none;

    cursor:pointer;

    font-size:16px;
}

.cartBack:hover{

    background:#222;
    color:white;

}

.cartIconHeader{

    position:absolute;
    right:30px;

    top:50%;
    transform:translateY(-50%);

    font-size:28px;

}

.card li{

    display:grid;

    grid-template-columns: minmax(0,1fr) auto auto;

    align-items:center;

    column-gap:12px;

    margin:10px 0;

}

.dishName{

    min-width:0;

}

.dishPrice{

    white-space:nowrap;

    text-align:right;

}

.cartIcon{

    width:38px;
    height:32px;

    border:none;

    border-radius:8px;

    background:#ffd400;

    cursor:pointer;

    display:flex;

    align-items:center;
    justify-content:center;

    font-size:16px;

    flex-shrink:0;

}

.cartIcon:hover{

    background:#e8bd00;

}

.addCartBox{

    grid-column:1 / -1;

    display:none;

    margin-top:8px;

    padding:10px;

    background:#f7f7f7;

    border-radius:10px;

}

.card li{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    align-items:center;
    column-gap:12px;
    margin:10px 0;
}

.dishName{
    min-width:0;
}

.dishPrice{
    white-space:nowrap;
    text-align:right;
}

.cartIcon{
    width:38px;
    height:32px;
    padding:0;
    border:none;
    border-radius:8px;
    background:#ffd400;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:16px;
}

.cartIcon:hover{
    background:#e8bd00;
}

.addCartBox{
    grid-column:1 / -1;
    display:none;
    margin-top:8px;
    padding:10px;
    background:#f7f7f7;
    border-radius:10px;
}

/* ===== Tagesmenüs – nicht heutiger Tag ===== */

.oldMenu {
    color: #888;
}

.oldMenu .dishPrice {
    color: #888;
}

.oldMenu .disabledCart {
    background: #d0d0d0;
    color: #888;
    border: 2px solid #b5b5b5;
    cursor: not-allowed;
    opacity: 0.8;
}

.oldMenu .disabledCart:hover {
    background: #d0d0d0;
    color: #888;
    border-color: #b5b5b5;
}

.cartTotalRow{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    gap:20px;
}

#orderButton{
    margin-left:auto;

    background:#ffd400;
    color:#222;

    border:none;
    border-radius:8px;

    padding:10px 16px;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;
    white-space:nowrap;
}

#orderButton:hover{
    background:#e8bd00;
}

#orderButton:disabled{
    background:#d0d0d0;
    color:#888;
    cursor:not-allowed;
}

/* ==========================
   Warenkorb-Auswahl
   ========================== */

.addCartBox {
    display: none;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;

    width: 100%;
    box-sizing: border-box;

    margin-top: 10px;
    padding: 14px 10px;

    background: #f7f7f7;
    border-radius: 10px;
}

/* − */
.addCartBox > button:first-child {
    flex: 0 0 36px !important;
    width: 36px;
    height: 38px;

    padding: 0;
    margin: 0;

    background: #ffd21f;
    border: none;
    border-radius: 8px;

    font-size: 21px;
    font-weight: bold;
}

/* Zahl */
.addCartBox > .amount {
    flex: 0 0 22px !important;
    width: 22px;

    text-align: center;

    font-size: 18px;
    font-weight: bold;
}

/* + */
.addCartBox > button:nth-child(3) {
    flex: 0 0 36px !important;
    width: 36px;
    height: 38px;

    padding: 0;
    margin: 0;

    background: #ffd21f;
    border: none;
    border-radius: 8px;

    font-size: 21px;
    font-weight: bold;
}

/* Zum Warenkorb hinzufügen */
.addCartBox > button:last-child {
    flex: 0 1 137px !important;

    width: 137px;
    height: 69px;

    padding: 8px 10px;
    margin: 0;

    background: #ffd21f;
    border: none;
    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;
    line-height: 1.15;

    text-align: center;
}