/**
 * Portal Base CSS — Shared Styles für alle Portal-Seiten
 *
 * CSS Custom Properties werden per PHP gesetzt (fivemeter_portal_css_vars).
 * Klassen können in jeder Portal-Seite genutzt werden statt Inline-CSS.
 *
 * @since 8.56.0
 */

/* ========================================
   PAGE TITLE (kompakter Header)
   ======================================== */

.mpm-page-title {
    background: white !important;
    padding: 16px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border-left: 4px solid var(--fm-primary, #3b82f6) !important;
    margin-bottom: 24px;
    min-height: auto !important;
    text-align: left !important;
    color: #333 !important;
}

.mpm-page-title h1 {
    font-size: 1.15rem !important;
    font-weight: 700;
    margin: 0 !important;
    color: #1a1a2e !important;
}

.mpm-page-title p {
    font-size: 0.85rem !important;
    color: #888 !important;
    margin: 0 !important;
    white-space: nowrap;
}

/* Logo-Override vom globalen Styling verhindern */
.mpm-page-title::before {
    display: none !important;
}

@media (max-width: 600px) {
    .mpm-page-title {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 16px !important;
    }
    .mpm-page-title h1 {
        font-size: 1.05rem !important;
    }
}

/* ========================================
   WRAPPER / CONTAINER
   ======================================== */

.mpm-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.mpm-wrapper--narrow {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .mpm-wrapper {
        padding: 20px 15px;
    }
}

/* ========================================
   CARDS
   ======================================== */

.mpm-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 20px;
}

.mpm-card--lg {
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mpm-card--hover {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.mpm-card--hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ========================================
   BUTTONS
   ======================================== */

.mpm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.mpm-btn--primary {
    background: var(--fm-primary, #3b82f6);
    color: white;
}

.mpm-btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mpm-btn--accent {
    background: var(--fm-accent, #10b981);
    color: white;
}

.mpm-btn--accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.mpm-btn--outline {
    background: white;
    color: var(--fm-primary, #3b82f6);
    border: 2px solid var(--fm-primary, #3b82f6);
}

.mpm-btn--outline:hover {
    background: var(--fm-primary, #3b82f6);
    color: white;
}
