
.tabmenu {
    margin-bottom: 1.5rem;
}
.tabmenu:last-of-type {
    margin-bottom: 0;
}
.tabmenu .headline-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all .3s ease-in-out;
    padding: .25rem;
}
.tabmenu .headline-container span {
    display: none;
}
.tabmenu.active .headline-container span {
    display: block;

}
.tabmenu .headline-container:hover,
.tabmenu .headline-container:hover h4 {
  color: var(--main-highlight-color);
}

.tabmenu .headline-container:hover {
    background: white;
}

.headline-container::before {
    content: "▼";
    margin-right: .5rem;
    transition: all 0.3s ease;
}
  
.tabmenu[data-column-count="1"] .headline-container span {
    margin-left: .5rem;
}
.tabmenu[data-column-count="2"] .tab-content{
    padding-right: .25rem !important;
}
.tabmenu .headline-container h4 {
    display: inline;
    text-align: left;
    line-height: 1.5em;
    transition: all .3s ease-in-out;
}
.js .tab-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    padding: 0 12px;
}

/* Offener Zustand */
.js .tabmenu.active .tab-content {
    max-height: 5000px;
    padding: 12px;
}

.js .tabmenu.active .headline-container::before {
    transform: rotate(180deg);
}


.tabmenu h4, .tabmenu p {
    text-align: left;
}
.tabmenu p {
    margin-bottom: 1.5rem;
}
.menu-item {
    margin-bottom: 1rem;
}
.menu-item:last-of-type {
    margin-bottom: 0;
}
.dish-row {
    display: flex;
    align-items: baseline;   /* Name und Preis schön auf einer Linie */
    gap: 10px;
}

.dish-name {
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}
/* Das flexible Linien-Element */
.leader {
    flex: 1;                         /* füllt den Platz */
    border-bottom: 1px dashed white;  /* gestrichelte Linie */
    transform: translateY(-2px);     /* optisch auf Texthöhe */
}
.dish-price {
    font-weight: bold;
    white-space: nowrap;
}
.dish-info {
    text-align: left;
    font-size: .8rem;
}
.dish-description {
    width: 100%;
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    text-align: left;
}
.dishes-misc-info {
    text-align: left;
    display: flex;
    margin: 0 auto;
    justify-content: center;
}
.dishes-misc-info >div{
    border: 2px solid white;
    padding: .4rem;
    display: flex;
    flex-direction: column;
}
.dishes-misc-info >div span{
    line-height: 1.15em;
}
.dishes-misc-info >div span:first-of-type{
    font-size: 1.25rem;
}
.dishes-misc-info >div:first-of-type{
    border-right: none;
}
.right-group {
    margin-left: auto;        /* pushes this group to the right */
    display: flex;
    gap: 10vw;                /* space between item 2 and 3 */
    font-size: 1rem;
    font-weight: bold;
}
/* mobile */
@media (max-width: 768px) {
    .dish-price {
        font-size: 1rem;
    }
    .dish-name {
        font-size: 1.1rem;
        white-space: normal;
        text-align: left;
    }
    .tabmenu[data-column-count="2"] .right-group {
        flex: 1 1 100%;
        justify-content: space-between;
        padding: 0 1rem;
    }
    .tabmenu[data-column-count="2"] .headline-container {
        flex-wrap: wrap;
    }
    .tabmenu[data-column-count="2"] .dish-row {
        flex-wrap: wrap;
    }
    .tabmenu[data-column-count="2"] .dish-row .dish-name {
        flex: 1 1 50%;
        font-size: 1rem;
    }
    .tabmenu[data-column-count="2"] .dish-row .leader {
        flex: 1 1 50%;
        display: none;
    }
    .tabmenu[data-column-count="2"] .menu-item {
        border-bottom: 1px dashed white;
        padding-bottom: 1rem;
    }
    .tabmenu[data-column-count="2"] .menu-item .dish-description {
        margin-bottom: 0;
    }
}