/*Source: https://www.res.uni-hamburg.de/packs/css/application-d43e9abc.css*/

:root {
    --color-uhhred: #e2001a;
    --color-uhhred-light: #edb3b9;
    --color-uhhblue: #0271bb;
    --color-uhhblue-light: #abd5eb;
    --color-uhhgray: #3b515b;
    --color-uhhgray-light: #c2cbce;
    --color-uhhgreen: #00cc00;
    --color-uhhgreen-light: #a8f5a8;
    --color-uhhyellow: #f0f000;
    --color-uhhyellow-light: #f0f0b3;
    --color-uhhblack: #202020;
    --color-font: #4e4e4e;
}

body {
    background: #fff;
    font-family: TheSansUHH, sans-serif;
    color: #4e4e4e;
    color: var(--color-font);
    font-size: 16px;
    padding: 0 20px;
}

h1 {
    font-family: TheSansUHHRegularCaps;
    font-weight: 400;
    font-size: 1.9em;
    color: #333;
    text-transform: uppercase;
    margin: 1.5em 0;
    line-height: 1.15em;
}

p {
    line-height: 1.5em;
}

.error_message {
    color: var(--color-uhhred);
}

.success_message {
    color: var(--color-uhhred);
}

a {
    color: #e2001a;
    color: var(--color-uhhred);
    text-decoration: none;
}

a:active {
    text-decoration: underline;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

form div {
    flex: 0 0 49%;
}

.submit_button,
form p,
form ul {
    flex: 0 0 100%;
}

.submit_button {
    display: flex;
    justify-content: flex-end;
}

label {
    display: block;
    padding-bottom: 3px;
    font-family: TheSansUHH;
    color: #4f4f4f;
}

.datalist-arrow:after {
    margin-left: -1.5em;
    content: '\25bc';
    margin-right: 0.5em;
    pointer-events: none;
}

input::-webkit-calendar-picker-indicator {
    display: none;
}

#checkintable th, #checkintable td, .checkintable th, .checkintable td {
    padding-right: 5px;
    padding-left: 5px;
    -moz-hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    text-align: center;
    border: 1px solid #ddd;
}

#login_form, #update_form, #delete_form {
    display: flow;
    flex-flow: row-reverse;
}

#login_form td, #update_form td, #delete_form td, #login_form th, #update_form th, #delete_form th {
    border: 0px;
}

input[type="text"], input[type="password"],
select,
textarea {
    border-radius: 7px;
    border: 1px solid #999;
    color: #4e4e4e;
    color: var(--color-font);
    font-family: TheSansUHH, sans-serif !important;
    font-size: 16px;
    padding: 10px;
    width: 100%;
}

input[type="text"]:focus::-moz-placeholder,
select:focus::-moz-placeholder,
textarea:focus::-moz-placeholder {
    opacity: 0;
}

input[type="text"]:focus:-ms-input-placeholder,
select:focus:-ms-input-placeholder,
textarea:focus:-ms-input-placeholder {
    opacity: 0;
}

input[type="text"]:focus::-ms-input-placeholder,
select:focus::-ms-input-placeholder,
textarea:focus::-ms-input-placeholder {
    opacity: 0;
}

input[type="text"]:focus::placeholder,
select:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0;
}

select {
    cursor: pointer;
    font-family: TheSansUHHBold, sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzAyNzFiYiIgZD0iTS0xLTFoMjZ2MjZILTF6Ii8+PGc+PHBhdGggZD0iTS04OC4zMzMtMTYuMTExaDI0djI0aC0yNHYtMjR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTcuNDEgMTMuNTlMMTIgMTguMTdsNC41OS00LjU4TDE4IDE1bC02IDYtNi02IDEuNDEtMS40MXpNMTYuNTgyIDExLjEyNGwtNC41OS00LjU4LTQuNTkgNC41OC0xLjQxLTEuNDEgNi02IDYgNi0xLjQxIDEuNDF6IiBmaWxsPSIjZmZmIi8+PC9nPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-position: right 0 top 0;
    background-size: auto 100%;
}

input[type="radio"] {
    margin-right: 5px;
}

.button,
input[type="submit"] {
    height: 44px;
    color: #fff !important;
    border: 0;
    background-color: #0271bb;
    background-color: var(--color-uhhblue);
    font-size: 16px;
    font-family: TheSansUHHBoldCaps, sans-serif;
    padding: 0.6em 1.5em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.button:active,
input[type="submit"]:active {
    background-color: #e2001a;
    background-color: var(--color-uhhred);
    text-decoration: none;
}

.main_text label {
    font-family: TheSansUHH;
    color: #4e4e4e;
}

#small_break p {
    margin-bottom: 0;
}

#big_margin {
    margin-bottom: 3em !important;
}

.fill_color {
    display: inline-block;
    height: 1em;
    margin-left: 2px;
    vertical-align: sub;
    width: 1em;
}

.fill_color.color_blue {
    background-color: #0271bb;
    background-color: var(--color-uhhblue);
}

.fill_color.color_red {
    background-color: #e2001a;
    background-color: var(--color-uhhred);
}

.fill_color.color_gray {
    background-color: #3b515b;
    background-color: var(--color-uhhgray);
}

.calendar-nav {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: TheSansUHHBold;
    text-transform: uppercase;
    color: #0271bb;
    color: var(--color-uhhblue);
    margin-bottom: 0.5em;
    font-size: x-large;
}

.calendar-nav .backward,
.calendar-nav .forward {
    color: #0271bb !important;
    color: var(--color-uhhblue) !important;
    text-decoration: none !important;
    margin: 0 35px;
    font-family: TheSansUHHRegular;
    font-size: xxx-large;
}

.calendar-nav .month {
    color: #0271bb !important;
    color: var(--color-uhhblue) !important;
}

#calendar-container {
    flex: 0 0 100%;
    max-width: 705px;
}

#calendar-container .calendar {
    font-family: TheSansUHHRegular;
    width: 100%;
    table-layout: fixed;
    font-size: 0.9em;
    border-spacing: 5px;
    border-collapse: separate;
}

#calendar-container .calendar th {
    font-family: TheSansUHHBold;
    text-align: center;
    height: 30px;
    border: none;
    padding: 0px;
}

#calendar-container .calendar td {
    border: 1px solid #c2cbce;
    border-top: 10px solid #c2cbce;
    border: 1px solid var(--color-uhhgray-light);
    border-top: 10px solid var(--color-uhhgray-light);
    text-align: center;
}

#calendar-container .calendar td.color_red {
    border-color: #e2001a;
    border-color: var(--color-uhhred);
}

#calendar-container .calendar td.color_red.closed {
    border-color: #edb3b9;
    border-color: var(--color-uhhred-light);
}

#calendar-container .calendar td.color_blue {
    border-color: #0271bb;
    border-color: var(--color-uhhblue);
}

#calendar-container .calendar td.color_blue.closed {
    border-color: #abd5eb;
    border-color: var(--color-uhhblue-light);
}

#calendar-container .calendar td.color_gray {
    border-color: #3b515b;
    border-color: var(--color-uhhgray);
}

#calendar-container .calendar td.color_gray.closed {
    border-color: #c2cbce;
    border-color: var(--color-uhhgray-light);
}

#calendar-container .calendar td.color_green {
    border-color: var(--color-uhhgreen);
}

#calendar-container .calendar td.color_green.closed {
    border-color: var(--color-uhhgreen-light);
}

#calendar-container .calendar td.color_yellow {
    border-color: var(--color-uhhyellow);
}

#calendar-container .calendar td.color_yellow.closed {
    border-color: var(--color-uhhyellow-light);
}

#calendar-container .calendar td.color_green:active,
#calendar-container .calendar td.color_yellow:active,
#calendar-container .calendar td.color_blue:active,
#calendar-container .calendar td.color_gray:active,
#calendar-container .calendar td.color_red:active {
    background: #eee;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

#calendar-container .calendar td.closed:active {
    background: #fff;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

#calendar-container .calendar td.empty {
    height: 64px;
}

#calendar-container .calendar .occupied {
    font-family: TheSansUHHBoldCaps;
}

#calendar-container .calendar .contingent {
    color: #3b515b;
    color: var(--color-uhhgray);
}

#calendar-container .calendar button {
    font-family: TheSansUHHBold;
    border: none;
    background: none;
    color: #4e4e4e;
    color: var(--color-font);
    cursor: pointer;
    width: 100%;
    padding-left: 4px;
    padding-right: 4px;
}

#calendar-container .calendar button span {
    display: block;
    padding-bottom: 12px;
    padding-top: 12px;
}

p.calendarweek {
    color: #4e4e4e;
    font-family: TheSansUHHBold;
    text-align: right;
    margin-top: 7px;
}

#reservation_form {
    max-width: 700px;
}

.yourchoice span {
    font-family: TheSansUHHBold;
}

.reservation_agreements {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
}

.reservation_agreements li {
    padding-bottom: 16px;
}

.reservation_agreements li label {
    font-size: 16px;
}

.v4 .spalte.links ul:not(.linkliste):not(.alphabet):not(.uhhsearch) > li:not(.sortlink):before {
    display: none;
}

.v4 .spalte.links ul:not(.linkliste):not(.alphabet):not(.uhhsearch) {
    padding-left: 0;
}

.reservation_agreements label,
.reservation_agreements p {
    display: inline;
    margin: 0;
}

abbr {
    color: #e2001a;
    color: var(--color-uhhred);
    text-decoration: none;
}

p.required {
    text-align: right;
    color: #c40017;
    margin: 0;
}

.success {
    text-align: left;
}

.success h2 {
    margin-bottom: 3em;
}

.form_error_list {
    list-style: none;
    color: #e2001a;
    color: var(--color-uhhred);
    padding: 0;
}

.submit_button {
    float: right;
    clear: both;
}

.form_footer {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}

input[type="text"], input[type="password"] {
    margin-bottom: 1em !important;
}

.select_container {
    flex: 0 0 100%;
    margin-bottom: 10px;
}

.submit_button input {
    font-family: TheSansUHH;
    font-size: 18px;
}

.field_with_errors input {
    border: 2px solid #0271bb;
    border: 2px solid var(--color-uhhblue);
}

.form_error_container {
    position: relative;
}

.form_error {
    color: #4e4e4e;
    background: #fff !important;
    padding: 10px !important;
    position: absolute;
    box-shadow: 5px -5px 10px #aaa;
    padding: 1px;
    z-index: 1;
    left: 20px;
    top: 85px;
}

.reservation_agreements .form_error {
    left: -10px;
    top: 30px;
}

.form_error:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    position: absolute;
    top: -10px;
}

@media screen and (max-width: 640px) {
    form {
        display: block;
    }

    .form_footer {
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    input[type="submit"] {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .form_footer a {
        text-align: left;
        width: 100%;
    }

    .month {
        font-size: medium;
        white-space: nowrap;
    }

    button {
        padding: 0;
        font-size: x-small;
    }
}

.spalte.links {
    padding-bottom: 40px;
}

.v4 section.global .liste ul {
    float: none;
    padding: 0 0 20px;
    margin: 0;
    list-style-type: none;
}

@media only screen and (min-width: 640px) {
    .v4 section.global .liste ul {
        float: left;
        padding-bottom: 0;
        width: 33.3%;
    }
}

.v4 section.social a {
    display: inline-block;
    width: 67px;
    height: 67px;
}

@media only screen and (max-width: 640px) {
    .v4 section.social a {
        width: 30px;
        height: 30px;
    }
}

.v4.sprache:not(.l) #meta .sprachen {
    top: 45px;
    border-color: #fff;
    right: 0;
    padding: 10px 45px 20px 8px;
}

.v4 #meta .sprachen {
    font-size: 16px;
    display: none;
    background: #027bcb;
    position: absolute;
    border-top: 1px solid #027bcb;
}

.v4 a:not(.button, .arrow) {
    color: #c40017;
    text-decoration: none;
}

.v4 a:hover:not(.button, .arrow) {
    text-decoration: underline;
}

.v4 section.social a + a {
    margin-left: calc(25% - 85px);
}

@media only screen and (max-width: 640px) {
    .v4 section.social a + a {
        margin-left: 8px;
    }
}

.v4 .spalte.links table td {
    padding: 0;
}

@media only screen and (max-width: 720px) {
    .v4 section.global .ende {
        padding: 10px;
    }

    .breite ul {
        margin: auto !important;
    }

    .audit_container {
        display: flex;
        justify-content: space-around;
        margin-top: 30px;
    }

    .audit_container div {
        position: relative !important;
        right: 0 !important;
        bottom: 0 !important;
    }

    .copyright {
        margin-top: 20px !important;
        text-align: center;
        margin-bottom: 0;
    }
}

.autoresize {
    border: 1px solid #f0f0f0;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    width: 50px;
    min-width: 50px !important;
    max-width: 99.99% !important;
    text-align: center;
}

td form, th form, th details form, td details form {
    display: unset
}

th form button, td form button {
    border: 1px solid #f0f0f0;
    display: inline-block;
    width: auto !important;
    min-width: 50px !important;
    max-width: 99.99% !important;
    text-align: center;
}

.spalte.links table th, .spalte.links table td {
    padding: 1px !important
}

summary {
    cursor: pointer;
}

@media only screen and (max-width: 640px) {
    .auto-bottom {
        vertical-align: bottom;
    }

    .auto-rotate-content {
        display: flex;
        vertical-align: bottom;
        transform: rotate(23deg);
        transform-origin: bottom;
    }

    .auto-rotate-content div {
        margin: auto;
        writing-mode: vertical-lr;
        white-space: nowrap;
        transform: rotate(180deg);
        transform-origin: center;
        vertical-align: bottom;
    }
