/* Malermeister ASANOV – Nachbau als statische Seite
****************************************************/

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lato-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lato-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #fb8c00;
    --secondary: #726aa7;
    --text: #363537;
    --heading: #333;
    --nav: #6f6a64;
    --muted: #f5f5f5;
    --border: #e5e5e5;
    --radius: 10px;
    --container: 1200px;
}

/* BASE
****************************************************/

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

html {
    font-family: Lato, sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 20px;
    color: var(--heading);
    font-weight: 700;
}

h1,
.h1 {
    font-size: 2.23125rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

p {
    margin: 0 0 20px;
}

p:last-child {
    margin-bottom: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 1000;
    padding: 10px 15px;
    background: #fff;
}

.skip-link:focus {
    left: 10px;
}

.container {
    max-width: calc(var(--container) + 30px);
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 640px) {
    .container {
        max-width: calc(var(--container) + 60px);
        padding: 0 30px;
    }
}

@media (min-width: 960px) {
    .container {
        max-width: calc(var(--container) + 80px);
        padding: 0 40px;
    }
}

.section {
    padding: 40px 0;
}

@media (min-width: 960px) {
    .section {
        padding: 70px 0;
    }
}

.section-muted {
    background-color: var(--muted);
}

.section-wave {
    background-image: url(../img/welle-bg.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
}

.section-wave-b {
    background-image: url(../img/welle-bg-b.svg);
}

.section-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-viewport > .container {
    width: 100%;
}

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

/* BUTTONS
****************************************************/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 500px;
    font: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 38px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .1s ease-in-out;
}

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

.button-primary:hover,
.button-primary:focus-visible {
    background-color: var(--secondary);
    color: #fff;
}

.button-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background-color: var(--primary);
    color: #fff;
}

.button-block {
    width: 100%;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
}

/* HEADER
****************************************************/

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 980;
}

.header-bar {
    transition: background-color .2s ease-in-out;
}

.header.is-sticky .header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--muted);
    animation: slide-top .3s ease-out;
}

.header-subpage {
    position: relative;
}

.header-subpage .header-bar {
    background: var(--muted);
}

@keyframes slide-top {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Desktop navbar */

.navbar {
    display: none;
}

@media (min-width: 960px) {
    .navbar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        min-height: 200px;
    }

    .navbar-mobile {
        display: none !important;
    }
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-left,
.navbar-right {
    flex: 1;
}

.navbar-left {
    justify-content: flex-end;
}

.navbar-nav a {
    color: var(--nav);
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color .1s ease-in-out;
}

.navbar-nav a:hover,
.navbar-nav .is-active > a {
    color: #000;
}

.navbar-logo {
    display: block;
    flex: none;
}

.navbar-logo img {
    display: block;
    width: 165px;
    height: auto;
    transition: width .2s ease-in-out;
}

.header.is-sticky .navbar {
    min-height: 80px;
}

.header.is-sticky .navbar-logo img {
    width: 100px;
}

.navbar-phone {
    white-space: nowrap;
}

.navbar-nav .navbar-phone a.button {
    color: #fff;
    text-transform: none;
}

/* Mobile navbar */

.navbar-mobile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 0 15px;
}

.header.is-sticky .navbar-mobile {
    min-height: 80px;
}

.navbar-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--nav);
    font: inherit;
    font-size: .875rem;
    text-transform: uppercase;
    cursor: pointer;
}

.navbar-toggle:hover {
    color: #000;
}

.navbar-mobile .navbar-logo img {
    width: 100px;
}

.header.is-sticky .navbar-mobile .navbar-logo img {
    width: 70px;
}

/* Offcanvas */

.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    transition: background-color .3s ease-out, visibility 0s linear .3s;
}

.offcanvas.is-open {
    visibility: visible;
    background: rgba(0, 0, 0, .1);
    transition: background-color .3s ease-out;
}

.offcanvas-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 270px;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    transform: translateX(-100%);
    transition: transform .3s ease-out;
}

.offcanvas.is-open .offcanvas-bar {
    transform: translateX(0);
}

@media (min-width: 640px) {
    .offcanvas-bar {
        width: 350px;
        padding: 30px;
    }
}

.offcanvas-close {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px;
    border: 0;
    background: none;
    color: #999;
    cursor: pointer;
}

.offcanvas-close:hover {
    color: var(--text);
}

.offcanvas-nav {
    margin: 0 0 20px;
    padding: 20px 0 0;
    list-style: none;
}

.offcanvas-nav a {
    display: block;
    padding: 5px 0;
    color: var(--primary);
}

.offcanvas-nav a:hover,
.offcanvas-nav .is-active > a {
    color: var(--secondary);
}

body.offcanvas-open {
    overflow: hidden;
}

/* HERO
****************************************************/

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    padding: 140px 0 40px;
    background-color: #f5d9c4;
    background-image: url(../img/willkommen-malerei-asanov.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.hero > .container {
    width: 100%;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 15px;
    font-size: 2.23125rem;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: .875rem;
}

@media (min-width: 960px) {
    .hero {
        align-items: center;
        padding: 200px 0 70px;
        background-attachment: fixed;
    }

    .hero-content {
        width: 40%;
        margin-left: 60%;
        padding-left: 40px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.625rem;
    }
}

/* Einblend-Animation wie im Original (slide-left) */
.reveal {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .5s ease-out, transform .5s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ÜBER UNS
****************************************************/

.about-grid {
    display: grid;
    gap: 30px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
}

.about-tile {
    position: relative;
    padding: 40px 20px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.about-tile p {
    font-size: .875rem;
}

.about-seal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
}

@media (min-width: 640px) {
    .about-tile {
        padding: 40px;
    }

    .about-seal {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .about-tile {
        top: 60px;
        left: -90px;
    }

    .about-seal {
        top: -50px;
        right: 20px;
    }
}

/* LEISTUNGEN
****************************************************/

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

.card {
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-body {
    position: relative;
    z-index: 0;
    margin-top: -30px;
    padding: 20px;
    background-image: url(../img/welle-w.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 400px;
}

.card-title {
    margin: 20px 0 0;
    font-size: 1.7rem;
    line-height: 1.3;
}

.card-text {
    margin-top: 20px;
    font-size: .875rem;
}

/* REFERENZEN
****************************************************/

.section-xlarge {
    padding: 140px 0;
}

@media (min-width: 960px) {
    .section-xlarge {
        padding: 210px 0;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (min-width: 960px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.gallery a {
    display: block;
    overflow: hidden;
}

.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 300 / 220;
    object-fit: cover;
    transform: scale(1);
    transition: transform .3s ease-out;
}

.gallery a:hover img,
.gallery a:focus-visible img {
    transform: scale(1.03);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s linear, visibility 0s linear .2s;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .2s linear;
}

.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.lightbox-track::-webkit-scrollbar {
    display: none;
}

.lightbox-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.lightbox-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox button {
    position: absolute;
    padding: 10px;
    border: 0;
    background: rgba(0, 0, 0, .3);
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
}

.lightbox button:hover {
    color: #fff;
}

.lightbox-close {
    top: 0;
    right: 0;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-counter {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .875rem;
    text-align: center;
}

/* KONTAKT / FOOTER
****************************************************/

.footer-heading {
    margin-bottom: 70px;
}

.footer-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 960px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-grid p,
.footer-grid table,
.footer-grid li {
    font-size: .875rem;
}

.footer-logo {
    width: 200px;
    margin-bottom: 20px;
}

.contact-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-line .icon {
    width: 16px;
    height: 16px;
}

.heading-divider {
    padding-bottom: calc(5px + .1em);
    border-bottom: calc(.2px + .05em) solid var(--border);
}

.hours {
    width: 100%;
    border-collapse: collapse;
}

.hours td {
    padding: 10px 12px 10px 0;
    vertical-align: top;
}

.hours td:first-child {
    width: 150px;
}

.footer-nav {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.footer-nav a {
    display: block;
    padding: 5px 0;
}

.footer-seal {
    width: 160px;
}

/* UNTERSEITEN
****************************************************/

.page-content {
    max-width: 900px;
}

.page-content h1 {
    margin-bottom: 40px;
}

.page-content h3,
.page-content h4 {
    margin-top: 40px;
}

.page-content p {
    font-size: 1rem;
}
