/* Wanderformular – schlichtes, sauberes Layout */

:root {
    --bg:      #f4f6f4;
    --card:    #ffffff;
    --text:    #23302a;
    --muted:   #6b7a72;
    --border:  #d9e0da;
    --primary: #2f7d4f;
    --primary-dark: #276942;
    --ok:      #2f7d4f;
    --warn:    #9a6a00;
    --error:   #b3261e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 2rem 1rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    display: flex;
    justify-content: center;
}

.card {
    background: var(--card);
    width: 100%;
    max-width: 440px;
    padding: 1.75rem 1.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.card--wide { max-width: 820px; }

h1 {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
}

.subtitle {
    margin: -1rem 0 1.25rem;
    color: var(--muted);
    font-size: 1rem;
}

.info {
    background: #eef4fb;
    border: 1px solid #cfe0f2;
    color: #245a92;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.info a { color: #1c4f85; word-break: break-all; }

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

label {
    font-weight: 600;
    font-size: 0.92rem;
    margin-top: 0.6rem;
}

input[type="email"],
input[type="number"],
input[type="password"],
input[type="text"],
select {
    padding: 0.6rem 0.65rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    width: 100%;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.15);
}

/* Honeypot: für Menschen unsichtbar */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
}

.consent input { margin-top: 0.2rem; }

.buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }

.btn--secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}
.btn--secondary:hover { background: #f0f2f0; }

.msg {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.msg--ok    { background: #e6f2eb; color: var(--ok); }
.msg--warn  { background: #fbf1dd; color: var(--warn); }
.msg--error { background: #fbe6e5; color: var(--error); }

.hint {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.hint a { color: var(--primary); }

/* Admin */
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-head .btn { flex: 0 0 auto; }

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.summary {
    background: #f0f4f1;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.section-title {
    font-size: 1.05rem;
    margin: 1.75rem 0 0.5rem;
}

.table--breakdown { max-width: 480px; }
.table--breakdown td:nth-child(2),
.table--breakdown th:nth-child(2),
.table--breakdown td:nth-child(3),
.table--breakdown th:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}
.table--breakdown tfoot th {
    border-top: 2px solid var(--border);
    border-bottom: none;
    color: var(--text);
    text-transform: none;
    font-size: 0.9rem;
    padding-top: 0.6rem;
}
.table--breakdown tfoot th:nth-child(1) { text-align: left; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.table th, .table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}
.table tbody tr:hover { background: #fafbfa; }
