/* ============================================================
   style.css – Heimat- und Verkehrsverein Saarwellingen e.V.
   Optimiert für PC + Mobilgeräte (August 2026)
   ============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Basis ──────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f2f4f8;
    min-height: 100vh;
    padding: 16px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 28px 36px;
    border-radius: 40px;
    box-shadow: 0 16px 40px rgba(0, 20, 40, 0.10);
    border: 1px solid rgba(0,0,0,0.03);
}

/* ── Überschriften ──────────────────────────────────────── */
h1, h2, h3 {
    color: #1e3a6f;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 0.4rem;
}

h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

/* ── Navigation ─────────────────────────────────────────── */
.umzug-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #e2edf2;
    padding-bottom: 16px;
}

.umzug-nav-item {
    background: white;
    border: 2px solid #1e3a6f;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a6f;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    text-align: center;
    white-space: nowrap;
}

.umzug-nav-item.aktiv {
    background: #1e3a6f;
    color: white;
}

.umzug-nav-item:hover {
    background: #eef3fc;
    border-color: #3a6ea5;
    text-decoration: none;
}

.umzug-nav-item.intranet-link {
    border-color: #2c5a2e;
    color: #2c5a2e;
}

.umzug-nav-item.intranet-link:hover {
    background: #e8f3e8;
    border-color: #1e4020;
}

/* Auf sehr kleinen Screens: Nav als 2-Spalten-Grid */
@media (max-width: 480px) {
    .umzug-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .umzug-nav-item {
        padding: 10px 8px;
        font-size: 0.82rem;
        text-align: center;
    }
    /* Intranet-Link nimmt volle Breite */
    .umzug-nav-item.intranet-link {
        grid-column: 1 / -1;
    }
}

/* ── Formulare ──────────────────────────────────────────── */
label {
    display: block;
    margin-top: 18px;
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.95rem;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 13px 18px;
    margin-top: 6px;
    border: 2px solid #b0c0da;
    border-radius: 60px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: white;
    transition: border-color 0.2s;
    /* Verhindert iOS-Zoom bei focus */
    -webkit-text-size-adjust: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1e3a6f;
}

textarea {
    border-radius: 20px;
    min-height: 100px;
    resize: vertical;
}

/* ── Buttons ────────────────────────────────────────────── */
button, .button {
    background: #1e3a6f;
    color: white;
    border: none;
    padding: 14px 28px;
    margin-top: 24px;
    border-radius: 60px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 30, 70, 0.18);
    transition: background 0.18s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    /* Touch-freundliche Mindestgröße */
    min-height: 44px;
    line-height: 1.3;
}

button:hover, .button:hover {
    background: #143057;
    text-decoration: none;
}

button:active, .button:active {
    transform: scale(0.97);
}

.button.small {
    padding: 7px 16px;
    font-size: 0.9rem;
    margin-top: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    min-height: 36px;
}

/* ── Tabellen (Admin-Bereich) ───────────────────────────── */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 20, 40, 0.06);
}

th {
    background: #1e3a6f;
    color: white;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    font-size: 0.9rem;
}

td {
    padding: 11px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 0.9rem;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #f9fafc; }

@media (max-width: 768px) {
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ── Meldungen ──────────────────────────────────────────── */
.fehler {
    background: #fee2e2;
    border-left: 5px solid #b91c1c;
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 20px;
    margin: 16px 0;
    font-weight: 500;
}

.fehler ul { margin-left: 18px; }

.erfolg {
    background: #d4edda;
    border-left: 5px solid #155724;
    color: #155724;
    padding: 14px 18px;
    border-radius: 20px;
    margin: 16px 0;
}

/* ── Links ──────────────────────────────────────────────── */
a {
    color: #1e3a6f;
    text-decoration: none;
    font-weight: 500;
}

a:hover { text-decoration: underline; }

/* ── Bestätigungsseite ──────────────────────────────────── */
.bestaetigung { text-align: center; }
.bestaetigung p { font-size: 1.1rem; margin: 16px 0; }

/* ── Abstände ───────────────────────────────────────────── */
.container p { margin: 0.9rem 0; }

/* ── Reihenfolge-Felder Admin ───────────────────────────── */
input[name^="reihenfolge"] {
    width: 70px !important;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px 4px;
    border: 2px solid #1e3a6f;
    border-radius: 60px;
    background: white;
    color: #000;
    font-weight: bold;
    box-sizing: border-box;
}

/* ── Hilfklassen ────────────────────────────────────────── */
.empty-field { color: #8a9bb8; font-style: italic; }
.gutachten-gruen { color: green; margin-left: 5px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid #dfe8ef;
    padding-top: 24px;
    font-size: 0.82rem;
    color: #5f7485;
}

.social-links {
    margin: 10px 0 8px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #2c577c;
    font-size: 1.5rem;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover { color: #1e3a6f; text-decoration: none; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (max 900px) */
@media (max-width: 900px) {
    .container {
        padding: 22px 24px;
        border-radius: 32px;
    }
}

/* Mobil (max 600px) */
@media (max-width: 600px) {
    body { padding: 8px; }

    .container {
        padding: 18px 16px;
        border-radius: 24px;
    }

    button, .button {
        width: 100%;
        justify-content: center;
    }

    /* Buttons nebeneinander wieder erlauben wenn nötig */
    .button.small {
        width: auto;
    }

    h1 { margin-bottom: 8px; }

    .footer { margin-top: 32px; }
}

/* Sehr klein (max 380px) */
@media (max-width: 380px) {
    .container {
        padding: 14px 12px;
        border-radius: 18px;
    }
}
