/* =============================================================================
   Template: Partnerportal (GC/G.U.T.)
   ============================================================================= */

.page-template-template-partnerportal #main {
    padding-top: 0 !important;
}

.ppf-layout {
    width: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
}

.ppf-layout__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .ppf-layout__inner {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.ppf-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 32px;
}

.ppf-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.ppf-tab:hover {
    color: #111;
}

.ppf-tab.is-active {
    color: #111;
    border-bottom-color: #111;
}

.ppf-tab-panel {
    display: none;
}

.ppf-tab-panel.is-active {
    display: block;
}

.ppf-sections {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.ppf-section {
    margin-bottom: 40px;
}

.ppf-section__title {
    font-size: 20px;
    margin: 0 0 16px 0;
}

.ppf-section__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppf-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.ppf-link-btn:hover {
    background: #333;
    color: #fff;
}

.ppf-link-btn__label {
    flex: 1;
}

.ppf-link-btn__kind {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.ppf-link-btn__kind .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}

/* --------------------------------------------------------------------------
   Ansprechpartner
   -------------------------------------------------------------------------- */
.ppf-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.ppf-contact-card {
    background: #f2f2f2;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.ppf-contact-card__photo {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    overflow: hidden;
    background: #1a2a3a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppf-contact-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppf-contact-card__photo-placeholder {
    color: #fff;
    font-size: 36px;
    width: 36px;
    height: 36px;
}

.ppf-contact-card__name {
    font-size: 16px;
    margin: 0 0 4px 0;
}

.ppf-contact-card__role {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
}

.ppf-contact-card__phone {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.ppf-contact-card__emails {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ppf-contact-card__email {
    font-size: 12px;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Sidebar: Changelog
   -------------------------------------------------------------------------- */
.ppf-sidebar__inner {
    position: sticky;
    top: 100px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 20px;
}

.ppf-push-toggle {
    display: block;
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.15s ease;
}

.ppf-push-count {
    font-size: 11px;
    color: #888;
    margin: 0 0 20px 0;
}

.ppf-push-toggle:hover:not(:disabled) {
    background: #333;
}

.ppf-push-toggle:disabled {
    opacity: 0.5;
    cursor: default;
}

.ppf-push-toggle.is-subscribed {
    background: #2e7d32;
}

.ppf-sidebar__title {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.ppf-changelog {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ppf-changelog__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.ppf-changelog__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ppf-changelog__date {
    color: #888;
    font-size: 11px;
}

.ppf-changelog__label {
    font-weight: 600;
}

.ppf-changelog__type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666;
}

.ppf-changelog__empty {
    font-size: 13px;
    color: #888;
}
