/* =========================
   Basis
   ========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #017745;
    text-decoration: none;
}

a:hover {
    color: #016a3d;
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.2;
}

h2 {
    margin: 0 0 1rem 0;
}

p {
    margin: 0 0 1rem 0;
}

/* =========================
   Box / Card
   ========================= */
.box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* =========================
   Formularelemente
   ========================= */
input,
textarea,
button {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px; /* verhindert iOS Auto-Zoom */
}

textarea {
    resize: vertical;
}

/* =========================
   Button – ORANGE
   ========================= */
button {
    background: #f59628;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
    font-weight: 700;
}

button:hover {
    background: #e08418;
}

button:active {
    transform: translateY(1px);
}

/* =========================
   Sprachwahl – GRÜN
   ========================= */
.lang-switch {
    margin-bottom: 1rem;
}

/* nicht aktiv */
.lang-switch a {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    color: #0b4f2d;
    background: #bfe5d3; /* hellgrün */
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    line-height: 1;
}

/* Hover nur für nicht aktive */
.lang-switch a:not(.active):hover {
    background: #8fd3b2;
}

/* aktiv ausgewählt */
.lang-switch a.active {
    background: #017745; /* dunkelgrün */
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(1, 119, 69, 0.35);
}

/* =========================
   Consent Checkbox
   ========================= */
label.consent {
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    line-height: 1.35;
}

label.consent input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    flex: 0 0 auto;
}

/* =========================
   Messages (Subscribe / Feedback)
   ========================= */
.msg {
    font-weight: 700;
    margin-top: 0.5rem;
}

.msg-success {
    color: #017745; /* grün */
}

.msg-error {
    color: #b00020; /* rot */
}

/* =========================
   Tabellen (Admin)
   ========================= */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1rem;
    background: #ffffff;
}

th,
td {
    border: 1px solid #ccc;
    padding: 0.6rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f0f0f0;
}

/* Hervorhebung leerer Textareas */
textarea.empty {
    background: #ffe6e6;
}

/* =========================
   Mobile Optimierung
   ========================= */
@media (max-width: 600px) {
    body {
        background: #ffffff;
    }

    .box {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 1.25rem;
        min-height: 100vh;
    }

    h2 {
        font-size: 1.35rem;
    }

    input,
    textarea,
    button {
        padding: 0.95rem;
        border-radius: 10px;
    }

    .lang-switch {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .lang-switch a {
        margin: 0;
        padding: 0.55rem 1rem;
        font-size: 1rem;
    }

    label.consent {
        font-size: 1rem;
        gap: 12px;
    }
}
