/* Einfaches, minimalistisches Fotoportfolio – ganz ohne Framework */
:root {
    --page-width:955px;
    --gap:10px;
    --ink:#616161;
    --gold:#ffffff;
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:#fff;
    color:var(--ink);
    font-family:Arial,Helvetica,sans-serif;
    -webkit-font-smoothing:antialiased
}

a {
    color:inherit;
    text-decoration:none
}

button {
    font:inherit
}

.site {
    max-width:var(--page-width);
    margin:0 auto
}

.site-header {
    height:76px;
    display:flex;
    align-items:center;
    justify-content:center
}

.wordmark {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:9px
}

.wordmark-name {
    font-family:Georgia,'Times New Roman',serif;
    font-size:27px;
    letter-spacing:3px;
    line-height:1.2;
    font-weight:400
}

.wordmark-sub {
    font-size:10px;
    letter-spacing:2.2px;
    font-weight:300
}


/* ===== Portfolio-Kategorien und animierte Bilderkarussells ===== */
.portfolio-intro {
    text-align: center;
    padding: 24px 15px 22px;
}

.portfolio-intro p {
    margin: 0 0 6px;
    font-size: 10px;
    letter-spacing: 3px;
    color: #888;
}

.portfolio-intro h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

.portfolio-sections {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.category-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    padding: 0 2px 15px;
}

.category-header h2 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .4px;
}

.category-header p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #777;
    letter-spacing: .2px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0 0 4px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: white;
    color: #333;
    cursor: pointer;
    font: 30px Georgia, serif;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.carousel-arrow:hover:not(:disabled) {
    background: #f4f4f4;
    border-color: #aaa;
}

.carousel-arrow:disabled {
    opacity: .25;
    cursor: default;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
    gap: var(--gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.carousel-track .photo {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
}

.photo.broken {
    background: #f2eeee;
}

.photo.broken::after {
    content: 'Bild konnte nicht geladen werden';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

@media (max-width: 650px) {
    .carousel-track {
        grid-auto-columns: calc((100% - var(--gap)) / 2);
    }

    .portfolio-sections {
        gap: 34px;
    }

    .category-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 430px) {
    .carousel-track {
        grid-auto-columns: 82%;
    }
}

.gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:var(--gap)
}

.photo {
    position:relative;
    display:block;
    border:0;
    padding:0;
    margin:0;
    background:#f4f2ef;
    overflow:hidden;
    aspect-ratio:2/3;
    width:100%;
    cursor:zoom-in
}

.photo::before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,#f4f2ef,#ece9e5,#f4f2ef);
    background-size:200% 100%;
    animation:shimmer 1.4s linear infinite
}

.photo.loaded::before {
    display:none
}

.photo img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    opacity:0;
    transform:scale(1.015);
    transition:opacity .45s ease,transform .7s ease
}

.photo.loaded img {
    opacity:1
}

@media(hover:hover) {
    .photo:hover img {
        transform:scale(1.045)
    }
}

@keyframes shimmer {
    to {
        background-position:-200% 0
    }
}

.gallery-notice {
    text-align:center;
    padding:30px 12px;
    font-size:14px;
    color:#777
}

.footer-nav {
    margin-top:45px;
    background:#aea2a2;
    min-height:41px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:33px;
    padding:10px 18px;
    flex-wrap:wrap
}

.footer-nav a {
    text-transform:uppercase;
    color:#fff;
    font-family:'Arial Narrow',Arial,sans-serif;
    font-weight:700;
    font-size:15px;
    line-height:20px;
    transition:color .2s
}

.footer-nav a:hover,.footer-nav a.active {
    color:var(--gold)
}

.site-footer {
    text-align:center;
    padding:30px 10px 22px;
    font-size:11px;
    letter-spacing:.15px
}

.site-footer .legal {
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:8px
}

.site-footer a:hover {
    text-decoration:underline
}

.site-footer p {
    margin:0
}

.sr-only {
    position:absolute!important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}

.lightbox {
    position:fixed;
    inset:0;
    width:100vw;
    max-width:none;
    height:100dvh;
    max-height:none;
    margin:0;
    border:0;
    padding:42px 68px;
    background:rgba(10,10,10,.96);
    color:#fff;
    overflow:hidden
}

.lightbox::backdrop {
    background:#090909
}

.lightbox[open] {
    display:flex;
    align-items:center;
    justify-content:center
}

.lightbox-figure {
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    max-height:100%;
    max-width:100%
}

.lightbox-figure img {
    display:block;
    max-width:100%;
    max-height:calc(100dvh - 100px);
    width:auto;
    height:auto;
    object-fit:contain
}

.lightbox-figure figcaption {
    font-size:12px;
    color:#ccc;
    margin-top:10px
}

.lightbox-close,.lightbox-arrow {
    position:absolute;
    color:#fff;
    border:0;
    background:transparent;
    cursor:pointer;
    z-index:1
}

.lightbox-close {
    top:6px;
    right:20px;
    font-size:43px;
    font-weight:200
}

.lightbox-arrow {
    top:50%;
    transform:translateY(-50%);
    font-size:52px;
    padding:5px 18px
}

.lightbox-arrow.left {
    left:8px
}

.lightbox-arrow.right {
    right:8px
}

.page-content {
    min-height:340px;
    padding:65px 25px 75px;
    text-align:center
}

.page-content h1 {
    font:400 23px Georgia,serif;
    letter-spacing:2px;
    text-transform:uppercase
}

.page-content p {
    max-width:520px;
    margin:18px auto;
    line-height:1.8;
    color:#555
}

.page-content a.underline {
    text-decoration:underline;
    text-underline-offset:3px
}

@media(max-width:975px) {
    .site {
        margin:0 14px
    }
}

@media(max-width:650px) {
    :root {
        --gap:7px
    }
    .site {
        margin:0 8px
    }
    .site-header {
        height:73px
    }
    .gallery {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .footer-nav {
        gap:14px 23px;
        margin-top:30px
    }
    .lightbox {
        padding:55px 20px
    }
    .lightbox-arrow {
        font-size:38px;
        padding:8px
    }
    .lightbox-arrow.left {
        left:0
    }
    .lightbox-arrow.right {
        right:0
    }
    .lightbox-figure img {
        max-height:calc(100dvh - 130px)
    }
}

@media(max-width:380px) {
    .gallery {
        gap:5px
    }
    .footer-nav {
        gap:10px 15px
    }
    .footer-nav a {
        font-size:14px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important
    }
}


/* ===== Rechtstexte ===== */
.legal-content {
    text-align: left;
    max-width: 750px;
    margin: 0 auto;
    padding: 45px 24px 90px;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 28px;
}

.legal-content h2 {
    margin: 30px 0 10px;
    font-size: 17px;
    font-weight: 500;
}

.legal-content p {
    max-width: none;
    margin: 12px 0;
    line-height: 1.75;
}

.legal-warning {
    padding: 14px 18px;
    border-left: 2px solid #555;
    background: #f6f6f6;
}

.legal-manage {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font-size: inherit;
    cursor: pointer;
}

.legal-manage:hover {
    text-decoration: underline;
}

/* ===== Cookie-Banner im selben minimalistischen Design ===== */
.cookie-banner[hidden],
.cookie-details[hidden],
.cookie-button[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 18px;
    width: min(740px, calc(100% - 28px));
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #dfdfdf;
    box-shadow: 0 14px 60px rgba(0, 0, 0, 0.16);
    color: #292929;
}

.cookie-inner {
    padding: 23px 26px;
}

.cookie-text h2 {
    margin: 0 0 9px;
    font: 400 21px Georgia, 'Times New Roman', serif;
}

.cookie-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #555;
}

.cookie-text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-details {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
}

.cookie-option {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 10px 0;
    cursor: pointer;
    font-size: 12px;
}

.cookie-option input {
    margin: 3px 0 0;
    accent-color: #2a2a2a;
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 3px;
    color: #777;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cookie-button {
    flex: 1 1 140px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #2a2a2a;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cookie-outline {
    background: #ffffff;
    color: #2a2a2a;
}

.cookie-outline:hover {
    background: #f4f4f4;
}

.cookie-solid {
    background: #2a2a2a;
    color: white;
}

.cookie-solid:hover {
    background: #454545;
}

@media (max-width: 570px) {
    .cookie-banner {
        bottom: 8px;
    }

    .cookie-inner {
        padding: 18px;
    }

    .site-footer .legal {
        flex-wrap: wrap;
    }
}

/* =========================================
   BIO SECTION
========================================= */

.bio-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;

    max-width: 1200px;
    margin: 70px auto 100px;
    padding: 0 40px;
}


/* BIO TEXT */

.bio-text {
    max-width: 500px;
}

.bio-eyebrow {
    display: block;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;

    margin-bottom: 22px;
    color: #777777;
}

.bio-text h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.15;

    margin: 0 0 30px;
}

.bio-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #555555;

    margin-bottom: 20px;
}


/* BIO IMAGE */

.bio-image {
    width: 100%;
    overflow: hidden;
}

.bio-image img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;

    object-fit: cover;
    object-position: center;
}


/* CONTACT BUTTON */

.bio-button {
    display: inline-block;

    margin-top: 25px;
    padding: 14px 30px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;

    color: #ffffff;
    background: #aea2a2;

    text-decoration: none;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.bio-button:hover {
    background: #000000;
    transform: translateY(-2px);
}


/* =========================================
   RESPONSIVE / MOBILE
========================================= */

@media (max-width: 768px) {

    .bio-section {
        grid-template-columns: 1fr;
        gap: 40px;

        margin: 40px auto 70px;
        padding: 0 22px;
    }

    .bio-text {
        max-width: 100%;
    }

    .bio-text h1 {
        font-size: 38px;
    }

    .bio-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    .bio-image {
        max-width: 100%;
    }

}