/* =====================================================================
   ardda Auftraggeber-Flow (04.10.2026): Auftrag einstellen, Auftragsbörse,
   Auftragsseite. Präfix "au-", Gewerk-Picker "gp-". Baut auf home-neu.css.
   ===================================================================== */

/* ---------- Gewerk-Picker ---------- */
.gp-wrap { position: relative; }
.gp-input {
    width: 100%; border: 1.5px solid var(--hn-line); border-radius: 14px; padding: 16px 18px; font: inherit; font-size: 16px;
    background: #fff; color: var(--hn-ink); outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.gp-input:focus { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.gp-input:disabled { background: var(--hn-bg-soft); color: var(--hn-faint); }
.gp-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--hn-line);
    border-radius: 16px; box-shadow: var(--hn-shadow-lg); max-height: 360px; overflow-y: auto; padding: 6px;
}
.gp-opt { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.gp-opt:hover, .gp-opt.is-active { background: var(--hn-bg-soft); }
.gp-opt img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.gp-opt-t b { display: block; font-size: 15px; font-weight: 700; }
.gp-opt-t small { color: var(--hn-faint); font-size: 12.5px; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-has .gp-chips { margin-bottom: 10px; }
.gp-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 100px;
    background: var(--hn-dark); color: #fff; font-weight: 700; font-size: 14px;
}
.gp-chip-x { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.gp-chip-x:hover { background: rgba(255,255,255,.3); }
.gp-hint { margin-top: 8px; font-size: 13px; color: var(--hn-faint); min-height: 1em; }

/* ---------- Kopf ---------- */
.au-top { position: relative; background: var(--hn-dark); color: #fff; padding: 64px 0 150px; overflow: hidden; }
.au-top-media { position: absolute; inset: 0; }
.au-top-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.au-top-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,14,30,.94) 0%, rgba(11,14,30,.8) 45%, rgba(11,14,30,.35) 80%), linear-gradient(180deg, rgba(11,14,30,.2), rgba(11,14,30,0) 40%, rgba(11,14,30,.8)); }
.au-top .hn-wrap { position: relative; z-index: 1; }
.au-top .hn-eyebrow { color: #fecaca; }
.au-top h1 { margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 760px; }
.au-top .hn-lead { color: #cfd4ee; }
.au-top .hn-trust { margin-top: 22px; }

/* ---------- Formular-Karte ---------- */
.au-body { background: var(--hn-bg); padding: 0 0 80px; }
.au-card { position: relative; z-index: 2; margin-top: -100px; background: #fff; border: 1px solid var(--hn-line); border-radius: 24px; box-shadow: var(--hn-shadow-lg); max-width: 860px; margin-left: auto; margin-right: auto; }
.au-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 22px 28px 0; }
.au-stepdot { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--hn-faint); position: relative; }
.au-stepdot i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--hn-bg-soft); color: var(--hn-faint); font-style: normal; font-weight: 800; font-size: 13px; flex: none; }
.au-stepdot.is-done i { background: #dcfce7; color: #15803d; }
.au-stepdot.is-active { color: var(--hn-ink); }
.au-stepdot.is-active i { background: var(--hn-grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(239,68,68,.7); }
.au-stepdot::after { content: ''; flex: 1; height: 2px; background: var(--hn-line); margin: 0 14px; }
.au-stepdot:last-child::after { display: none; }
.au-step { display: none; padding: 26px 28px 30px; }
.au-step.is-active { display: block; }
.au-step h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.au-step > p.au-sub { margin: 0 0 24px; color: var(--hn-soft); font-size: 15.5px; }
.au-field { margin-bottom: 20px; }
.au-field label, .au-label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.au-field label small, .au-label small { color: var(--hn-faint); font-weight: 600; }
.au-input, .au-select, .au-textarea {
    width: 100%; border: 1.5px solid var(--hn-line); border-radius: 14px; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--hn-ink);
    background: #fff; outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.au-input:focus, .au-select:focus, .au-textarea:focus { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.au-textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.au-count { text-align: right; font-size: 12.5px; color: var(--hn-faint); margin-top: 6px; }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.au-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.au-help { font-size: 13.5px; color: var(--hn-soft); margin-top: 8px; line-height: 1.5; }
.au-note { padding: 14px 16px; border-radius: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 14px; font-weight: 600; line-height: 1.5; }
.au-note--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.au-errors { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: 14.5px; }
.au-errors ul { margin: 0; padding-left: 18px; }

/* beliebte Gewerke (Foto-Kacheln) */
.au-beliebt { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.au-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #ddd; isolation: isolate; }
.au-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.au-tile:hover img { transform: scale(1.06); }
.au-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,30,0) 35%, rgba(11,14,30,.85)); }
.au-tile span { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.au-tile.is-on { outline: 3px solid #ef4444; outline-offset: 2px; }
.au-tile.is-on::before { content: '✓'; position: absolute; right: 8px; top: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* Kacheln (Zeitrahmen) */
.au-kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.au-kachel { position: relative; }
.au-kachel input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.au-kachel span { display: block; padding: 14px 12px; border: 1.5px solid var(--hn-line); border-radius: 14px; text-align: center; font-weight: 700; font-size: 14.5px; transition: all .15s ease; }
.au-kachel span small { display: block; font-weight: 600; color: var(--hn-faint); font-size: 12.5px; margin-top: 3px; }
.au-kachel input:checked + span { border-color: #ef4444; background: #fff5f5; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.au-kachel input:focus-visible + span { outline: 2px solid #ef4444; outline-offset: 2px; }

/* Fotos */
.au-drop { border: 2px dashed #d9d2e0; border-radius: 16px; padding: 26px 18px; text-align: center; background: var(--hn-bg); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.au-drop:hover, .au-drop.is-over { border-color: #ef4444; background: #fff5f5; }
.au-drop b { display: block; font-size: 15.5px; }
.au-drop small { color: var(--hn-faint); }
.au-drop input { display: none; }
.au-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.au-thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: #eee; }
.au-thumb img { width: 100%; height: 100%; object-fit: cover; }
.au-thumb button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(11,14,30,.8); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }

/* Schalter */
.au-switch { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--hn-line); border-radius: 14px; cursor: pointer; }
.au-switch input { width: 20px; height: 20px; accent-color: #ef4444; margin-top: 2px; flex: none; }
.au-switch b { display: block; font-size: 15px; }
.au-switch small { color: var(--hn-soft); font-size: 13.5px; line-height: 1.45; }

/* Navigation */
.au-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hn-line); }
.au-nav .hn-btn { min-height: 52px; }
.au-nav .hn-btn--light { box-shadow: none; }
.au-nav-note { font-size: 13px; color: var(--hn-faint); }

/* Richtwert */
.au-richtwert { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 14px; font-weight: 600; }
.au-richtwert.is-on { display: block; }
.au-richtwert a { color: #c2410c; font-weight: 800; }

/* So geht's (unter der Karte) */
.au-how { max-width: 860px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.au-how div { background: #fff; border: 1px solid var(--hn-line); border-radius: 16px; padding: 18px; }
.au-how b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.au-how p { margin: 0; color: var(--hn-soft); font-size: 14px; line-height: 1.5; }

/* Bestätigungsseite */
.au-confirm { max-width: 640px; margin: -100px auto 0; position: relative; z-index: 2; background: #fff; border: 1px solid var(--hn-line); border-radius: 24px; box-shadow: var(--hn-shadow-lg); padding: 40px 36px; text-align: center; }
.au-confirm h2 { margin: 0 0 10px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.au-confirm p { color: var(--hn-soft); line-height: 1.6; }
.au-confirm .au-mail { display: inline-block; margin: 6px 0 16px; padding: 10px 16px; border-radius: 12px; background: var(--hn-bg-soft); font-weight: 800; color: var(--hn-ink); }
.au-confirm-steps { text-align: left; margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.au-confirm-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.au-confirm-steps i { width: 30px; height: 30px; border-radius: 50%; background: var(--hn-grad); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }

@media (max-width: 900px) {
    .au-beliebt { grid-template-columns: repeat(4, 1fr); }
    .au-kacheln { grid-template-columns: repeat(2, 1fr); }
    .au-how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .au-top { padding: 44px 0 120px; }
    .au-card { margin-top: -80px; border-radius: 20px; }
    .au-steps { padding: 16px 16px 0; }
    .au-stepdot span { display: none; }
    .au-stepdot.is-active span { display: inline; }
    .au-step { padding: 20px 16px 24px; }
    .au-row, .au-row--3 { grid-template-columns: 1fr; }
    .au-beliebt { grid-template-columns: repeat(3, 1fr); }
    .au-nav { flex-direction: column-reverse; align-items: stretch; }
    .au-nav .hn-btn { width: 100%; }
    .au-nav-note { text-align: center; }
    .au-confirm { padding: 28px 20px; margin-top: -70px; }
}

/* ---------- Auftragsbörse ---------- */
.au-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.au-chips span { padding: 4px 10px; border-radius: 100px; background: var(--hn-bg-soft); color: var(--hn-ink); font-size: 12px; font-weight: 700; }
.au-leer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--hn-line); border-radius: 22px; padding: 32px; }
.au-leer h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.au-leer p { margin: 0; color: var(--hn-soft); line-height: 1.55; }
.au-leer-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.au-leer-tiles .au-tile { display: block; text-decoration: none; }
.au-premiumhinweis { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--hn-dark); color: #fff; }
.au-premiumhinweis b { display: block; font-size: 16px; }
.au-premiumhinweis span { color: #b6bcdc; font-size: 14px; }
@media (max-width: 900px) { .au-leer { grid-template-columns: 1fr; } .au-premiumhinweis { flex-direction: column; align-items: start; } }

/* ---------- Auftragsseite ---------- */
.as-top { background: var(--hn-dark); color: #fff; padding: 44px 0 120px; position: relative; overflow: hidden; }
.as-top::before { content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%; background: #ef4444; filter: blur(140px); opacity: .25; right: -200px; top: -320px; pointer-events: none; }
.as-top .hn-wrap { position: relative; z-index: 1; }
.as-crumbs { font-size: 13px; color: #aeb5d6; margin-bottom: 14px; }
.as-crumbs a { color: #fff; font-weight: 600; }
.as-top h1 { margin: 0 0 10px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; max-width: 820px; }
.as-top .au-chips span { background: rgba(255,255,255,.12); color: #fff; }
.as-topmeta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #cfd4ee; font-size: 14.5px; margin-top: 8px; }
.as-status { display: inline-block; padding: 5px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 800; background: #dcfce7; color: #15803d; }
.as-status--vergeben { background: #dbeafe; color: #1d4ed8; }
.as-status--erledigt { background: #fef3c7; color: #b45309; }
.as-status--zu { background: #f4f4f5; color: #52525b; }

.as-body { background: var(--hn-bg); padding: 0 0 80px; }
.as-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; margin-top: -84px; position: relative; z-index: 2; }
.as-main, .as-side { display: grid; gap: 18px; }
.as-side { position: sticky; top: 90px; }
.as-card { background: #fff; border: 1px solid var(--hn-line); border-radius: 20px; padding: 24px; }
.as-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.as-card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c2410c; }
.as-card--accent { border: 2px solid #ef4444; }
.as-card--ok { border: 2px solid #22c55e; background: #f0fdf4; }
.as-card--info { background: #eff6ff; border-color: #bfdbfe; }
.as-card--warn { background: #fffbeb; border-color: #fde68a; }
.as-text { white-space: pre-line; line-height: 1.65; color: var(--hn-ink); font-size: 15.5px; overflow-wrap: anywhere; }
.as-fakten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.as-fakt { background: var(--hn-bg-soft); border-radius: 14px; padding: 12px 14px; }
.as-fakt small { display: block; font-size: 12px; color: var(--hn-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.as-fakt b { display: block; font-size: 15.5px; margin-top: 2px; }
.as-fotos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
.as-fotos a { display: block; border-radius: 14px; overflow: hidden; background: #eee; position: relative; }
.as-fotos a:first-child { grid-row: span 2; }
.as-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.as-fotos a:hover img { transform: scale(1.04); }
.as-fotos .as-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,14,30,.55); color: #fff; font-weight: 800; font-size: 18px; }
.as-angebot { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--hn-line); border-radius: 16px; }
.as-angebot.is-accepted { border-color: #22c55e; background: #f0fdf4; }
.as-angebot.is-rejected { opacity: .55; }
.as-logo { width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid var(--hn-line); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: #c2410c; font-size: 22px; }
.as-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.as-angebot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-angebot-head a { font-weight: 800; font-size: 16px; color: var(--hn-ink); }
.as-siegel { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 100px; font-size: 11.5px; font-weight: 800; background: #ecfdf5; color: #047857; }
.as-siegel--premium { background: #fef3c7; color: #b45309; }
.as-siegel--meister { background: #ede9fe; color: #6d28d9; }
.as-stars { color: #f59e0b; font-size: 13px; font-weight: 700; }
.as-angebot-meta { color: var(--hn-soft); font-size: 13.5px; margin-top: 2px; }
.as-angebot-preis { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.as-angebot-preis b { font-size: 20px; letter-spacing: -.02em; }
.as-angebot-preis span { color: var(--hn-soft); font-size: 14px; align-self: end; }
.as-angebot-text { white-space: pre-line; line-height: 1.55; font-size: 14.5px; color: var(--hn-ink); overflow-wrap: anywhere; }
.as-angebot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.as-angebot-actions .hn-btn { padding: 12px 18px; font-size: 14.5px; }
.as-kontakt { display: grid; gap: 10px; }
.as-kontakt div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; font-size: 15px; }
.as-kontakt small { color: var(--hn-faint); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.as-kontakt a { color: #c2410c; font-weight: 700; }
.as-form .au-field { margin-bottom: 14px; }
.as-form .hn-btn { width: 100%; }
.as-sperre { opacity: .55; pointer-events: none; }
.as-stern { font-size: 32px; letter-spacing: 4px; cursor: pointer; user-select: none; color: #d4d4d8; }
.as-stern span.on { color: #f59e0b; }
.as-aehnlich { display: grid; gap: 10px; }
.as-aehnlich a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.as-aehnlich img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.as-aehnlich b { display: block; font-size: 14.5px; line-height: 1.3; }
.as-aehnlich small { color: var(--hn-faint); }
.as-mini { font-size: 13.5px; color: var(--hn-soft); line-height: 1.5; }
.as-mini a { color: #c2410c; font-weight: 700; }

/* Lightbox */
.lb-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(5,7,16,.94); display: none; align-items: center; justify-content: center; }
.lb-overlay.is-open { display: flex; }
.lb-fig { margin: 0; max-width: 92vw; max-height: 90vh; display: grid; justify-items: center; gap: 10px; }
.lb-fig img { max-width: 92vw; max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lb-fig figcaption { color: #cfd4ee; font-size: 14px; min-height: 1em; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.26); }

@media (max-width: 1080px) { .as-layout { grid-template-columns: 1fr; } .as-side { position: static; } .as-fakten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .as-top { padding: 28px 0 100px; }
    .as-card { padding: 18px; border-radius: 16px; }
    .as-fotos { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
    .as-fotos a:first-child { grid-column: span 2; }
    .as-angebot { grid-template-columns: 48px 1fr; padding: 14px; }
    .as-logo { width: 48px; height: 48px; }
    .as-kontakt div { grid-template-columns: 1fr; gap: 2px; }
    .au-leer-tiles { grid-template-columns: repeat(3, 1fr); }
}
