/**
 * Reparatur-Finder — visuell, kompakt, mobil-optimiert.
 * @package aweos-edvr-core
 */
.awfr {
	--awfr-brand: #0083c4;
	--awfr-brand-ink: #025b89;
	--awfr-accent: #16a34a;
	--awfr-ink: #0f172a;
	--awfr-slate: #475569;
	--awfr-line: #e2e8f0;
	--awfr-surface: #f8fafc;
	background: #fff;
	border: 1px solid var(--awfr-line);
	border-radius: 18px;
	box-shadow: 0 18px 40px -14px rgba(2, 91, 137, .22), 0 6px 14px -8px rgba(15, 23, 42, .10);
	padding: clamp(1.1rem, 2.5vw, 1.75rem);
	max-width: none;
	margin-inline: auto;
	text-align: left;
}
.awfr *, .awfr *::before, .awfr *::after { box-sizing: border-box; }

.awfr__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; color: var(--awfr-ink); margin: 0 0 .25rem; line-height: 1.25; }
.awfr__subtext { font-size: .9rem; color: var(--awfr-slate); margin: 0 0 1rem; }

.awfr__step { margin-top: 1.1rem; }
.awfr__step:first-child { margin-top: 0; }
.awfr__label { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--awfr-slate); margin-bottom: .6rem; }
.awfr__num { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 6px; background: var(--awfr-brand); color: #fff; font-size: .78rem; font-weight: 800; }

/* Enthüllungs-Animation */
.awfr__step--in { animation: awfr-in .28s ease both; }
@keyframes awfr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- Schritt 1: Hersteller-Logo-Kacheln --- */
.awfr__brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .6rem; }
/* Breite Karte: feste 7 Spalten -> 14 Marken = zwei gleich volle Reihen */
@media (min-width: 1024px) {
	.awfr__brands { grid-template-columns: repeat(7, 1fr); gap: .75rem; }
}
.awfr__brand {
	appearance: none; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: .55rem;
	border: 1.5px solid var(--awfr-line); background: #fff;
	padding: 1rem .5rem .85rem; border-radius: 12px;
	transition: border-color .15s ease, background .15s ease, transform .06s ease, box-shadow .15s ease;
}
.awfr__brand:hover { border-color: var(--awfr-brand); background: #f7fbfe; transform: translateY(-2px); box-shadow: 0 6px 14px -8px rgba(0, 131, 196, .35); }
.awfr__brand:active { transform: translateY(0); }
.awfr__brand.is-active { border-color: var(--awfr-brand); background: #eef7fc; box-shadow: inset 0 0 0 1px var(--awfr-brand); }
.awfr__brand-logo { width: 52px; height: 52px; object-fit: contain; display: block; }
.awfr__brand-name { font-size: .8rem; font-weight: 600; color: var(--awfr-slate); text-align: center; line-height: 1.15; }
@media (max-width: 520px) {
	.awfr__brand-logo { width: 40px; height: 40px; }
	.awfr__brand-name { font-size: .74rem; }
}
.awfr__brand.is-active .awfr__brand-name { color: var(--awfr-brand-ink); }

/* --- Schritt 2: Gerät-Suche --- */
.awfr__search { position: relative; }
.awfr__input {
	width: 100%; font-size: 1rem; color: var(--awfr-ink);
	padding: .8rem 1rem .8rem 2.6rem; border: 1.5px solid var(--awfr-line);
	border-radius: 12px; background: #fff no-repeat 14px center; background-size: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	transition: border-color .15s ease, box-shadow .15s ease;
}
.awfr__input:focus { outline: none; border-color: var(--awfr-brand); box-shadow: 0 0 0 3px rgba(0, 131, 196, .15); }
.awfr__input::placeholder { color: #94a3b8; }

.awfr__dropdown {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
	margin: 0; padding: .3rem; list-style: none;
	background: #fff; border: 1px solid var(--awfr-line); border-radius: 12px;
	box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .22);
	max-height: 320px; overflow-y: auto; display: none;
}
.awfr__dropdown.is-open { display: block; }
.awfr__dropitem { padding: .6rem .75rem; border-radius: 8px; cursor: pointer; font-size: .95rem; color: var(--awfr-ink); }
.awfr__dropitem:hover { background: var(--awfr-surface); }
.awfr__dropitem mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 3px; }

/* --- Schritt 3: Reparatur-Karten --- */
/* minmax(0, …) in der zweiten Dimension: Ohne das gilt fuer jede Spalte die
   Mindestbreite ihres Inhalts, und lange Bezeichnungen wie
   „Kameraglaslinse Reparatur" druecken die Kacheln aus dem Container heraus
   (von Ali gemeldet am 24.08.2026). */
.awfr__repairs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
	gap: .6rem;
}
/* Silbentrennung statt hartem Umbruch: „Kameraglaslinse Reparatur" passt in
   keine 147-px-Spalte, aber „Kamera-glaslinse" liest sich besser als
   „Kameraglaslin|se". hyphens greift, weil die Seite lang="de-DE" traegt;
   break-word ist der Rueckfall fuer Browser ohne Trennmuster. */
.awfr__repair-name { hyphens: auto; overflow-wrap: break-word; }
.awfr__repair {
	display: flex; flex-direction: column; justify-content: space-between; gap: .6rem;
	min-height: 84px; padding: .8rem .9rem;
	border: 1px solid var(--awfr-line); border-radius: 12px; background: #fff;
	text-decoration: none; color: var(--awfr-ink);
	transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.awfr__repair:hover { border-color: var(--awfr-brand); box-shadow: 0 8px 18px -8px rgba(0, 131, 196, .3); transform: translateY(-2px); }
.awfr__repair-top { display: flex; align-items: flex-start; gap: .5rem; }
.awfr__ico { width: 20px; height: 20px; color: var(--awfr-brand); flex-shrink: 0; margin-top: 1px; }
.awfr__repair-name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.awfr__repair-price { font-weight: 800; font-size: 1.02rem; color: var(--awfr-accent); font-variant-numeric: tabular-nums; }

/* --- Reset --- */
.awfr__reset {
	margin-top: 1rem; appearance: none; cursor: pointer; background: none; border: none;
	color: var(--awfr-brand-ink); font-weight: 600; font-size: .88rem; padding: .25rem 0;
	text-decoration: underline; text-underline-offset: 3px;
}
.awfr__reset:hover { color: var(--awfr-brand); }

/* --- Mobile --- */
@media (max-width: 520px) {
	.awfr { padding: 1rem; border-radius: 14px; }
	.awfr__brand { font-size: .86rem; padding: .5rem .8rem; }
	.awfr__repairs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
	.awfr__repair { min-height: 66px; padding: .7rem; }
	.awfr__repair-name { font-size: .85rem; }
}
