/*
Theme Name: Clay Studio
*/

/* ==================================================
ROOT VARIABLES
================================================== */

:root {
    --bg: #F8F6F2;
    --text: #2C2C2C;
    --accent: #B86A4F;
    --card-bg: #FFFFFF;
}


/* ==================================================
BASE
================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 135px;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ==================================================
HEADER / NAVIGATION
================================================== */

.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 60px);
    max-width: 1100px;

    z-index: 9998;

    background: rgba(40, 40, 40, 0.35);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 12px;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        top 0.35s ease;
}

.header-inner {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 0 25px;

    box-sizing: border-box;
}


/* ==================================================
LOGO
================================================== */

.logo a {
    color: #FFFFFF;
    text-decoration: none;

    font-size: 28px;
    font-weight: 500;
    letter-spacing: 2px;
}

/* ==================================================
   HAUPTMENÜ
================================================== */

.main-navigation {
    flex: 1;
    min-width: 0;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(15px, 2.5vw, 35px);

    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.main-navigation .menu li a,
.main-navigation .menu li a:visited,
.main-navigation .menu li a:active,
.main-navigation .menu li a:focus {

    color: white !important;

    text-decoration: none;

    font-size: 15px;

    letter-spacing: 1px;

    font-weight: 400;

    transition:
        color .25s ease,
        font-weight .25s ease;
}

.main-navigation .menu li a:hover {

    color: white !important;

    font-weight: 700;
}



/* ==================================================
   MENÜ BEIM SCROLLEN
================================================== */

.site-header.scrolled .main-navigation .menu li a,
.site-header.scrolled .main-navigation .menu li a:visited,
.site-header.scrolled .main-navigation .menu li a:active,
.site-header.scrolled .main-navigation .menu li a:focus {

    color: var(--text) !important;

}

.site-header.scrolled .main-navigation .menu li a:hover {

    color: var(--text) !important;

    font-weight: 700;

}

/* ==================================================
HERO
================================================== */

.hero {
    min-height: 100vh;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    color: #FFFFFF;
}

.hero-inner h1 {
    font-size: 56px;
    margin: 0 0 20px;
}

.hero-inner p {
    font-size: 20px;
}


/* ==================================================
BUTTONS
================================================== */

.button {
    display: inline-block;

    padding: 12px 24px;
    margin-top: 20px;

    background: var(--accent);
    color: #FFFFFF;

    text-decoration: none;
    border-radius: 3px;
}


/* ==================================================
GALERIE
================================================== */

.gallery {
    margin-top: 120px;
}

.gallery h2 {
    margin-bottom: 30px;
}


/* ==================================================
GALERIE FILTER
================================================== */

.gallery-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin: 30px 0 40px;
}

.gallery-filter a {
    display: inline-block;

    padding: 8px 18px;

    border: 1px solid #DDD;
    border-radius: 20px;

    color: var(--text);
    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.gallery-filter a:hover,
.gallery-filter a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}


/* ==================================================
GALERIE GRID
================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(var(--gallery-cols, 3), minmax(0, 1fr));

    gap: 25px;

    width: 100%;
}


/* ==================================================
GALERIE KACHELN
================================================== */

.gallery-item {
    position: relative;

    width: 100%;

    aspect-ratio: var(--thumb-ratio, 1 / 1);

    overflow: hidden;

    background: #FFFFFF;
    border-radius: 6px;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item a {
    display: block;

    width: 100%;
    height: 100%;

    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* ==================================================
GALERIE TITEL
================================================== */

.gallery-item h3 {
    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 15px;

    margin: 0;
    padding: 10px;

    font-size: 14px;
    text-align: center;

    color: #FFFFFF;

    background: rgba(0, 0, 0, 0.45);

    border-radius: 3px;
}


/* ==================================================
GALERIE PAGINATION
================================================== */

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 40px;
}

.gallery-pagination .page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid var(--accent);

    color: var(--text);
    text-decoration: none;

    transition: 0.2s ease;
}

.gallery-pagination .page-link:hover,
.gallery-pagination .page-link.active {
    background: var(--accent);
    color: #FFFFFF;
}


/* ==================================================
HOME SECTIONS
================================================== */

.home-section {
    margin-top: 120px;
}

.home-section h2 {
    margin-bottom: 20px;
}


/* ==================================================
ABOUT SECTION
================================================== */

.about-section {
    margin-top: 120px;
    margin-bottom: 120px;
}

.about-inner {
    max-width: 900px;

    margin: 0 auto;
    padding: 60px 50px;

    background: #FFFFFF;
    border-radius: 8px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
}

.about-text h1,
.about-text h2,
.about-text h3 {
    font-weight: 400;

    margin-top: 0;
    margin-bottom: 30px;

    letter-spacing: 0.5px;
}

.about-text h2 {
    font-size: 38px;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text img {
    max-width: 100%;
    height: auto;

    border-radius: 6px;

    margin: 35px auto;

    display: block;
}

.about-text figure {
    margin: 40px auto;
}


/* ==================================================
WORK CONTENT
================================================== */

.work-content,
.entry-content {
    display: none;
}


/* ==================================================
LIGHTBOX
================================================== */

.lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 40px;
    color: #FFFFFF;

    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;

    color: #FFFFFF;

    font-size: 50px;

    cursor: pointer;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}


/* ==================================================
NEWS / BLOG
================================================== */

.news,
.archive-news {
    margin-top: 120px;
}

.news h2 {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.news-card {
    background: var(--card-bg);

    border-radius: 6px;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.news-image {
    display: block;
    overflow: hidden;
}

.news-thumbnail,
.news-card img {
    width: 100%;
    height: 240px;

    object-fit: cover;

    display: block;

    transition: transform 0.35s ease;
}

.news-card:hover img {
    transform: scale(1.04);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.news-content h3,
.news-content h2 {
    margin: 0 0 15px;

    font-size: 22px;
    font-weight: 400;
}

.news-content h3 a,
.news-content h2 a {
    color: var(--text);
    text-decoration: none;
}

.news-content p {
    line-height: 1.6;
    font-size: 15px;
}

.news-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--accent);
    text-decoration: none;

    font-size: 14px;
}


/* ==================================================
ARCHIV / NEUIGKEITEN
================================================== */

.archive-news {
    margin-top: 140px;
    margin-bottom: 120px;
}

.archive-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.archive-header h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
}

.archive-header p {
    font-size: 18px;
    opacity: 0.75;
    line-height: 1.7;
}


/* ==================================================
PAGINATION
================================================== */

.pagination {
    margin-top: 70px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;

    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border-radius: 4px;

    background: #FFFFFF;
    color: var(--text);

    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent);
    color: #FFFFFF;
}


/* ==================================================
EINZELBEITRAG
================================================== */

.single-news {
    margin-top: 140px;
}

.single-post {
    max-width: 850px;
    margin: 0 auto;
}

.single-header {
    text-align: center;
    margin-bottom: 50px;
}

.single-header h1 {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2;
}

.single-thumbnail {
    width: 100%;
    max-height: 650px;

    object-fit: cover;

    border-radius: 6px;
}

.single-content {
    font-size: 18px;
    line-height: 1.8;
}

.single-content p {
    margin-bottom: 25px;
}

.single-content h2,
.single-content h3 {
    font-weight: 400;
    margin-top: 40px;
}

.single-back {
    margin-top: 60px;
    text-align: center;
}

.single-category {
    text-transform: uppercase;

    letter-spacing: 2px;
    font-size: 12px;

    color: var(--accent);

    margin-bottom: 20px;
}


/* ==================================================
KALENDER / EVENTS
================================================== */

.events-list {
    display: flex;
    flex-direction: column;

    gap: 30px;
    margin-bottom: 80px;
}

.event-card {
    display: grid;

    grid-template-columns: 160px 1fr;

    gap: 40px;

    background: var(--card-bg);

    padding: 35px;

    border-radius: 8px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.10);
}

.event-date {
    font-size: 32px;
    font-weight: 400;

    color: var(--accent);

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding-top: 5px;
}

.event-content {
    border-left: 1px solid #E5E0D9;
    padding-left: 35px;
}

.event-type {
    display: inline-block;

    padding: 6px 14px;

    background: var(--accent);
    color: #FFFFFF;

    border-radius: 20px;

    font-size: 12px;
    letter-spacing: 1px;

    margin-bottom: 15px;
}

.event-title-row {
    display: grid;

    grid-template-columns: 1fr 320px;

    gap: 40px;

    align-items: start;
}

.event-content h2 {
    margin: 0 0 15px;

    font-size: 30px;
    font-weight: 400;
}

.event-content p {
    margin: 8px 0;
    font-size: 16px;
}

.event-short {
    font-size: 15px;
    line-height: 1.6;

    opacity: 0.75;

    padding-top: 8px;
}

.event-description {
    margin-top: 25px;
    line-height: 1.7;
}


/* ==================================================
KALENDER SEITE
================================================== */

.calendar-page {
    margin-top: 140px;
}

.calendar-page h1 {
    font-size: 48px;
    font-weight: 400;
}

.calendar-intro {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 50px;
}


/* ==================================================
SINGLE EVENT
================================================== */

.single-event {
    margin-top: 120px;
}


/* ==================================================
FOOTER
================================================== */

.footer {
    margin-top: 120px;
    padding: 60px 0 25px;

    background: #E9E5DF;
}

.footer-inner {
    max-width: 1100px;

    margin: 0 auto;
    padding: 40px 30px;

    background: rgba(255, 255, 255, 0.35);

    border-radius: 12px;
}

.footer-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 50px;
}

.footer-col h3 {
    margin: 0 0 15px;

    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-col h4 {
    margin: 0 0 15px;

    font-size: 18px;
    font-weight: 400;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.footer-col ul,
.footer-col .menu {
    list-style: none;

    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text);
    text-decoration: none;

    font-size: 15px;

    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 40px;

    text-align: center;

    font-size: 13px;
    opacity: 0.6;
}


/* ==================================================
RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-title-row {
        grid-template-columns: 1fr;
    }

    .event-short {
        padding-top: 0;
    }

}


@media (max-width: 700px) {

    .event-card {
        grid-template-columns: 1fr;

        gap: 20px;
        padding: 25px;
    }

    .event-date {
        justify-content: flex-start;
        font-size: 26px;
    }

    .event-content {
        border-left: none;

        border-top: 1px solid #E5E0D9;

        padding-left: 0;
        padding-top: 20px;
    }

}


@media (max-width: 600px) {

    .site-header {
        width: calc(100% - 30px);
        top: 10px;
    }

    .header-inner {
        min-height: 65px;
        padding: 0 15px;
    }

    .logo a {
        font-size: 22px;
    }

    .main-navigation .menu {
        gap: 15px;
    }

    .main-navigation .menu a {
        font-size: 12px;
    }

    .hero-inner h1 {
        font-size: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul,
    .footer-col .menu {
        display: inline-block;
    }

    .about-inner {
        padding: 35px 25px;
    }

    .about-text {
        font-size: 16px;
    }

    .about-text h2 {
        font-size: 30px;
    }

    .about-section {
        margin-top: 80px;
        margin-bottom: 80px;
    }

    .archive-header h1,
    .calendar-page h1 {
        font-size: 36px;
    }

    .single-header h1 {
        font-size: 34px;
    }

    .single-content {
        font-size: 16px;
    }

    .news-thumbnail,
    .news-card img {
        height: 200px;
    }

}