/* HofzuHof — minimales Mobile-first-Stylesheet */

:root {
    --accent: #007840;
    --accent-dark: #005a30;
    --text: #1e1e1e;
    --muted: #6e6e6e;
    --bg: #fafaf8;
    --card: #ffffff;
    --border: #e3e3e0;
    --error-bg: #fff4f4;
    --error-border: #d94545;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    color: var(--accent);
}

.lead {
    color: var(--muted);
    margin: 0;
}

.branding-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.cta {
    text-align: center;
    margin: 48px 0 32px;
}

.hint {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 16px;
}

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 14px 22px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
}
.button:hover { background: #f1f1ee; }

.button-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    padding: 16px 28px;
    font-size: 1.05rem;
}
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* --- Form --- */
.form { display: flex; flex-direction: column; gap: 20px; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label, legend.field-label {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0;
}

.field-hint {
    color: var(--muted);
    font-size: 0.85rem;
}

input[type=text],
input[type=file],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
}

input[type=text]:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: var(--accent);
}

textarea { resize: vertical; min-height: 140px; }

.field-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px 16px;
    background: var(--card);
}

.radio-row { display: flex; gap: 16px; margin: 4px 0 10px; }

.radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* --- Errors --- */
.errors {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.errors ul { margin: 0; padding-left: 20px; }

/* --- Anzeige --- */
.anzeige {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 24px;
}

.anzeige-bild {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.anzeige-titel {
    font-size: 1.4rem;
    margin: 16px 0 8px;
}

.anzeige-text {
    color: #444;
    white-space: pre-wrap;
    margin: 0 0 16px;
}

.kontakt-box {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.kontakt-name { font-weight: 600; }
.kontakt-wert { color: var(--accent); margin-top: 4px; }
.kontakt-wert a { color: var(--accent); text-decoration: none; }
.kontakt-wert a:hover { text-decoration: underline; }

/* --- Actions --- */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.actions .button { flex: 1 1 auto; min-width: 130px; }

.link-box .field-label { margin-bottom: 4px; }
