/* ======================================
   Wortsuche – Zusatzstyles
   Datei: /wortsuche/add.css
====================================== */

.word-entry {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin: 30px 0;
}

/* Überschrift */
.word-entry h1 {
    margin-bottom: 10px;
}

.word-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Sections */
.word-entry section {
    margin-top: 28px;
}

.word-entry section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Text */
.word-entry p {
    font-size: 16px;
    line-height: 1.7;
}

/* Beispiele */
.word-entry ul {
    list-style: disc;
    padding-left: 20px;
}

.word-entry li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Hinweise (automatisch erkannt) */
.word-entry section:last-of-type p {
    background: var(--bg-soft);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* Häufige Fehler */
.word-errors {
    background: #fff5f5;
    border-left: 4px solid #e63946;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 35px;
}

.word-errors h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.word-errors ul {
    list-style: none;
    padding-left: 0;
}

.word-errors li {
    margin-bottom: 12px;
}

.word-errors .hint {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

/* FAQ */
.word-entry section h2 + p strong {
    color: var(--text-main);
}
/* Wortfamilie & ähnliche Wörter */

.word-family,
.word-similar {
    margin-top: 35px;
}

.word-family ul,
.word-similar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding-left: 0;
}

.word-family li a,
.word-similar li a {
    background: var(--bg-soft);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-main);
}

.word-family li a:hover,
.word-similar li a:hover {
    background: var(--main-color);
    color: #fff;
}
.breadcrumb {
    font-size: 14px;
    margin: 10px 0 20px;
    color: #666;
}

.breadcrumb a {
    color: var(--main-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
.autocomplete {
    position: relative;
    max-width: 420px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.suggestions li {
    display: flex;
    justify-content: space-between;
}

.suggestions li::after {
    content: "★";
    color: #f4b400;
    font-size: 13px;
    opacity: .8;
}


.suggestions li:hover {
    background: #f4f6f8;
}

.suggestions strong {
    color: var(--main-color);
}

/* Mobile */
@media (max-width: 768px) {
    .word-entry {
        padding: 20px;
    }

    .word-entry h1 {
        font-size: 26px;
    }
}
