html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Nur für Seiten mit App-Frame das Overflow verstecken */
body.has-app-frame {
    height: 100%;
    overflow: hidden;
}

.app-frame {
    width: 100%;
    height: calc(100dvh - 60px);
    border: none;
    margin: 0;
    padding: 0;
    display: block;
}

/**
 * App Bar Styles
 * =========================================
 * Nutzt CSS-Variablen aus defaults.css mit Fallbacks
 */

.app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 10px 0; /* Padding oben und seitlich, aber nicht unten */
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ausrichtung am oberen Rand */
    box-shadow: var(--ion-shadow-sm, 0 -2px 10px rgba(0, 0, 0, 0.1));
    z-index: 1000;
    height: 60px;
    margin: 0;
    font-family: var(--ion-font-family-base, 'Quicksand', sans-serif);
}

.app-bar-item {
    display: flex;
    flex-direction: column;
    align-items:  center;
    justify-content: center;
    color: #757575;
    text-decoration: none;
    flex-grow: 1;
    padding: 5px 0;
    height: 100%;
}

.app-bar-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.app-bar-item span {
    font-size: 0.75rem;
    padding: 1px 10px;
}

.app-bar-item.active {
    color: var(--ion-color-brand, #56035F);
}
a.app-bar-item.active span, a.app-bar-item.show span, a.app-bar-item:focus span {
    background-color: var(--ion-color-brand, #56035F);
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.app-bar-item .dropdown-toggle::after {
    display: none;
}

.app-bar .dropup .dropdown-menu {
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
    .app-bar {
        height: 50px;
    }

    .app-bar-item i {
        font-size: 1.2rem;
    }

    .app-bar-item span {
        font-size: 0.7rem;
    }

    .app-frame {
        height: calc(100dvh - 50px);
    }
}