/* Widerruf – schlankes, vertrauenswürdiges Layout. Keine externen Ressourcen. */

:root {
    --ink:      #1f2733;
    --ink-soft: #54606e;
    --line:     #dde3ea;
    --bg:       #f5f7f9;
    --card:     #ffffff;
    --accent:   #1f7a6b;   /* ruhiges Petrol – seriös, nicht aggressiv */
    --accent-d: #155d51;
    --error:    #b3261e;
    --ok:       #1f7a4d;
    --radius:   12px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 2.5rem 1rem 3rem;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    font-size: 17px;
}

.card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.9rem;
    box-shadow: 0 1px 2px rgba(20, 30, 45, .04), 0 8px 28px rgba(20, 30, 45, .06);
}

h1 {
    margin: 0 0 .9rem;
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.intro { color: var(--ink-soft); margin: 0 0 1.6rem; }

/* Felder */
.field { margin-bottom: 1.25rem; }

label {
    display: block;
    font-weight: 600;
    font-size: .96rem;
    margin-bottom: .4rem;
}

.optional { font-weight: 400; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: .7rem .8rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 107, .15);
}

.hint {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    color: var(--ink-soft);
}

.field-error {
    display: block;
    margin-top: .35rem;
    font-size: .88rem;
    color: var(--error);
    font-weight: 600;
}

.privacy {
    font-size: .85rem;
    color: var(--ink-soft);
    background: #f0f4f5;
    border-radius: 9px;
    padding: .75rem .9rem;
    margin: 1.4rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    border: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    padding: .8rem 1.4rem;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}

.btn:hover { background: var(--accent-d); }

.btn:focus-visible {
    outline: 3px solid rgba(31, 122, 107, .35);
    outline-offset: 2px;
}

.btn-ghost {
    background: transparent;
    color: var(--accent-d);
    box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover { background: #f0f4f5; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    margin-top: 1.6rem;
}

.inline { margin: 0; }

/* Zusammenfassung */
.summary {
    margin: 1.4rem 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.sum-row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: .5rem;
    padding: .7rem .9rem;
    border-top: 1px solid var(--line);
}

.sum-row:first-child { border-top: 0; }

.sum-row dt { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.sum-row dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Meldungen */
.msg-ok, .msg-error {
    border-radius: 9px;
    padding: .85rem 1rem;
    margin: 0 0 1.2rem;
    font-weight: 600;
}

.msg-ok    { background: #e7f4ed; color: var(--ok);    border: 1px solid #b9e0cb; }
.msg-error { background: #fbeae9; color: var(--error); border: 1px solid #f1c4c1; }

/* Footer + Honeypot */
.legal {
    max-width: 560px;
    margin: 1.2rem auto 0;
    text-align: center;
    font-size: .82rem;
    color: var(--ink-soft);
}

.legal a { color: var(--ink-soft); }

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

a { color: var(--accent-d); }

@media (max-width: 460px) {
    .sum-row { grid-template-columns: 1fr; gap: .15rem; }
    .actions { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
