body {
    font-family: Verdana, sans-serif, Arial;
    margin: 40px 20px 80px 20px;
    background-color: #f5f5f5;
    color: #333;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
	font-size: 180%;
}

.mobile-sort-buttons {
    display: none;
    margin-bottom: 20px;
    text-align: left;
	background-color: #888;
	border-radius: 8px;
	padding: 4px 2px;
}

.mobile-sort-buttons button {
    margin: 5px 5px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #888;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    position: relative;
}

.mobile-sort-buttons button:hover {
    background-color: #666;
}

.mobile-sort-buttons button .arrowup,
.mobile-sort-buttons button .arrowdown{
	width: 12px;
	height: 12px;
	fill: #fff;
}

.mobile-sort-buttons button .asc,
.mobile-sort-buttons button .desc {
    display: none; /* standardmäßig verstecken */
    margin-left: 4px;
}

#locations th, .mobile-sort-buttons button {
    cursor: pointer;
    user-select: none;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

#locations {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#locations thead {
    background-color: #888;
    color: #fff;
}

#locations th, #locations td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#locations tr:last-child td{
	border-bottom: none;
}

#locations th { cursor: pointer; }
/*#locations th.asc::after { content: " ↑"; }
#locations th.desc::after { content: " ↓"; }*/

#locations th .arrowup,
#locations th .arrowdown{
	width: 16px;
	height: 16px;
	fill: #fff;
}

#locations th .asc,
#locations th .desc {
    display: none; /* standardmäßig verstecken */
    margin-left: 4px;
}



#locations tbody tr:nth-child(even){
    background-color: #f9f9f9;
}

#locations tbody tr:hover{
    background-color: #f1f1f1;
}
#locations td:first-child{
    font-weight: bold;
}


#locations .info{
	color: #888;
	display: flex;
    flex-direction: row;
    align-items: center;
	margin: 5px auto 0 0;
}

#locations .info .category{
	display: inline-block;
	margin-right: 10px;
}

#locations .info .category .svggastro{
	width: 18px;
	height: 18px;
	fill: #888;
	
}

#locations .category .svgaction{
	width: 12px;
	height: 12px;
	fill: #888;
}

#locations .info .rating{
	display: inline-block;
}

#locations .info .rating .svgstar{
	width: 14px;
	height: 14px;
	fill: #888;
	margin-right: 1px;
}

#locations .info .rating .svgstar:last-child{
	margin-right: 0;
}


#locations a{
    color: inherit;
    text-decoration: none;
}

@media (max-width: 600px) {
    .mobile-sort-buttons { 
        display: block; 
        xmargin: 0 auto 15px auto;
        text-align: left;
    }

    .table-container {
        overflow-x: visible; 
        padding: 0; /* kein zusätzliches Padding */
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    #locations {
        display: block;
        width: 100%;
        border-spacing: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;  /* Schatten entfernen */
        background-color: unset;
        box-sizing: border-box;
    }

    #locations thead { display: none; }
    #locations tbody { display: block; }

    #locations tr {
        display: block;
        width: 100%;  /* volle Breite */
        margin: 0 0 20px 0;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 12px;
        background-color: #fff;
        box-sizing: border-box;
    }

    #locations td {
        display: block;
        width: 100%;  /* volle Breite jeder Zelle */
        text-align: left;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
    }

    #locations td::before {
        display: none;
        content: none;
    }

    #locations td:first-child {
        font-weight: bold;
        margin-top: 5px;
    }

    #locations td:last-child {
        border-bottom: none;
        padding-bottom: 5px;
    }
}
