/* Gentle homepage refresh; content and interactions remain in index.html. */
:root {
    --sand: #dabb8c;
    --ink: #563d30;
}

html {
    font-size: 16px;
    scroll-padding-top: 90px;
}

body {
    background: var(--sand);
    color: var(--ink);
    font-size: 18px;
    line-height: 1.7;
    padding-top: 72px;
}

.navbar {
    background: var(--ink);
    padding: 0.5rem 1.25rem;
    box-shadow: 0 1px 0 rgba(86, 61, 48, 0.12);
}

.navbar-brand {
    font-size: 1.65rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
}

.fullscreen-jumbotron {
    background: var(--sand);
    height: auto;
    min-height: min(760px, calc(100svh - 56px));
    padding: 3rem 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(86, 61, 48, 0.12);
}

.image-container img {
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
}

.subtitle {
    color: var(--ink);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.25;
    margin-top: 1.75rem;
}

section.py-5 {
    padding-top: clamp(3rem, 6vw, 5rem) !important;
    padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

section.bg-light {
    background: #f8f9fa !important;
}

.section-title {
    font-family: 'Amatic SC', cursive;
    font-size: clamp(2.6rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    color: var(--ink);
}

section p,
#concept ul {
    max-width: 760px;
    margin-bottom: 1.4rem;
}

section h4 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

#about h4 {
    max-width: 760px;
    padding-top: 0.5rem;
}

#erleben {
    scroll-margin-top: 1rem;
}

.archive-invitation {
    max-width: 760px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(86, 61, 48, 0.18);
}

.archive-invitation p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.archive-invitation svg {
    vertical-align: -0.1em;
}

section a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

section a:hover {
    color: var(--ink);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--sand);
    outline-offset: 4px;
}

#concept li {
    padding-left: 0.25rem;
    margin-bottom: 0.7rem;
}

#concept li::marker {
    color: var(--ink);
}

#team .row {
    max-width: 784px;
    margin-left: auto;
    margin-right: auto;
}

#team .team-member {
    flex: 0 0 50%;
    max-width: 50%;
}

.team-member h4 {
    margin-top: 1rem;
}

.gallery-img,
.team-member img,
#contact img {
    border-radius: 12px;
}

.pdf-viewer-container {
    margin-bottom: 2.5rem;
}

.footer {
    background: var(--ink);
    color: var(--sand);
    font-size: 0.9rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer > a {
    color: var(--sand);
}

.popup-container {
    background: var(--sand);
}

.follow-button {
    background: var(--ink);
    color: var(--sand);
}

@media (max-width: 767.98px) {
    body {
        font-size: 17px;
    }

    section > .container,
    #concept {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .fullscreen-jumbotron {
        min-height: 65svh;
        padding: 2.5rem 1.5rem;
    }

    .image-container img {
        max-height: 35vh;
    }

    .team-member h4 {
        font-size: 1.05rem;
        overflow-wrap: anywhere;
    }

    #contact a {
        overflow-wrap: anywhere;
    }
}

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

/* Consistent thumbnails; the enlarged image always remains uncropped. */
#gallery {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

#gallery > .col-md-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem !important;
}

.gallery-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--sand);
    cursor: zoom-in;
}

.gallery-button .gallery-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-button:hover {
    box-shadow: 0 0 0 2px var(--ink);
}

#galleryCarousel .carousel-item img {
    height: 70vh;
    height: 70svh;
    object-fit: contain;
    background: var(--ink);
}

#team .team-member img {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
}

.team-member h4 {
    min-height: 2.9em;
    margin-bottom: 0;
    font-size: 1.05rem;
}

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

.press-item {
    min-width: 0;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid rgba(86, 61, 48, 0.18);
    border-radius: 8px;
}

.press-preview {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.6;
}

.press-preview:hover span {
    text-decoration: underline;
}

.press-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.press-online {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

#contact .contact-button {
    display: inline-block;
    max-width: 100%;
    min-height: 44px;
    padding: 0.55rem 1rem;
    margin: 0.4rem 0;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: transparent;
    font-weight: 500;
    text-decoration: none;
}

#contact .contact-button:hover {
    background: var(--ink);
    color: var(--sand);
}

.contact-directions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand);
}

.contact-directions h4 {
    margin-top: 0;
}

#contact .contact-directions img {
    width: 100%;
    max-width: 760px;
    margin: 1.75rem 0 0;
}

.press-item a:focus-visible,
.contact-button:focus-visible,
.gallery-button:focus-visible {
    outline-color: var(--ink);
}

@media (max-width: 991.98px) {
    .press-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .press-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared alignment keeps text, portraits and section headings in one rhythm. */
section > .container,
#concept {
    max-width: 1040px;
}

section .section-title,
section .container > p,
section .container > h4,
#concept > p,
#concept > ul,
.contact-directions {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

#team p b {
    font-weight: 500;
}

#team .team-member {
    padding-left: 12px;
    padding-right: 12px;
}

#team .row {
    margin-bottom: 0.75rem;
}

#about .container.my-5 {
    margin-top: 2.5rem !important;
    margin-bottom: 0 !important;
}

#presse .section-title {
    max-width: none;
}

#contact .contact-button {
    display: table;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

#contact .container > p > br {
    display: none;
}

.contact-directions {
    border-top-color: rgba(86, 61, 48, 0.18);
}

.footer {
    line-height: 1.7;
}

.footer p {
    margin-bottom: 0.6rem;
}

section a:focus-visible {
    outline-color: var(--ink);
}

@media (min-width: 1200px) {
    .navbar {
        padding-left: max(1.25rem, calc((100vw - 1320px) / 2));
        padding-right: max(1.25rem, calc((100vw - 1320px) / 2));
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        max-height: calc(100svh - 72px);
        overflow-y: auto;
    }
}

@media (max-width: 575.98px) {
    #team .row {
        margin-left: -8px;
        margin-right: -8px;
    }

    #team .team-member {
        padding-left: 8px;
        padding-right: 8px;
    }

    .team-member h4 {
        font-size: 0.95rem;
    }
}

/* Footer: restrained typography and comfortably sized touch targets. */
.footer {
    padding: 2rem 1.25rem;
    text-align: center;
}
.footer .footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    text-wrap: balance;
}
.footer .footer-privacy {
    margin: 0.35rem 0 1rem;
    font-size: 0.8rem;
    text-wrap: balance;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    color: var(--sand);
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.footer-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
