@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .header-inner h1 {
        font-size: 2em;
    }

    .header-inner img {
        width: 70%;
    }
    
    .custom-bar 
    {
        height: 10px;
    }
    
    .table thead {
        display: none;
    }

    .table, 
    .table tbody, 
    .table tr, 
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        background: #fff;
    }
  	 .table tr td:first-child { font-weight: bold; }
    .table td {
        text-align: left;
        padding: 8px 8px;
        border: none;
        position: relative;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
    }
    
    .desktop {
        display: none;
	}

	body {
		padding-top: 90px;
	}

    header.mobile {
        width: 100%;
        height: 90px;
        background-color: rgba(0,0,0,0.5);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        backdrop-filter: blur(8px);
        display: block;
    }

    .mobile-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        padding: 0 10px;
    }

    /* Logo */
    .mobile-logo img {
        height: 80px;
    }

    /* Titel */
    .mobile-title {
    	color: white;
   	 	font-size: 1.4em;
   	 	text-align: center;
   	 	flex: 1;
    	margin: 0 10px;
    	line-height: 1.2;
    	font-family: "Times New Roman", Times, serif;
    }

    .mobile-title a {
        color: white;
        text-decoration: none;
    }

    /* Burger */
    .burger {
        font-size: 1.6em;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    /* =========================
    SLIDE-IN MENU
    ========================= */
    .mobile-menu {
        background-color: #000;
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100% - 90px);

        background-color: #000000; /* WICHTIG */
        opacity: 1;

        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
    }

    .mobile-menu a:first-child,
    .mobile-menu a.more {
        border-top: 2px solid rgba(200,200,200,0.5);
    }

    /* sichtbar */
    .mobile-menu.open {
        right: 0;
    }

    /* Links */
    .mobile-menu a {
        display: block;
        color: white;
        padding: 13px 15px;
        text-decoration: none;
        background: rgba(0,0,0,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.2);
        text-align: center;
    }

    .mobile-menu a:hover {
        background: rgba(50,0,0,0.7);
    }
    #menuOverlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 9997;
    }

    #menuOverlay.open {
        display: block;
    }

    footer.mobile {
        display: block;
        margin-bottom: 0;
    }

    /* Burger Grundlayout */
    .burger {
        width: 30px;
        height: 22px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Linien */
    .burger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: white;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }

    /* 3 Linien Position */
    .burger span:nth-child(1) {
        top: 0;
    }

    .burger span:nth-child(2) {
        top: 9px;
    }

    .burger span:nth-child(3) {
        top: 18px;
    }

    /* =========================
    ANIMATION → X
    ========================= */

    .burger.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    footer.mobile {
        display: block;
        background: #2f2f2f;
        padding: 15px 0;
        font-size: 1em; /* gleiche Größe wie Content */
    }

    /* Anschrift links wie Content */
    .footer-info {
        padding: 0 15px 15px 15px; /* gleiche Einrückung */
        color: #dfdfdf;
        text-align: left;
    }

    /* Links ohne Rahmen */
    .footer-info a {
        text-decoration: none;
        color: #dfdfdf;
    }

    /* dezenter Hover */
    .footer-info a:hover {
        background: rgba(200,200,200,0.05);
    }

}

/*
    Kleinere Schrift für kleinere Endgeräte
*/
@media (max-width: 399px) {
    .back-to-top {
        font-size: 30px;
    }   

    main, main p, footer {
        font-size: 1.0em;
        line-height: 1.4;
    }

    .warning {
        color: red;
        font-size: 1.0em;
    }
    h2 {
        font-size: 1.4em;
    }
    h2 {
        font-size: 1.3em;
    }
    .mobile-title {
        font-size: 1.3em;
    }
}