@font-face {
  font-family: 'AlegreyaSans';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/AlegreyaSans-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'AlegreyaSans';
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/AlegreyaSans-Bold.ttf) format('truetype');
}

@font-face {
  font-family: 'AlegreyaSans';
  font-style: italic;
  font-weight: 400;
  src: url(../fonts/AlegreyaSans-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'AlegreyaSans';
  font-style: italic;
  font-weight: 700;
  src: url(../fonts/AlegreyaSans-BoldItalic.ttf) format('truetype');
}

html {
    overflow-y: scroll;
}

body {
    font-family: AlegreyaSans;
    font-size: 12pt;
    background-color: #f8f8f8;
    background-image: url(/include/bg.svg);
    background-repeat: no-repeat;
    background-size: max(100vw, 1920px);
    background-position: 50% 0%;
}

.nav-link {
    color: rgba(0,0,0,0.5);
    margin-right: 5px;
}
.nav-link:hover {
    color: rgba(0,0,0,0.7);
}
.nav-item.active .nav-link, .nav-link.active {
    color: rgba(0,0,0,0.9);
    font-weight: bold;
}

.logo-container {
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2001;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 5px;
    border-top: 1px solid #ccc;
}

.footer a {
    color: rgba(0, 0, 0, 0.5);
}

.footer a:hover {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.subnav {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1999;
    background-color: #f8f8f8;
    border-right: 1px solid rgba(0,0,0,0.2);
    padding-top: 15px;
    padding-bottom: 50px;
}

.subnav ul {
    padding-left: 20px;
}

.top-news {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1997;
    background-color: #fff;
    padding-top: 15px;
    padding-bottom: 50px;
}

.hide-on-collapse {
    display: none;
}

.show-on-collapse {
    display: none;
}

.header_image {
    height: 250px;
    background-color: #eee;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.header-logo {
    height: 80px;
    margin-left: 10px;
}

.content {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 1998;
    background-color: #fff;
    padding-top: 15px;
    padding-bottom: 50px;
}

.content a, .subnav a, .top-news a {
    color: #901c07;
}

.form-control {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

navbar .btn {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

navbar .btn:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

h1, .h1 {
    font-size: 2rem;
}

h2, .h2 {
    font-size: 1.5rem;
}

h3, .h3 {
    font-size: 1.25rem;
}

h4, .h4 {
    font-size: 1.1rem;
}

.cal-entry {
    padding: 0 0 5px 0;
}

.cal-entry .date {
    background-color: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    padding: 2px 15px;
    margin: 0 -15px;
    margin-bottom: 7px;

}

.cal-entry .title {
    margin-bottom: 5px;
}

.news-post + hr {
    clear: both;
}

.news-post {
    margin: -15px;
    padding: 15px;
    transition: background-color 2s ease;
}

.news-post.highlight {
    background-color: #fce98d;
}

.news-post img.alignleft {
    float: left;
    margin-top: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.news-post .date {
    margin-top: 2px;
    margin-left: 5px;
    float: right;
}

.news-post iframe {
    max-width: 100%;
}

.news-post {
    text-align: justify;
}

.news-post h1 {
    font-size: 20pt;
    text-align: left;
}

.news-post h2 {
    font-size: 18pt;
    text-align: left;
}

.news-post h3 {
    font-size: 18pt;
    text-align: left;
}
.news-post h4 {
    font-size: 16pt;
    text-align: left;
}

.news-post img {
    display: block;
}


@media (min-width: 768px) {
    .hide-on-collapse {
        display: block;
    }
}

@media (max-width: 768px) {
    .show-on-collapse {
        display: block;
    }
    .header_image {
        height: 150px;
    }
    .header-logo {
        height: 50px;
    }
    .header_image h1 {
        position: relative;
        top: -5px;
    }
    .header_image p {
        position: relative;
        top: -10px;
    }
    .logo-container {
        position: absolute;
        right: 15px;
        top: auto;
        bottom: 15px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    navbar .search_widget {
        max-width: 100px;
    }
}

img {
    max-width: 100%;
}

img.l3 {
    float: left;
    width: 25%
    margin-right: 15px;
    margin-bottom: 15px;
/*     display: inline-block; */
}

.image {
    margin-bottom: 5px;
}

.image img {
    width: 100%;
}

.image.pull-right {
    float: right!important;
    padding-right: 0;
    margin-left: 15px;
}

.image.pull-left {
    float: left!important;
    padding-left: 0;
    margin-right: 15px;
}

.image .caption {
    font-size: 90%;
    line-height: 12pt;
    margin-top: 3px;
}

.iw-3 {
    width: 24%;
}
.iw-4 {
    width: 33.333%;
}
.iw-5 {
    width: 41.667%;
}
.iw-6 {
    width: 50%;
}

.subnav a.nav-link {
    margin-left: -8px;
    padding-left: 18px;
    margin-right: -15px;
    padding-right: 15px;
}

.subnav a.nav-link:hover {
    background-color: #eee;
    color: unset;
}

.container-topnav-with-subnav {
    margin: 0 -15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 2000;
    background-color: #901c07;
}

.topnav_with_subnav .dropdown-menu {
    background-color: #901c07;
    border: none;
}

.topnav_with_subnav .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,.5);
}

.topnav_with_subnav .dropdown-menu .dropdown-item.active, .topnav_with_subnav .dropdown-menu .dropdown-item:active {
    color: #fff;
    font-weight: bold;
    background-color: unset;
}

.topnav_with_subnav .dropdown-menu .dropdown-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: unset;
}

.content p {
    text-align: justify;
}

.embed-responsive {
    margin-bottom: 1em;
}

.header_image {
    background-image: url(https://dashboard.gymnasiumsteglitz.de/gen/i/schulhof-360-9-2-1200.jpg);
    background-size: cover;
    background-position: 50% 50%;
    position: relative;
}

.white-shadow {
    color: #000;
    text-shadow: -4px 0px 6px #fff, 4px 0px 6px #fff, 0px -4px 6px #fff, 0px 4px 6px #fff;
}

.header_image a {
    color: #000;
}

.header_image a:hover {
    text-decoration: none;
}

.content blockquote {
    padding-left: 1em;
    padding-right: 1em;
}

.content blockquote p {
    text-align: center;
    margin-bottom: 0;
}

.frame {
/*    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;*/
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
}

.frame img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
}

.frame .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 18pt;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
}

.sticky-news {
    margin-bottom: 0;
/*     width: 100%; */
/*     background-color: #901c07; */
    background-color: #a12c0e;
    padding: 15px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    position: relative;
    top: -15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.sticky-links {
    background-color: #e9d4a7;
    margin: -15px;
    padding: 15px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    margin-top: 15px;
/*     border-top: 1px solid rgba(0,0,0,0.7); */
}

.sticky-news a {
    display: block;
    color: #212529;
    line-height: 14pt;
    padding: 15px;
    margin: -15px;
}

.sticky-news h3 {
    color: #fff;
}

.sticky-news hr {
    border-top: 1px solid rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin: 10px -15px;
}

@media (max-width: 768px) {
    .sticky-news {
        float: none;
        max-width: unset;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }
    .sticky-links {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

.file-type {
    margin-left: 5px;
    margin-right: 5px;
}

.navbar.hide-on-collapse {
    margin: 0 -15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    z-index: 2000;
    background-color: #901c07;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    border-top: 1px solid rgba(0,0,0,0.3);
}

.navbar.show-on-collapse {
/*     box-shadow: 0 0 10px rgba(0,0,0,0.7);  */
    border-bottom: 1px solid rgba(0,0,0,0.2);
    border-top: 1px solid rgba(0,0,0,0.2);
}

/*.topnav .dropdown-menu {
    background-color: #901c07;
    z-index: 1999;
}

.topnav .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,.5);
}

.topnav .dropdown-menu .dropdown-item.active, .topnav .dropdown-menu .dropdown-item:active {
    color: #fff;
    font-weight: bold;
    background-color: unset;
}

.topnav .dropdown-menu .dropdown-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: unset;
}
*/

.show-le-sm {
    display: none;
}

@media (max-width: 992px) {
    .hide-le-sm {
        display: none;
    }
    .show-le-sm {
        display: block;
    }
}

.btn-darker {
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.7);
}

.btn-darker:hover {
    background-color: rgba(0,0,0,0.4);
    border: 1px solid rgba(0,0,0,0.4);
    color: rgba(255,255,255,1.0);
}

.date .news-date {
    display: inline-block;
    margin-left: 0.5em;
}

.news-link {
    position: relative;
    top: 2px;
    display: none;
}

.news-link .fa {
    color: rgba(0,0,0,0.4);
}

.news-link .fa:hover {
    color: rgba(0,0,0,0.8);
}

.sm-icon img {
    height: 17px;
    opacity: 0.7;
}

.sm-icon:hover img {
    opacity: 1.0;
}

.dropdown-toggle::after {
    vertical-align: .155em;
}
