* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    font-size: 16px;
    background-color: aliceblue;
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

header {
    overflow: hidden;
    text-align: center;
}

header img {
    width: 100%;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.headerTitel {
    overflow: hidden;
}

.headerTitel > p {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
    width: 74%;
    float: right;
}

input[type=submit], a.link_button {
    padding: 2px 25px;
}

input, select, button, a.link_button {
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Messagebox */
.msg_box {
    width: auto;
    margin: 15px;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid;
}

.msg_box > h1 {
    font-size: 24px;
    margin: 0;
    margin-bottom: 10px;
}

.msg_box.msg-error {
    background-color: #f2dede;
    color: #a94442;
}

.msg_box.msg-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
}

.msg_box.msg-info {
    color: #31708f;
    background-color: #d9edf7;
}

.msg_box.msg-success {
    color: #3c763d;
    background-color: #dff0d8;
}

/* Eigener Linkbutton */
a.link_button {
    background-color: #e9e9ed;
    text-decoration: none;
    color: inherit;
    text-align: center;
    display: block;
    width: fit-content;
}

a.link_button:hover {
    background-color: #d0d0d7;
}

a.link_button:active {
    background-color: #b1b1b9;
}

.antragauswahl {
    overflow: hidden;
    margin: 0 20px;
}

.antragauswahl > *{
    float: left;
    margin: 0;
}

.antragauswahl > a.link_button {
    float: right;
}

footer p {
    margin: 5px 0;
}

/* Schwartz Brett */
.sb_friedhoffe > a{
    width: 280px;
    margin: auto;
}

#sb_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#sb_grid > a {
    border: solid black 1px;
    margin: auto;
}

#sb_grid img {
    width: 100%;
}

/* Anträge */
.antrag_form > input[type=text],
.antrag_form > input[type=number],
.antrag_form > input[type=date],
.antrag_form > input[type=tel], 
.antrag_form > input[type=email],
.antrag_form > select {
    width: 280px;
}

.antrag_form > input[type=radio], .antrag_form > input[type=checkbox] {
    height: 30px;
    width: 30px;
    margin-right: 20px;
}

.antrag_form > input[type=checkbox] { 
    margin-left: 60px;
}

.antrag_form > label {
    display:inline-block;
    width: 100%;
    max-width: 150px;
}

.antrag_form > label.form_label_long {
    max-width: 650px;
}

.antrag_form > .form_hint {
    max-width: fit-content;
    margin-left: 155px;
    color: #646464;
}

.antrag_form > .form_submit {
    overflow: hidden;
}

.antrag_form > .form_submit > * {
    float: left;
    margin: 0 20px;
}

.antrag_bild {
    float: right;
    width: 100%;
    max-width: 300px;
    border: black 1px solid;
    border-radius: 5px;
}

.only_print {
    display: none;
}

/* Adminseite */
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    /* border: 1px solid #000; */
    text-align: left;
    padding: 8px;
}

th {
    background: #aaa;
    background: linear-gradient(0deg, #aaa 0%, #eee 100%);
}

tr:nth-child(odd) {
    background-color: #ddd;
}

/* Mobile */
@media screen and (max-width: 770px) {
    .antrag_bild {
        float: unset;
        display: block;
        margin: auto;
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 500px) {
    body {
        font-size: 20px;
    }

    .antragauswahl {
        margin: 0;
    }

    .antragauswahl > p {
        margin-bottom: 20px;
    }

    #sb_grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    input[type=submit], a.link_button {
        padding: 10px 10px;
    }
    

    input, select, button, a.link_button {
        width: 100% !important;
        font-size: 20px;
        padding: 10px 10px;
    }

    /* Anträge */
    .antrag_form > .form_hint {
        margin: 0;
    }

    .antrag_form > .form_submit > * {
        margin: 0;
        margin-bottom: 20px;
    }

    .antrag_form > input[type=radio] {
        height: 60px;
        width: 60px;
    }
    
}

@media print {
    .no_print {
        display: none;
    }

    .only_print {
        display: unset;
    }
}