
/* =========================================
   WoBot4 – Startseite
   ========================================= */

.wobot-home {
    --home-gap: 1.5rem;
    --home-radius: 0.75rem;

    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding: 1.5rem;
}

/* Kopfbereich */

.home-intro {
    margin-bottom: 2rem;
    margin-left: 10pt;
    padding-left: 5pt;
   padding: 1rem 1.25rem;
   background-color: var(--wobot-surface);
   border: 1px solid var(--wobot-border);
    border-radius: var(--home-radius);
}

.home-eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--home-radius);

}

.home-intro h1 {
    margin-bottom: 0.75rem;
}

.home-intro > p:last-child {
    max-width: 60rem;
    margin-bottom: 0;
}

/* Hauptbereich und Feedspalte */

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: var(--home-gap);
    align-items: start;
}

.home-main,
.home-sidebar {
    min-width: 0;
}

.home-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.home-sidebar {
    position: relative;
    min-width: 0;
}

/* Allgemeine Bereiche */

.home-panel,
.home-card,
.home-feature,
.home-server-card,
.home-info-card {
    border: 1px solid var(--bs-border-color, #b8aa96);
    border-radius: var(--home-radius);
    background: var(--bs-body-bg, #f5eee2);
    color: var(--bs-body-color, #382b20);
}

.home-panel {
    padding: 1.5rem;
}

.home-section {
    min-width: 0;
}

.home-section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #5d4935;
    background-color: #eee4d6;
    border-radius: 0.55rem;
    padding: 0.85rem 1rem;
}

.home-section-heading h2,
.home-feed-heading h2 {
    margin: 0;
}

.home-section-heading p {
    margin: 0.35rem 0 0;

}

.home-section > .home-section-heading {
    margin-bottom: 1.25rem;
}

/* Suche */

.home-search {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.home-search .home-section-heading {
    margin-bottom: 1.25rem;
}

.home-icon {
    display: grid;
    place-items: center;
    flex: 0 0 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 2rem;
    color: #72563f;
    background: #eee2d2;
}

.home-search-form {
    display: flex;
    gap: 0.5rem;
}

.home-search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--bs-border-color, #b8aa96);
    border-radius: 0.5rem;
    font: inherit;
}

.home-search-form button {
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 0.5rem;
    font: inherit;
    font-weight: 600;
    color: #fffaf2;
    background: #80634b;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.home-search-form button:hover:not(:disabled) {
    background: #6b5039;
    transform: translateY(-1px);
}

.home-search-form input:disabled,
.home-search-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.home-hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

/* Geführte Aufgaben */

.home-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    min-width: 0;
}

.home-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.home-card-link:hover,
.home-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: #a98b68;
    box-shadow: 0 0.4rem 1rem rgb(55 39 22 / 10%);
}

.home-card-icon,
.home-feature-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 0.65rem;
    font-size: 1.5rem;
    color: #72563f;
    background: #eee2d2;
}

.home-card h3,
.home-feature h3,
.home-server-card h3,
.home-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.home-card p,
.home-feature p {
    margin-bottom: 1rem;
}

.home-card-status {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.home-task-workspace[hidden] {
    display: none;
}

.home-task-workspace:not([hidden]) {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color, #b8aa96);
    border-radius: var(--home-radius);
}

.guided-search-form {
    display: grid;
    gap: 1rem;
}

.guided-search-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.guided-search-fields label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.guided-search-fields input,
.guided-search-fields select,
.guided-wizard-step input,
.guided-wizard-step select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    color: var(--bs-body-color, #382b20);
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #b8aa96);
    border-radius: 0.4rem;
}

.guided-search-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guided-search-actions button {
    padding: 0.65rem 1rem;
    color: #fff;
    background: #72563f;
    border: 0;
    border-radius: 0.4rem;
    font-weight: 600;
}

.guided-wizard-step[hidden],
.guided-search-actions [hidden] {
    display: none !important;
}

.guided-wizard-step h3 {
    margin-bottom: 0.5rem;
}

.guided-wizard-step p {
    margin-bottom: 1rem;
}

.guided-search-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.guided-wizard-step input,
.guided-wizard-step select {
    max-width: 38rem;
}

.guided-step-indicator {
    font-size: 0.9rem;
    font-weight: 600;
}

.guided-results-page {
    max-width: 1100px;
}

.special-search-summary .guided-result-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.special-search-summary .guided-result-list a {
    flex: 0 0 auto;
    font-weight: 600;
}

.special-search-category {
    margin-top: 1rem;
    scroll-margin-top: 1rem;
}

.special-search-category > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.special-search-category > summary::-webkit-details-marker {
    display: none;
}

.special-search-toggle {
    flex: 0 0 auto;
    color: #72563f;
    font-weight: 700;
}

.special-search-category .toggle-open { display: none; }
.special-search-category[open] .toggle-closed { display: none; }
.special-search-category[open] .toggle-open { display: inline; }

.special-search-category[open] .guided-result-list {
    margin-top: 1rem;
}

.guided-results-actions {
    margin: 1.5rem 0 0;
}

.guided-results-button {
    display: inline-block;
    padding: 0.65rem 1rem;
    color: #fff;
    background: #72563f;
    border-radius: 0.4rem;
    font-weight: 600;
    text-decoration: none;
}

.guided-search-results {
    margin-top: 1.5rem;
}

.guided-result-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guided-result-list li {
    padding: 0.85rem 1rem;
    border: 1px solid var(--bs-border-color, #b8aa96);
    border-radius: 0.45rem;
    background: var(--bs-body-bg, #fff);
}

.guided-result-list li > span,
.guided-result-list li time {
    display: block;
    color: #706252;
    font-size: 0.9rem;
}

.guided-result-list p {
    margin: 0.35rem 0 0;
}

.guided-search-error {
    margin: 1rem 0 0;
    color: #a52e22;
}

/* Tools und Discord */

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.home-feature-icon {
    flex: 0 0 2.75rem;
}

.home-feature h3 {
    margin-top: 0;
}

.home-feature p {
    margin-bottom: 0.75rem;
}

.home-feature a,
.home-info-card a,
.home-feed-all {
    font-weight: 600;
    text-decoration: none;
}

.home-feature a:hover,
.home-info-card a:hover,
.home-feed-all:hover {
    text-decoration: underline;
}

.home-muted {
    font-size: 0.875rem;
}

/* Serverstatus */

.home-server-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-server-card {
    padding: 1.25rem;
    overflow-wrap: anywhere;
}

.home-server-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-server-heading h3 {
    overflow-wrap: anywhere;
}

.home-status {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4d6548;
    background: #e5ecdf;
}

.home-server-card p {
    margin-bottom: 0.5rem;
}

.home-server-updated {
    margin-top: 1rem;
    font-size: 0.8rem;
}

/* Kalender und Ernte */

.home-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.home-info-card {
    padding: 1.25rem;
    min-width: 0;
}

.home-info-card p {
    margin-bottom: 0.6rem;
}

.home-wurm-year {
    font-weight: 600;
}

.home-wurm-day {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.home-harvest-list {
    padding-left: 1.25rem;
}

.home-starfall {
    margin-top: 1rem;
    min-width: 0;
    overflow-x: auto;
}

/* Rechte Feedspalte */

.home-feed-panel {
    padding: 1.25rem;
}

.home-feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-feed-heading h2 {
    font-size: 1.35rem;
}

.home-feed-count {
    display: grid;
    place-items: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    color: #604832;
    background: #eee2d2;
}

.home-feed-intro {
    margin: 0.75rem 0 1.25rem;
    font-size: 0.9rem;
}

.home-feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-feed-item {
    border-top: 1px solid var(--bs-border-color, #b8aa96);
}

.home-feed-item a {
    display: block;
    padding: 1rem 0;
    color: inherit;
    text-decoration: none;
}

.home-feed-item a:hover .home-feed-message {
    text-decoration: underline;
}

.home-feed-server {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.home-feed-message {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.home-feed-time {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
}

.home-feed-all {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-border-color, #b8aa96);
}

.home-empty {
    padding: 1rem 0;
}

/* Responsive */

@media (max-width: 991.98px) {
    .home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-sidebar {
        grid-row: auto;
    }

    .home-feed-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .wobot-home {
        padding: 1rem;
    }

    .home-task-grid,
    .guided-search-fields,
    .home-feature-grid,
    .home-server-grid,
    .home-info-grid,
    .home-feed-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .special-search-summary .guided-result-list li,
    .special-search-category > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-feature {
        flex-direction: column;
    }

    .home-search-form {
        flex-direction: column;
    }

    .home-search-form button {
        width: 100%;
    }
}
