:root {
    --blau: #008ccd;
    --rot: #e60005;
    --weiss: #ffffff;
    --schwarz: #000000;
    --hellgrau: #f4f7f9;
    --rand: #d8e1e8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--hellgrau);
    color: var(--schwarz);
}

h1 {
    margin: 0 0 1.5rem;
    padding: 1.4rem 1rem;
    background: var(--blau);
    color: var(--weiss);
    text-align: center;
    font-size: 2rem;
}

h3 {
    margin: 1rem 0 0.5rem;
    color: var(--blau);
}

form {
    max-width: 760px;
    margin: 1rem auto;
    padding: 1.2rem;
    background: var(--weiss);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

label {
    font-weight: 600;
}

input,
textarea {
    font-size: 1rem;
}

input[type="text"],
input[type="date"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 0.55rem;
    margin-top: 0.3rem;
}

input[type="number"] {
    width: 64px;
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 0.2rem 0.3rem;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--blau);
}

button {
    background: var(--blau);
    color: var(--weiss);
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: #0074aa;
}

a {
    color: var(--blau);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Kopfzeile auf der index.php */
.top-row {
    max-width: 760px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    font-size: 1.35rem;
    font-weight: 700;
}

.logout-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.logout-form button {
    background: var(--rot);
}

.logout-form button:hover {
    background: #bd0004;
}

/* Formularfelder Login/Register */
form > div {
    margin-bottom: 0.9rem;
}

/* Hauptformular index.php */
#anmeldeForm {
    max-width: 760px;
}

/* Teilnahme im Formular normal halten */
#anmeldeForm > div:first-child {
    margin-bottom: 0.8rem;
}

/* Campingplatz kompakt */
#campingplatz {
    margin-top: 0.5rem;
}

#campingplatz h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.25rem;
}

#campingplatz table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#campingplatz td {
    padding: 2px 4px;
    line-height: 1.05;
    vertical-align: middle;
}

#campingplatz td:last-child {
    width: 76px;
    text-align: right;
}

#campingplatz input[type="number"] {
    width: 60px;
    padding: 2px 4px;
}

/* WBS etwas luftiger */
#WBS table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.45rem;
}

#WBS td {
    padding: 0.2rem 0.35rem;
    vertical-align: middle;
}

#WBS > div {
    background: #eef8fc;
    border-left: 4px solid var(--blau);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}

/* Hinweise */
#notes {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 80px;
    resize: vertical;
}

/* Meldungen allgemein */
p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Zusammenfassung */
.summary-box {
    max-width: 760px;
    margin: 1rem auto;
    background: #c8f0d0;
    border: 1px solid #65b878;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.summary-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.summary-box p {
    margin: 0;
    background: transparent;
    border-left: none;
    padding: 0;
    max-width: none;
}

/* Zurück zum Login auf register.php */
.back-link {
    max-width: 760px;
    margin: 1rem auto;
    text-align: center;
}

.back-link a {
    display: inline-block;
    background: var(--weiss);
    color: var(--blau);
    padding: 0.7rem 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

small {
    display: block;
    color: #555;
    margin-top: 0.3rem;
}

/* Handy */
@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    form,
    .top-row,
    .back-link,
    .summary-box {
        margin-left: 0.8rem;
        margin-right: 0.8rem;
    }

    .welcome-text {
        font-size: 1.15rem;
    }

    #campingplatz td,
    #WBS td {
        font-size: 0.95rem;
    }
}