* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Roboto, "Segoe UI", sans-serif;
    background: #f4f6f4;
    color: #1a1a1a;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #2e7d32;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    text-align: center;
}

header a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

main {
    padding: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Login --- */
.center-box {
    max-width: 320px;
    margin: 80px auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}
.center-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.center-box input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* --- Parzellenliste --- */
.parcel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.parcel-item {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.parcel-name { font-weight: 600; font-size: 16px; }
.parcel-email { font-size: 13px; color: #666; margin-top: 2px; }

/* --- Kamera --- */
#camera-wrapper {
    background: black;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #2e7d32;
    color: white;
}
.primary-btn:disabled {
    background: #a5c8a7;
}

/* --- Fotoliste --- */
#photos-section {
    margin-top: 20px;
}
#empty-hint {
    color: #777;
    text-align: center;
}
.photo-card {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.photo-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.photo-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field-row label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 2px;
}
.input-with-mic {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.input-with-mic input,
.input-with-mic textarea {
    flex: 1;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}
.mic-btn {
    border: none;
    background: #eef3ee;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    flex-shrink: 0;
}
.mic-btn.listening {
    background: #ffcdd2;
}
.mic-btn:disabled {
    opacity: 0.4;
}
.remove-btn {
    align-self: flex-start;
    border: none;
    background: none;
    color: #c62828;
    font-size: 13px;
    padding: 4px 0;
}

/* --- Versand --- */
#send-section {
    margin-top: 24px;
}
.status {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}
.status.success { background: #dcedc8; color: #33691e; }
.status.error-status { background: #ffcdd2; color: #b71c1c; }

.error {
    color: #b71c1c;
    font-size: 14px;
}
