@import url("reset.css");

:root {
    --text: #000;
    --primary: #282e68;
    --primary-transparent: rgba(40, 46, 104, 0.9);
    --secondary: #5FBD47;
    --button: #222222;
    --contrast: #181b36;
    --grey: #f0f7f7;
    /*=============================*/
    --border-radius: 5px;
    --heading-weight: 700;
    --heading-font-family: 'Helvetica', serif;
    --regular-font-family: 'Helvetica', sans-serif;
    --regular-font-weight: 400;
}

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    overflow-x: hidden;
    font: var(--regular-font-weight) 16px/160% var(--regular-font-family), sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font: var(--heading-weight) 300%/100% var(--heading-font-family);
    margin-bottom: 20px;
    color: var(--primary);
    -webkit-animation: tracking-in-contract 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: tracking-in-contract 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}



 @-webkit-keyframes slide-in-bottom {
    0% {
      -webkit-transform: translateY(800px);
              transform: translateY(800px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }
  @keyframes slide-in-bottom {
    0% {
      -webkit-transform: translateY(800px);
              transform: translateY(800px);
      opacity: 0;
    }
    100% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
      opacity: 1;
    }
  }
  

 @-webkit-keyframes tracking-in-contract {
    0% {
      letter-spacing: 1em;
      opacity: 0;
    }
    40% {
      opacity: 0.6;
    }
    100% {
      letter-spacing: normal;
      opacity: 1;
    }
  }
  @keyframes tracking-in-contract {
    0% {
      letter-spacing: 1em;
      opacity: 0;
    }
    40% {
      opacity: 0.6;
    }
    100% {
      letter-spacing: normal;
      opacity: 1;
    }
  }
  
  

h2 {
    font: var(--heading-weight) 250%/100% var(--heading-font-family);
    margin-bottom: 20px;
    color: var(--primary)
}

h2 small {
    color: var(--text)
}

h3 {
    font: var(--regular-font-weight) 180%/100% var(--heading-font-family);
    margin-bottom: 10px;
    color: var(--primary)
}

h4 {
    font: var(--regular-font-weight) 140%/100% var(--heading-font-family);
    margin-bottom: 10px;
    color: var(--primary);
}

h5 {
    font: var(--heading-weight) 120%/100% var(--heading-font-family);
    margin-bottom: 10px;
    color: var(--primary);
}

h6 {
    font: var(--heading-weight) 110%/100% var(--heading-font-family);
    margin-bottom: 10px;
    color: var(--primary);
}

small {
    font-size: 50%;
    font-family: var(--regular-font-family);
    font-weight: var(--regular-font-weight);
    display: inline-block;
    line-height: 120%;
}

p {
    margin-bottom: 5px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    opacity: 0.5;
}

.dsa-secure-plugin a:hover {
    opacity: 1;
}

nav {
    z-index: 999;
    position: fixed;
    top: 0;
    background-color: var(--primary);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.logoline {
    background-color: #fff;
    height: 180px;
    padding: 10px 5%;
    transition: 0.8s;
}

.logoline img {
    height: 100%;
}

nav .span {
    flex-direction: column;
    justify-content: space-between;
    display: none;
    height: 44px;
    width: 55px;
    padding: 10px;
    margin: auto;
}

nav .span div {
    width: 100%;
    border-bottom: 3px solid #fff;
}

button,
.btn,
.simple-popup .popup .btn {
    border: none;
    background-color: var(--button);
    color: #fff;
    padding: 8px 20px;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    border-radius: var(--border-radius);
    font-size: 100%;
}

button:hover {
    cursor: pointer;
}

.desktop-nav {
    width: 100%;
    padding: 10px 5%;
}

.desktop-nav a {
    padding: 0 10px;
    color: #fff;
}

.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    background-color: var(--primary);
    background-color: var(--primary-transparent);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 12px;
    text-decoration: none;
    font-size: 150%;
    color: #fff;
    display: block;
}

.overlay .closebtn {
    position: absolute;
    font-size: 60px;
}

.overlay .closebtn,
nav .span {
    top: 20px;
    right: 5%;
}

.overlay a.closebtn {
    font-weight: 300;
}

.dse {
    font-size: 80%;
    text-align: center;
    position: fixed;
    bottom: 5px;
    right: 5%;
    background-color: var(--contrast);
    border-radius: var(--border-radius);
    color: #fff;
    width: 290px;
    padding: 5px;
    z-index: 999;
}

.dsa-cookie-notice {
    border-radius: var(--border-radius);
}

.dse a {
    color: #fff;
}

.dsa-cookie-notice-close {
    text-transform: none;
    color: #fff !important;
    background-color: var(--button);
    padding: 7px 20px;
    font-weight: 400 !important;
    border-radius: var(--border-radius);
}

article {
    width: 100%;
}

.container {
    padding: 100px 10%;
}

article .container {
    padding: 100px 10%;
    max-width: calc(1200px + 20%);
    margin: auto;
}

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

.with-icons {
    text-align: center;
}

.with-icons .col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.with-icons img.icon {
    width: 100%;
    max-width: 40px;
    margin-top: 30px;
}

.col-2 {
    width: 48%;
}

.col-3 {
    width: 33%;
}

.col-4 {
    width: 24%;
}

.col-5 {
    width: 19%;
}

.text-col {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.img-col img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

header {
    width: 100%;
    min-height: clamp(400px, 60vh, 800px);
    background: url('../images/schuldnerberatung.webp') no-repeat center / cover;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

header::after {
    content: '';
    background: url('../images/uebergang-weiss.svg')no-repeat center/cover;
    position: absolute;
    inset: auto -1px -1px -1px;
    display: block;
    aspect-ratio: 142/9;
    width: calc(100% + 2px);
}

header .container {
    background-color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.7);
    padding: clamp(20px, 5%, 60px)
}

header p {
    color: var(--primary)
}

header .btn {
    background-color: var(--primary);
    -webkit-animation: slide-in-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-bottom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.intro {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
}

.intro p {
    max-width: 1024px;
    margin: auto;
}

.circle-outer {    
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
}

.circle-inner{
    background-color: #fff;
    border-radius: 100px;
    height: 80px;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.circle-outer::after {
    content: '';
    background-color: var(--primary);
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    border-radius: 100px;
    height: 100px;
    width: 100px;
    display: flex;
    -webkit-animation: ping 3s ease-in-out infinite both;
    animation: ping 3s ease-in-out infinite both;
}

.section-1 .with-icons img.icon{
    width: 50px;
    height: auto;
    margin-top: 0 !important;
}

@-webkit-keyframes ping {
    0% {
        -webkit-transform: scale(0.2);
        transform: scale(0.2);
        opacity: 0.8;
    }

    80% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(2.2);
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes ping {
    0% {
        -webkit-transform: scale(0.2);
        transform: scale(0.2);
        opacity: 0.8;
    }

    80% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(2.2);
        transform: scale(2.2);
        opacity: 0;
    }
}


article:nth-of-type(odd) {
    background-color: #fff;
}

article:nth-of-type(even) {
    background-color: var(--grey);
}

.pic-boxes .col {
    background-color: var(--secondary);
    color: #fff;
    border-radius: var(--border-radius);
}

.section-1 .pic-boxes .col {
    background-color: var(--grey);
    color: var(--text);
}

.section-1 .pic-boxes {
    margin-bottom: 20px;
    margin-top: 20px;
}

.section-1 h3 {
    margin-top: 20px;
}

.pic-boxes h3 {
    text-align: center;
    flex-basis: 100%;
    margin-bottom: 20px;
}

.picture-box {
    aspect-ratio: 7/4;
}

.text-box {
    padding: clamp(20px, 5%, 40px);
}

.picture-box img {
    width: 100%;
    border-radius: var(--border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.parallax {
    background: url('../images/platzhalter.png')no-repeat center/cover;
    background-attachment: fixed;   
    min-height: clamp(400px, 60vh, 800px); 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.parallax::after {
	content: '';
	background: url('../images/uebergang-blau.svg')no-repeat center/cover;
	position: absolute;
	inset: auto -1px -1px -1px;
	display: block;
	aspect-ratio: 142/9;
	width: calc(100% + 2px);
}

.parallax-1{
    background: url('../images/schulden-beratung.webp')no-repeat center/cover;
    background-attachment: fixed;
}

.parallax-2{
    background: url('../images/schuldenberatung.webp')no-repeat center/cover;
    background-attachment: fixed;
}

.parallax-2::after{
    display: none;
}

.parallax h2 {
    color: #fff;
}

p~h3 {
    margin-top: 10px;
}

article ul {
    margin-left: 15px;
    margin-bottom: 16px;
}

article ul li {
    list-style: disc;
    margin-bottom: 5px;
}

article ul li::marker {
    color: var(--primary)
}

b {
    font-weight: 700;
    color: var(--primary)
}

.highlight {
    font-style: italic;
    color: var(--primary);
    font-size: 115%;
    line-height: 160%;
    margin-bottom: 20px;
}

/*-------- KONTAKT -------*/

.kontakt .flexbox {
    flex-wrap: nowrap;
}

.kontakt .col-1-3 {
    background-color: var(--primary);
    color: #fff;
    width: 34%;
    padding: 100px 5% 100px 10%;
}

.kontakt .col-1-3 a,
.kontakt .col-1-3 b {
    color: #fff;
}

.kontakt .col-2-3 {
    width: 66%;
    padding: 100px 10% 100px 5%;
}

.kontakt .contactblock {
    margin-top: 100px;
}

.kontakt h3 {
    color: #fff;
}

.kontakt hr {
    margin: 20px 0;
    color: #fff;
    opacity: 0.4
}

.kontakt ul li::marker {
    color: #fff;
}

/*------ FOOTER ------*/

footer {
    background-color: var(--primary);
    color: #fff;
}

footer h3 {
    color: #fff;
}

footer ul {
    list-style: disc;
    margin-left: 15px;
}

footer p a,
footer ul li a {
    color: #fff;
    text-decoration: underline;
}

footer b {
    color: #fff;
}

.sidenav {
    position: fixed;
    right: 5px;
    top: 30%;
    z-index: 9999;
}

.sidenav a,
.sidenav button {
    display: block;
    height: 60px;
    width: 60px;
    background-color: var(--button);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    padding: 15px;
    margin-top: 0;
}

.sidenav img {
    height: 100%;
}

.infosite h1 {
    flex-basis: 100%;
}

.infosite .container {
    align-items: flex-start;
}

main.no-header {
    margin-top: 120px;
}

article p a,
article ul li a {
    color: var(--primary);
    text-decoration: underline;
}

.kontaktformular h4 {
    text-align: center;
    margin-top: 20px;
}

.kontaktformular h5 {
    text-align: center;
    margin-top: 20px;
}

.fehlerseite ul li {
    list-style: none;
}


.services-slider,
.popup-gallery {
    padding: 0 20px;
    margin-top: 20px;
}

.services-slider img,
.popup-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
}

.popup-gallery .gallery-item {
    padding: 0 5px;
}

.services-slider .col-4 {
    margin: 0 5px;
    height: 100%;
}

.popup-gallery .gallery-item:hover {
    cursor: pointer;
}

.services-slider .slick-prev,
.popup-gallery .slick-prev {
    left: 0;
    z-index: 999;
}

.services-slider .slick-prev::before,
.popup-gallery .slick-prev::before,
.services-slider .slick-next::before,
.popup-gallery .slick-next::before {
    opacity: 1;
    color: var(--text);
}

.services-slider .slick-next,
.popup-gallery .slick-next {
    right: 0;
}

/*GALLERY SLIDER*/

.gallery-slider .slider-item {
    aspect-ratio: 7/5;
    overflow: hidden;
}

.gallery-slider .slider-item {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery-slider img {
    width: 100%;
}

.gallery-slider img:hover {
    cursor: pointer;
}

.slider-item {
    padding: 5px;
}

/*----------------*/

.icon-slides {
    padding: 0 20px;
    margin-top: 20px;
}

.icon-slides a {
    padding: 0 5px;
}

.icon-slides .slick-prev {
    left: 0;
    z-index: 999;
}

.icon-slides .slick-prev::before,
.icon-slides .slick-next::before {
    opacity: 1;
    color: var(--text);
}

.icon-slides .slick-next {
    right: 0;
}

.section-2 .col {
    margin-bottom: clamp(10px, 1%, 10px)
}

.section-2 h3 {
    margin-top: 20px;
}

.section-2 ol {
    list-style: lower-latin;
    margin-left: 20px;
    margin-top: 20px;
}

.section-2 ol li{
    margin-bottom: 10px;
}

.section-2 .pic-boxes .col {
	background-color: var(--primary);
	color: #fff;
}

.section-2 .pic-boxes .col h4{	
	color: #fff;
}

.slider-container {
    margin-top: clamp(20px, 5%, 50px);
}

.pic-boxes {
    margin-top: clamp(20px, 5%, 40px);
}

.slider-container .pic-boxes {
    margin-top: 0;
}

/*-------- READ MORE --------*/

.more-text {
    display: none;
}

.readmore .text-box h3 {
    background-color: var(--primary);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.readmore .pic-boxes .col {
    color: var(--text)
}

article:nth-of-type(odd).readmore .pic-boxes .col {
    background-color: #fff;
    color: var(--text)
}

article:nth-of-type(even).readmore .pic-boxes .col {
    background-color: var(--grey);
}

.readmore .text-box {
    padding: 0;
}

.readmore .picture-box {
    aspect-ratio: 7/4;
}

.readmore .text-box .content {
    padding: 20px;
}

.readmore .picture-box img {
    width: 100%;
    border-radius: var(--border-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: block;
}

button.read-more-btn {
    background-color: transparent;
    color: var(--primary);
    border: none;
    display: inline;
    padding: 0;
    text-decoration: underline;
}

.section-7 h4{
    color: #fff;
    margin-top: 20px;
}

.kontaktformular {
    width: 100%;
    height: 1200px;
}

@media screen and (max-width: 1800px) {
    .col-4 {
        width: 49%;
        margin-bottom: 2%;
    }

    .col-5 {
        width: 32%;
        margin-bottom: 2%;
    }

    .section-7 .flexbox {
        justify-content: center;
        gap: 2%;
    }
}

@media screen and (max-width: 1450px) {
    .col-1-3 {
        width: 40%;
    }

    .col-2-3 {
        width: 60%;
    }
}

@media screen and (max-width: 1024px) {
    nav .span {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .col-2 {
        width: 100%;
        margin-bottom: 20px;
    }

    .col-3 {
        width: 100%;
        margin-bottom: 20px;
    }

    .container {
        padding: 50px 5%;
    }

    .text-col {
        padding: 20px 0 0 0;
    }

    header {
        margin-top: 80px;
    }

    .sidenav {
        top: auto;
        bottom: 50px;
    }

    .sidenav a,
    .sidenav button {
        height: 45px;
        width: 45px;
        padding: 11px;
    }

    .col-5 {
        width: 49%;
    }

    .logoline {
        height: 80px;
    }

    .kontaktformular {
        width: 100%;
        height: 1000px;
    }
}

@media screen and (max-width: 830px) {
    .kontakt .flexbox {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .kontakt .col-1-3,
    .kontakt .col-2-3 {
        width: 100%;
    }

    .kontakt .contactblock {
        margin-top: 50px;
    }

    .kontakt .contactblock:first-of-type {
        margin-top: 0;
    }
}

@media screen and (max-width: 700px) {
    .col-4 {
        width: 100%;
        margin-bottom: 20px;
    }

    h1,
    h2 {
        font: var(--heading-weight) 190%/100% var(--heading-font-family);
        margin-bottom: 10px;
    }

    h3 {
        font-size: 150%;
    }

    h4 {
        font-size: 120%;
    }

    .logoline {
        height: 60px;
    }

    header {
        margin-top: 60px;
    }

    .kontakt .col-1-3,
    .kontakt .col-2-3 {
        width: 100%;
    }
    
}

@media screen and (max-width: 600px) {
    .col-5 {
        width: 100%;
    }
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}