html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    min-height: 50vh;
    font-family: Arial, sans-serif;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20vh;
    /* 20% vom oberen Rand */
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10vh;
    /* 20% vom oberen Rand */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* statt left */
    width: 100%;
    margin-left: 10%;
    margin-top: 10%;
    margin-right: auto;
    margin-bottom: auto;
}

.wappen-img {
    display: block;
    margin: 0 auto 24px auto;
    max-width: 120px;
    height: auto;
}

.logo {
    display: block;
    margin: 0 auto 24px auto;
    max-width: 120px;
    height: auto;
}

.woerterbuch-tabelle {
    width: 100%;
    max-width: 800px;
    min-width: 320px;
    margin: 0 auto;
    box-sizing: border-box;
}

.search-box {
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(60, 64, 67, .08);
    padding: 0px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-left: 16px;
}

#search {
    width: 400px;
    max-width: 90vw;
    padding: 16px 24px;
    border-radius: 32px;
    border: 1px solid #dfe1e5;
    font-size: 1.2rem;
    outline: none;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(60, 64, 67, .08);
}

#search:focus {
    box-shadow: 0 4px 12px rgba(60, 64, 67, .15);
    border-color: #4285f4;
}

.nav-links {
    margin-top: 32px;
    display: flex;
    gap: 32px;
    justify-content: center;
}

.nav-links a {
    text-decoration: none;
    color: #4285f4;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #174ea6;
}

#wortliste {
    margin-top: 40px;
    width: 100%;
    max-width: 700px;
    list-style: none;
    padding: 0;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    max-width: 800px;
    min-width: 320px;
}

.result-table th,
.result-table td {
    border-bottom: 1px solid #eee;
    padding: 12px 8px;
    text-align: left;
}

.result-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.footer-links {
    position: fixed;
    right: 32px;
    bottom: 16px;
    display: flex;
    gap: 24px;
    font-size: 14px;
    z-index: 10;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4285f4;
}

.wappen-logo {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 60px;
    height: auto;
    z-index: 20;
    cursor: pointer;
}

.logo-link {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px;
    display: block;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
    margin-top: 8px;
    width: 100%;
    max-width: 800px;
    min-width: 320px;
    box-sizing: border-box;
}

.alpha-btn {
    border: 1px solid #dfe1e5;
    background: #f8f9fa;
    color: #4285f4;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 2px 2px;
    /* Optional: zusätzlicher Abstand */
}

.alpha-btn:hover {
    background: #e3eafc;
    color: #174ea6;
}

.video-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    max-width: 600px;
}

.video-list li {
    margin-bottom: 22px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .07);
}

.video-list a {
    font-size: 1.1rem;
    color: #4285f4;
    font-weight: bold;
    text-decoration: none;
}

.video-list a:hover {
    text-decoration: underline;
    color: #174ea6;
}

.video-desc {
    font-size: 0.98rem;
    color: #444;
    margin-top: 4px;
}

.sprueche-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    max-width: 600px;
}

.sprueche-list li {
    margin-bottom: 22px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .07);
    font-size: 1.08rem;
}

.spruch-desc {
    color: #444;
    font-size: 0.97rem;
}

.gedichte-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    max-width: 600px;
}

.gedichte-list li {
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(60, 64, 67, .07);
    font-size: 1.08rem;
}

.gedicht-text {
    color: #444;
    font-size: 0.97rem;
    display: block;
    margin-top: 6px;
    white-space: pre-line;
}

@media (max-width: 600px) {
    #search {
        width: 95vw;
        font-size: 1rem;
    }

    .result-table th,
    .result-table td {
        font-size: 0.95rem;
        padding: 8px 4px;
    }
}