Kartenpin-Adresse
Kartenpin-Adresse: CSS-Card. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.card-099 {
width: 300px;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 16px;
overflow: hidden;
font-family: system-ui,sans-serif;
color: #111827
}
.card-099__map {
position: relative;
height: 150px;
background: linear-gradient(#e5e7eb 1px,transparent 1px) 0 0/28px 28px,linear-gradient(90deg,#e5e7eb 1px,transparent 1px) 0 0/28px 28px,#f3f4f6
}
.card-099__map::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 64px;
height: 10px;
background: #fde68a;
transform: rotate(-8deg)
}
.card-099__map svg {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-90%);
filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
transition: transform .25s
}
.card-099:hover svg {
transform: translate(-50%,-90%) translateY(-6px)
}
.card-099__body {
padding: 16px 18px 18px
}
.card-099 h3 {
margin: 0 0 2px;
font-size: 16px
}
.card-099 p {
margin: 0 0 10px;
font-size: 13px;
color: #6b7280
}
.card-099 a {
font-size: 13px;
font-weight: 600;
color: #2563eb;
text-decoration: none
}
.card-099 a:hover {
text-decoration: underline
}
.card-099 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-099">
<div class="card-099__map">
<svg viewBox="0 0 24 24" width="34" height="34" fill="#ef4444" stroke="#fff" stroke-width="1.2"><path d="M12 22s7-7.1 7-12a7 7 0 1 0-14 0c0 4.9 7 12 7 12z"/><circle cx="12" cy="10" r="2.5" fill="#fff"/></svg>
</div>
<div class="card-099__body"><h3>Studio Nord</h3><p>Torstraße 140, 10119 Berlin</p><a href="#">Get directions</a></div>
</article>Prompt
Baue eine 300px Standort-Card: weiß, 1px #e5e7eb Rahmen, 16px Radius. Oben eine 150px Fake-Karte: #f3f4f6 mit einem 28px Raster aus 1px #e5e7eb Linien (zwei wiederholte lineare Gradients) und einem geneigten 10px gelben #fde68a "Straßen"-Band, plus ein zentriertes rotes #ef4444 Kartenpin-SVG mit weißem Punkt und Schlagschatten, das beim Hover 6px nach oben hüpft. Body: 16px Ortsname, 13px #6b7280 Adresse und ein blauer "Get directions" Link.