@@ -4481,26 +4481,44 @@ class FastSearchCard extends HTMLElement {
44814481
44824482
44834483 .star-button {
4484- position: absolute;
4485- right: 0;
4486- top: 50%;
4487- transform: translateY(-50%);
4488- background: none;
4489- border: none;
4484+ display: flex;
4485+ align-items: center;
4486+ gap: 8px;
4487+ background: rgba(255, 255, 255, 0.1);
4488+ border: 1px solid rgba(255, 255, 255, 0.2);
4489+ border-radius: 8px;
4490+ padding: 8px 12px;
4491+ color: var(--text-secondary);
44904492 cursor: pointer;
4491- color: #ffd700;
44924493 transition: all 0.2s ease;
4493- z-index: 2;
4494+ font-size: 14px;
4495+ margin-left: auto; /* Rechtsbündig */
44944496 }
44954497
44964498 .star-button:hover {
4497- transform: translateY(-50%) scale(1.1);
4498- filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
4499+ background: rgba(255, 255, 255, 0.15);
4500+ color: #ffd700;
4501+ transform: translateY(-1px);
4502+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
44994503 }
45004504
45014505 .star-button svg {
4502- display: block;
4503- }
4506+ width: 20px;
4507+ height: 20px;
4508+ stroke-width: 1.5;
4509+ transition: all 0.2s ease;
4510+ }
4511+
4512+ /* Starred state */
4513+ .star-button.starred {
4514+ color: #ffd700;
4515+ background: rgba(255, 215, 0, 0.1);
4516+ border-color: rgba(255, 215, 0, 0.3);
4517+ }
4518+
4519+ .star-button.starred:hover {
4520+ background: rgba(255, 215, 0, 0.15);
4521+ }
45044522
45054523 </style>
45064524
@@ -8240,6 +8258,11 @@ class FastSearchCard extends HTMLElement {
82408258 <h3 class="detail-name">${item.name}</h3>
82418259 <p class="detail-area">${item.area}</p>
82428260 </div>
8261+ <button class="star-button" data-entity-id="${item.id}">
8262+ <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
8263+ <path d="M8.58737 8.23597L11.1849 3.00376C11.5183 2.33208 12.4817 2.33208 12.8151 3.00376L15.4126 8.23597L21.2215 9.08017C21.9668 9.18848 22.2638 10.0994 21.7243 10.6219L17.5217 14.6918L18.5135 20.4414C18.6409 21.1798 17.8614 21.7428 17.1945 21.3941L12 18.678L6.80547 21.3941C6.1386 21.7428 5.35909 21.1798 5.48645 20.4414L6.47825 14.6918L2.27575 10.6219C1.73617 10.0994 2.03322 9.18848 2.77852 9.08017L8.58737 8.23597Z"/>
8264+ </svg>
8265+ </button>
82438266 </div>
82448267 <div class="icon-content">
82458268 <div class="icon-background-wrapper">
@@ -8251,13 +8274,6 @@ class FastSearchCard extends HTMLElement {
82518274 <div class="quick-stats">
82528275 ${quickStats.map(stat => `<div class="stat-item">${stat}</div>`).join('')}
82538276 </div>
8254-
8255- <button class="star-button" data-entity-id="${item.id}">
8256- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
8257- <path d="M8.58737 8.23597L11.1849 3.00376C11.5183 2.33208 12.4817 2.33208 12.8151 3.00376L15.4126 8.23597L21.2215 9.08017C21.9668 9.18848 22.2638 10.0994 21.7243 10.6219L17.5217 14.6918L18.5135 20.4414C18.6409 21.1798 17.8614 21.7428 17.1945 21.3941L12 18.678L6.80547 21.3941C6.1386 21.7428 5.35909 21.1798 5.48645 20.4414L6.47825 14.6918L2.27575 10.6219C1.73617 10.0994 2.03322 9.18848 2.77852 9.08017L8.58737 8.23597Z"/>
8258- </svg>
8259- </button>
8260-
82618277 </div>
82628278 </div>
82638279 `;
@@ -11289,6 +11305,9 @@ class FastSearchCard extends HTMLElement {
1128911305 svg.setAttribute('fill', isStarred ? 'currentColor' : 'none');
1129011306 }
1129111307
11308+ // CSS-Klasse für visuellen Zustand
11309+ starButton.classList.toggle('starred', isStarred);
11310+
1129211311 starButton.title = isStarred ? 'Favorit entfernen' : 'Als Favorit markieren';
1129311312
1129411313 } catch (error) {
0 commit comments