/* ========== Grundstil ========== */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f6f8fb;
    color: #222;
}

/* ========== Login Layout ========== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #4D57CF 0%, #24ccb2 100%);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

h2 {
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #1a1a1a;
}

.login-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

/* ========== Formular ========== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.2s border;
}

input:focus {
    border-color: #4D57CF;
    box-shadow: 0 0 0 3px rgba(77, 87, 207, 0.1);
}

button {
    background: #4D57CF;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s background;
}

button:hover {
    background: #3c46b8;
}

/* ========== Footer ========== */
.login-footer {
    margin-top: 25px;
    color: #777;
    font-size: 13px;
}

.hint {
    color: #4D57CF;
    font-weight: 600;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 25px;
    }

    h2 {
        font-size: 20px;
    }

    input,
    button {
        font-size: 15px;
    }
}


/* ========== Dashboard Layout ========== */
.dashboard-body {
    background: #f6f8fb;
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #222;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 22%;
    background: #fff;
    border-right: 1px solid #e3e3e3;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    text-align: center;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 3px solid #4D57CF10;
}

.profile-section h3 {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}


.sidebar h4 {
    margin: 0;
    font-weight: 600;
    color: #4D57CF;
    font-size: 15px;
}

.sidebar-block {
    background: #f9fafc;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#inviteBtn {
    background: #4D57CF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s background;
}

#inviteBtn:hover {
    background: #3c46b8;
}

#friendList,
#pageList {
    list-style: none;
    margin: 0;
    padding: 0;
}

#friendList li,
#pageList li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}


#friendList li:last-child,
#pageList li:last-child {
    border-bottom: none;
}

/* --- Kreis-Icon für Initialen --- */
.circle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4D57CF;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 13px;
}

#addFriendBtn {
    margin-top: 10px;
    background: #4D57CF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s background;
}

#addFriendBtn:hover {
    background: #3b46b8;
}

/* --- Main Feed --- */
.main {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.status-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-box textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    font-size: 15px;
    resize: none;
    outline: none;
    margin-bottom: 10px;
}

.status-box button {
    background: #4D57CF;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s background;
}

.status-box button:hover {
    background: #3b46b8;
}

/* --- Feed Cards --- */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.post-header {
    font-weight: 600;
    color: #4D57CF;
    margin-bottom: 10px;
}

.post-body img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.post-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 20px;
    }

    .main {
        padding: 20px;
    }
}

/* ========== FEED-VORSCHLÄGE ========== */
.feed-suggestions {
    background: #fff;
    border-radius: 14px;
    padding: 20px 25px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feed-suggestions h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #4D57CF;
    font-weight: 600;
}

.feed-circle-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.feed-circle {
    flex: 1 1 calc(20% - 10px);
    min-width: 140px;
    background: #f9fafc;
    border-radius: 14px;
    text-align: center;
    padding: 15px 10px;
    transition: 0.2s transform;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.feed-circle:hover {
    transform: translateY(-3px);
}

.feed-circle-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #4D57CF;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.feed-circle-name {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.feed-circle-category {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.feed-subscribe-btn {
    background: #4D57CF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s background;
}

.feed-subscribe-btn:hover {
    background: #3c46b8;
}

.feed-subscribe-btn.subscribed {
    background: #24ccb2;
    color: #fff;
    cursor: default;
}

@media (max-width: 900px) {
    .feed-circle-container {
        flex-direction: column;
        align-items: center;
    }

    .feed-circle {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== RSS-ARTIKEL ========== */
.rss-feed-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rss-article-card {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.rss-article-card:last-child {
    border-bottom: none;
}

.rss-article-header {
    font-size: 13px;
    color: #4D57CF;
    margin-bottom: 5px;
    font-weight: 600;
}

.rss-article-title {
    font-size: 15px;
    color: #222;
    text-decoration: none;
}

.rss-article-title:hover {
    color: #4D57CF;
}

/* ========== RSS-Karten (random zwischen Posts) ========== */
.rss-card {
    background: #f9fafc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin: 15px 0;
    border-left: 5px solid #4D57CF;
}

.rss-header {
    font-size: 13px;
    color: #4D57CF;
    font-weight: 600;
    margin-bottom: 8px;
}

.rss-title {
    color: #222;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.4;
}

.rss-title:hover {
    color: #4D57CF;
    text-decoration: underline;
}

.rss-description {
    font-size: 14px;
    color: #444;
    margin-top: 6px;
    line-height: 1.4;
}