
:root {
    --accent-color: #37c871;
    --background-color: #ccc;
    --text-color: #222;
}
html {
    scroll-behavior: smooth;
    color: var(--text-color);
}
html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--background-color);
}
section {
    font-size: large;
}

.content-container {
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}
section.content-container {
    margin: 40px auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 999;
    color: var(--background-color);
    background-color: var(--text-color);
}
.topbar {
    display: flex;
    justify-content: right;
    align-items: center;
}

ul.menu {
    list-style: none;
    display: flex;
    padding: 0;
    gap: 15px;
}

ul.menu li {
    padding: 10px;
    cursor: pointer;
    transition: border 0.1s ease;
}
li a {
    display: block;
    color: inherit;
    text-decoration: inherit;
    font-size: inherit;
}
.expand-btn {
    display: none;
    margin:15px 0;
}
.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: var(--background-color);
    margin: 6px 0;
    transition: 0.4s;
  }
  
  /* Rotate first bar */
  .expanded .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  /* Fade out the second bar */
  .expanded .bar2 {
    width: 0;
    opacity: 0;
  }
  
  /* Rotate last bar */
  .expanded .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }
@media screen and (min-width: 731px){
    ul.menu li:hover {
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 8px;
    }
    .topbar {
        justify-content: center;
    }
}

@media screen and (max-width: 730px){
    .expand-btn {
        display: inline-block;
    }
    ul.menu{
        max-height: 0;
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--text-color);
        width: 100%;
        margin: 0;
        gap: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    .expanded ul.menu {
        max-height: 240px;
    }
    ul.menu li {
        padding: 0;
    }
    ul.menu li a {
        padding: 20px;
        display: block;
    }
    ul.menu li:hover {
        background-color: var(--accent-color);
        color: var(--text-color);
    }
}

.back-btn {
    font-size: 1.5em;
    margin: 15px;
    margin-left: 0;
    display: block;
    color: #444;
    text-decoration: none;
}
.back-btn::before {
    content: '< ';
}
.back-btn:visited .back-btn:hover {
    color: var(--text-color);
    text-decoration: none;
}
.back-btn:hover {
    color: #222;
}


.full-height {
    height: 100%;
}

.greeting {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
    height: 100%;
    font-size: xx-large;
    font-weight: bold;
    color: #000;
}
.greeting > div {
    margin-bottom: 65px;
}

#logo {
    position: absolute;
    right: 25px;
    top: 25px;
    width: 230px;
}

.banner {
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.parallax {
   background-attachment: fixed;
}

.banner-sanierung, .banner-bricks {
    max-height: 400px;
    height: 40vw;
}
.banner-sanierung {
    background-image: url("img/banner-sanierung.jpg");
}
.banner-bricks {
    background-image: url("img/bricks-450106_1920sw.jpg");
}
.banner-main {
    background-image: url("img/geometry-5167943\ unscharf.jpg");
    min-height: 500px;
    height: 70vw;
    max-height: 700px;
}

h4.leistung {
    margin-bottom: 0.5ex;
    font-weight: bold;
}
ul {
    padding-left: 20px;
}
p.leistung {
    margin-top: 0.5ex;
}
ul.leistung {
    margin-top: 0.5ex;
}

section {
    margin: 30px 0;
}

.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.slogan {
    width: max-content;
}
.slogan > span:first-child {
    background-color: var(--accent-color);
    color: #fff;
}
.slogan > span:nth-child(2) {
    background-color: #fff;
}
.slogan > span {
    z-index: 10;
    /*border-radius: 5px;*/
    font-size: larger;
    padding: 20px;
    display: block;
    margin: 20px auto;
    width: fit-content;
}
p, section ul {
    line-height: 1.5;
    /*text-align: justify;*/
}

img.float-right {
    float: right;
    margin-left: 30px;
    margin-bottom: 30px;
}
img.flipped {
    transform: scaleX(-1);
}


.text-with-media {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.text-with-media > div {
    flex-grow: 1;
    flex-basis: 300px;
}
.flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 30px;
}
.logo {
    height: 80px;
}


h4 {
    margin: 10px 0;
}
.contact-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 20px auto;
    gap: 10px;
}
table {
    border-collapse: collapse;
}
td {
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: #aaa;
}

footer > ul {
    list-style: none;
    padding: 0;
}
footer > ul > li {
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
}

footer > ul > li:hover {
    text-decoration: underline;
}