body {
    font-family: 'Helvetica', sans-serif;
    text-align: center; /* Zentriert den Text global */
    font-size: small;
}

header {
    text-align: center;
}

nav {
    display: flex;
    justify-content: center; /* Zentriert die Navigation */
    margin-top: 10px;
    font-size: large;
}

nav a {
    text-decoration: none;
    padding: 5px 20px;
    transition: font-size 0.2s, color 0.2s;
    color: #0f1880; /* Dunkles Blau */
}

nav a:hover {
    background-color: transparent;
    font-size: 1.15em;
}

nav a.active {
    font-weight: bold;
}

.logo {
    margin: 20px auto; /* Zentriert das Logo */
    display: block;
    width: 100%;
    color: #0f1880; /* Dunkles Blau */
}

.card h4, .card p {
    line-height: 1.3;
    text-align: center;
}

/* Zentriert Formularelemente */
#imageInput, #messageInput, #selectImageButton, #uploadButton, 
#numberInput, #streetInput, #postalCodeInput, #cityInput, #submitButton {
    display: block;
    margin: 10px auto;
}

/* Zentriert den Antwort-Container */
#responseContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#responseMessage {
    margin-top: 10px;
}

#icon {
    margin-top: 15px;
    display: none;
    width: 20px;
    height: 20px;
}

#currentDayLabel {
    font-size: 1.8rem;  /* größerer Text */
    font-weight: bold;  /* fett */
    margin: 0 1rem;     /* Abstand zu den Pfeilen */
}

#currentDayLabelAvail {
    font-size: 1.8rem;  /* größerer Text */
    font-weight: bold;  /* fett */
    margin: 0 1rem;     /* Abstand zu den Pfeilen */
}

/* Overlay-Panel */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 80vh;              /* begrenzt die Höhe auf die Viewport-Höhe */
    overflow-y: auto;              /* interner Scroll */
    -webkit-overflow-scrolling: touch; /* sanftes Scrollen auf iOS */
    overscroll-behavior: contain;  /* verhindert Scroll-Bounce nach außen */
}

.overlay-content .button-row {
    margin-top: auto;              /* drückt die button-row nach unten */
    flex-shrink: 0;                /* verhindert dass button-row gequetscht wird */
}

.overlay-content h2 {
    margin-top: 0;
    text-align: center;
}

.overlay-content input,
.overlay-content select {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    width: 100%;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.sub-button {
    flex: 1;
    background-color: #0f1880;
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.round-first-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #0f1880;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.round-first-btn:hover {
    transform: scale(1.1);
}

.round-second-btn {
    position: fixed;
    bottom: 2rem;
    right: 7rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #0f1880;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.round-second-btn:hover {
    transform: scale(1.1);
}

.round-third-btn {
    position: fixed;
    bottom: 2rem;
    right: 12rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #0f1880;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.round-third-btn:hover {
    transform: scale(1.1);
}

.round-fourth-btn {
    position: fixed;
    bottom: 2rem;
    right: 17rem;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: #0f1880;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.round-fourth-btn:hover {
    transform: scale(1.1);
}

.primary-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #0f1880;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-action-btn:hover {
    transform: translateY(-2px);
}

.primary-action-btn .btn-icon {
    font-size: 18px;
}

.btn-primary{
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    flex: 1;
    border: none;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;

}

.btn-primary:hover {
    background: linear-gradient(135deg, #00a085, #00b894);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    flex: 1;
    border: none;
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}