body { font-size: 90% !important; margin: 0; padding: 0 !important; }
a, a:hover { color: #009c81; font-weight: normal; text-decoration: none; }
a:hover { text-decoration: underline; }
.clear { clear: both; }
.kvk-result-box { padding: 0 20px 20px 20px; margin: 0; text-align: left; background: #fff; }
.kvk-result-head { background: #7b9bbd; padding: 10px 20px; font-size: 18px; margin: 0 -20px; color: #fff; }
.kvk-result-head a { color: #fff !important; }
.kvk-result-list { background: #fff; font-size: 13px; }
.kvk-result-item { display: block; position: relative; width: 100%; padding: 0 20px; clear: both; border-bottom: 1px solid #ddd; margin-left: -20px; margin-right: -20px; }
.kvk-result-item:first-child { border-top: 1px solid #ddd; }
.kvk-result-item:hover, .kvk-result-item-link:hover { text-decoration: none !important; background-color: #eee; }
.kvk-result-item:hover > * { color: #000; }
.kvk-result-item-link { display: block; position: relative; width: 100%; padding: 7px 0; clear: both; color: #111; text-decoration: none; }
.kvk-result-title { font-size: 15px; }
.kvk-result-sub { opacity: .75; }
.kvk-result-text { opacity: .75;  margin-top: 8px; }
.kvk-result-item { vertical-align: middle; margin-right: 5px; color: #333 !important; }
.kvk-result-title img { height: 12px; vertical-align: middle; }
.kvk-result-more { font-weight: bold; padding: 10px 20px; }
.kvk-result-more:hover { font-weight: bold; color: #000 !important; background-color: #eee; text-decoration: none; }
.kvk-result-stats { padding: 8px 0; font-size: 12px; color: #666; }
.kvk-result-stat { display: inline-block; }
.kvk-status-list { }
.kvk-status-list ul { margin: 8px 0; padding: 0 0 0 30px; }
.kvk-status-list li { margin: 4px 0; }
.kvk-icon-digital { float: right; margin: 1px 1px 0 10px; color: #c00; }
.kvk-notice, .kvk-error { padding: 8px 20px; font-size: smaller; margin: 4px -20px; background: #FFD747; color: #403612; }

.kvk-result-item-check { color: #fff; display: inline-block; margin-left: 10px; position: relative; }
.kvk-result-item:hover .kvk-result-item-check { color: #eee; }
/* double class for higher specificity */
.kvk-result-item-check.kvk-result-item-check:hover { color: #666; }
.kvk-result-item-check-tt { display: none; }
.kvk-result-item-check:hover .kvk-result-item-check-tt { display: block; position: absolute; bottom: 100%; left: -20px;
        background-color: #555; color: #fff; width: 300px; padding: 6px; border-radius: 6px; margin-bottom: 13px; }
.kvk-result-item-check-tt::before { border-top: 8px solid #555; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 0; position: absolute; top: 100%; left: 20px; margin-left: -3px; content: ""; }

.kvk-result-item-link:visited .kvk-result-item-check { color: #009c81 !important; }
.kvk-result-item-link:visited:hover .kvk-result-item-check { color: #009c81 !important; }

.kvk-search-repeat, .kvk-google { background: #fff; margin: 0 0 2px 0; text-align: center; padding: 30px 20px; }
.kvk-search-repeat label { display: block; font-weight: bold; margin: 0 0 10px 0; }
.kvk-search-repeat input,
.kvk-google .input { padding: 0 8px; line-height: 30px; height: 30px; }
.kvk-google .input { margin: 4px 0; }
.kvk-google .btn { display: none; border-radius: 2px; background: #f4f4f4; border: 1px solid rgba(0,0,0,.1); line-height: 34px; height: 34px;
    padding: 0 8px; cursor: pointer; margin-left: 6px; }

.kvk-google { margin-top: 2px; }
.kvk-search-header { padding: 10px 20px; border-bottom: 20px solid white; }

body { margin: 0; font-family: sans-serif; }
#metanavigation, #footer { max-width: 940px; margin: 6px auto; text-align: right; color: #b3b3b3; font-size: 11px; padding: 0 20px; }
#footer { text-align: left; color: #777; }
#metanavigation a { text-decoration: none; color: #4d4d4d; }
#wrapper { margin: 0 auto; border: 2px solid white; border-top-right-radius: 16px; border-bottom-left-radius: 16px; box-shadow: 0 0 15px rgba(0,0,0,.3); max-width: 980px; background: #e5e5e5; }
#head { display: table; width: 100%;  overflow: hidden; background-color: white; border-bottom: 2px solid white; border-top-right-radius: 14px; }
#logo { width: 186px; padding: 12px 0 0 16px; box-sizing: border-box; display: table-cell; }
#head-image { display: table-cell; vertical-align: bottom; background: url(../img/header.png) right center no-repeat; background-size: cover; border-top-right-radius: 14px; }
#head-text { height: 30px; border-top-right-radius: 16px; background: white; color: black; display: inline-block; line-height: 30px; padding: 4px 18px 0 10px; font-size: 13px; }
#head-text a { color: black !important; font-weight: bold; text-decoration: none; }

#actionbar { display: none; }
#sidebar { width: 186px; float: left; font-size: 10px; }
#main { margin-left: 190px; font-size: 14px; }

#menu { list-style-type: none; margin: 0; padding: 0; }
#menu > li { margin: 4px 0; border: 2px solid #fff; border-left: 0; background: white; position: relative; padding: 4px 8px; }
#menu a { color: #444; font-weight: bold; }
#menu .active a { color: #fff; }
#menu .passive_sub { margin-top: -6px; color: #222; }
#menu .directory_closed, #menu > li:not([class]) { border-bottom-right-radius: 6px; }

.content-card { margin: 4px 5px 5px 2px; background: white; padding: 20px; border-radius: 4px; }
.sidebar-card { background: #fff; border-bottom-right-radius: 6px; padding: 10px; }
h1 { font-size: 20px; margin: 0 0 8px 0; padding: 0 0 6px 0; border-bottom: 1px solid #eee; }

.input { display: block; padding-top: 2px; }
.input > .label { font-size: 14px; display: inline-block; width: 100px; line-height: 26px; height: 26px; }
.input > input[type="text"], .input > input[type="search"] { display: inline-block; width: calc(100% - 105px); border: 1px solid #ddd; background: #fafafa; line-height: 26px; padding: 0 7px; margin: 4px 0; box-sizing: border-box; height: 26px; }
.input > input[type="text"]:focus, .input > input[type="search"]:focus { border: 1px solid #009c81; outline: 0; }

.form-right-col .label { width: 65px; }
.form-right-col input[type="text"], .form-right-col input[type="search"] { width: calc(100% - 70px); }

.form-left-col { display: inline-block; width: 60%; padding-right: 20px; box-sizing: border-box; vertical-align: top; }
.form-right-col { display: inline-block; width: 40%; margin-left: -5px; vertical-align: top; }
.form-options, .form-buttons { padding: 8px 0; }

.kvk-help, .kvk-new-search { width: 120px; display: inline-block; }
.kvk-help .fa { margin-left: 5px; }
#wrapper > footer { color: #aaa; padding: 20px; text-align: center; background-color: #fff; border-bottom-left-radius: 14px; font-size: 14px; }
.footer-text { margin-top: 20px; color: #666; text-align: center; font-size: 12px; }
footer a:hover { text-decoration: none; }

#mobile-menu { display: none; }
#show-all-form-fields { display: none; }
#show-all-form-fields-btn { display: none; }

/* Katalogspalten */
.kat-col { vertical-align: top; display: inline-block; width: 32%; }

/* Kataloggruppen */
.widenobullet { padding: 0; margin: 0; }
.widenobullet + .widenobullet { margin-top: 20px; }
.widenobullet > li { list-style-type: none; margin: 1px 0; padding: 0; } /* Kataloge als Listeneintrag */
.widenobullet a { color: #000; }

.buttons-right { float: right; margin-right: 0; }

@media (max-width: 800px) {
    .kat-col { width: 48%; }
}

button, #bookmark-btn { color: white; cursor: pointer; border-radius: 3px; display: inline-block; padding: 8px 10px; line-height: 14px; width: auto; box-sizing: border-box; margin: 5px 0; border: 0; border-bottom: 2px solid rgba(0,0,0,.2); font-size: 14px; font-weight: bold; background-color: #9C2F00; }
#search-btn { background: #009c81; }
#bookmark-btn { background: #7b9bbd; transform: translateY(1px); }

.form-buttons { font-size: 0; /* spaces shouldn't matter */ margin-bottom: -20px; }
.form-buttons button, .form-buttons #bookmark-btn { margin-right: 10px; margin-bottom: 10px; text-align: left; }
#clear-text { margin-right: 0; }

@media (max-width: 600px) {
    body { margin-top: 58px; position: relative; background: #eee; }
    #metanavigation, #head, #footer { display: none; }
    #actionbar { display: block; position: fixed; top: 0; height: 50px; width: 100%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); z-index: 3; }
    #action-logo-img { display: inline-block; height: 30px; padding: 10px 0; vertical-align: top; }
    #mobile-menu-btn { display: inline-block; width: 50px; height: 50px; text-align: center; vertical-align: top; line-height: 50px; color: black; }
    #action-kvk { float: right; height: 30px; line-height: 34px; /* same baseline as logo */ display: inline-block; padding: 10px 20px; font-size: 20px; font-weight: bold; }
    #wrapper { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    #main { margin: 0; background: transparent; }
    .content-card { margin: 8px 0; border-radius: 0; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
    .form-left-col, .form-right-col { padding: 0; margin: 0; width: auto; display: block; }

    #sidebar { display: none; overflow: auto; bottom: 0; top: 50px; left: 0; width: 90%; max-width: 300px; background: white; box-shadow: 0 3px 3px rgba(0,0,0,.25); float: none; position: fixed; }
    #mobile-menu:checked ~ #sidebar { display: block; z-index: 2; }
    #menu li { border: 0; padding: 20px; margin: 0 !important; font-size: 12px; border-bottom: 1px solid rgba(0,0,0,.1); border-radius: 0 !important; }
    #menu a { padding: 20px; margin: -20px; display: block; }
    .drawer-open { overflow: hidden; }
    #mobile-menu:checked + label::after { content: ""; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(255,255,255,.75); }
    .kat-col { width: 100%; display: block; }
    .kat-col + .kat-col { margin-top: 20px; }
    .input input[type="text"], .input input[type="search"] { border-width: 2px !important; }
    .kat-col input[type="checkbox"] { margin-right: 20px; }

    .form-buttons { padding: 2px 0; }
    /* we need to change sizes a bit so it even works on small screens like the one of iPhone 4 */
    #clearFields { width: calc(33.333% - 25px); }
    #auswahl_loeschen { width: calc(33.333% + 5px); }
    #search-btn { float: none; }

    #show-all-form-fields-btn { text-align: center; color: #333; border-radius: 3px; display: block; padding: 8px 10px; width: 100%; box-sizing: border-box; margin: 5px 0; border: 0; border-bottom: 2px solid #ccc; background: #eee; }
    #show-all-form-fields-btn { margin-top: 10px; }
    #show-all-form-fields:not(:checked) ~ .form-left-col,
    #show-all-form-fields:not(:checked) ~ .form-right-col,
    #show-all-form-fields:not(:checked) ~ .form-options {
        display: none;
    }

    #search-btn { color: white; width: 33.333%; /* a little bit larger to fill space */ }

    #show-all-form-fields:checked ~ #show-all-form-fields-btn .fa:before { content: "\f066" !important; /* compress */ }
    #show-all-form-fields:checked ~ #show-all-form-fields-btn span { font-size: 0; }
    #show-all-form-fields:checked ~ #show-all-form-fields-btn span:before { font-size: 14px; content: "Nur Freitextsuche anzeigen"; }
    .no-mobile { display: none !important; }

    h1 { margin: 0; padding: 0; border: 0; }

    .input > .label { display: block; widht: 100%; }
    .input > input[type="text"], .input > input[type="search"] { display: block; width: 100%; }

    .form-right-col .label { width: 100%; }
    .form-right-col input[type="text"], .form-right-col input[type="search"] { width: 100%; }

    .widenobullet > li { margin: 5px 0; /* nur mobil! */ }
}
