html {
    scroll-behavior: smooth;
}
select#language-switcher {
    border: none;
    background: transparent;
    width: 50px;
    cursor: pointer;
    margin-right: 10px;
    outline: none;
}
select#language-switcher-mobile {
    border: none;
    background: transparent;
    width: auto;
    font-size: 14px;
    margin-right: 0;
    color: white;
    background: #5DBFC8;
    outline: none;
}
/* Header */
a:visited {
    color: white;
}
.info-bar {
    background-color: #5DBFC8;
    padding: 1rem;
    position: relative;
}
.info-bar a {
    font-family: 'Helvetica';
    color: #000;
}
.headline {
    position: relative;
    z-index: 1;
}
.nav-row {
    padding-top: 22px !important;
}
nav.top-navigation {
    padding-left: 0;
    padding-right: 0;
}
.navbar-collapse {
    flex-basis: auto;
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.top-navigation ul.menu {
    float: right;
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-block;
    margin-top: 0.5rem;
}
.top-navigation ul.menu li {
    float: left;
    padding-left: 2rem;
}
.top-navigation ul.menu li:last-child {
    display: none;
}
.navbar-dark .navbar-nav .nav-link {
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    font-weight: 600;
}
.navbar-brand {
    width: 300px;
    height: 45px;
}
.navbar-brand .logo {
    display: block;
    background-image: url(../images/logo_new.png);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 45px;
}
body.imprint .navbar-dark .navbar-nav .nav-link,
body.privacy .navbar-dark .navbar-nav .nav-link {
    color: #000;
}
.top-navigation ul li a:hover {
    text-decoration: none;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:active,
.navbar-dark .navbar-nav .nav-link:visited {
    color: white;
}
.top-navigation .btn {
    margin-top: 0.25rem;
    margin-left: 2rem;
}
/* Header */

/* Hero */
.hero {
    width: 100%;
    height: 100vh;
    background-image: url("../images/hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: -134px;
    z-index: 0;
    min-height: 600px;
    max-height: 880px;
    position: relative;
}
@supports (background-image: url("../images/hero.html")) {
    .hero {
        background-image: url("../images/hero.html");
    }
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.2);
}

.hero .content-wrapper {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    color: white;
}
.hero .content-wrapper p {
    width: 85%;
}
h1 {
    color: white;
    text-align: left;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 56px;
}
/* Hero */

/* Buttons */
.btn {
    border: none;
    border-radius: 40px;
    padding-left: 2rem;
    padding-right: 2rem;
    font-weight: 600;
}
.btn-primary,
.btn-primary:hover {
    background-color: #5DBFC8;
    border: 1px solid #5DBFC8;
}
.btn-primary:hover {
    color: #5DBFC8;
    background: #C4E8EB;
}
.btn.btn-primary:active {
    background-color: #5DBFC8 !important;
    border-color: #5DBFC8 !important;
}
.btn.btn-primary:focus {
    box-shadow: none;
}
.btn-secondary,
.btn-secondary:hover {
    background: transparent;
    border: 2px solid white;
}
.btn-secondary:hover {
    background-color: white;
    color: #000;
}
.available-soon {
    opacity: 0.5;
    pointer-events: none;
}
/* Buttons */

span.underline {
    position: relative;
}
span.underline:after {
    content: "";
    width: 100%;
    height: 12px;
    background: #5DBFC8;
    position: absolute;
    left: 0;
    bottom: 7px;
    z-index: -1;
}

/* About Us */
h2 {
    font-size: 45px;
    font-family: 'Montserrat';
    font-weight: 700;
}
.tile {
    border-radius: 20px;
    background: #DEF2F4;
    box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -webkit-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -moz-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
}
.tile .head {
    height: 150px;
    background: #C4E8EB;
    border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
}
.tile .head img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.tile .content {
    border: 1px solid #DEF2F4;
    border-top: none;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 1rem;
    min-height: 340px;
    padding-bottom: 50px;
}
.tile .content a.btn {
    position: absolute;
    bottom: 20px;
}
.tile:hover .content {
    border-color: #5DBFC8;
}
h3 {
    font-size: 26px;
    font-weight: 700;
}
.img-wrapper {
    width: 100%;
    height: 450px;
    background: #DEF2F4;
    border-radius: 20px;
    box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -webkit-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -moz-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    overflow: hidden;
}
.img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
}
.content-wrapper {
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}
/* About Us */

/* SMA */
section.sma {
    background: #DEF2F4;
    position: relative;
    z-index: 0;
}
.head-wrapper {
    background-color: #DEF2F4;
}
.head-wrapper.banner .content {
    width: 90%;
    margin: 0 auto;
}
.sma .head-wrapper {
    width: 90%;
    margin: 0 auto;
}
h3 span.underline:after {
    height: 5px;
    bottom: 4px;
}
.half {
    width: 50%;
    float: left;
    padding: 2rem;
}
.half h3 {
    line-height: 26px;
}
.half:first-child {
    border-right: 1px solid;
    border-bottom: 1px solid;
}
.half:nth-child(2) {
    border-bottom: 1px solid;
}
.half:nth-child(3) {
    border-right: 1px solid;
    clear: both;
}
.half .img-wrapper {
    height: 200px;
    background: #b4c6c6;
}
/* SMA */

/* Contact */
.contact .contact-wrapper {
    border-radius: 20px;
    background: #DEF2F4;
    padding: 1.5rem;
    box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -webkit-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
    -moz-box-shadow: 0px 5px 5px 0px rgba(222,242,244,0.6);
}
.contact .contact-wrapper img {
    display: block;
    margin-bottom: 10px;
    height: 30px;
}
.contact .contact-wrapper p {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}
/* Contact */

/* Privacy */
body.privacy .content ul {
    list-style-type: none;
    margin-left: 0;
}
body.privacy .content ul li {
    position: relative;
    padding-left: 15px;
}
body.privacy .content ul li:before {
    content: "-";
    position: absolute;
    top: -2px;
    left: 0;
}
/* Privacy */

/* Donate */
section.donate {
    background: #DEF2F4;
    padding: 6rem 0;
}
.donate {
    position: relative;
}
.donate .available-soon-banner {
    display: block;
    width: 350px;
    height: 350px;
    position: absolute;
    top: 0;
    right: 0;
    background: url("../images/banner-bald-verfuegbar.svg") no-repeat 0 0;
    background-size: cover;
}
.donate .available-soon-banner.available-soon-banner--en {
    background-image: url("../images/banner-available-soon.svg");
}
.donate .form-wrapper {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.form-wrapper input.form-control,
.form-wrapper select.form-control {
    color: #000;
    border-color: #000;
    border-radius: 0;
    padding: 0.5rem;
    background: transparent;
    font-weight: 600;
    height: 42px !important;
}
.form-wrapper input::placeholder,
.form-wrapper select::placeholder {
    color: #000;
    font-weight: 600;
    padding: 5px;
}
/* Donate */

/* Footer */
footer {
    background: #5DBFC8;
    padding: 4rem 0;
    font-size: 16px;
    font-weight: 700;
}
footer .links-wrapper {
    float: right;
}
footer .links-wrapper .link {
    float: left;
    margin-left: 20px;
}
footer .links-wrapper .link a {
    color: #000;
}
footer .links-wrapper .link a:hover {
    text-decoration: none;
}
/* Footer */

/* Cookie Consent Manager */

*.cmpboxbtnno, A.cmpboxbtnno, A.cmpboxbtnno:link,
*.cmpboxbtnyes, A.cmpboxbtnyes, A.cmpboxbtnyes:link {
    background-color: #5DBFC8 !important;
}

.cmpwelcomeprpsbtn .cmptogglespan svg .cmpsvgredfill {
    fill: #5DBFC8 !important;
}

/* Cookie Consent Manager */

/* Media Queries */
@media (max-width: 768px) {
    .navbar-collapse {
        flex-basis: 100%;
    }
    .navbar-toggler {
        border: none;
        outline: none !important;
    }
    .info-bar {
        display: none;
    }
    .navbar-brand {
        width: 240px;
    }
    .navbar-brand .logo {
        position: relative;
        top: -6px;
        background-image: url(../images/logo_new_black.png);
    }
    .headline {
        margin: 0;
        background: #5DBFC8 !important;
    }
    .nav-row {
        padding: 0 !important;
    }
    .navbar-brand img {
        width: 240px;
    }
    .hero {
        background-image: url("../images/mobile/hero.jpg");
        background-position: center;
        margin-top: 0;
        max-height: 600px;
    }
    @supports (background-image: url("../images/mobile/hero.html")) {
        .hero {
            background-image: url("../images/mobile/hero.html");
        }
    }
    .hero .content-wrapper {
        width: 100%;
    }
    .hero h1 {
        line-height: 3.5rem;
        font-size: 32px;
        margin-left: 0;
    }
    .hero h1 span.underline:after {
        height: 8px;
        bottom: 5px;
    }
    .hero .content-wrapper p {
        width: 100%;
        margin-top: 20px;
    }
    .hero .content-wrapper .btn.btn-lg {
        padding: 0.375rem 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }
    .top-navigation .btn-primary {
        display: none;
    }
    .top-navigation ul.menu {
        display: block;
        float: none;
    }
    .top-navigation ul.menu li {
        float: none;
        width: 100%;
        padding-left: 0;
    }
    .top-navigation ul.menu li:last-child {
        display: block;
    }
    .navbar-dark .navbar-nav .nav-link {
        color: white;
        font-weight: 600;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    .about-us h2 {
        font-size: 28px;
        text-align: center !important;
    }
    .about-us .content-wrapper h2 span.underline:after {
        height: 8px;
        bottom: 4px;
    }
    .tile .content {
        min-height: auto;
    }
    .tile .content h3 {
        font-size: 24px;
    }
    .tile .content p {
        font-size: 16px;
    }
    .sma .head-wrapper {
        width: 100%;
    }
    .sma .head-wrapper h2 {
        font-size: 28px;
    }
    .head-wrapper.banner .content {
        width: 100%;
    }
    .sma p {
        font-size: 16px;
    }
    .half {
        width: 100%;
        border: none !important;
        border-top: 3px solid !important;
        padding-left: 0;
        padding-right: 0;
        min-height: auto;
    }
    .half:last-child {
        padding-bottom: 0;
    }
    .half h3 {
        font-size: 22px;
    }
    .half h3 span.underline:after {
        display: none;
    }
    .contact h2 {
        font-size: 28px;
    }
    .contact .contact-wrapper {
        border-radius: 40px;
        padding-left: 2rem;
    }
    .img-wrapper--auto {
        height: auto;
    }
    .donate .content-wrapper h2 {
        font-size: 28px;
        text-align: center;
    }
    .donate .content-wrapper h2 span.underline:after {
        height: 8px;
        bottom: 4px;
    }
    .donate .available-soon-banner {
        top: auto;
        bottom: -3px;
        background-image: url("../images/mobile/banner-bald-verfuegbar.svg");
    }
    .donate .available-soon-banner.available-soon-banner--en {
        background-image: url("../images/mobile/banner-available-soon.svg");
    }
    .privacy h2 {
        font-size: 40px;
    }
    .privacy h3 {
        font-size: 24px;
    }
    .privacy ul {
        margin-left: 1rem;
    }
    footer {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    footer .links-wrapper {
        float: none;
    }
    footer .links-wrapper .link {
        margin-top: 10px;
    }
    footer .links-wrapper .link:first-child {
        margin-left: 0;
    }
    footer .logo {
        margin-top: -30px;
    }
}
/* Media Queries */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px; /* одинаковый отступ по горизонтали и вертикали */
    margin-bottom: 50px;
  }

  .gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 соотношение */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
  }

  .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }