/* ============================================================
   Corporate-Schriften (lokal auf der Subdomain).
   Ordner "webFonts" nach public/assets/ legen (neben diese Datei).
   Lokales Hosting vermeidet das CORS-Problem beim Laden von www.
   ============================================================ */
@font-face {
    font-family: 'CorporateS-Light';
    src: url('webFonts/CorporateSLight/font.woff2') format('woff2'),
         url('webFonts/CorporateSLight/font.woff')  format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IsonormD';
    src: url('webFonts/IsonormStandardD/font.woff2') format('woff2'),
         url('webFonts/IsonormStandardD/font.woff')  format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Headlines IMMER IsonormD + Versalien, Fliesstext in CorporateS-Light. */
    --font-display: 'IsonormD', "Segoe UI", Arial, sans-serif;
    --font-body:    'CorporateS-Light', "Segoe UI", Arial, sans-serif;

    --gold:       #be9f56;
    --gold-dark:  #a8893f;
    --ink:        #1c1c1c;
    --muted:      #6b6b6b;
    --line:       #e4e1d8;
    --bg:         #ffffff;
    --bg-soft:    #fefefe;
    --error:      #b23a3a;
    --ok:         #2f7d4f;
    --radius:     4px;
    --maxw:       620px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    padding-top: 36px;                 /* Freiraum oben (Logo klebt sonst am Rahmen) */
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--bg-soft);
    background-image: url('img/ball26-alpha-11.png');
    background-repeat: no-repeat;
    background-position: right bottom;  /* Ball unten rechts verankert */
    background-attachment: scroll;      /* NICHT fixed -> wandert nicht nach oben */
    background-size: 58%;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Links: gold-dark, ohne Unterstrich; Hover in Gold */
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px 20px 64px;
}

header.brand {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: left;
    padding: 40px 20px 4px;
    background-image: url('img/logo-380.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 33%;
}
.hero { margin: 0; line-height: 1; }
.hero-line {
    font-family: var(--font-display);
    display: table;                 /* eigener Block, Gold umschliesst nur den Text */
    background: var(--gold);
    color: #fff;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: .03em;
    line-height: 1;
    padding: .14em .20em .01em;
}
.hero-1 { font-size: 3.2rem; }
.hero-2 { font-size: 2rem; margin-top: .16em; }
.hero-sub {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: .05em;
    font-weight: normal;
    font-size: 1.15rem;
    margin: .95em 0 0;
}
.hero-copy {
    font-family: var(--font-body);
    color: #555;
    font-size: 1rem;
    line-height: 1.55;
    margin: 1.1em 0 0;
}
.hero-copy a, .hero-copy .accent { color: var(--gold-dark); }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* Stufenanzeige */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    list-style: none;
    padding: 0;
}
.steps li {
    flex: 1;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    padding-top: 10px;
    border-top: 3px solid var(--line);
    transition: color .2s, border-color .2s;
}
.steps li.active { color: var(--ink); border-top-color: var(--gold); font-weight: 700; }
.steps li.done   { color: var(--gold-dark); border-top-color: var(--gold-dark); }

.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

h2.step-title { font-family: var(--font-display); font-weight: normal; text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem; margin: 0 0 4px; }
p.step-hint { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }

label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin: 16px 0 6px;
}
label .req { color: var(--gold-dark); }

input[type=email],
input[type=text],
input[type=password],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
}
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8893f' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
input:focus,
select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    border-color: var(--gold);
}

/* Datei-Upload */
.filebox {
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    background: var(--bg-soft);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.filebox:hover, .filebox.drag { border-color: var(--gold); background: #fffdf6; }
.filebox input { display: none; }
.filebox .icon { font-size: 1.6rem; color: var(--gold-dark); }
.filebox .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.filebox .chosen { font-weight: 600; margin-top: 8px; word-break: break-all; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* Einwilligung */
.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 22px 0 6px;
    font-size: .88rem;
    color: var(--muted);
}
.consent input { margin-top: 3px; flex: 0 0 auto; }
.consent a { color: var(--gold-dark); }

/* Buttons */
.actions { display: flex; gap: 12px; margin-top: 26px; }
button {
    font: inherit;
    cursor: pointer;
    border-radius: var(--radius);
    padding: 13px 22px;
    border: 1px solid var(--gold);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .85rem;
}
button.primary { background: var(--gold); color: #fff; }
button.primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
button.ghost { background: transparent; color: var(--gold-dark); }
button:disabled { opacity: .55; cursor: not-allowed; }

/* Meldungen */
.msg { padding: 12px 14px; border-radius: var(--radius); margin: 16px 0 0; font-size: .92rem; display: none; }
.msg.show { display: block; }
.msg.error { background: #fbecec; color: var(--error); border: 1px solid #f0cccc; }
.msg.info  { background: #fbf7e8; color: var(--gold-dark); border: 1px solid #ecdfb4; }
.msg.ok    { background: #ecf6f0; color: var(--ok);   border: 1px solid #c8e6d4; }

.terms {
    margin-top: 18px;
    font-size: .8rem;
    color: var(--muted);
    background: var(--bg-soft);
    border-left: 3px solid var(--gold);
    padding: 12px 14px;
}

footer.legal {
    text-align: center;
    margin-top: 30px;
    font-size: .8rem;
    color: var(--muted);
}
footer.legal a { color: var(--gold-dark); margin: 0 8px; }

/* Overlay für Datenschutz / Teilnahmebedingungen – Formular bleibt erhalten */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,28,28,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.modal-overlay[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 12px 44px rgba(0,0,0,.28); animation: modalIn .18s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: normal; font-size: 1.15rem; margin: 0; color: var(--ink); }
.modal-close { background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; text-transform: none; letter-spacing: 0; font-weight: 400; width: auto; flex: 0 0 auto; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-body h2 { font-size: 1.02rem; margin: 22px 0 6px; }
.modal-body h2:first-child { margin-top: 0; }
.modal-body p, .modal-body li { font-size: .92rem; color: #333; line-height: 1.55; }
.modal-body ul { padding-left: 20px; }
.modal-body .highlights { list-style: none; padding: 0; margin: 16px 0 6px; }
.modal-body .highlights li { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.modal-body .highlights li:last-child { border-bottom: 1px solid var(--line); }
.modal-body .ph { background: #fff6df; padding: 0 4px; border-radius: 3px; }
.modal-body .stand { font-size: .82rem; color: #777; margin-top: 18px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); text-align: right; }

.ende-h { font-family:var(--font-display); text-transform:uppercase; letter-spacing:.05em; color:#fff; background:var(--gold); display:table; padding:.14em .22em .1em; font-size:1.5rem; margin:0 0 16px; }
.eco-list { list-style:none; padding:0; margin:18px 0 0; }
.eco-list li { padding:11px 0; border-top:1px solid var(--line); font-size:.95rem; line-height:1.5; }
.eco-list li:last-child { border-bottom:1px solid var(--line); }
.eco-list a { font-weight:700; }
.ende-gruss { margin-top:24px; font-size:.95rem; }

@media (max-width: 520px) {
    body { background-size: 130%; background-position: right bottom; padding-top: 24px; }
    header.brand { background-size: 46%; }
    .hero-1 { font-size: 2.4rem; }
    .hero-2 { font-size: 1.55rem; }
    .steps li { font-size: 0; padding-top: 8px; }   /* nur Balken auf Mobil */
    .actions { flex-direction: column-reverse; }
    button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .step.active { animation: none; }
}

/* Mehrzeiliger Erfolgstext (Zeilenumbrüche aus der Servermeldung anzeigen) */
#successText { white-space: pre-line; }

/* Erfolg: "Vielen Dank" gross in Gold */
.danke-gold {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gold);
    font-size: 2.4rem;
    line-height: 1.05;
    margin: 0 0 14px;
}
@media (max-width: 520px) {
    .danke-gold { font-size: 1.9rem; }
}
