/*
Theme Name: Hennopolis
Theme URI:
Author: Henne
Author URI:
Description: Eigenes WordPress Theme für Hennopolis
Version: 1.0
Text Domain: hennopolis
*/


* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;

    text-decoration: none;
}


/* ========================================
   SEITENBREITE
======================================== */

.site-container {
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 30px;
    padding-right: 30px;
}


/* ========================================
   HEADER
======================================== */

.site-header {
    width: 100%;

    display: grid;

    grid-template-columns:
        300px
        1fr;

    align-items: center;

    gap: 40px;

    min-height: 130px;
}


/* ========================================
   LOGO
======================================== */

.site-logo {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: flex-start;
}

.logo-link {
    display: inline-flex;

    align-items: center;
}

.logo-image {
    display: block;

    width: auto;
    height: auto;

    max-width: 280px;
    max-height: 90px;
}

.site-logo-text {
    font-size: 32px;
    font-weight: 700;

    letter-spacing: -1px;
}


/* ========================================
   NAVIGATION
======================================== */

.site-navigation {
    width: 100%;

    display: flex;

    justify-content: flex-end;
    align-items: center;
}

.main-menu,
.site-navigation ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 35px;
}

.main-menu li,
.site-navigation li {
    margin: 0;
    padding: 0;
}

.main-menu a,
.site-navigation a {
    display: block;

    padding-top: 10px;
    padding-bottom: 10px;

    font-size: 16px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        opacity 0.2s ease;
}

.main-menu a:hover,
.site-navigation a:hover {
    opacity: 0.5;
}


/* ========================================
   SLIDER
======================================== */

.site-banner-slider {
    position: relative;

    width: 100%;
    height: 420px;

    overflow: hidden;

    margin-bottom: 70px;

    background: #eeeeee;
}

.banner-slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}

.banner-slide.active {
    opacity: 1;

    visibility: visible;
}

.banner-slide-link {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.35);
}

.banner-content {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    z-index: 2;

    width: 90%;
    max-width: 800px;

    text-align: center;

    color: #ffffff;
}

.banner-content h1 {
    margin-top: 0;
    margin-bottom: 18px;

    font-size: 52px;
    line-height: 1.1;
}

.banner-content p {
    margin: 0;

    font-size: 20px;
    line-height: 1.5;
}


/* ========================================
   SLIDER PFEILE
======================================== */

.slider-arrow {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 10;

    width: 50px;
    height: 60px;

    padding: 0;

    border: none;

    background: rgba(0, 0, 0, 0.25);

    color: #ffffff;

    font-size: 34px;

    cursor: pointer;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}


/* ========================================
   SLIDER PUNKTE
======================================== */

.slider-dots {
    position: absolute;

    z-index: 10;

    left: 50%;
    bottom: 20px;

    transform:
        translateX(-50%);

    display: flex;

    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 1px solid #ffffff;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.slider-dot.active {
    background: #ffffff;
}


/* ========================================
   STARTSEITE
======================================== */

.site-content {
    width: 100%;

    padding-bottom: 70px;
}

.home-intro {
    width: 100%;
    max-width: 850px;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;

    text-align: center;
}

.home-kicker,
.section-kicker {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.home-intro h2 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: 48px;
    line-height: 1.15;
}

.home-intro > p:last-child {
    max-width: 700px;

    margin-left: auto;
    margin-right: auto;

    font-size: 20px;
    line-height: 1.7;

    color: #555555;
}

.home-section {
    width: 100%;

    margin-bottom: 100px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    margin: 0;

    font-size: 38px;
    line-height: 1.2;
}


/* ========================================
   PROJEKTE STARTSEITE
======================================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    min-height: 300px;

    padding: 35px;

    border: 1px solid #dddddd;

    display: flex;

    flex-direction: column;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.project-card:hover {
    transform:
        translateY(-5px);

    border-color: #111111;
}

.project-number {
    margin-bottom: 55px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #777777;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 24px;
}

.project-card p {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 16px;
    line-height: 1.6;

    color: #555555;
}

.project-link {
    margin-top: auto;

    font-size: 15px;
    font-weight: 600;
}


/* ========================================
   NEWS STARTSEITE
======================================== */

.home-news {
    margin-bottom: 0;
}

.news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.news-card {
    padding-top: 30px;
    padding-bottom: 30px;

    border-top: 1px solid #cccccc;
}

.news-date {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 13px;

    color: #777777;
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 24px;
}

.news-card p {
    line-height: 1.6;

    color: #555555;
}

.news-link {
    display: inline-block;

    margin-top: 20px;

    font-size: 15px;
    font-weight: 600;
}


/* ========================================
   SINGLE
======================================== */

.single-content {
    width: 100%;
    max-width: 850px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 60px;
    padding-bottom: 100px;
}

.single-header {
    margin-bottom: 40px;
}

.single-meta {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 13px;

    color: #777777;
}

.single-header h1 {
    margin: 0;

    font-size: 52px;
    line-height: 1.15;
}

.single-image {
    width: 100%;

    margin-bottom: 45px;
}

.single-image img {
    width: 100%;
    height: auto;

    display: block;
}

.single-entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.single-entry-content p {
    margin-top: 0;
    margin-bottom: 25px;
}

.single-entry-content img {
    max-width: 100%;
    height: auto;
}

.single-entry-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;

    font-size: 34px;
}

.single-entry-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;

    font-size: 26px;
}

.single-back {
    margin-top: 60px;

    padding-top: 25px;

    border-top: 1px solid #dddddd;
}

.single-back a {
    font-weight: 600;
}


/* ========================================
   NORMALE SEITEN
======================================== */

.page-content {
    width: 100%;
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 60px;
    padding-bottom: 100px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    margin: 0;

    font-size: 52px;
    line-height: 1.15;
}

.page-image {
    width: 100%;

    margin-bottom: 45px;
}

.page-image img {
    display: block;

    width: 100%;
    height: auto;
}

.page-entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.page-entry-content p {
    margin-top: 0;
    margin-bottom: 25px;
}

.page-entry-content img {
    max-width: 100%;
    height: auto;
}

.page-entry-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;

    font-size: 34px;
}

.page-entry-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;

    font-size: 26px;
}

.page-entry-content a {
    text-decoration: underline;
}


/* ========================================
   ARCHIV
======================================== */

.archive-content {
    width: 100%;

    padding-top: 60px;
    padding-bottom: 100px;
}

.archive-header {
    max-width: 800px;

    margin-bottom: 60px;
}

.archive-kicker {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.archive-header h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 52px;
    line-height: 1.15;
}

.archive-description {
    font-size: 18px;
    line-height: 1.7;

    color: #555555;
}

.archive-description p {
    margin: 0;
}


/* ========================================
   ARCHIV KARTEN
======================================== */

.archive-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.archive-card {
    min-width: 0;

    border: 1px solid #dddddd;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.archive-card:hover {
    transform:
        translateY(-5px);

    border-color: #111111;
}

.archive-card-link {
    display: flex;

    flex-direction: column;

    height: 100%;
}

.archive-card-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eeeeee;
}

.archive-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.archive-card:hover
.archive-card-image img {
    transform:
        scale(1.03);
}

.archive-card-content {
    display: flex;

    flex-direction: column;

    flex-grow: 1;

    padding: 30px;
}

.archive-date {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 13px;

    color: #777777;
}

.archive-card-content h2 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 24px;
    line-height: 1.25;
}

.archive-card-content > p {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 16px;
    line-height: 1.6;

    color: #555555;
}

.archive-more {
    margin-top: auto;

    font-size: 15px;
    font-weight: 600;
}


/* ========================================
   PAGINATION
======================================== */

.archive-pagination {
    margin-top: 60px;

    padding-top: 25px;

    border-top: 1px solid #dddddd;
}

.archive-pagination .nav-links {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    align-items: center;
}

.archive-pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;

    padding: 10px 14px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dddddd;
}

.archive-pagination .page-numbers.current {
    border-color: #111111;

    background: #111111;

    color: #ffffff;
}

.archive-empty {
    font-size: 18px;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
    width: 100%;

    margin-top: 20px;

    padding-top: 30px;
    padding-bottom: 30px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    font-size: 14px;
}


/* ========================================
   TABLET
======================================== */

@media screen and (max-width: 900px) {

    .site-header {
        grid-template-columns:
            220px
            1fr;

        gap: 25px;
    }

    .main-menu,
    .site-navigation ul {
        gap: 20px;
    }

    .main-menu a,
    .site-navigation a {
        font-size: 14px;
    }

    .site-banner-slider {
        height: 360px;
    }

    .banner-content h1 {
        font-size: 42px;
    }

    .home-intro h2 {
        font-size: 40px;
    }

    .project-grid,
    .archive-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ========================================
   SMARTPHONE
======================================== */

@media screen and (max-width: 700px) {

    .site-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header {
        display: block;

        min-height: auto;

        padding-top: 25px;
        padding-bottom: 20px;
    }

    .site-logo {
        justify-content: center;

        margin-bottom: 20px;
    }

    .logo-image {
        max-width: 220px;
        max-height: 80px;
    }

    .site-navigation {
        justify-content: center;
    }

    .main-menu,
    .site-navigation ul {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 20px;
    }

    .main-menu a,
    .site-navigation a {
        font-size: 15px;
    }

    .site-banner-slider {
        height: 300px;

        margin-bottom: 50px;
    }

    .banner-content {
        width: 80%;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .slider-arrow {
        width: 40px;
        height: 50px;

        font-size: 26px;
    }

    .home-intro {
        margin-bottom: 70px;
    }

    .home-intro h2 {
        font-size: 34px;
    }

    .home-intro > p:last-child {
        font-size: 18px;
    }

    .home-section {
        margin-bottom: 70px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .project-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 260px;
    }

    .project-number {
        margin-bottom: 35px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .single-content,
    .page-content,
    .archive-content {
        padding-top: 40px;
        padding-bottom: 70px;
    }

    .single-header h1,
    .page-header h1,
    .archive-header h1 {
        font-size: 36px;
    }

    .single-entry-content,
    .page-entry-content {
        font-size: 17px;
    }

}