:root {
        --is-small-screen: false;
    }

    body {
        background-position: left top;
        font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-style: normal;
        background-color: White;
        background-image: url('/gif/LinkeLeiste.jpg');
        background-repeat: repeat-y;
        background-attachment: scroll;
        margin-top: 0px;
        margin-right: 4px;
    }

    .BodyText {
        margin-left: 6px;
    }

    .connectionline {
        position: absolute;
        border-width: 1px;
    }

    .OverviewTitle {
        text-align: center;
        height: 37px;
        font-weight: bold;
        font-size: 24pt;
    }

    .sub-title {
        font-size: 16pt;
    }

    .Calendar {
        position: relative;
        vertical-align: top;
        width: 33%;
        z-index: 0;
    }

    .OverviewList {
        position: relative;
        top: 0;
        vertical-align: top;
        height: 62px;
        width: 25%;
    }

    .BoxText {
        border-style: solid;
        border-width: 1px;
        padding: 180px 20px 180px 20px;
        margin: 10px;
        text-align: center;
        font-size: 14pt;
        font-weight: bold;
    }

    .LeftMargin36 {
        margin-left: 36pt;
    }

    .Link, .HyperLink {
        cursor: pointer;
    }

    .HyperLink {
        text-decoration: underline;
        color: #0066FF;
    }

    .wait, .wait * {
        cursor: wait !important;
    }

    .RightJustified {
        text-align: right;
    }

    .AdminTable, .WideTable, .NormalTable, .CalenderTable {
        margin-left: auto;
        margin-right: auto;
        padding: 4px;
        border-collapse: collapse;
        border-spacing: 4px;
    }

    .WideTable, .NormalTable, .CalenderTable {
        position: relative;
        top: 10px;
    }

    .AdminTable, .WideTable, .NormalTable {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .AdminTable {
        border: 1px solid #808080;
        color: #333333;
    }

    .PlaceEvents {
        height: 400px;
        overflow: auto;
    }

    .CalenderTable {
        margin-top: 0px;
        top: 0px;
        overflow: scroll;
    }

    .GoogleMap {
        margin: 6px auto;
    }

    .Menu, .TableHeader, .SubMenu {
        color: White;
        background-color: #9D7600;
    }

    .Menu {
        width: 100%;
        z-index: 200;
        min-height: 19px;
    }

    .TableHeader, .SubMenu {
        font-size: 0.9em;
    }

    .TableHeader {
        text-align: center;
        font-weight: bold;
    }

    .SubMenu {
        text-align: left;
        font-size: 10pt;
    }

    .SelectedMenuItem {
        background-color: #C0C0C0;
        color: #000000;
    }

    .GedcomAuthor, .VersionInfo {
        padding-top: 4pt;
        text-align: left;
        font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
        font-size: 75%;
        color: #6B5E45;
    }

    .VersionInfo {
        margin-top: 12px;
        margin-left: 6px;
        font-size: 70%;
    }

    .TitleOverviewPlace, .TitleOverviewAnonymous, .TitleOverviewPersonalized, .TitleSinglePersonalized, .TitleSingleAnonymous, .TitleSinglePlace {
        position: relative;
        top: 0;
        height: 96px;
        width: 100%;
        background-position: left top;
        background-repeat: repeat-x;
        background-attachment: scroll;
        color: #6B5E45;
    }

    .TitleOverviewPlace, .TitleOverviewAnonymous, .TitleOverviewPersonalized {
        text-align: center;
    }

    .TitleSinglePersonalized, .TitleSingleAnonymous, .TitleSinglePlace {
        text-align: left;
    }

    .TitleOverviewPlace, .TitleSinglePlace {
        background-image: url('/gif/Oberer%20Rand%20Orte.jpg');
    }

    .TitleOverviewAnonymous, .TitleSingleAnonymous {
        background-image: url('/gif/Oberer%20Rand%20Anonym.jpg');
    }

    .TitleOverviewPersonalized, .TitleSinglePersonalized {
        background-image: url('/gif/Oberer%20Rand%20Personalisiert.jpg');
    }

    .Login {
        padding-left: 5px;
    }

    .Button, .SmallButton, .Box {
        border: 1px solid #6B5E45;
        background-color: White;
        color: #6B5E45;
    }

    .Button, .SmallButton {
        cursor: pointer;
        text-align: center;
    }

    .SmallButton {
        font-size: 0.8em;
    }

    .LoginBox {
        margin: 30px auto 30px auto;
    }

    .top-list-links {
        position: absolute;
        right: 5px;
        text-align: center;
    }

    .menu-divider {
        border-top: 1px solid black;
        left: 0;
        width: 100%;
    }

    .modalBackground {
        background-color: Gray;
        filter: alpha(opacity=70);
        opacity: 0.7;
    }

    .modalPopup {
        width: 300px; /*height: 300px;*/
        background-color: white;
    }

    .message-box {
        padding: 6px;
    }

    /* Wide Screen */
    body {
        margin-left: 108px;
        font-size: 10pt;
        min-width: 1104px; /* abzgl. margin-left */
    }

    .WideTable {
        width: 98%;
        min-width: 1082px; /* min-width von body - 2% */
    }

    .NormalTable {
        min-width: 600px;
    }

    .CalenderTable {
        min-width: 200px;
        font-size: 90%;
    }

    .MainLink {
        font-size: 11pt;
    }

    .PlaceEvents {
        width: 400px;
    }

    .title-text {
        position: relative;
        top: 17px;
    }

    div.list-box {
        overflow-y: scroll;
        border: 1px solid black;
        padding: 2px;
    }

        div.list-box a {
            display: block;
            color: inherit;
            text-decoration: none;
            font-weight: normal;
            padding-left: 20px;
            text-indent: -20px;
            white-space: normal;
        }

            div.list-box a:visited {
                color: inherit;
            }

    .resp-text-wide {
        display: inherit;
    }

    .resp-text-small {
        display: none;
    }

    .table-container {
        display: flex;
        align-items: center;
    }

    .table-box {
        padding: 8px;
        text-align: center;
        box-sizing: border-box;
    }

    .table-left, .table-right {
        flex-grow: 1; /* Beide Seitenboxen teilen sich den freien Platz */
    }

    .table-left {
        order: 1;
    }

    .table-middle {
        flex-shrink: 0; /* Verhindert, dass die Box kleiner als ihr Inhalt wird */
        order: 2;
    }

    .table-right {
        order: 3;
    }

    .table-middle img {
        max-width: 500px; /* Begrenzung der Bildgröße */
        height: auto;
    }

    @media screen and (max-width: 600px) {
        /* Small Screen */
        :root {
            --is-small-screen: true;
        }

        body {
            font-size: 9pt;
            background-image: url('/gif/LinkeLeisteKlein.jpg');
            margin-left: 54px;
            min-width: unset;
        }

        .OverviewTitle {
            padding-top: 0;
            font-size: 12pt;
            top: 12px;
        }

        .title-text {
            top: 4px;
        }

        .sub-title {
            font-size: 12pt;
            top: 12px;
            position: relative;
        }

        .WideTable {
            width: 100%;
            min-width: unset; /* min-width von body - 0% */
        }

        .NormalTable {
            min-width: unset; /* min-width von body - 10% */
        }

        .CalenderTable {
            min-width: 150px;
            font-size: 85%;
        }

        .WideTable {
            margin-top: 0;
        }

        .MainLink {
            font-size: 10pt;
        }

        .PlaceEvents {
            width: 350px;
        }

        .Menu {
            font-size: 8pt;
        }

        .TitleOverviewPlace, .TitleOverviewAnonymous, .TitleOverviewPersonalized, .TitleSinglePersonalized, .TitleSingleAnonymous, .TitleSinglePlace {
            height: 77px;
        }

        .TitleOverviewPlace, .TitleSinglePlace {
            background-image: url('/gif/Oberer%20Rand%20Orte%20klein.jpg');
        }

        .TitleOverviewAnonymous, .TitleSingleAnonymous {
            background-image: url('/gif/Oberer%20Rand%20Anonym%20klein.jpg');
        }

        .TitleOverviewPersonalized, .TitleSinglePersonalized {
            background-image: url('/gif/Oberer%20Rand%20Personalisiert%20klein.jpg');
        }

        .CalenderTable {
            font-size: inherit;
        }

        .TableHeader, .SubMenu {
            font-size: inherit;
        }

        .CalenderTable {
            font-size: inherit;
        }

        .resp-text-wide {
            display: none;
        }

        .resp-text-small {
            display: inherit;
            margin-top: 12px;
        }

        .table-left, .table-right, .table-middle {
            width: 100%; /* Volle Breite für alle Boxen */
        }

            .table-middle img {
                max-width: 100%;
            }

        .table-left {
            order: 2;
        }

        .table-middle {
            order: 1;
        }

        .table-right {
            order: 3;
        }

        .table-container {
            flex-direction: column;
            align-items: center;
        }
    }