/* style.css - Einheitliches Design für das Jugendumzug‑System */
/* Farben und Formen angelehnt an die mobile Ergebnisseite */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f2f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 25px 30px;
    border-radius: 48px;
    box-shadow: 0 20px 40px rgba(0, 20, 40, 0.12);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Überschriften */
h1, h2, h3 {
    color: #1e3a6f;
    font-weight: 600;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Formulare */
label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: #1f2a44;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 16px 20px;
    margin-top: 8px;
    border: 2px solid #b0c0da;
    border-radius: 60px;
    font-size: 1rem;
    outline: none;
    background: white;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1e3a6f;
}

textarea {
    border-radius: 30px;
    min-height: 100px;
}

/* Buttons */
button, .button {
    background: #1e3a6f;
    color: white;
    border: none;
    padding: 16px 32px;
    margin-top: 30px;
    border-radius: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 30, 70, 0.2);
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .button:hover {
    background: #143057;
}

button:active, .button:active {
    transform: scale(0.97);
}

.button.small {
    padding: 8px 20px;
    font-size: 1rem;
    margin-top: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tabellen (z.B. in admin.php) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 20, 40, 0.06);
}

th {
    background: #1e3a6f;
    color: white;
    font-weight: 600;
    padding: 14px 10px;
    text-align: left;
    font-size: 0.95rem;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background: #f9fafc;
}

/* Für kleine Bildschirme Tabelle scrollbar machen */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Fehlermeldungen */
.fehler {
    background: #fee2e2;
    border-left: 6px solid #b91c1c;
    color: #b91c1c;
    padding: 16px 20px;
    border-radius: 30px;
    margin: 20px 0;
    font-weight: 500;
}

.fehler ul {
    margin-left: 20px;
}

/* Erfolgsmeldungen (optional für Bestätigungsseite) */
.erfolg {
    background: #d4edda;
    border-left: 6px solid #155724;
    color: #155724;
    padding: 16px 20px;
    border-radius: 30px;
    margin: 20px 0;
}

/* Links */
a {
    color: #1e3a6f;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Bestätigungsseite speziell */
.bestaetigung {
    text-align: center;
}

.bestaetigung p {
    font-size: 1.2rem;
    margin: 20px 0;
}

/* Login-Seite (passt automatisch durch .container) */
.password-input {
    /* wird bereits durch input[type="password"] gestylt */
}

/* Abstand unten für Container */
.container p {
    margin: 1rem 0;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px 15px;
        border-radius: 30px;
    }
    h1 {
        font-size: 1.8rem;
    }
    button, .button {
        width: 100%;
    }
}
/* Reihenfolge-Felder in der Admin-Tabelle – oval, groß, ohne Pfeile */
input[name^="reihenfolge"] {
    width: 100px !important;           /* breit genug für zweistellige Zahlen */
    text-align: center;
    font-size: 1.4rem;                 /* etwas größer */
    padding: 10px 5px;
    border: 2px solid #1e3a6f;
    border-radius: 60px;                /* oval */
    background: white;
    color: #000000;
    font-weight: bold;
    box-sizing: border-box;
}
.empty-field { color: #8a9bb8; font-style: italic; }

.umzug-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}
.umzug-nav-item {
    background: white;
    border: 2px solid #1e3a6f;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a6f;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
}
.umzug-nav-item.aktiv {
    background: #1e3a6f;
    color: white;
}
.umzug-nav-item:hover {
    background: #e6eaf0;
}
.umzug-nav-item.aktiv:hover {
    background: #143057;
}
.gutachten-gruen { color: green; margin-left: 5px; }


/* === Zusätzliche Klassen für das Intranet-Portal === */
.topnav {
    background: #1e3a6f;
    overflow: hidden;
    border-radius: 60px;
    margin-bottom: 25px;
    display: flex;
    gap: 5px;
    padding: 5px 20px;
}
.topnav a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
}
.topnav a:hover {
    background: #143057;
    text-decoration: none;
}
.card {
    background: white;
    border-radius: 30px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 20, 40, 0.06);
    border: 1px solid #eef2f9;
}
.message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 60px;
    margin-bottom: 20px;
    font-weight: 500;
}
.card table {
    margin-top: 15px;
}
/* Accordion-Stile für Adminbereich */
.accordion-item {
    margin-bottom: 20px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 20, 40, 0.06);
    border: 1px solid #eef2f9;
    overflow: hidden;
}
.accordion-header {
    background: #1e3a6f;
    color: white;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.accordion-header:hover {
    background: #143057;
}
.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: bold;
}
.accordion-content {
    padding: 20px 25px;
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
}
.accordion-content.open {
    display: block;
}
/* Benutzerverwaltung – schöner */
table {
    border-radius: 20px;
    overflow: hidden;
}
th {
    font-weight: 600;
    letter-spacing: 0.5px;
}
td {
    vertical-align: middle;
}
select, button {
    cursor: pointer;
    transition: all 0.2s;
}
button:hover {
    transform: scale(1.02);
}
label {
    font-weight: normal;
    margin: 0;
}

/* Benutzerverwaltung – kompakt und umbrechend */
.accordion-content table {
    font-size: 0.9rem;
}
.accordion-content td, .accordion-content th {
    vertical-align: middle;
}
@media (max-width: 900px) {
    .accordion-content td, .accordion-content th {
        padding: 6px 4px;
    }
    .accordion-content label {
        font-size: 0.75rem;
    }
}