
:root {
    --dark: #292637;
    --accent: #8562a7;
    --accent-light: #eee7f5;
    --background: #f7f5f8;
    --text: #302d38;
    --muted: #77727e;
    --border: #e9e5ed;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
}

button, input {
    font: inherit;
}

.brand {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -1px;
    color: var(--accent);
    margin-bottom: 32px;
}

/* Login */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 42px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(30, 20, 45, .05);
}

.auth-card h1 {
    font-size: 27px;
    margin: 0 0 10px;
}

.auth-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.auth-card label {
    display: block;
    font-size: 14px;
    font-weight: 650;
    margin: 20px 0 8px;
}

.auth-card input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcd7e1;
    border-radius: 9px;
    background: white;
}

.auth-card input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.auth-card button {
    width: 100%;
    margin-top: 28px;
    padding: 13px;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 650;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error {
    background: #fce9eb;
    color: #8c2638;
}

.success {
    background: #e7f4ec;
    color: #276c43;
}

/* Dashboard */

.dashboard-page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--dark);
    color: white;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar .brand {
    color: white;
    margin: 0 12px 44px;
}

.sidebar-caption {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #aaa3b7;
    margin: 0 12px 16px;
}

.sidebar nav a {
    display: block;
    color: #e5dfeb;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 9px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: #464054;
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
}

.logout {
    border: 0;
    background: transparent;
    color: #d4cddb;
    padding: 12px;
    cursor: pointer;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 60px;
    max-width: 1450px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.6px;
    margin-bottom: 14px;
}

.main-content h1 {
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.intro {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 42px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

.card-icon {
    display: block;
    color: var(--accent);
    font-size: 27px;
    margin-bottom: 22px;
}

.dashboard-card h2 {
    font-size: 19px;
    margin: 0 0 10px;
}

.dashboard-card p {
    color: var(--muted);
    line-height: 1.6;
}

.coming-soon {
    display: inline-block;
    margin-top: 15px;
    background: var(--accent-light);
    color: #654b80;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 650;
}

@media (max-width: 850px) {
    .dashboard-page {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 18px;
    }

    .sidebar .brand {
        margin: 0 0 16px;
    }

    .sidebar-bottom {
        margin-top: 12px;
    }

    .main-content {
        padding: 32px 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}



/* WordPress-Artikel */

.post-list {
    margin-top: 20px;
}

.post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.post-item:last-child {
    border-bottom: 0;
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.post-blog {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.post-info a {
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
    line-height: 1.5;
}

.post-info a:hover {
    color: var(--accent);
}

.post-item time {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .post-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}



/* Social-Media-Tracker */

.tracked-post {
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.tracked-post:last-child {
    border-bottom: 0;
}

.tracked-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.tracked-post h3 {
    font-size: 17px;
    margin: 8px 0;
    line-height: 1.5;
}

.tracked-post h3 a {
    color: var(--text);
    text-decoration: none;
}

.tracked-post h3 a:hover {
    color: var(--accent);
}

.tracked-post time {
    font-size: 12px;
    color: var(--muted);
}

.share-button,
.primary-button {
    display: inline-block;
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}

.share-button:hover,
.primary-button:hover {
    opacity: .85;
}

.share-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}

.share-count {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    background: #f3f1f5;
    color: var(--muted);
    border-radius: 20px;
    font-size: 12px;
}

.share-count.has-shares {
    background: var(--accent-light);
    color: #654b80;
}

.share-count strong {
    font-size: 13px;
}

.share-history {
    margin-top: 18px;
    font-size: 13px;
}

.share-history summary {
    color: var(--accent);
    cursor: pointer;
    font-weight: 650;
}

.share-history ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.share-history li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.share-history a {
    color: var(--accent);
}

.share-form-card {
    margin-bottom: 24px;
}

.share-form-card p {
    color: var(--muted);
}

.share-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 18px 0 7px;
}

.share-form-card input,
.share-form-card select {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.cancel-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 700px) {
    .tracked-post-header {
        flex-direction: column;
        gap: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}


/* Social-Media-Statistik */

.social-tabs,
.social-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-tabs {
    margin-bottom: 18px;
}

.social-filters {
    margin-bottom: 28px;
}

.social-tabs a,
.social-filters a {
    display: inline-block;
    padding: 10px 17px;
    border-radius: 9px;
    background: white;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.social-tabs a.active,
.social-filters a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.social-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-label {
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
}

.stat-number {
    font-size: 38px;
    line-height: 1.1;
    color: var(--text);
}

.stat-description {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.social-chart-card,
.social-profiles-card,
.social-activity-card {
    margin-bottom: 24px;
}

.chart-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Säulendiagramm */

.social-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    height: 260px;
    margin-top: 30px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.chart-value {
    font-size: 12px;
    font-weight: 650;
    height: 22px;
}

.chart-bar-area {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.chart-bar {
    width: 65%;
    max-width: 40px;
    background: var(--accent);
    border-radius: 5px 5px 0 0;
    min-height: 0;
}

.chart-label {
    font-size: 10px;
    color: var(--muted);
    margin-top: 12px;
    white-space: nowrap;
}

/* Profile und Aktivitäten */

.profile-list {
    margin-top: 20px;
}

.profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.profile-item:last-child {
    border-bottom: 0;
}

.profile-item h3 {
    font-size: 16px;
    margin: 6px 0;
}

.profile-share-count,
.activity-meta {
    font-size: 12px;
    color: var(--muted);
}

.profile-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.profile-link:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .social-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .social-stats {
        grid-template-columns: 1fr 1fr;
    }

    .social-chart {
        overflow-x: auto;
        grid-template-columns: repeat(12, minmax(42px, 1fr));
    }

    .profile-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .social-stats {
        grid-template-columns: 1fr;
    }
}
