/*
 * Angelehnt an pixelpublic.de: Gold/Khaki-Akzent auf Anthrazit, viel Weißraum,
 * ruhige Grotesk. Farben aus dem Live-CSS übernommen (CLAUDE.md §11 C).
 */

:root {
    --gold: #9a9269;
    --gold-hover: #b2ac77;
    --anthracite: #1e2129;
    --dark-grey: #303336;
    --text: #2b2b2b;
    --text-muted: #7a7a7a;
    --border: #dedede;
    --bg: #ffffff;
    --bg-soft: #f7f7f5;
    --error: #b3261e;
    --error-bg: #fdf2f1;
    --success: #4f7a3f;
    --radius: 3px;
    --maxw: 760px;
}

/* Inter, self-hosted. Variable Font deckt alle Schnitte 100-900 ab. */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */

.site-header {
    background: var(--anthracite);
    padding: 22px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo { display: block; line-height: 0; }
.logo img { display: block; height: 34px; width: auto; }

.header-note {
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* --- Inhalt --- */

.main {
    flex: 1 0 auto;
    padding: 56px 24px 72px;
}

h1 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--anthracite);
}

.lead {
    margin: 0 0 36px;
    font-size: 18px;
    color: var(--text-muted);
}

/* --- Formular --- */

.transfer-form { margin: 0; }

.field { margin-bottom: 28px; }

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0 24px;
}

label, legend {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--anthracite);
}

fieldset {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

legend { padding: 0; }

.required { color: var(--gold); }
.optional { font-weight: 400; color: var(--text-muted); }

input[type='text'],
input[type='email'],
textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(154, 146, 105, 0.18);
}

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

input[type='file'] {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

input[type='file']::file-selector-button {
    margin-right: 14px;
    padding: 8px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg);
    background: var(--anthracite);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
}

input[type='file']::file-selector-button:hover { background: var(--dark-grey); }

.hint {
    margin: 7px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Empfängerauswahl: Select im Stil der übrigen Felder, mit eigenem Pfeil
   (das Systemdreieck lässt sich nicht mitfärben). */

.select-wrap { position: relative; }

.select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    pointer-events: none;
}

select {
    width: 100%;
    padding: 12px 44px 12px 14px;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:hover { border-color: var(--gold); }

select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(154, 146, 105, 0.18);
}

/* Solange nichts gewählt ist, wirkt der Platzhalter zurückhaltend. */
select:invalid { color: var(--text-muted); }

select option { color: var(--text); }

/* Honeypot: unsichtbar, aber nicht display:none (manche Bots erkennen das). */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Aktionen --- */

.actions { margin-top: 36px; }

.button {
    display: inline-block;
    padding: 14px 30px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--gold);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease;
}

.button:hover { background: var(--gold-hover); }

.button:focus-visible {
    outline: 2px solid var(--anthracite);
    outline-offset: 2px;
}

.note {
    margin: 18px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.file-feedback {
    margin: 9px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--anthracite);
}

.file-feedback.over-limit { color: var(--error); }

/* --- Meldungen --- */

.alert {
    margin: 0 0 32px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border-left: 3px solid;
}

.alert-error {
    color: var(--error);
    background: var(--error-bg);
    border-left-color: var(--error);
}

.alert-title { margin: 0 0 6px; font-weight: 600; }
.alert ul { margin: 0; padding-left: 20px; }
.alert li + li { margin-top: 4px; }

/* --- Danke-Seite --- */

.success { max-width: 620px; }
.success-icon { margin-bottom: 22px; color: var(--success); }
.success-facts {
    margin: 0 0 36px;
    padding-left: 22px;
    color: var(--text-muted);
}
.success-facts li + li { margin-top: 6px; }

/* --- Footer --- */

.site-footer {
    padding: 26px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    background: var(--anthracite);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-company { margin: 0; }
.footer-nav { display: flex; gap: 22px; }

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.site-footer a:hover { color: var(--gold-hover); }

@media (max-width: 560px) {
    h1 { font-size: 27px; }
    .main { padding: 38px 20px 52px; }
    .lead { font-size: 17px; }
}
