/* ==========================================================================
   FASTENZENTRALE - HAUPT-STYLESHEET
   ========================================================================== */

/* --- 1. VARIABLEN & BASIS --- */
:root { 
    --fz-primary: #037d67;
    --fz-primary-hover: #026352;
    --fz-bg: #f7fafc; 
    --fz-border: #037d674d; 
    --fz-text: #2d3748; 
    --fz-text-light: #037d67cc;
    --primary-trans-10: rgba(3, 125, 103, 0.1);
    --primary-trans-30: rgba(3, 125, 103, 0.3);
    --checkbox-border-color: #037d67;
}

body.bricks-is-frontend.bricks-is-frontend :focus-visible { box-shadow: 3px 1px 4px 0px #eaeaea !important; outline: none; }

/* ==========================================================================
   2. MODERNE FORM-ELEMENTE (RADIO, CHECKBOX & SELECT)
   ========================================================================== */
.fz-group input[type="checkbox"], .fz-group input[type="radio"] {
    appearance: none !important; -webkit-appearance: none !important; background-color: #fff !important; 
    border: 2px solid var(--checkbox-border-color) !important; margin: 0 12px 0 0 !important; padding: 0 !important;
    width: 24px !important; height: 24px !important; display: inline-grid !important; place-content: center; 
    flex-shrink: 0 !important; vertical-align: middle; box-sizing: border-box !important; cursor: pointer; transition: all 0.2s ease; 
}
.fz-group input[type="checkbox"] { border-radius: 4px !important; }
.fz-group input[type="radio"] { border-radius: 50% !important; }
.fz-group input::before { content: ''; background-color: #fff; transform: scale(0); transition: transform 0.12s ease; }
.fz-group input[type="radio"]::before { width: 10px; height: 10px; border-radius: 50%; }
.fz-group input[type="checkbox"]::before { width: 14px; height: 14px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.fz-group input:checked { background-color: var(--fz-primary) !important; border-color: var(--fz-primary) !important; }
.fz-group input:checked::before { transform: scale(1); }

input.fz-input, select.fz-input { width: 100%; box-sizing: border-box; background: #fff; padding: 10px 15px; border: 1px solid var(--fz-border); border-radius: 6px; }
select.fz-input { appearance: none; -webkit-appearance: none; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center / 16px; }

/* ==========================================================================
   3. FILTER-LAYOUT & LABELS
   ========================================================================== */
#fz-filter-container { display: flex; flex-direction: column; gap: 30px; margin-top: 0px; }
.fz-group { display: flex; flex-direction: column; gap: 8px; }
.fz-group strong { display: block; font-size: 17px; text-transform: uppercase; letter-spacing: 0.15rem; color: var(--fz-text); margin-bottom: 5px; border: none !important; }
.fz-checkbox-label, .fz-radio-label { display: flex; align-items: center; font-size: 17px; cursor: pointer; padding: 2px 0; font-weight: 400; color: var(--fz-text); }
.fz-checkbox-label span, .fz-radio-label span { color: var(--fz-text-light); margin-left: 5px; font-size: 15px; font-weight: 400; }

/* ==========================================================================
   4. KARTEN-DESIGN & PRÄZISES LAYOUT (ERGEBNISSE)
   ========================================================================== */
#fz-results { display: flex; flex-direction: column; gap: 20px; margin: 0px; }
.fz-card { position: relative; display: block; background: #ffffff !important; border: 1px solid #eaeaea; border-radius: 8px; padding: 7px 10px 5px 10px; cursor: pointer; box-shadow: 0 2px 2px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.04); transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; will-change: transform, box-shadow; }
.fz-card:hover { transform: translateY(-2px) !important; box-shadow: 0 4px 6px rgba(0,0,0,0.08); }
.fz-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; row-gap: 0px; padding-right: 0; }
.fz-card-row1 { display: flex; justify-content: space-between; align-items: flex-start; padding-right: 35px; font-size: 16px; }
.fz-card-row1 span { white-space: nowrap !important; flex-shrink: 0; }
.fz-card-row1 span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin: 0 10px; }
.fz-card-row1 span:last-child { margin-left: auto; text-align: right; }
.fz-card h3 { position: relative; z-index: 2; margin: 0px 0 8px 0; font-size: 24px; line-height: 1.2; color: var(--fz-primary); }
.fz-card h3 .fz-hl-hover { display: inline; background-image: linear-gradient(var(--primary-trans-10), var(--primary-trans-10)); background-repeat: no-repeat; background-position: left bottom; background-size:25% 10px; transition: background-size 0.4s ease; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fz-card:hover h3 .fz-hl-hover { background-position: left bottom; background-size: 100% 10px; }
.fz-card-row3 { display: grid; align-items: flex-start; column-gap: 20px; font-size: 16px; grid-template-columns: auto 1fr auto; grid-template-areas: "wander fasten anbieter"; padding-right: 35px; }
.fz-card-row3 span:first-child { grid-area: wander; white-space: nowrap !important; align-self: flex-start; display: flex; }
.fz-card-row3 span:nth-child(2) { grid-area: fasten; align-self: flex-start; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.fz-card-row3 span:last-child { grid-area: anbieter; white-space: nowrap !important; align-self: flex-end; margin-left: auto; text-align: right; font-style: italic; }

@media screen and (max-width: 1200px) {
    .fz-card-row1 { flex-wrap: wrap; row-gap: 0px; }
    .fz-card-row1 span:nth-child(2) { order: 3; flex-basis: 100%; margin: 4px 0 0 0; }
    .fz-card-row1 span:last-child { order: 2; margin-left: auto; }
    .fz-card-row3 { grid-template-columns: 1fr auto; grid-template-areas: "wander anbieter" "fasten anbieter"; row-gap: 0px; column-gap: 15px; }
    .fz-card-row3 span:first-child { justify-self: start; }
    .fz-card-row3 span:nth-child(2) { margin-top: 0px; }
    .fz-card-row3 span:last-child { align-self: end; justify-self: end; }
}

@media screen and (max-width: 960px) {
    .fz-card-content, .fz-card-row3 { padding-right: 0; }
    .fz-card h3 { padding-right: 45px; }
    .fz-card::after { opacity: 0.1; width: 70%; } 
    .fz-card-row1, .fz-card-row3 { flex-direction: column; align-items: flex-start; }
    .fz-card-row1 span, .fz-card-row3 span { width: 100%; text-align: left !important; margin: 0 !important; flex-basis: auto; }
    .fz-card-row1 span:first-child { order: 1; }
    .fz-card-row1 span:last-child { order: 2; } 
    .fz-card-row1 span:nth-child(2) { order: 3; } 
    .fz-card-row3 { display: flex; grid-template-areas: none; }
    .fz-card-row3 span:first-child { order: 1; } 
    .fz-card-row3 span:nth-child(2) { order: 2; } 
    .fz-card-row3 span:last-child { order: 3; align-self: flex-start; } 
}

/* ==========================================================================
   5. SIDEBAR, CHIPS & BUTTONS AUF DEN KARTEN
   ========================================================================== */
#fz-sidebar-left { position: sticky; top:0px; padding-top: calc(var(--header-height) + 90px); max-height: 100vh; align-self: start; }
#fz-sidebar-left::-webkit-scrollbar { width: 6px; }
#fz-sidebar-left::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
#fz-sidebar-left::-webkit-scrollbar-thumb { background-color: var(--fz-primary); border-radius: 4px; }
.filter-mobile-send { background: transparent; color:#ffffff; }

#fz-top { transition: transform 0.3s ease; transform: translateX(60px); }
#fz-top.is-visible { transform: translateX(0px); }

@media screen and (max-width: 767px) {
    #fz-top { transform: translateX(50px); }
    #fz-top.is-visible { transform: translateX(0px); }
    .fz-layout-wrapper { gap: 0 !important; row-gap: 0 !important; }
    #fz-wishlist-toggle { padding-right: 14px; }
    .fz-wishlist-toggle-text { display:none; }
    #fz-sidebar-left { position: relative; top:0px; margin-bottom: 0 !important; padding-bottom: 0 !important; }
}

#fz-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.fz-chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--fz-primary); color: #fff; font-weight: 600; font-size: 14px; border: 1px solid var(--fz-primary); padding: 3px 12px; border-radius: 25px; }
.fz-chip span { font-size: 20px; }
.fz-chip.fz-chip-clear { background: #ffffff; color: #037d67; }
.fz-chip.fz-chip-merkliste { background: #ccff00; color: #037d67; }
.fz-chip.fz-chip-merkliste span { color: #037d67; }

#fz-wishlist-toggle { display: flex; align-items: center; gap: 7px; cursor: not-allowed; background: #f1f5f9; color: #a0aec0; font-size: 13px; font-weight: 700; text-transform: uppercase; border: 1px solid #cbd5e0; border-radius: 5px; padding: 0px 5px 0px 5px; transition: all 0.3s ease; opacity: 0.6; }
#fz-wishlist-toggle svg { height: 18px; width: 18px; margin-bottom: -5px; stroke: #a0aec0; fill: transparent; }
#fz-wishlist-count { margin-left: -5px; margin-right: -5px; }
#fz-wishlist-toggle.fz-btn-filled { background: #fff; border-color: var(--fz-border); color: #037d67; opacity: 1; cursor: pointer; }
#fz-wishlist-toggle.fz-btn-filled svg { fill: #037d67; stroke: none; animation: pulseHeart 1.5s infinite ease-in-out; }
#fz-wishlist-toggle.fz-btn-active { background: #ccff00; border-color: #ccff00; color: #037d67; opacity: 1; cursor: pointer; }
#fz-wishlist-toggle.fz-btn-active svg { fill: #e53e3e; stroke: none; animation: pulseHeart 1.5s infinite ease-in-out; }
#fz-wishlist-toggle.do-pop svg { animation: heartPop 0.4s forwards !important; }
#fz-wishlist-toggle.fz-wishlist-toggle-text { display:inline-block; }

@media screen and (max-width: 960px) { #fz-wishlist-toggle { padding: 0px 10px 0px 5px; } }

.fz-heart-btn, .fz-card-cal-btn, .fz-hike-btn { position: absolute; right: -2px; width: 32px !important; height: 32px !important; padding: 0 !important; display: flex; justify-content: center; align-items: center; box-sizing: border-box; border-radius: 5px; z-index: 10; border: none; outline: none; box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.16); transition: all 0.2s ease; -webkit-tap-highlight-color: transparent; }
.fz-heart-btn { top: -2px; cursor: pointer; background: #f2f2f2; transform: translate(0px, 0px); }
.fz-heart-btn svg { width: 18px; height: 18px; fill: #f9f9f9; stroke: #037d67; transition: all 0.2s ease; }
.fz-heart-btn:active { box-shadow:-1px 2px 3px rgba(0, 0, 0, 0.16) !important; transform: translate(0px, -2px); }
.fz-heart-btn.active  { background:#fff9f9; box-shadow: -1px 1px 6px 0px rgb(221 123 123 / 41%) !important; }
.fz-heart-btn.active:active { box-shadow: -1px 2px 6px 0px rgb(221 123 123 / 41%) !important; transform: translate(0px, -2px); }
.fz-heart-btn.active svg { fill: #e53e3e !important; stroke: #e53e3e !important; animation: heartPop 0.4s forwards; }
.fz-card-cal-btn { top: 33px; cursor: pointer; background: #f2f2f2; } 
.fz-card-cal-btn svg { width: 18px; height: 18px; stroke: var(--fz-primary); fill: none; transition: all 0.2s ease; }
.fz-hike-btn { top: 69px; cursor: help; background: #fdfdfd; } 
.fz-hike-btn i { font-size: 18px; color: var(--fz-primary); opacity: 0.7; transition: opacity 0.2s ease; }
.fz-card:hover .fz-hike-btn i { opacity: 1; animation: hiker-walk 0.6s ease-in-out infinite; }

@media (hover: hover) {
    .fz-heart-btn:hover, .fz-heart-btn.active:hover, .fz-card-cal-btn:hover { background-color: #fdfdfd !important; box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.16); }
    .fz-heart-btn.active:hover { box-shadow: -1px 1px 6px 0px rgb(221 123 123 / 41%); }
    .fz-heart-btn:not(.active):hover svg { fill: #ffffff; stroke: #e53e3e; animation: pulseHeart 1s infinite ease-in-out; }
    .fz-heart-btn.active:hover svg { animation: pulseHeart 1s infinite ease-in-out; }
    .fz-card-cal-btn:hover svg { stroke: var(--fz-primary-hover); animation: pulseHeart 1s infinite ease-in-out; }
}

@keyframes pulseHeart { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes heartPop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes hiker-walk { 0%, 50%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-1px) rotate(-3deg); } 75% { transform: translateY(-1px) rotate(3deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fz-tiny-heart { position: fixed; z-index: 999999; pointer-events: none; width: 16px; height: 16px; transform: translate(-50%, -50%) scale(0); animation: heartBurst 1.0s forwards; }
.fz-tiny-heart svg { width: 100%; height: 100%; display: block; }
@keyframes heartBurst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(var(--scale)) rotate(var(--rot)); opacity: 0; } }

/* ==========================================================================
   6. KALENDER MODAL
   ========================================================================== */
.fz-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.5); z-index: 99999; display: none; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; backdrop-filter: blur(3px); }
.fz-modal-overlay.is-open { display: flex; animation: fadeIn 0.2s ease-out; }
.fz-calendar-box { background: #ffffff; border-radius: 12px; width: 100%; max-width: 700px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); overflow: hidden; animation: slideUp 0.3s ease-out; }
.fz-calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--fz-bg); border-bottom: 1px solid #eaeaea; }
.fz-calendar-header h3 { margin: 0; font-size: 25px; line-height: 1.3; color: var(--fz-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 15px; }
.fz-close-btn { background: none; border: none; font-size: 24px; line-height: 1; color: #a0aec0; cursor: pointer; transition: color 0.2s; }
.fz-close-btn:hover { color: var(--fz-text); }

.fz-calendar-controls { padding: 15px 20px 0 20px; }
.fz-month-nav { background: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; margin-top: 15px; }
.fz-month-nav h4 { margin: 0; font-size: 25px; color: var(--fz-primary); }
.fz-nav-btn { background:#e5f2f0; border: none; font-size: 16px; color: var(--fz-primary); cursor: pointer; padding: 5px 10px; border-radius: 4px; transition: background 0.2s; }
.fz-nav-btn:hover { background: var(--primary-trans-10); }

.fz-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 20px; text-align: center;touch-action: pan-y; will-change: transform, opacity; }
.fz-weekday { font-weight: bold; font-size: 15px; color: #a0aec0; margin-bottom: 8px; }

.fz-day { aspect-ratio: 1 / 1; border-radius: 6px; border: 1px solid transparent; padding: 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--fz-text); background-color: #fafafa; box-sizing: border-box; cursor: default; overflow: hidden; }
.fz-day:not(.fz-empty):hover { border-color: var(--fz-border); }

.fz-day-num { font-size: 18px; line-height: 1.2; font-weight: 900; }
.fz-day-name { font-size: 11px; font-weight: 700; line-height: 1.2; margin-top: 4px; width: 100%; text-align: center; opacity: 0.9; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; overflow-wrap: break-word; word-break: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }

.fz-day.fz-empty { background: transparent; cursor: default; }
.fz-day.fz-is-today { border: 2px solid var(--fz-primary); font-weight: bold; }
.fz-day.fz-is-vacation { background-color: var(--primary-trans-10); color: var(--fz-primary-hover); font-weight: 600; }
.fz-day.fz-is-holiday { background-color: var(--fz-primary); color: #ffffff; font-weight: bold; }
.fz-day.fz-is-event { background-color: #ccff00 !important; color: #037d67 !important; border: 1px solid #037d67; font-weight: bold; z-index: 2; }
.fz-day.fz-is-event .fz-day-name { color: #037d67; font-weight: 700; }

.fz-calendar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; row-gap: 0px; padding: 15px 20px; margin-top: 15px; font-size: 13px; color: var(--fz-text-light); border-top: 1px solid #eaeaea; font-weight:600; }
.fz-legend-item { display: flex; align-items: center; gap: 5px; }
.fz-legend-item.fz-legend-event-row { flex-basis: 100%; justify-content: center; } 
.fz-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fz-dot-vacation { background-color: var(--primary-trans-10); border: 1px solid var(--fz-primary); }
.fz-dot-holiday { background-color: var(--fz-primary); }
.fz-dot-event { background-color: #ccff00; border: 1px solid #037d67; }

.fz-calendar-grid { transition: transform 0.2s ease-out, opacity 0.2s ease-out; will-change: transform, opacity; }
.fz-no-transition { transition: none !important; }
.fz-slide-left { transform: translateX(-40px); opacity: 0; }
.fz-slide-right { transform: translateX(40px); opacity: 0; }

@media screen and (max-width: 767px) {
    .fz-day.fz-is-vacation .fz-day-num, .fz-day.fz-is-holiday .fz-day-num, .fz-day.fz-is-event .fz-day-num { font-size: 15px; }
    .fz-day-name { margin-top: 1px; line-height: 1; }
    .fz-day-num { line-height: 1; }
}

.fz-calendar-grid.fz-is-animating { will-change: transform, opacity; transition: transform 0.3s ease-out, opacity 0.3s ease-out; }
.fz-calendar-grid.fz-anim-slide-out-left { transform: translateX(-100%); opacity: 0; }
.fz-calendar-grid.fz-anim-slide-out-right { transform: translateX(100%); opacity: 0; }

.fz-heart-btn:focus, .fz-heart-btn:focus-visible, .fz-card-cal-btn:focus, .fz-card-cal-btn:focus-visible, .fz-hike-btn:focus, .fz-hike-btn:focus-visible { box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.16) !important; outline: none !important; }
.fz-card-cal-btn:active, .fz-hike-btn:active { box-shadow: -1px 2px 3px rgba(0, 0, 0, 0.16) !important; transform: translateY(-1px); }

.fz-day.fz-is-selectable { cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.fz-day.fz-is-selectable:hover { background-color: var(--primary-trans-10); border-color: var(--fz-primary); }

/* --- DATEPICKER CLEAR BUTTON --- */
.fz-date-wrapper { position: relative; display: block; }
.fz-date-clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #a0aec0; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; border-radius: 50%; z-index: 2; }
.fz-date-clear:hover { color: #e53e3e; background: #fff0f0; }

/* --- DATEPICKER DISABLED DAYS (Gesperrte Daten) --- */
.fz-day.fz-is-disabled { opacity: 0.3; cursor: not-allowed !important; background-color: transparent !important; }
.fz-day.fz-is-disabled:hover { border-color: transparent !important; }