/* Seite „Angebot anfordern“ (/angebot/, P9 Chat 4). Nur dort geladen. Stil wie Gewerbekonto (Karten, Felder, Meldungen). */

.ak-an { background: var(--ak-surface); padding: 48px 0 72px; }
.ak-an .ak-wrap { max-width: 1040px; }
.ak-an__h1 { margin: 0 0 10px; font-size: 40px; font-weight: 800; line-height: 1.15; }
.ak-an__intro { margin: 0 0 32px; font-size: 18px; color: #3C4B50; max-width: 760px; line-height: 1.55; }
.ak-an__form { display: flex; flex-direction: column; gap: 24px; position: relative; }
.ak-an__karte { background: #fff; border: 1px solid var(--ak-border); border-radius: 12px; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ak-an__karte h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; }
.ak-an__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ak-an__leer { margin: 0; color: #3C4B50; }

/* Tabelle der Positionen (mobil als Karten) */
.ak-an__tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.ak-an__tabelle th, .ak-an__tabelle td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #E3E6E3; vertical-align: middle; }
.ak-an__tabelle thead th { white-space: nowrap; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #4E6A3A; }
.ak-an__tabelle tfoot th, .ak-an__tabelle tfoot td { border-bottom: 0; padding-top: 14px; }
.ak-an__tabelle td:first-child { font-weight: 700; white-space: nowrap; }
.ak-an__tabelle a { font-weight: 600; }
.ak-an__zahl { text-align: right !important; white-space: nowrap; }
.ak-an__klein { font-size: 13px; color: var(--ak-muted); }
.ak-an__nicht-im-shop { color: var(--ak-muted); font-size: 14px; }
.ak-an__menge { width: 96px; min-height: 44px; border: 1px solid #C9CFCA; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 16px; text-align: right; box-sizing: border-box; }
.ak-an__weg { width: 1%; text-align: right; }
.ak-an__entfernen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: #8C1D18; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ak-an__entfernen:hover { border-color: #E8B4AE; background: #FDF1EF; }
.ak-an__zeile { margin: 0; }

/* Artikel hinzufügen */
.ak-an__neu { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding-top: 16px; border-top: 1px solid #E3E6E3; }
.ak-an__f--nr { flex: 1 1 220px; }
.ak-an__f--menge { flex: 0 0 110px; }
.ak-an__neu .ak-btn { min-height: 48px; font-family: inherit; }

/* Felder */
.ak-an__felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ak-an__f { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.ak-an__f label { font-size: 14px; font-weight: 700; color: #2F3B40; }
.ak-an__f input, .ak-an__f textarea {
	min-height: 48px; border: 1px solid #C9CFCA; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px;
	box-sizing: border-box; width: 100%; background: #fff; color: var(--ak-ink);
}
.ak-an__f input[type="file"] { padding-top: 11px; padding-bottom: 8px; }
.ak-an__f textarea { padding: 12px; min-height: 120px; resize: vertical; }
.ak-an__vorlage { margin: 0; font-size: 14px; color: var(--ak-muted); }
.ak-an__vorlage a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ak-green); }
.ak-an__upload { padding: 16px; border: 2px dashed #C9CFCA; border-radius: 10px; background: #FAFBF9; }
.ak-an input:focus-visible, .ak-an textarea:focus-visible { outline: 3px solid var(--ak-yellow); outline-offset: 1px; border-color: var(--ak-green); }
.ak-an input::placeholder, .ak-an textarea::placeholder { color: #6B7A7F; }
.ak-an__info { margin: 0; font-size: 13px; color: var(--ak-muted); line-height: 1.5; }
.ak-an__senden { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ak-an__senden span { font-size: 14px; color: var(--ak-muted); }
.ak-an__senden .ak-btn { font-weight: 800; min-height: 50px; font-family: inherit; }

/* Meldungen */
.ak-an__fehlerbox { border: 1px solid #E8B4AE; border-left: 4px solid #B3261E; background: #FDF1EF; border-radius: 6px; padding: 12px 16px; font-size: 15px; }
.ak-an__fehlerbox p { margin: 0; }
.ak-an__fehlerbox ul { margin: 8px 0 0; padding-left: 20px; }
.ak-an__fehlerbox a { color: #8C1D18; }
.ak-an__feldfehler { margin: 0; color: #B3261E; font-size: 14px; font-weight: 600; }
.ak-an [aria-invalid="true"] { border-color: #B3261E !important; box-shadow: 0 0 0 1px #B3261E; }
.ak-an__ok { border-left: 4px solid var(--ak-ok); background: #EEF6F0; padding: 12px 16px; border-radius: 6px; margin: 0; }
.ak-an__ok p, .ak-an__hinweis p { margin: 0; }
.ak-an__hinweis { border-left: 4px solid var(--ak-yellow); background: #FFF9DC; padding: 12px 16px; border-radius: 6px; margin: 0; }
.ak-an__danke p { margin: 0; line-height: 1.55; }

@media (max-width: 720px) {
	.ak-an { padding: 28px 0 48px; }
	.ak-an__h1 { font-size: 30px; }
	.ak-an__intro { font-size: 16px; margin-bottom: 24px; }
	.ak-an__karte { padding: 20px 16px; }
	.ak-an__felder { grid-template-columns: 1fr; }
	/* Tabelle als Karten */
	.ak-an__tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ak-an__tabelle, .ak-an__tabelle tbody, .ak-an__tabelle tr, .ak-an__tabelle td, .ak-an__tabelle tfoot, .ak-an__tabelle th { display: block; width: auto; }
	.ak-an__tabelle tbody tr { position: relative; border: 1px solid var(--ak-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
	.ak-an__tabelle td { border: 0; padding: 4px 0; text-align: left !important; white-space: normal; }
	.ak-an__tabelle td[data-titel]::before { content: attr(data-titel); display: block; font-size: 12px; font-weight: 700; color: var(--ak-muted); text-transform: uppercase; letter-spacing: .04em; }
	.ak-an__tabelle td:first-child { padding-right: 56px; }
	.ak-an__weg { position: absolute; top: 6px; right: 6px; width: auto; }
	.ak-an__entfernen-text { display: none; }
	.ak-an__tabelle tfoot tr { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px; }
	.ak-an__tabelle tfoot th, .ak-an__tabelle tfoot td { padding: 0; }
	.ak-an__tabelle tfoot td:empty { display: none; }
	.ak-an__f--menge { flex: 1 1 100px; }
	.ak-an__neu .ak-btn { flex: 1 1 100%; }
}
