/*
 * -----------------------------------
 * Copyright
 * COM.POSiTUM Multimedia-Agentur GmbH
 * -----------------------------------
 */

/* ------------------------------------
 *  FONTS
 * ------------------------------------
 */

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
}

/* ------------------------------------
*  BASICS
* ------------------------------------
*/

:root {
    --blue1: #0d50a6;
    --blue2: #06254d;
    --white: #ffffff;
    --gray: #f4f4f4;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0 none;
}

html,
body {
    height: 100%;
}

html {
    font-size: 11px;
    /* 62.5% = 10px = 1rem */
}

body {
    background: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    color: #031b39;
}

img {
    max-width: 100%;
    height: auto;
}

.content-wrapper a:not(header a, .blue-column a, .hilfe a) {
    color: #0d50a6;
}

a {
    color: inherit;
    text-decoration: none;
}

.blue-column a:hover,
.blue-column a:focus {
    color: #06254d;
    text-decoration: underline;
}

.blue-column a {
    font-size: 2rem;
}

p {
    line-height: 1.6;
}

table {
    border-collapse: collapse;
}

table td {
    min-width: 8rem;
    padding: 0.2rem 0;
}

/* ------------------------------------
*  TYPOGRAPHY
* ------------------------------------
*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 2.4rem;
    text-transform: uppercase;
}

h1,
h2 {
    font-size: 4rem;
    letter-spacing: 0.2rem;
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin: 2.4rem 0;
}

p ~ h1,
p ~ h2,
p ~ h3,
p ~ h4,
p ~ h5,
p ~ h6 {
    margin-top: 4.8rem;
}

/* ------------------------------------
*  SCELETON
* ------------------------------------
*/

.page-wrapper {
    /* equal to footer height */
    min-height: 100%;
    height: 100%;
}

.page-wrapper::after {
    content: '';
    display: block;
    margin-bottom: -80px;
    height: 80px;
}

.content-wrapper {
    margin: 0 auto;
    width: 100%;
}

.container {
    width: 1520px;
    max-width: 100%;
}

/* ------------------------------------
*  HELPER CLASSES
* ------------------------------------
*/

.fixed {
    position: fixed;
    z-index: 10;
}

.rightalign {
    text-align: right;
}

.flexbox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.flexbox:before,
.flexbox::after {
    content: none;
}

.flexbox > * {
    float: none;
}

footer .flexbox > div:not(:first-child) {
    width: auto;
}

span.time {
    width: 7rem;
    display: inline-block;
}

/* Kann nach Austausch der Bilder (richtige Größe) entfernt werden */

figure img {
    width: 100%;
}

/* ------------------------------------
*  HEADER
* ------------------------------------
*/

header {
    background: #06254d;
    color: #fff;
    width: 100%;
    height: 12.5rem;
    z-index: 9999;
    transition: height 0.5s;
}

.header-wrapper {
    background: none;
}

header .content-wrapper {
    display: flex;
    justify-content: space-between;
    float: none;
    transition: padding 0.5s;
}

.img-logo {
    transition: all 0.5s;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.sticky + main {
    padding-top: 6rem;
}

header.sticky .only_desktop {
    padding-top: 2rem;
    transition: padding-top 0.5s;
}

header.sticky .content-wrapper a.logo-link {
    padding: 0;
    transition: padding-top 0.5s;
    height: 6rem;
}

header.sticky {
    height: 6rem;
    transition: height 0.5s;
}

header.sticky .content-wrapper a.logo-link {
    background-color: #0d50a6;
}

header.sticky .logo-img {
    height: 6rem;
    width: auto;
}

/* ------------------------------------
*  NAVIGATION
* ------------------------------------
*/

nav ul li {
    display: inline-block;
    list-style-type: none;
    margin: 0 2rem;
    position: relative;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    transition: all 0.2s ease;
}

#main_menu li {
    text-transform: uppercase;
}

.only_desktop > #main_menu > li > a.active {
    padding-bottom: 0.5rem;
    border-bottom: 0.5rem solid #0d50a6;
}

.only_desktop > #main_menu li ul li a.active {
    background-color: #06254d;
}

#main_menu > li > a:hover {
    color: #f4f4f4;
    border-bottom: 0.5rem solid #0d50a6;
    padding-bottom: 0.5rem;
}

nav ul li ul {
    opacity: 0;
    position: absolute;
    transition: all 0.4s ease;
    visibility: hidden;
    z-index: 9999;
    background: #0d50a6;
}

nav ul li ul li {
    color: #ffffff;
    display: block;
    margin: 0;
    transition: all 0.2s ease;
}

.header-wrapper .content-wrapper ul ul li.no-link {
    padding: 0.7rem 1.5rem;
}

.header-wrapper .content-wrapper ul ul li a {
    padding: 0.7rem 1.5rem;
    display: block;
}

nav ul li ul li:last-child {
    border-bottom: 0 none;
}

nav ul li ul li a:hover {
    background-color: #06254d;
    color: #ffffff;
}

nav ul li:hover ul {
    opacity: 1;
    visibility: visible;
}

nav.only_desktop {
    padding-top: 5rem;
    height: 12rem;
    transition: padding 0.5s;
    margin-left: auto;
}

header .header-wrapper a.logo-link {
    background-color: #fff;
    padding: 2rem 3rem;
    display: block;
    z-index: 1;
}

#main_menu a.camelcase {
    text-transform: capitalize;
    font-style: italic;
}

.header-wrapper hr {
    width: calc(100% - 3rem);
    border-top: 2px solid white;
    text-align: center;
    margin: 0 auto;
}

/* ------------------------------------
*  HERO IMAGE
* ------------------------------------
*/

.hero-img {
    width: 100%;
}

.hero-img > div {
    /* background-image: url(../img/header-historie.jpg); */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 20rem;
    width: 100%;
    background-color: #0d50a6;
}

.startseite.hero-img > div {
    background-attachment: fixed;
    background-image: url(../img/kanzlei/scr_210633_Kanzlei-am-Gericht_Gruppe_7791_2560px.jpg);
    background-position: top center;
    height: calc(100vh - 10rem);
}

.startseite.hero-img .hero-text {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: start;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 10rem;
}

.startseite.hero-img .hero-text .blue-bg {
    background-color: #0d50a6;
    padding: 1rem 2rem;
    font-size: 6.4rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1;
}

.startseite.hero-img .hero-text span:not(.blue-bg) {
    font-weight: normal;
    font-size: 4rem;
    text-transform: uppercase;
}

section.hero-img::before,
section.hero-img::after {
    padding-top: 0;
}

.rechtsanwaelte.hero-img > div {
    /* background-image: url(../img/header-anwaelte.jpg); */
}

.familienrecht.hero-img > div {
    /* background-image: url(../img/header-familienrecht.jpg); */
}

.kontakt.hero-img > div {
    /* background-image: url(../img/header-kontakt.jpg); */
}

.notariat.hero-img > div {
    /* background-image: url(../img/header-notariat.jpg); */
}

.philosophie.hero-img > div {
    /* background-image: url(../img/header-philosophie.jpg); */
}

.historie.hero-img > div {
    /* background-image: url(../img/header-historie.jpg); */
}

.hero-img > div h1 {
    /* color: #0d50a6; */
    padding: 0;
    color: white;
}

.hero-img .flexbox {
    height: 100%;
    align-items: center;
    justify-content: flex-end;
}

/* ------------------------------------
*  CONTENT
* ------------------------------------
*/

main {
    padding: 0;
}

section::before {
    padding-top: 7rem;
    content: ' ';
    display: block;
}

section::after {
    padding-top: 7rem;
    content: ' ';
    display: block;
}

/* ------------------------------------
*  FORMS
* ------------------------------------
*/

select,
input,
textarea {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    width: 100%;
    border: 1px solid #0d50a6;
}

select,
::placeholder {
    color: rgba(3, 27, 57, 0.5);
}

select {
    -webkit-appearance: none;
    appearance: none;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 1rem;
    top: 50%;
    right: 4rem;
    transform: translateY(-50%);
    position: absolute;
    color: rgba(3, 27, 57, 0.5);
}

select:focus,
input:focus,
textarea:focus {
    outline: 0 none;
}

textarea {
    height: 14rem;
    width: 100% !important;
}

input[type='submit'] {
    background: #0d50a6;
    color: #fff;
    transition: all 0.4s ease;
}

input[type='submit']:hover {
    background: #06254d;
    cursor: pointer;
}

form {
    padding: 3rem;
    border: 1px solid #0d50a6;
}

input[type='checkbox'] {
    width: auto;
    display: inline-block;
}

/* ------------------------------------
*  BUTTONS
* ------------------------------------
*/

button {
    background: #0d50a6;
    color: #fff;
    display: block;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    margin: 1rem 0;
    padding: 1rem 3rem;
    transition: all 0.4s ease;
}

button:active,
button:focus {
    outline: 0 none;
}

button:hover {
    background: #06254d;
    cursor: pointer;
}

.button--border {
    background: transparent;
    border: 2px solid #97c8de;
    color: #97c8de;
}

.button--border:hover {
    background: #97c8de;
    color: #fff;
}

/* ------------------------------------
*  FOOTER
* ------------------------------------
*/

footer {
    background: #06254d;
    color: #fff;
    overflow: hidden;
    padding: 10rem 0 5rem;
    width: 100%;
}

footer .footer-wrapper {
    margin: 0 auto;
    text-align: left;
    width: 1520px;
    max-width: 100%;
}

footer .footer-wrapper .row hr {
    border-top: 1px solid white;
    margin: 0;
}

footer .footer-wrapper p {
    margin: 0 0 1px 0;
    padding: 0.2rem 0;
}

footer .footer-wrapper .row p {
    margin: 0;
}

footer .logo-img {
    margin-bottom: 3rem;
}

footer .footer-list p {
    padding: 0.2rem 0;
}

footer a:hover {
    color: #0d50a6;
    text-decoration: none;
}

footer .flex p {
    display: flex;
    align-items: center;
}

footer .float_left {
    padding: 0 1.5rem 0 0;
}

footer p {
    line-height: 1.8;
}

footer .row {
    margin: 0;
}

footer .flexbox > div,
footer .footer-list > div {
    padding: 0 30px;
}

footer .footer-list {
    margin: 0 -30px;
}

footer p.footer-headline {
    font-size: 2rem;
    margin-bottom: 2.4rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* ------------------------------------
*  ACCORDION
* ------------------------------------
*/

.accordion {
    color: #444;
    cursor: pointer;
    padding: 0;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
    background-color: #fff;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.accordion .title {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 600;
}

.accordion:after {
    content: ' ';
    background-image: url('../img/icons/plus.png');
    background-size: 20px 20px;
    height: 20px;
    width: 20px;
    margin-right: 20px;
    margin-left: 20px;
    padding: 10px;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.accordion.active:after {
    transform: rotate(45deg);
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-text p {
    margin: 1rem 0;
}

.accordion-text hr {
    margin: 0;
}

.accordion-text button {
    margin: 0;
    padding: 1rem 0 1rem 1rem;
}

.accordion-text button:hover {
    background-color: #06254d;
    color: #ffffff;
}

/* ------------------------------------
*  ADDITIONAL
* ------------------------------------
*/

.side-buttons {
    position: fixed;
    /* bottom: 10rem; */
    bottom: 20rem;

    right: 0;
    z-index: 1010;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
}

.side-buttons img {
    padding-bottom: 1rem;
}

.welcome .flexbox {
    align-items: flex-end;
}

.welcome .flexbox p:last-child {
    margin-bottom: 0;
}

p a:not(footer p a, .blue-column p a, .download a, .kontakt a) {
    color: #0d50a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 0;
    padding-left: 0;
}

.content-wrapper ul ul {
    margin-top: 0.75rem;
    margin-left: 50%;
    transform: translateX(-50%);
    min-width: 23rem;
}
section.dienstleistungen::before,
section.dienstleistungen::after {
    background-color: rgba(6, 37, 77, 0.5);
}
section.dienstleistungen {
    /* background: url(../img/amtsgericht-blue.png) no-repeat center center; */
    min-height: 65rem;
    background-size: cover;
    background-attachment: fixed;
}

section.dienstleistungen h2 {
    color: #ffffff;
}

section.dienstleistungen .container {
    width: 1120px;
}

section.dienstleistungen .overlay {
    background-color: rgba(6, 37, 77, 0.5);
}

section.dienstleistungen .row {
    padding: 15px 0;
    margin: 0;
}

section.dienstleistungen .row > div,
section.anwaelte .blue-column .row > div,
section.anwaelte .anwaelte_2nd .row > div {
    padding: 0 15px;
}

section.dienstleistungen .blue-box {
    padding: 2rem;
    background-color: #0d50a6;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.dienstleistungen .blue-box figure img {
    width: auto;
    height: 8rem;
}

section.dienstleistungen a.blue-box:hover {
    background-color: #06254d;
}

section.dienstleistungen figcaption {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1rem;
    line-height: 1.4;
}

section.anwaelte .blue-column .row,
section.anwaelte .anwaelte_2nd .row {
    margin: 0 -15px;
}

section.anwaelte .anwaelte_2nd .row {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

section.anwaelte .kontakt {
    padding-top: 10rem;
}

section.anwaelte figcaption {
    width: 80%;
    background-color: #0d50a6;
    color: white;
    padding: 1rem 4rem;
    margin-top: -2.5rem;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: bold;
    position: absolute;
}

section.anwaelte figcaption .hover_show {
    display: none;
}

section.anwaelte a.pic:hover figcaption {
    width: calc(100% - 3rem);
    background: none;
    text-align: center;
    font-size: 4rem;
    line-height: 1.2;
    bottom: 3rem;
}

section.anwaelte a.pic:hover figure {
    background-color: #0d50a6;
}

section.anwaelte a.pic:hover img {
    opacity: 0.3;
}

section.anwaelte a.pic:hover .hover_show {
    display: inline-block;
    font-size: 1.6rem;
    background-color: #ffffff;
    color: #0d50a6;
    padding: 1rem;
    font-weight: normal;
    letter-spacing: 0.05rem;
}

section.anwaelte p {
    max-width: 30vw;
    margin-top: 0;
}

section.person::before {
    padding-top: 0;
    position: absolute;
    height: 9%;
    background-color: #0d50a6;
    width: 100%;
}

section.person figure {
    transform: translateY(-15%);
}

section.person a.pic:hover figcaption {
    width: 100%;
}

/* Seite Historie */

section.geschichte .row:nth-child(1) div:nth-child(2) {
    margin-top: 13rem;
}

.pic-text h2,
.pic-text h3 {
    color: #0d50a6;
}

.pic-text h2 + h3 {
    font-weight: normal;
    color: inherit;
    margin-top: -2.4rem;
}

.pic-text img {
    position: relative;
    z-index: 1000;
}

.pic-text figure {
    padding-left: 3rem;
    margin-bottom: -18rem;
}

.pic-text figcaption {
    background-color: #0d50a6;
    padding: 10rem;
    transform: translate(-3rem, -17rem);
    z-index: 5;
}

.pic-text ul {
    list-style: none;
}

.pic-text ul li::before {
    content: '\25A0';
    color: #0d50a6;
    display: inline-block;
    width: 2rem;
    position: relative;
    top: -2px;
    margin-left: -2rem;
    font-size: 1.2rem;
}

.pic-text li {
    margin-bottom: 2rem;
    margin-left: 2rem;
}

p ~ h2 {
    margin-top: 7rem;
}

.blue-column {
    background-color: #0d50a6;
    color: white;
}

section.anwaelte .blue-column {
    background-image: linear-gradient(to top, white 35%, #0d50a6 35%);
    padding-top: 7rem;
}

section.tradition {
    margin-top: 15rem;
}

section img.img-top {
    transform: translateY(-50%);
    margin-bottom: -50%;
}

section.hilfe {
    background-color: #f4f4f4;
    padding: 3rem 0;
}

section.hilfe a {
    padding: 1rem 1.5rem;
    background-color: #0d50a6;
    color: white;
    font-size: 1.8rem;
}

section.hilfe a:hover {
    background-color: #06254d;
    text-decoration: none;
}

section.philosophie p:first-child,
section.rechtsanwaelte.blue-column p:first-child {
    margin-top: 0;
}

section.philosophie p:last-child,
section.rechtsanwaelte.blue-column p:first-child {
    margin-bottom: 0;
}

section.rechtsanwaelte.header h2 {
    margin-bottom: 0;
}

section.rechtsanwaelte.header h3,
section.philosophie.header h3 {
    font-weight: normal;
    font-size: 2rem;
}

section.rechtsanwaelte.header .flexbox,
section.philosophie.header .flexbox {
    justify-content: flex-end;
}

section.philosophie.header .image-helper .flexbox {
    flex-direction: column;
    flex-wrap: nowrap;
}

section.philosophie.header > .center.container {
    padding-bottom: 7rem;
}

section.rechtsanwaelte h4 {
    margin-bottom: 0;
}

section.rechtsanwaelte.pic-text h2 {
    color: inherit;
}

section.rechtsanwaelte.header,
section.philosophie.header {
    position: relative;
}

section.rechtsanwaelte.header .image-helper,
section.philosophie.header .image-helper {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 7rem 0;
    height: 100%;
}

section.rechtsanwaelte.header .image-helper .container,
section.philosophie.header .image-helper .container {
    height: 100%;
}

section.rechtsanwaelte.header .bg-image,
section.philosophie.header .bg-image {
    background-repeat: no-repeat;
    background-size: contain;
    height: 100%;
    width: calc(50% - 15px);
}

section.rechtsanwaelte.header .blue-column p:first-child {
    margin-top: 0;
}

section.rechtsanwaelte.header .blue-column p:last-child {
    margin: 0;
}

section.rechtsanwaelte.header .blue-column p {
    margin-bottom: 2.4rem;
}

section.rechtsanwaelte.header p a {
    text-transform: uppercase;
    font-weight: 600;
}

.rechtsanwaelte.header::after,
section.philosophie.header::after {
    padding: 0;
}

.rechtsanwaelte .blue-column .container {
    min-height: 243px;
}

.download p {
    margin: 1rem 0;
}

.download a {
    background-color: #f4f4f4;
    padding: 1rem 2rem;
    width: 100%;
    display: block;
}

.content-wrapper .download a:hover {
    text-decoration: none;
    color: white;
    background-color: #0d50a6;
}

.two_cols {
    column-count: 2;
    column-gap: 5rem;
    margin-top: 2.4rem;
    column-width: 342px;
}

.two_cols p {
    break-inside: avoid;
}

.two_cols p:first-child {
    margin-top: 0;
}

section.google-maps::after {
    padding-top: 0;
}

.nav_mobile ul li a {
    color: #06254d;
}

.nav_mobile .no-link {
    padding-left: 4rem;
}

section.kontakt p:not(section.kontakt p.first),
section.kontakt .open p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
}

section.kontakt p span.float_left {
    padding-bottom: 0;
}

.row > h3 {
    padding-right: 30px;
    padding-left: 30px;
}

#formcallback.blue-column {
    padding: 2rem;
}

/* Impressum & Datenschutz */
.content-wrapper .datenschutz ul,
.content-wrapper .impressum ul {
    padding-left: 1.8rem;
}

.content-wrapper .impressum a,
.content-wrapper .datenschutz a {
    text-transform: unset;
}

.phone-button {
    background: #0d50a6;
    color: #fff;
    display: block;
    /* font-size: 1.6rem; */
    font-family: 'Roboto', sans-serif;
    margin: 0 0;
    padding: 0 0;
    transition: all 0.4s ease;
}
.phone-button img {
    padding: 0;
}
.phone-block p a {
    color: #fff !important;
}

.phone-block {
    margin-right: 0;
    background-color: #0d50a6;
    color: #fff;
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    margin: 0 0;
    padding: 2rem;
    transition: all 0.4s ease;
    text-align: center;
    width: 100%;
    height: 100%;
    text-align: left;
    width: max-content;
    height: auto;
    width: 33rem;
    /* max-width: calc(100vw - 7.8rem); */
}

.phone-block:not(.open) {
    margin-right: -33rem;
    visibility: hidden;
    opacity: 0;
    position: none;
}

.phone-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.phone-wrapper p:first-child {
    margin-top: 0;
}

.phone-wrapper p:last-child {
    margin-bottom: 0;
}

.footer-time span.float_left,
.footer-phonenumber p:not(.footer-headline) {
    margin-left: -4rem;
}

@media screen and (max-width: 450px) {
    .phone-block {
        width: calc(100vw - 7.8rem);
    }

    .phone-block:not(.open) {
        margin-right: calc(0px - (100vw - 7.8rem));
    }
}

@media screen and (max-width: 1200px) {
    .footer-time span.float_left,
    .footer-phonenumber p:not(.footer-headline) {
        margin-left: 0;
    }

    .footer-time p:not(.footer-headline, .iconp) {
        margin-left: 4rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-time p:not(.footer-headline, .iconp) {
        margin-left: 0;
    }
}
