@import url("reset.css");
@import url("fonts.css");

/* 
 *
 *
 * Roots
 * -------------------------------------------------------------------------- */
:root {
    --h-spacer: clamp(20px, 5%, 60px);
    --v-spacer: min(10%, 120px) !important;

    --headline-h0: clamp(44px, calc(2.75rem + ((1vw - 3.6px) * 12.5926)), 180px);
    --headline-h1: clamp(36px, calc(2.25rem + ((1vw - 3.6px) * 3.3333)), 72px);
    --headline-h2: clamp(36px, calc(2.25rem + ((1vw - 3.6px) * 2.2222)), 60px);
    --headline-h3: clamp(21px, calc(1.3125rem + ((1vw - 3.6px) * 0.5556)), 27px);
    --headline-h4: clamp(18px, calc(1.125rem + ((1vw - 3.6px) * 0.2778)), 21px);
    --headline-h5: clamp(16px, calc(1rem + ((1vw - 3.6px) * 0.1852)), 18px);

    --color-primary: #00385b;
    --color-primary-dark: #002d49;
    --color-primary-light: #1e5791;
    --color-secondary: #fbb900;
    --color-text: #ffffff;
    --color-light: #e8e8e8;
    --color-lighter: #f1f1f1;
}

/* 
 *
 *
 * Default
 * -------------------------------------------------------------------------- */
*,
*:focus {
    outline: none !important;
}

* {
    /* background: #0000000f; */
}

a {
    color: var(--color-text);
    transition: all 0.3s ease;
}
a:hover {
    color: var(--color-secondary);
}

html,
body {
    background: var(--color-primary);
    color: var(--color-text);
    font-family: "Titillium Web", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    height: auto;
    min-height: 100svh;
}

body {
    width: 100%;
    background: var(--color-primary) url("/src/img/Artus-Gruppe-Mitarbeitertreffen-Webseite-Bildergalerie-1920x1400x54.jpg") top center no-repeat;
    background-size: 100% auto;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: var(--headline-h1);
    font-weight: 600;
    min-height: 0vw;
    text-transform: uppercase;
    line-height: 1.2;
}
h2 {
    font-size: var(--headline-h2);
    font-weight: 600;
    min-height: 0vw;
    text-transform: uppercase;
}
h3,
.subline h2 {
    font-size: var(--headline-h3);
    font-weight: 400;
    min-height: 0vw;
    text-transform: uppercase;
}
h4 {
    font-size: var(--headline-h4);
    font-weight: 400;
    text-transform: uppercase;
    min-height: 0vw;
}
h5 {
    font-size: var(--headline-h5);
    font-weight: 600;
    text-transform: uppercase;
    min-height: 0vw;
}
h6 {
    font-size: var(--headline-h5);
    text-transform: uppercase;
    min-height: 0vw;
}

p {
    margin-bottom: 20px;
}

.widget,
.widget > .widget-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.widget {
    margin-bottom: 20px;
}

.container.column-1x1 {
    width: 100%;
}
.container.column-1x2 {
    width: 50%;
}
.container.column-1x3 {
    width: 33.3333%;
}
.container.column-1x4 {
    width: 25%;
}
.container.column-1x5 {
    width: 20%;
}
.container.column-1x6 {
    width: 16.6666%;
}
.container.column-1x8 {
    width: 12.5%;
}
.container.column-1x12 {
    width: 8.3333%;
}

.container.column-2x3 {
    width: 66.6666%;
}
.container.column-2x5 {
    width: 40%;
}

.container.column-3x4 {
    width: 75%;
}
.container.column-3x5 {
    width: 60%;
}
.container.column-3x8 {
    width: 37.5%;
}

.container.column-4x5 {
    width: 80%;
}

*[data-setting="wrap"] {
    flex-wrap: wrap !important;
}
*[data-setting="justify-flex-start"] {
    justify-content: flex-start !important;
}
*[data-setting="justify-flex-end"] {
    justify-content: flex-end !important;
}
*[data-setting="text-right"] {
    text-align: right;
}

/* 
 *
 *
 * Header
 * -------------------------------------------------------------------------- */
header {
    display: flex;
    justify-content: center;
    padding: 0 var(--h-spacer);
}

header > .header-wrapper {
    display: flex;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}

/* 
 *
 *
 * Main
 * -------------------------------------------------------------------------- */
main {
    display: flex;
    justify-content: center;
    padding: 0 var(--h-spacer);
    margin-top: var(--v-spacer);
    margin-bottom: var(--v-spacer);
}

main > .page-wrapper {
    display: flex;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    main > .page-wrapper {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    main .container.column-1x2 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    main .container.column-1x2 .widget-wrapper {
        justify-content: center !important;
    }
}

/* 
 *
 *
 * Footer
 * -------------------------------------------------------------------------- */
footer {
    display: flex;
    justify-content: center;
    padding: 0 var(--h-spacer);
    margin-top: auto;
    font-size: 0.85rem;
}

footer > .footer-wrapper {
    display: flex;
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    border-top: 1px solid #ffffff22;
    padding-top: 40px;
    padding-bottom: var(--v-spacer);
}

footer .smic-logo {
    margin-bottom: 1rem;
    margin-top: -0.7rem;
}
footer .smic-logo img {
    display: inline-block;
}
@media (max-width: 1024px) {
    footer > .footer-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }
    footer .container.column-1x3 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    footer .container.column-1x3 .wrapper {
        text-align: center;
    }
    footer .smic-logo {
        margin-bottom: 1rem;
        margin-top: -0.7rem;
    }
}

/* 
 *
 *
 * Widgets
 * -------------------------------------------------------------------------- */

/* Logo */
.widget--logo > .widget-wrapper {
    justify-content: flex-end;
}

.logo img {
    width: clamp(120px, 15vw, 210px);
    padding: 20px 0;
}

/* Headline */
.widget--headline > .widget-wrapper h1 {
    font-weight: 300;
}
@media (max-width: 1024px) {
    .widget--headline > .widget-wrapper h1 {
        text-align: center;
    }
}

/* Subline */
.widget--subline > .widget-wrapper {
    padding: 10px 15px;
    background: var(--color-secondary);
    width: auto;
    margin: 0 auto;
    flex: none;
}

/* Gallery */
.widget--gallery {
    margin: 40px auto;
}
.widget--gallery > .widget-wrapper {
    flex-wrap: wrap;
    margin: 0 -10px;
    width: calc(100% + 20px);
    /* padding: 10px;
    width: 100%; */
    /* background: var(--color-primary-light);
    box-shadow: 0 10px 50px #00000088; */
}
.widget--gallery .item,
.widget--gallery .xtra-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
}
@media (min-width: 768px) {
    .widget--gallery .item,
    .widget--gallery .xtra-item {
        width: 50%;
    }
}
@media (min-width: 1024px) {
    .widget--gallery .item,
    .widget--gallery .xtra-item {
        width: 33.3333%;
    }
}
@media (min-width: 1280px) {
    .widget--gallery .item,
    .widget--gallery .xtra-item {
        width: 25%;
    }
}
@media (min-width: 1360px) {
    .widget--gallery .item,
    .widget--gallery .xtra-item {
        width: 20%;
    }
}
.widget--gallery .item > .item-wrapper,
.widget--gallery .xtra-item > .item-wrapper {
    position: absolute;
    inset: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-content: stretch;
    align-items: stretch;
    box-shadow: 0 10px 50px #000000cc;
    /* border: 2px solid var(--color-primary); */
}
.widget--gallery .item > .item-wrapper::after {
    position: absolute;
    inset: 50% auto auto 50%;
    content: "";
    background: url("/src/img/icon-full-screen.svg") center center no-repeat;
    width: 60px;
    height: 60px;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.25);
    opacity: 0;
    transition: all 0.3s ease;
}
.widget--gallery .item > .item-wrapper:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.widget--gallery .item > .item-wrapper > a {
    position: relative;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}
.widget--gallery .item > .item-wrapper > a:hover {
    transform: scale(1.2);
}
.widget--gallery .item > .item-wrapper > a::before {
    position: absolute;
    inset: 0 0 0 0;
    content: "";
    display: block;
    background: #00000000;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 2;
    box-shadow: 0 0 80px 80px inset #00000044;
}
.widget--gallery .item > .item-wrapper > a:hover::before {
    background: var(--color-secondary);
    opacity: 0.75;
    box-shadow: 0 0 80px 80px inset #00000000;
}
.widget--gallery .item > .item-wrapper > a::after {
    position: absolute;
    inset: 0 0 0 0;
    content: "";
    display: block;
    background: transparent;
    border: 2px solid var(--color-text);
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    transform: scale(1);
    opacity: 0;
    z-index: 3;
}
.widget--gallery .item > .item-wrapper > a:hover::after {
    opacity: 1;
    transform: scale(0.7);
}
.widget--gallery .item > .item-wrapper > a > img {
    position: absolute;
    display: block;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.widget--gallery .item > .item-wrapper > a > img.q-form {
    height: 100% !important;
    width: auto !important;
}
.widget--gallery .item > .item-wrapper > a > img.h-form {
    width: 100% !important;
    height: auto !important;
}

.widget--gallery .xtra-item .xtra {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-primary-dark);
    color: var(--color-secondary);
    padding: 30px;
    font-weight: 600;
    text-align: center;
    font-size: 1.25rem;
}

/* Text-Block*/
.widget--text .widget-wrapper {
    background: #00385b88;
    box-shadow: 0 0 150px 150px #00385b88;
    z-index: 0;
    max-width: 720px;
    margin: 0 auto;
    flex-wrap: wrap;
    text-align: center;
    padding-bottom: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-text);
}

/* Button */
.widget--button .widget-wrapper a {
    padding: 0.75em 1.5em;
    background: var(--color-primary-light);
    color: var(--color-text);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px #00000055;
    margin: 0 10px;
}
.widget--button .widget-wrapper a:hover {
    background: var(--color-secondary);
}

/* Pagination */
.widget--gallery-pagination .page-button {
    line-height: 1;
    padding: 5px;
    background: var(--color-primary);
    filter: brightness(0.8);
    margin: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
}
.widget--gallery-pagination .page-button:hover {
    filter: brightness(1.2);
}
.widget--gallery-pagination .page-button.active {
    filter: brightness(1);
    background: var(--color-secondary);
    cursor: default;
}
.widget--gallery-pagination .page-button.active:hover {
    filter: brightness(1);
}
.widget--gallery-pagination .page-button > span {
    aspect-ratio: 1/1;
    display: block;
}

.widget--gallery-pagination .page-button.page-prev,
.widget--gallery-pagination .page-button.page-next {
    font-family: Arial, Baskerville, monospace;
}

#gallery,
#gallery .widget-wrapper {
    flex-wrap: wrap;
}

/* Login */
.widget.widget--login {
    padding: 40px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: linear-gradient(var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 1px solid var(--color-primary-dark);
    box-shadow: 0 5px 25px #00000088;
    border-radius: 8px;
}
#logform {
    display: block;
    width: 100%;
    height: auto;
}

#logform fieldset {
    padding: 0;
    margin: 0 0 20px 0;
}

#logform fieldset#login-error {
    background: #be0000;
    color: white;
    padding: 10px 20px;
    margin: 20px 0 0 0;
    font-size: 0.85rem;
    line-height: 1.2;
}
#logform fieldset#login-pass {
    background: #7bbe00;
    color: white;
    padding: 10px 20px;
    margin: 20px 0 0 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

#logform label {
    display: block;
    width: 100%;
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 0.85;
    font-size: 0.85rem;
    border: 0;
}
#logform input {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem;
    line-height: 1rem;
    font-size: 0.85rem;
    border: 1px solid var(--color-primary-dark);
}
#logform input:focus {
    background: #f1f1f1;
}

#logform button {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    line-height: 1rem;
    font-size: 0.85rem;
    border: 0;
    background: var(--color-primary-light);
    color: var(--color-text);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px #00000055;
    cursor: pointer;
}
#logform button:hover {
    background: var(--color-secondary);
}

/* 
 *
 *
 * Lightbox
 * -------------------------------------------------------------------------- */
.sl-overlay {
    background: var(--color-primary-dark) !important;
    opacity: 0.95 !important;
    color: var(--color-text) !important;
}
.sl-prev,
.sl-next,
.sl-total,
.sl-counter,
.sl-current,
.sl-close {
    color: var(--color-text) !important;
}
.sl-image {
    box-shadow: 0 10px 50px #00000088 !important;
}
