[x-cloak] { 
    display: none !important; 
}


/* ==========================================
   1. GLOBAL SCOPE & RESET
   ========================================== */
#fichtenaffe-touren-app, 
.fichtenaffe-single-card-wrap, 
.fichtenaffe-hero-card-wrap {
    font-family: system-ui, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

#fichtenaffe-touren-app *, 
.fichtenaffe-single-card-wrap *, 
.fichtenaffe-hero-card-wrap * {
    box-sizing: border-box;
}


/* ==========================================
   2. GRID & CONTAINER LAYOUTS
   ========================================== */
.fa-cards-grid { 
    display: grid; 
    gap: 1.25rem; 
    grid-template-columns: repeat(1, 1fr); 
}

@media (min-width: 768px) {
    .fa-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .fa-cards-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ==========================================
   3. STANDARD CARD (Standard-Karten)
   ========================================== */
.fichtenaffe-single-card-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fichtenaffe-single-card-wrap .fa-card {
    flex: 1;
    height: 100%;
}

.fa-card, .fa-card-mini { 
    background: #0b1a13; 
    color: #f1f5f9; 
    border-radius: 1rem; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    height: 100%; 
    border: 1px solid #163325; 
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.fa-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.fa-card-body { 
    padding: 0.5rem 1.25rem 1.25rem 1.25rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.fa-card-title { 
    font-family: 'Staatliches', sans-serif; 
    font-size: 1.5rem; 
    line-height: 1.2; 
    text-transform: uppercase; 
    color: #ffffff; 
    margin-bottom: 0.5rem; 
    margin-top: 0; 
}

.fa-excerpt { 
    color: #d4d4d4; 
    font-size: 0.875rem; 
    line-height: 1.6; 
    margin-bottom: 1.25rem; 
}

.fa-meta-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: auto; 
    padding-top: 0.5rem;
}


/* ==========================================
   4. HERO CARD (Die große Kachel)
   ========================================== */
.fichtenaffe-hero-card-wrap {
    display: block;
    width: 100%;
}

.fa-hero-card {
    background: #0b1a13;
    color: #f1f5f9;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #163325;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.fa-hero-body {
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fa-hero-link-wrap {
    text-decoration: none;
    color: inherit;
    display: block;
}

.fa-hero-title {
    font-family: 'Staatliches', sans-serif;
    font-size: 1.75rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.fa-hero-excerpt {
    color: #62b134;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.fa-hero-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid #163325;
    padding-top: 0.75rem;
}

.fa-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.fa-hero-meta-item svg {
    color: #62b134;
    flex-shrink: 0;
}

.fa-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #163325;
    padding-top: 0.75rem;
    margin-top: auto;
}


/* ==========================================
   5. EINHEITLICHE BILDHÖHEN (Hero & Standard)
   ========================================== */
.fa-card-img-wrap,
.fa-hero-img-wrap {
    width: 100%;
    padding: 0.75rem;
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .fa-hero-img-wrap {
        height: 380px; /* Tablet - exakt in einer Flucht */
    }
}

@media (min-width: 1024px) {
    .fa-hero-img-wrap {
        height: 480px; /* Desktop - exakt in einer Flucht */
    }
}

.fa-card-img-wrap img,
.fa-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
}


/* ==========================================
   6. UI-ELEMENTE & BUTTONS (Shared)
   ========================================== */
.fa-fav-btn { 
    position: absolute; 
    top: 1.25rem; 
    right: 1.25rem; 
    z-index: 10; 
    background: rgba(11, 26, 19, 0.8); 
    border: 1px solid #163325; 
    border-radius: 50%; 
    width: 2.5rem; 
    height: 2.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
}

.fa-fav-btn img { 
    width: 1.25rem; 
    height: 1.25rem; 
    object-fit: contain; 
    display: block; 
    margin: 0 auto; 
}

.fa-tour-date { 
    font-size: 0.8125rem; 
    font-weight: 700; 
    color: #62b134; 
    line-height: 1; 
}


/* ==========================================
   7. STERNE & TYPOGRAFIE-FIX (Cross-Browser)
   ========================================== */
.fa-stars {
    display: inline-flex;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif; 
    letter-spacing: 2px;
    line-height: 1;
    align-items: center;
}

.fa-star {
    color: #234232; 
}

.fa-star.active {
    color: #62b134; 
}

/* ==========================================
   Mini Single Card (for mobile)
   ========================================== */

.fa-card-mini .fa-card-body {
    padding: 0.25rem;
}

.fa-card-mini .fa-card-img-wrap {
    padding: 0.25rem;
}

.fa-card-mini .fa-card-title { 
    font-size: 1rem; 
    line-height: 1; 
    margin: 0.25rem; 
    margin-bottom: 0.5rem; 
}

.fa-card-mini .fa-fav-btn { 
    top: 0.4rem; 
    right: 0.4rem; 
    width: 1.5rem; 
    height: 1.5rem; 
}


/* ==========================================
   8. FILTER & TAGS
   ========================================== */
.fa-filter-box { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: 1rem; 
    margin-bottom: 2rem; 
    border: 1px solid #f1f5f9; 
}

.fa-tags-wrap { 
    display: flex; 
    flex-wrap: wrap; /* Korrigiert */
    gap: 0.5rem; 
    margin-top: 0.5rem; 
}

.fa-tag-btn { 
    padding: 0.35rem 0.8rem; 
    border-radius: 99px; 
    font-size: 0.8125rem; 
    border: none; 
    cursor: pointer; 
}

.fa-tag-active { 
    background-color: #62b134 !important; 
    color: #fff !important; 
    font-weight: 700; 
}

.fa-tag-inactive { 
    background-color: #f1f5f9; 
    color: #475569; 
}

.fa-btn-reset { 
    font-size: 0.75rem; 
    font-weight: 600; 
    background: #f1f5f9; 
    color: #475569; 
    padding: 0.4rem 0.8rem; 
    border-radius: 0.5rem; 
    border: none; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.4rem; 
}

.fa-btn-reset img { 
    width: 1rem; 
    height: 1rem; 
    object-fit: contain; 
}



/* ==========================================
   Modal
   ========================================== */

/* 1. Modal Overlay & Grundstruktur */
.fa-modal-overlay {
    display: none !important; /* Versteckt es im rohen Zustand zu 100% */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.fa-modal-content {
    background: #0b1a13 !important;
    color: #fff !important;
    padding: 2.5rem 2rem 2rem 2rem !important;
    border-radius: 1rem !important;
    max-width: 440px !important;
    width: 90% !important;
    border: 1px solid #163325 !important;
    position: relative !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
}

/* 2. WP-Members Formular spezifisch überschreiben */
/* Ziel: #wpmem_login .form und #wpmem_reg .form */

.fa-login-form-wrapper #wpmem_login {
    width: 100%;
}

.fa-login-form-wrapper #wpmem_login .form,
.fa-login-form-wrapper #wpmem_reg .form {
    margin: 1rem 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.fa-login-form-wrapper .wpmem_row {
    margin-bottom: 1rem !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.fa-login-form-wrapper label {
    font-size: 0.85rem !important;
    color: #8fa199 !important;
    margin-bottom: 0.35rem !important;
    display: block !important;
}

.fa-login-form-wrapper input[type="text"],
.fa-login-form-wrapper input[type="password"],
.fa-login-form-wrapper input[type="email"] {
    background: #050d0a !important;
    border: 1px solid #163325 !important;
    color: #fff !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

.fa-login-form-wrapper input[type="text"]:focus,
.fa-login-form-wrapper input[type="password"]:focus,
.fa-login-form-wrapper input[type="email"]:focus {
    border-color: #62b134 !important;
}

/* Button & Checkbox Styling */
.fa-login-form-wrapper .button_row,
.fa-login-form-wrapper .submit {
    margin-top: 1.5rem !important;
    background: transparent !important;
    padding: 0 !important;
}

.fa-login-form-wrapper input[type="submit"] {
    background: #28543d !important;
    color: #fff !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: background 0.2s ease !important;
}

.fa-login-form-wrapper input[type="submit"]:hover {
    background: #62b134 !important;
}

.fa-login-form-wrapper .wpmem_login_links {
    margin-top: 1rem !important;
    font-size: 0.8rem !important;
    color: #8fa199 !important;
}

.fa-login-form-wrapper .wpmem_login_links a {
    color: #62b134 !important;
    text-decoration: none !important;
}

.fa-login-form-wrapper #wpmem_login legend,
.fa-login-form-wrapper #wpmem_reg legend {
    display: none !important;
}