/* Grundlayout */
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #222;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #004080;
    color: #fff;
    padding: 1rem;
    flex-wrap: wrap;
}

header .logo img {
    height: 40px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* Formular */
main {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #004080;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group,
.buchung {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

label {
    flex: 1 1 150px;
    font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    flex: 2 1 250px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

textarea {
    width: 100%;
    min-height: 80px;
}

/* Buttons */
button,
.btn-primary,
.btn-secondary {
    background: #004080;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

button:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background: #0066cc;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group,
    .buchung {
        flex-direction: column;
        align-items: stretch;
    }

    label {
        flex: none;
    }

    input, select, textarea {
        width: 100%;
    }

    main {
        margin: 1rem;
        padding: 1.5rem;
    }

/* Bestätigungsseite */
.confirmation {
    text-align: center;
    padding: 2rem 1rem;
}

.confirmation h1 {
    color: #007b33;
    margin-bottom: 1.5rem;
}

.details {
    background: #f0f8ff;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.details p {
    margin: 0.4rem 0;
    font-size: 1rem;
}

.details strong {
    display: inline-block;
    width: 160px;
    color: #004080;
}

.confirmation .btn-primary {
    text-decoration: none;
    display: inline-block;
}

/* Radio-Button Gruppe */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Kleine Anpassungen für Buttons */
form button.btn-primary {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 600px) {
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Startseite / Initialisierung */
form p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

form input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
}

form button.btn-primary {
    margin-top: 0.5rem;
}

/* Vorschlagsseite Belegnummer */
.details {
    background: #f0f8ff;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem auto 2rem auto;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.details strong {
    color: #004080;
    font-size: 1.1rem;
}

form button.btn-primary {
    display: inline-block;
    margin-top: 1rem;
}

