/* Bump ?v=1 on all HTML asset URLs (link href, img src) when you change static files. */
:root {
    color-scheme: only light;
    --forest: #5c6a4a;
}

@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/QGYsz_wNahGAdqQ43Rh_fKDp.woff2?v=1") format("woff2");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(20px, 4vh, 48px) 12px 32px;
    background-image: url("../assets/background_green_final.jpeg?v=1");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.hero {
    display: grid;
    justify-items: center;
    gap: 22px;
}

.logo {
    display: block;
    width: clamp(140px, 24vw, 340px);
    max-width: 90vw;
    height: auto;
}

.slogan {
    font-family: "Segoe Script", "Lucida Handwriting", "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    line-height: 1.3;
    font-weight: 400;
    color: var(--forest);
    text-align: center;
    max-width: min(800px, 92vw);
    text-wrap: balance;
    margin-bottom: 32px;
}

.signature {
    font-family: "Segoe Script", "Lucida Handwriting", "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--forest);
    text-align: center;
    margin-top: 40px;
    line-height: 1.4;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 0 12px;
    margin-bottom: 32px;
}

.site-nav a {
    display: inline-block;
    color: #2b221d;
    text-decoration: none;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    letter-spacing: 0.05em;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(250, 241, 225, 0.75);
    backdrop-filter: blur(4px);
    transition: all 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-nav a[aria-current="page"] {
    background-color: var(--forest);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(92, 106, 74, 0.25);
}

.site-nav a:hover:not([aria-current="page"]),
.site-nav a:focus-visible:not([aria-current="page"]) {
    background: rgba(250, 241, 225, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    outline: none;
}

.site-nav a[aria-current="page"]:hover,
.site-nav a[aria-current="page"]:focus-visible {
    background-color: #485339;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(92, 106, 74, 0.35);
    outline: none;
}

.page-content {
    width: 100%;
    max-width: min(860px, 92vw);
    padding: clamp(24px, 4vw, 48px);
    border-radius: 20px;
    background: rgba(250, 244, 232, 0.85);
    border: 1px solid rgba(92, 106, 74, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(5px);
    color: #2d241f;
    text-align: left;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.page-content h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--forest);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.2;
}

.page-content h2 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--forest);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.page-content h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    color: var(--forest);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.page-content p + p {
    margin-top: 18px;
}

.page-content ul,
.page-content ol {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-left: 1.8rem;
}

.page-content li + li {
    margin-top: 8px;
}

/* Kompakte, leichte Typografie für Impressum & Datenschutz */
.page-content.legal-text {
    font-size: clamp(0.85rem, 1.15vw, 0.95rem);
    font-weight: 400;
    line-height: 1.65;
}

.page-content.legal-text h1 {
    font-size: clamp(1.15rem, 1.9vw, 1.35rem);
    font-weight: 400;
    margin-bottom: 18px;
}

.page-content.legal-text h2 {
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    font-weight: 400;
    margin-top: 24px;
    margin-bottom: 12px;
}

.page-content.legal-text h3 {
    font-size: clamp(0.92rem, 1.2vw, 1.02rem);
    font-weight: 400;
    margin-top: 18px;
    margin-bottom: 8px;
}

.page-content.legal-text strong {
    font-weight: 400;
}

.page-content.legal-text p + p {
    margin-top: 12px;
}

.page-content.legal-text ul,
.page-content.legal-text ol {
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

a.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.project-card-link:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 4px;
    border-radius: 14px;
}

a.project-card-link .content-image {
    margin-top: 12px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

a.project-card-link:hover .content-image,
a.project-card-link:focus-visible .content-image {
    transform: scale(1.01);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cta-container {
    text-align: center;
    margin-top: 36px;
    margin-bottom: 12px;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--forest);
    color: #fff;
    text-decoration: none;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 999px;
    transition: all 200ms ease;
    box-shadow: 0 4px 16px rgba(92, 106, 74, 0.25);
}

.cta-button:hover,
.cta-button:focus-visible {
    background-color: #485339;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 106, 74, 0.35);
    outline: none;
}

.contact-details {
    background: rgba(250, 241, 225, 0.6);
    padding: 24px;
    border-radius: 12px;
    margin: 28px 0;
    border: 1px solid rgba(92, 106, 74, 0.15);
}

.contact-details-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.contact-details-body {
    flex: 1;
    min-width: min(100%, 220px);
}

.contact-avatar {
    width: clamp(130px, 36vw, 220px);
    height: clamp(130px, 36vw, 220px);
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(92, 106, 74, 0.35);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-details h2 {
    margin-top: 0;
}

.contact-details p {
    margin-top: 12px;
}

.contact-details a {
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.whatsapp-container {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
    background: rgba(250, 244, 232, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-link {
    display: inline-block;
    margin-top: 16px;
    transition: transform 200ms ease, filter 200ms ease;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    outline: none;
}

.whatsapp-button {
    height: 55px;
    width: auto;
    display: block;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 32px;
    align-items: start;
}

.image-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 200ms ease;
}

.image-gallery img:hover {
    transform: scale(1.02);
}

/* Hochformat-Fotos: echtes Seitenverhältnis, kein Zuschnitt in feste Breite */
.image-gallery--portrait {
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .image-gallery--portrait {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

.image-gallery--portrait img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 10px;
    font-size: 0.85rem;
    color: rgba(45, 36, 31, 0.8);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--forest);
    text-decoration: none;
    transition: opacity 200ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
        padding: calc(14px + env(safe-area-inset-top)) 12px 24px;
    }

    .hero {
        gap: 18px;
    }

    .logo {
        width: clamp(180px, 58vw, 320px);
    }

    .contact-details-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details-body {
        width: 100%;
    }
}
