@media (max-width: 700px) {
    html,
    body.contentPage {
        min-width: 0;
        width: 100%;
        height: auto;
        overflow-x: hidden;
    }

    body.contentPage {
        background: #fff;
        color: #292929;
        font-size: 16px;
        line-height: 1.5;
    }

    body.contentPage .wrapper {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 100vh;
        width: 100%;
        text-align: left;
    }

    body.contentPage #country_select,
    body.contentPage #header {
        display: none;
    }

    body.contentPage #navigation {
        position: relative;
        order: 1;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin: 0;
        background: #f4f7f1;
        border-bottom: 1px solid #cfd7ca;
    }

    body.contentPage #navigation a.home {
        display: block !important;
        position: static;
        width: 100%;
        height: 54px;
        background: url("../gpack/travian/images/artwork-ltr.jpg?v=20261002-mainbig3") center 21% / auto 170px no-repeat;
        border-bottom: 4px solid #4b9f25;
    }

    body.tutorialPage #navigation a.home,
    body.manualPage #navigation a.home {
        height: 220px;
        background-position: center top;
        background-size: auto 100%;
    }

    body.contentPage #navigation a.home img {
        width: 100%;
        height: 100%;
    }

    body.contentPage #navigation table.menu,
    body.tutorialPage #navigation table.menu,
    body.manualPage #navigation table.menu {
        position: static;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    body.contentPage #navigation .menu td {
        padding: 0;
        border-right: 1px solid #d7ddd3;
        text-align: center;
    }

    body.tutorialPage #navigation .menu .forum-link {
        display: none;
    }

    body.contentPage #navigation .menu td:last-child {
        border-right: 0;
    }

    body.contentPage #navigation .menu a,
    body.contentPage #navigation .menu a span {
        display: block;
        padding: 0;
        background: none;
    }

    body.contentPage #navigation .menu a {
        min-height: 50px;
        color: #2f6f19;
        font-size: 15px;
        font-weight: 700;
        line-height: 50px;
        text-shadow: none;
        white-space: nowrap;
    }

    body.contentPage #navigation .menu a.mark {
        color: #a20327;
        background: #fff4f5;
        box-shadow: inset 0 -4px #a20327;
    }

    body.contentPage #content {
        position: relative;
        order: 2;
        box-sizing: border-box;
        width: 100%;
        padding: 16px 12px 28px;
    }

    body.contentPage #content .grit {
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: none;
    }

    body.contentPage #content .grit > h1 {
        margin: 0 0 14px;
        padding: 12px 14px;
        background: #f1f5ef;
        border-left: 4px solid #59ac28;
        font-size: 28px;
        line-height: 1.3;
        text-align: left;
    }

    body.legalPage #content .submenu,
    body.legalPage #content .terms-box {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 14px;
        border: 1px solid #d7ddd3;
        font-size: 16px;
        line-height: 1.65;
    }

    body.legalPage #content .rules {
        margin: 14px 0;
        padding-left: 22px;
        font-size: 16px;
        line-height: 1.65;
    }

    body.legalPage #content .rules > li {
        margin-bottom: 18px;
    }

    body.legalPage #content .rules li li {
        margin: 10px 0;
    }

    body.legalPage #content .terms-box h3 {
        margin: 16px 0 6px;
        padding: 8px 10px;
        background: #f4f7f2;
        border-left: 4px solid #71d000;
    }

    body.legalPage #content .terms-box h3:first-child {
        margin-top: 0;
    }

    body.legalPage #content .terms-box br + br {
        display: none;
    }

    body.legalPage #content .legal-footer {
        box-sizing: border-box;
        width: 100%;
        height: auto;
        margin: 20px 0 0;
        padding: 16px;
        color: #666;
        background: #f1f3f0;
        border-top: 1px solid #d7ddd3;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }

    body.legalPage #content .legal-footer::before {
        content: none;
    }

    body.imprintPage #content p.submenu {
        display: block;
        font-size: 16px;
    }

    body.imprintPage #content p.submenu a {
        display: inline !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 16px;
        text-align: left;
    }

    body.contentPage #content h2 {
        clear: both;
        margin: 22px 0 10px;
        padding: 8px 10px;
        color: #276f0c;
        background: #f4f7f2;
        border-left: 4px solid #71d000;
        font-size: 21px;
        line-height: 1.35;
    }

    body.contentPage #content h3 {
        clear: both;
        margin: 16px 0 6px;
        font-size: 18px;
        line-height: 1.4;
    }

    body.contentPage #content p,
    body.contentPage #content form,
    body.contentPage #content .characteristics,
    body.contentPage #content .rules {
        box-sizing: border-box;
        max-width: 100%;
        margin: 10px 0;
        font-size: 16px;
        line-height: 1.55;
    }

    body.contentPage #content ul,
    body.contentPage #content ol {
        box-sizing: border-box;
        max-width: 100%;
        padding-left: 24px;
    }

    body.contentPage #content img {
        max-width: 100%;
        height: auto;
    }

    body.manualPage #content p > img[align] {
        width: auto;
        max-width: 34%;
        height: auto;
        margin: 4px 10px 8px;
    }

    body.faqPage #content .grit .question {
        clear: both;
        box-sizing: border-box;
        margin: 24px 0 12px;
        padding: 10px 12px;
        border-left: 4px solid #42818b;
        background: #edf4f5;
        color: #2b3d38;
        font-size: 16px;
        font-style: normal;
        font-weight: bold;
        line-height: 1.5;
    }

    body.faqPage #content .grit .answer {
        margin: 0 0 18px;
        padding: 0;
        line-height: 1.65;
    }

    body.faqPage #content .faq-illustration {
        clear: both;
        margin: 18px 0 8px;
        text-align: center;
    }

    body.faqPage #content .faq-illustration img[align] {
        float: none;
        max-width: 100%;
        margin: 0;
    }

    body.contentPage #content .submenu {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin-bottom: 18px;
        padding: 0;
        border: 1px solid #cfd7ca;
        font-size: 0;
    }

    body.contentPage #content .submenu a {
        flex: 1 1 auto;
        min-width: 30%;
        padding: 11px 8px;
        border-right: 1px solid #d7ddd3;
        color: #2f6f19;
        font-size: 16px;
        text-align: center;
    }

    body.manualPage #content .submenu {
        display: flex;
        flex-wrap: nowrap;
    }

    body.manualPage #content .submenu a {
        box-sizing: border-box;
        flex: 1 1 0;
        min-width: 0;
        padding: 11px 4px;
        font-size: 14px;
        white-space: nowrap;
    }

    body.manualPage #content .submenu a:last-child {
        flex-grow: 2;
        border-right: 0;
    }

    body.contentPage #content table {
        box-sizing: border-box;
        max-width: 100%;
        margin: 12px 0;
    }

    body.tutorialPage #content .tutorial_table,
    body.tutorialPage #tutorial_nav {
        width: 100%;
        table-layout: auto;
    }

    body.tutorialPage .tutorial_table tr:first-child {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    body.tutorialPage .tutorial_table td.visual {
        display: block;
        flex: 1 1 140px;
        box-sizing: border-box;
        padding: 8px;
        background: #f4f7f2;
        border: 1px solid #d7ddd3;
        font-size: 14px;
        line-height: 1.4;
    }

    body.tutorialPage .tutorial_table td.visual img {
        width: auto;
        max-width: 100%;
        margin: 0 auto 6px;
    }

    body.tutorialPage #content td.beschreibung {
        display: table-cell;
        padding: 14px 4px 4px;
        font-size: 16px;
        line-height: 1.55;
    }

    body.tutorialPage #tutorial_nav td {
        padding: 12px 4px;
        font-size: 16px;
    }

    body.tutorialPage #tutorial_nav a {
        display: inline-block;
        min-height: 38px;
        padding: 7px 10px;
        background: #edf7e8;
        border: 1px solid #66ad43;
        border-radius: 4px;
        font-size: 16px;
        line-height: 24px;
    }

    body.manualPage table.table_data,
    body.manualPage table.culture_points,
    body.manualPage table.middle {
        width: 100%;
        margin: 12px 0;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 1px;
        font-size: 11px;
        line-height: 1.25;
    }

    body.manualPage table.table_data th,
    body.manualPage table.table_data td {
        box-sizing: border-box;
        width: auto;
        min-width: 0;
        padding: 3px 1px;
        overflow-wrap: anywhere;
    }

    body.manualPage table.table_data th:first-child,
    body.manualPage table.table_data td:first-child {
        width: 25px;
    }

    body.manualPage table.table_data th:nth-child(2),
    body.manualPage table.table_data td:nth-child(2) {
        width: 72px;
    }

    body.manualPage table.table_data td.text,
    body.manualPage table.table_data th.text {
        padding-left: 3px;
    }

    body.manualPage table.table_data h3 {
        margin: 3px;
        font-size: 15px;
    }

    body.manualPage table.culture_points th:first-child,
    body.manualPage table.culture_points td:first-child {
        width: auto;
    }

    body.contentPage #footer {
        position: relative;
        order: 3;
        bottom: auto;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        min-height: 70px;
        padding: 12px;
        background: #f1f3f0;
    }

    body.contentPage #footer .container {
        width: 100%;
    }

    body.contentPage #footer .logo {
        display: none;
    }

    body.contentPage #footer .menu {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px 7px;
    }

    body.contentPage #footer .menu li {
        float: none;
    }

    body.contentPage #footer .copyright {
        position: static;
        width: 100%;
        text-align: center;
    }

    body.contentPage .overlay {
        position: fixed;
    }

    body.contentPage #iframe_layer .overlay_content {
        position: fixed;
        top: 50%;
        right: auto;
        left: 50%;
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: 440px;
        max-height: calc(100vh - 24px);
        margin: 0;
        overflow: auto;
        transform: translate(-50%, -50%);
        background: #fff;
        border: 1px solid #9cab93;
    }
}

@media (max-width: 370px) {
    body.tutorialPage #navigation a.home,
    body.manualPage #navigation a.home {
        height: 190px;
    }

    body.contentPage #navigation .menu a {
        font-size: 14px;
    }

    body.manualPage table.table_data {
        font-size: 10px;
    }

    body.manualPage table.table_data th:nth-child(2),
    body.manualPage table.table_data td:nth-child(2) {
        width: 62px;
    }
}
