diff --git a/components/search/SearchCard.tsx b/components/search/SearchCard.tsx
index 84a73af..c2b95e8 100644
--- a/components/search/SearchCard.tsx
+++ b/components/search/SearchCard.tsx
@@ -11,6 +11,29 @@ interface SearchCardProps {
onSubmit: () => void;
}
+const inputStyle: React.CSSProperties = {
+ width: "100%",
+ background: "#0d0d18",
+ border: "1px solid #1e1e2e",
+ borderRadius: 8,
+ padding: "10px 12px",
+ fontSize: 14,
+ color: "#ffffff",
+ outline: "none",
+ boxSizing: "border-box",
+ transition: "border-color 0.15s",
+};
+
+const labelStyle: React.CSSProperties = {
+ display: "block",
+ fontSize: 11,
+ fontWeight: 500,
+ color: "#6b7280",
+ textTransform: "uppercase",
+ letterSpacing: "0.05em",
+ marginBottom: 6,
+};
+
export function SearchCard({ query, region, count, loading, onChange, onSubmit }: SearchCardProps) {
const canSubmit = query.trim().length > 0 && !loading;
@@ -26,8 +49,20 @@ export function SearchCard({ query, region, count, loading, onChange, onSubmit }
transition: "opacity 0.2s",
}}
>
+
+
{/* 3-column grid */}
{/* Suchbegriff */}
-
+
onChange("query", e.target.value)}
onKeyDown={(e) => { if (e.key === "Enter" && canSubmit) onSubmit(); }}
- placeholder="z.B. Dachdecker, Solaranlage, Steuerberater…"
- style={{
- width: "100%",
- background: "#0d0d18",
- border: "1px solid #1e1e2e",
- borderRadius: 8,
- padding: "9px 12px",
- fontSize: 14,
- color: "#ffffff",
- outline: "none",
- boxSizing: "border-box",
- transition: "border-color 0.15s",
- }}
- onFocus={(e) => { e.currentTarget.style.borderColor = "#3b82f6"; }}
- onBlur={(e) => { e.currentTarget.style.borderColor = "#1e1e2e"; }}
+ placeholder="z.B. Dachdecker, Solaranlage…"
+ style={inputStyle}
/>
{/* Region */}
-
+
onChange("region", e.target.value)}
onKeyDown={(e) => { if (e.key === "Enter" && canSubmit) onSubmit(); }}
- placeholder="z.B. Bayern, München, Deutschland"
- style={{
- width: "100%",
- background: "#0d0d18",
- border: "1px solid #1e1e2e",
- borderRadius: 8,
- padding: "9px 12px",
- fontSize: 14,
- color: "#ffffff",
- outline: "none",
- boxSizing: "border-box",
- transition: "border-color 0.15s",
- }}
- onFocus={(e) => { e.currentTarget.style.borderColor = "#3b82f6"; }}
- onBlur={(e) => { e.currentTarget.style.borderColor = "#1e1e2e"; }}
+ placeholder="z.B. Bayern, München…"
+ style={inputStyle}
/>
{/* Anzahl */}
-
+