/* =============================================================================
   SCHUMANN Rechtsanwälte Notare — Stylesheet
   Basis: Contao 5 HTML-Struktur
   ============================================================================= */

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* -----------------------------------------------------------------------------
   1. Reset & Basis
----------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6,
p, blockquote, a, img, small, sub, b, dl, dd, dt,
ul, li, label, article, details, footer, header,
menu, nav, input, textarea, select {
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
}

html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
    background: #fff;
    height: 100%;
    width: 100%;
}

body {
    overflow-x: hidden;
}

/* -----------------------------------------------------------------------------
   2. Typografie
----------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #11314d;
    clear: left;
    line-height: 1.3;
}

h1 {
    font-size: 40px;
    color: #11314d;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h2, h2 a {
    font-size: 28px;
    color: #11314d;
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 18px;
    color: #11314d;
    margin-bottom: 10px;
}

h4 { font-size: 17.5px; margin-bottom: 8px; }
h5 { font-size: 14px; text-transform: none; }

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

b, strong {
    color: #11314d;
    font-weight: 600;
}

strong.weiss {
    color: #fff;
}

a {
    color: #293B53;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #aaa;
    outline: 0;
    text-decoration: none;
}

li {
    list-style: circle;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
    margin-left: 30px;
}

.mod_article .ce_text li {
    margin-left: 25px;
    list-style: circle;
    margin-bottom: 6px;
}

hr {
    border: none;
    border-top: 1px solid #e9e9e9;
    margin: 40px 0;
    clear: both;
}

.invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.white { color: #fff !important; }

/* -----------------------------------------------------------------------------
   3. Layout-Wrapper
----------------------------------------------------------------------------- */

#wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#container {
    flex: 1;
    padding-top: 103px;
}

#main > .inside {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 0 60px;
}

/* -----------------------------------------------------------------------------
   4. Header & Navigation
----------------------------------------------------------------------------- */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #fff;
}

#header > .inside {
    width: 100%;
}

#navigation {
    background: #fff;
}

.navbar-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 0 16px;
    border-bottom: 1px solid #e5e5e5;
    padding-top: 30px;
    padding-bottom: 21px;
}

/* Logo */
#logo {
    display: block;
    flex-shrink: 0;
    margin-right: 30px;
}

#logo img {
    display: block;
    height: 50px;
    width: auto;
}

/* Hamburger (mobile) */
a.show-menu {
    display: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    align-self: center;
}

.show-menu-bar {
    display: block;
    width: 26px;
    height: 2px;
    background: #293B53;
    position: relative;
    transition: all 0.3s ease;
}

.show-menu-bar::before,
.show-menu-bar::after {
    content: '';
    display: block;
    width: 26px;
    height: 2px;
    background: #293B53;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.show-menu-bar::before { top: -8px; }
.show-menu-bar::after  { top: 8px; }

/* Navigation */
.submenu-toggle {
    display: none;
}

nav#menu {
    flex: 1;
    overflow: visible;
}

#menu ul.level_1 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu ul.level_1 > li {
    position: relative;
    list-style: none;
    margin: 0;
    margin-bottom: 0;
}



#menu ul.level_1 > li > a,
#menu ul.level_1 > li > strong {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

#menu ul.level_1 > li > a:hover,
#menu ul.level_1 > li > a:focus,
#menu ul.level_1 > li > strong.active,
#menu ul.level_1 > li.active > a,
#menu ul.level_1 > li.trail > a {
    color: #11314d;
}

/* Dropdown Level 2 */
#menu ul.level_2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-top: 3px solid #293B53;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 260px;
    z-index: 500;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

#menu ul.level_1 > li:hover > ul.level_2,
#menu ul.level_1 > li:focus-within > ul.level_2 {
    display: block;
}

#menu ul.level_2 > li {
    list-style: none;
    margin: 0;
    width: 100%;
    float: none;
    border-bottom: 1px solid #eee;
}

#menu ul.level_2 > li > a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

#menu ul.level_2 > li > strong {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

#menu ul.level_2 > li > a:hover {
    background: #f5f5f5;
    color: #293B53;
}

/* -----------------------------------------------------------------------------
   5. Haupt-Content
----------------------------------------------------------------------------- */

.mod_article {
    margin-top: 0;
    padding-top: 0;
}

.mod_article::after {
    content: '';
    display: table;
    clear: both;
}

.ce_text {
    margin-bottom: 25px;
}

/* Content-Image (Headerbild) */
.content-image {
    width: 100%;
    margin-bottom: 20px;
}

.content-image figure {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content-Text */
.content-text {
    margin-bottom: 25px;
}

.content-text .rte {
    font-size: 15px;
    line-height: 1.9;
}

/* Bilder allgemein */
.image_container,
.ce_image .image_container img {
    margin: 0;
    padding: 0;
    width: 100%;
}

.ce_image .image_container img,
.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.ce_image { padding-bottom: 20px; }
.ce_text .image_container { margin: 10px 0; }

/* Breadcrumb */
.mod_breadcrumb {
    width: 100%;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 12px;
}

.mod_breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod_breadcrumb li {
    list-style: none;
    margin: 0 4px 0 0;
    font-size: 12px;
}

.mod_breadcrumb li::after { content: " /"; }
.mod_breadcrumb li.last::after { content: ""; }
.mod_breadcrumb .has_children { display: none; }

/* -----------------------------------------------------------------------------
   6. Spalten-Grid (float-basiert, Contao-Klassen)
----------------------------------------------------------------------------- */

.one_half,
.one_third,
.two_third,
.three_fourth,
.one_fourth,
.two_fourth,
.one_fifth,
.two_fifth,
.three_fifth,
.four_fifth,
.one_sixth,
.five_sixth,
.one_half_last {
    float: left;
    margin-bottom: 20px;
    margin-right: 2%;
    position: relative;
}

.one_half       { width: 48%; }
.one_half_last  { width: 48%; margin-right: 0; }
.one_third      { width: 30.67%; }
.two_third      { width: 65.33%; }
.one_fourth     { width: 23%; }
.two_fourth     { width: 48%; }
.three_fourth   { width: 73% !important; float: right !important; margin-right: 0 !important; }
.one_fifth      { width: 18%; }
.two_fifth      { width: 38%; }
.three_fifth    { width: 58%; }
.four_fifth     { width: 78%; }
.one_sixth      { width: 14%; }
.five_sixth     { width: 82%; }

.last { margin-right: 0 !important; }

.clearme, .clear { clear: both; }

/* -----------------------------------------------------------------------------
   7. Footer
----------------------------------------------------------------------------- */

#footer {
    background: #fff;
    position: relative;
    padding: 0px;
}

#footer > .inside {
    width: 100%;
}

#footer a {
    -webkit-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
       -moz-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
        -ms-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
         -o-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
            transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
}

#footer a:hover,
#footer a:focus {
    color: #293B53 !important;
}

/* Parallax-Bereich */
.parallax {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

.parallax-overlay {
    background-color: rgba(155,155,155,0.99);
    width: 100%;
}

/* Karte */
#kanzlei-map {
    width: 100%;
    height: 480px;
    margin-bottom: 30px;
}

/* Kontakt-Block */
.my-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 23px 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.8;
}

.my-contact h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 10px;
}

.my-contact .one_fourth {
    float: none;
    width: auto;
    flex: 1 1 200px;
    margin: 0;
}

.my-contact .two_fourth {
    float: none;
    width: auto;
    flex: 2 1 300px;
    margin: 0;
}

.my-contact .one_fourth.last {
    float: none;
    text-align: right;
    margin: 0;
}

.my-contact p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.my-contact a {
    color: #fff;
}

.my-contact a:hover {
    color: #ccc;
}

/* -----------------------------------------------------------------------------
   8. Pfeilimage-Modul
----------------------------------------------------------------------------- */

.pfeilimage-wrapper {
    width: 100%;
}

.pfeilimage_title {
    font-size: 40px;
    letter-spacing: 0px;
    color: #11314d;
    text-transform: uppercase;
    margin-bottom: 35px;
}


.pfeilimage-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.pfeilimage-filter-btn {
    background: #e8e8e8;
    border: none;
    padding: 7px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #293B53;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.pfeilimage-filter-btn:hover,
.pfeilimage-filter-btn.active {
    background: #293B53;
    color: #fff;
}

.pfeilimage-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.pfeilimage-item {
    transition: opacity 0.3s ease;
}

.pfeilimage-item a {
    display: block;
    color: #333;
}

.pfeilimage-figure {
    margin: 0 0 8px;
    overflow: hidden;
}

.pfeilimage-figure img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.pfeilimage-item a:hover .pfeilimage-figure img {
    transform: scale(1.03);
}

.pfeilimage-name {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #293B53;
    margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   9. Back-to-Top
----------------------------------------------------------------------------- */

/* Template-Footer (nur Back-to-Top, außerhalb #wrapper) */
body > footer {
    position: relative;
    background: #fff;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.15);
    z-index: 100;
    padding: 40px 0;
    text-align: center;
}

body > footer .container.no-padding {
    padding: 0;
    position: static;
}

/* Back-to-Top Link */
#back-top {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

/* Button-Kasten */
#menu_top {
    height: 50px;
    width: 40px;
    background-color: #293B53;
    border-radius: 3px;
    left: 50%;
    margin-left: -20px;
    margin-top: -65px;
    position: absolute;
    cursor: pointer;
}

/* Pfeil-Sprite (Originalbild) */
#menu_top_inside {
    background-image: url('../schuman/images/menu_bottom_top_bg.png');
    background-size: 18px 11px;
    background-position: 0 0;
    height: 22px;
    left: 11px;
    position: absolute;
    top: 14px;
    transition: background-position 0.3s linear 0s;
    width: 18px;
}

#back-top:hover #menu_top_inside {
    animation: bottom_top_over 0.3s linear infinite;
}

@keyframes bottom_top_over {
    0%   { background-position: 0 0; }
    100% { background-position: 0 -11px; }
}

/* -----------------------------------------------------------------------------
   11. Hilfklassen
----------------------------------------------------------------------------- */

.no-padding { padding: 0 !important; }
.left       { float: left; }
.right      { float: right; }
.contentspacer { padding-top: 0 !important; }

section {
    position: relative;
    background-color: #f5f5f5;
    z-index: 1;
}

/* -----------------------------------------------------------------------------
   10. Tabs (Tab-Shortcode)
----------------------------------------------------------------------------- */

.tab-shortcode {
    float: left;
    text-align: left;
    width: 100%;
    margin-bottom: 0;
}

.tab-shortcode ul {
    border-bottom: 0 solid #ddd;
    margin-top: 10px;
    margin-bottom: 15px;
}

.tab-shortcode li {
    line-height: 1.3;
    margin-bottom: 5px;
}

ul.tabs {
    overflow: hidden;
    margin: 0;
}

ul.tabs li {
    margin: 0;
    list-style: none;
    text-transform: uppercase;
    color: #11314d;
    display: inline-block;
}

ul.tabs li a {
    display: block;
    background-color: #e5e5e5;
    padding: 4px 14px;
    margin-bottom: 3px;
    color: #11314d;
    text-decoration: none;
    font-size: 12px;
}

ul.tabs li a h5 {
    font-size: 16px;
    font-weight: 300;
    /*text-transform: uppercase;*/
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: inherit;
    clear: none;
}

ul.tabs .tab-active a,
ul.tabs .tab-active h5 {
    color: #fff !important;
}

ul.tabs .tab-active a {
    background-color: #293B53;
}

.tab_container {
    clear: both;
    padding: 20px 0;
    margin-top: 0;
    background: #fff;
    font-size: 16px;
}

.tab_container h4 {
    text-align: left;
    margin-bottom: 20px;
}

.tab_container li {
    text-align: left;
    margin-left: 30px;
    list-style: circle;
}

.tab_container a {
    color: #293B53;
}

.tab_container a:hover {
    color: #ccc;
}

/* -----------------------------------------------------------------------------
   11. News / Masonry
----------------------------------------------------------------------------- */

/* Überschriften in Masonry-Karten */
.masonry h2 {
    hyphens: auto;
    font-size: 1.2em;
}

/* Isotope-Übergänge (JS-Masonry) */
.isotope,
.isotope .isotope-item {
    transition-duration: 0.8s;
}

.isotope {
    transition-property: height, width;
}

.isotope .isotope-item {
    transition-property: transform, opacity;
}

.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
    transition-duration: 0s;
}

/* News-Listen-Container */
.blog-posts-content {
    width: 100%;
    float: left;
    margin-right: 0;
}

/* Einzelne News-Karte */
.layout_latest.masonry {
    background-color: #fff;
    padding-right: 20px;
    margin-bottom: 25px;
    margin-right: 40px;
    max-width: 350px;
}

/* Teaser-Text */
.layout_latest.masonry .teaser {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* Mehr-Link */
.layout_latest.masonry .more a {
    font-size: 13px;
    color: #293B53;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.layout_latest.masonry .more a:hover {
    color: #aaa;
}

/* Bild */
.layout_latest figure .image_container {
    float: left;
}

/* -----------------------------------------------------------------------------
   12. Responsive
----------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    #menu ul.level_1 > li > a,
    #menu ul.level_1 > li > strong {
        padding: 6px 7px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    a.show-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }

    nav#menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        padding: 10px 5%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        max-height: 600px;
        overflow: scroll;
    }

    nav#menu.nav-collapse {
        display: block;
    }

    #menu ul.level_1 {
        flex-direction: column;
        align-items: flex-start;
    }

    #menu ul.level_1 > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    #menu ul.level_1 > li:last-child {
        border-bottom: none;
    }

    #menu ul.level_1 > li > a,
    #menu ul.level_1 > li > strong {
        padding: 10px 0;
        width: 100%;
    }

    #menu ul.level_2 {
        position: static;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #293B53;
        margin-left: 10px;
        display: none;
    }

    #menu ul.level_1 > li:hover > ul.level_2,
    #menu ul.level_1 > li:focus-within > ul.level_2 {
        display: none;
    }

    #menu ul.level_1 > li.submenu-open > ul.level_2 {
        display: block;
    }

    #menu ul.level_1 > li.submenu {
        position: relative;
    }

    .submenu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        height: 42px;
        width: 42px;
        background: transparent;
        border: none;
        font-size: 22px;
        color: #aaa;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }

    .submenu-toggle:hover {
        color: #293B53;
    }

    .one_half,
    .one_third,
    .two_third,
    .one_fourth,
    .two_fourth,
    .one_fifth,
    .two_fifth,
    .three_fifth,
    .four_fifth,
    .one_sixth,
    .five_sixth,
    .one_half_last {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    .three_fourth {
        width: 100% !important;
        float: none !important;
    }

    #container {
        padding-top: 80px;
    }

    .blog-posts-content {
        min-height: 100px;
    }

    .layout_latest.masonry {
        margin-bottom: 18px;
        width: 300px;
        max-width: 350px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 26px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }

    #main > .inside {
        width: 94%;
        padding: 30px 0 40px;
    }

    .navbar-inner {
        width: 94%;
        padding: 14px 0;
    }

    .my-contact {
        width: 94%;
        flex-direction: column;
        gap: 12px;
    }

    .my-contact .one_fourth,
    .my-contact .two_fourth,
    .my-contact .one_fourth.last {
        flex: none;
        width: 100%;
    }

    .my-contact .one_fourth.last {
        text-align: left;
    }

    .parallax {
        background-attachment: scroll;
    }

    .pfeilimage-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfeilimage-filter {
        flex-direction: column;
        gap: 6px;
    }

    .pfeilimage-filter-btn {
        width: 100%;
        text-align: left;
    }

    #container {
        padding-top: 70px;
    }

    ul.tabs li {
        display: block;
    }

    .layout_latest.masonry {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .pfeilimage-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab_container {
        font-size: 13px;
    }

    .layout_latest.masonry {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
        padding-right: 0;
    }
}
