:root {
    --bg: #f6f2eb;
    --paper: #fffdfa;
    --ink: #283228;
    --muted: #77786e;
    --green: #364636;
    --gold: #b58252;
    --line: #e4ded3;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

button,a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
    cursor: pointer;
}

img {
    width: 100%;
    display: block;
}

.wrap {
    width: min(1160px,calc(100% - 48px));
    margin: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(246,242,235,.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 25px;
}

.brand {
    font-family: Georgia,serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand span {
    color: var(--gold);
}

.brand small {
    display: block;
    font: 9px Arial,sans-serif;
    letter-spacing: 3.1px;
    margin-top: 4px;
    color: #77786e;
}

.links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 700;
}

.links a:not(.nav-cta):hover {
    color: var(--gold);
}

.nav-cta,.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    padding: 15px 23px;
    background: var(--green);
    color: white;
    border: 1px solid var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    transition: .2s;
}

.btn:hover,.nav-cta:hover {
    background: #52624d;
    transform: translateY(-2px);
}

.btn.light {
    background: transparent;
    color: var(--green);
    border-color: #9eaa98;
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    font-size: 27px;
    color: var(--ink);
}

.hero {
    padding: 64px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr .96fr;
    align-items: center;
    gap: 6.5%;
}

.eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 11px;
}

.eyebrow:before {
    content: "";
    width: 29px;
    height: 1px;
    background: var(--gold);
}

h1,h2,h3,p {
    margin-top: 0;
}

h1,h2 {
    font-family: Georgia,"Times New Roman",serif;
    font-weight: 400;
    letter-spacing: -1.6px;
}

h1 {
    font-size: clamp(48px,5.5vw,83px);
    line-height: 1.06;
    margin: 22px 0 26px;
}

h1 em,h2 em {
    color: #a67a52;
    font-weight: 400;
}

p {
    line-height: 1.8;
    color: #6a6d63;
}

.hero-copy p {
    max-width: 450px;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 45px;
}

.hero-foot {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #818276;
    font-size: 12px;
}

.hero-foot strong {
    font: italic 26px Georgia,serif;
    color: #a67a52;
}

.hero-media {
    position: relative;
    min-height: 570px;
}

.hero-photo {
    height: 570px;
    border-radius: 14px;
    overflow: hidden;
    background: #ddd7c9;
}

.hero-photo img {
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    left: -55px;
    background: #fffcf6;
    box-shadow: 0 12px 48px #34372920;
    padding: 20px 26px;
    border-radius: 4px;
    width: 215px;
}

.hero-badge b {
    font: 22px Georgia,serif;
    display: block;
}

.hero-badge small {
    color: #8a8578;
    font-size: 11px;
    line-height: 1.6;
}

.section {
    padding: 92px 0;
}

.section-head {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 42px;
}

.section-head .eyebrow {
    justify-content: center;
}

.section-head h2,.story h2,.contact h2 {
    font-size: clamp(38px,4vw,56px);
    line-height: 1.14;
    margin: 16px 0 18px;
}

.section-head p {
    font-size: 14px;
}

.features {
    border-block: 1px solid var(--line);
    background: #fbf8f2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

.feature {
    padding: 32px 26px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.feature:last-child {
    border: 0;
}

.feature .symbol {
    font-size: 29px;
    color: #aa8157;
    margin-bottom: 12px;
}

.feature h3 {
    font: 19px Georgia,serif;
    margin: 0 0 8px;
}

.feature p {
    font-size: 12px;
    margin: 0;
}

.filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.filter button {
    padding: 11px 17px;
    background: transparent;
    color: #656b60;
    border: 1px solid var(--line);
    border-radius: 25px;
    font-size: 12px;
}

.filter button.active,.filter button:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

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

.item {
    min-width: 0;
}

.photo {
    border: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 370px;
    overflow: hidden;
    background: #e7dfd4;
    border-radius: 8px;
}

.photo img {
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.photo:hover img {
    transform: scale(1.05);
}

/* Kein Pfeilsymbol auf den Vorschaubildern. */

.item-text {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding: 17px 2px;
}

.item h3 {
    font: 21px Georgia,serif;
    margin: 0;
}

.item small {
    font-size: 11px;
    color: #928b7f;
}

.story {
    background: #ebe6dc;
}

.story-grid {
    display: grid;
    grid-template-columns: .94fr 1fr;
    gap: 9%;
    align-items: center;
}

.story-image {
    height: 610px;
    overflow: hidden;
    border-radius: 8px 130px 8px 8px;
}

.story-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.story p {
    font-size: 14px;
}

.story-note {
    border-left: 2px solid var(--gold);
    margin: 30px 0;
    padding-left: 18px;
    font: italic 20px/1.6 Georgia,serif;
    color: #515c4e;
}

.contact {
    text-align: center;
    background: var(--green);
    color: #fff;
}

.contact p {
    color: #cdd3c8;
    max-width: 630px;
    margin: 0 auto 28px;
}

.contact .eyebrow {
    justify-content: center;
    color: #e0ba91;
}

.contact .eyebrow:before {
    background: #e0ba91;
}

.contact .btn {
    background: #eee5d5;
    color: var(--green);
    border-color: #eee5d5;
}

.contact .btn:hover {
    background: white;
}

.footer {
    padding: 35px 0;
    background: #253225;
    color: #d0d6cb;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer .brand {
    color: white;
    font-size: 23px;
}

.footer p {
    font-size: 12px;
    margin: 8px 0 0;
    color: #aab6a9;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    background: #151a16e6;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal.open {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: min(650px,90vw);
    max-height: 88vh;
}

.modal img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    width: 42px;
    height: 42px;
    background: white;
    color: #253225;
}

.modal-caption {
    color: white;
    text-align: center;
    font-size: 14px;
    margin: 12px 0;
}

.skip {
    position: absolute;
    top: -60px;
    left: 5px;
    background: white;
    padding: 12px;
}

.skip:focus {
    top: 5px;
}

@media (max-width:900px) {
    .hero-grid {
        gap: 35px;
    }

    .hero-media,.hero-photo {
        min-height: 470px;
        height: 470px;
    }

    .hero-badge {
        left: -26px;
    }

    .photo {
        height: 320px;
    }

    .story-image {
        height: 540px;
    }
}

@media (max-width:700px) {
    .wrap {
        width: min(100% - 36px,530px);
    }

    .nav {
        min-height: 70px;
    }

    .brand {
        font-size: 23px;
    }

    .links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .links.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding: 42px 0 55px;
    }

    .hero-grid,.story-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-copy p {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(49px,12vw,72px);
    }

    .hero-actions {
        margin-bottom: 25px;
    }

    .hero-media {
        min-height: 420px;
        height: 420px;
        margin: 20px 12px 0;
    }

    .hero-photo {
        height: 420px;
        min-height: 420px;
        border-radius: 14px;
    }

    .hero-badge {
        bottom: 18px;
        left: -18px;
        padding: 14px 18px;
    }

    .section {
        padding: 64px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 22px;
    }

    .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 14px;
    }

    .photo {
        height: 280px;
    }

    .item h3 {
        font-size: 17px;
    }

    .item-text {
        display: block;
    }

    .item small {
        display: block;
        margin-top: 6px;
    }

    .story-image {
        height: 460px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

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

    .photo {
        height: 400px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-media,.hero-photo {
        height: 370px;
        min-height: 370px;
    }

    .hero-badge {
        width: 170px;
    }

    .filter button {
        padding: 9px 12px;
    }
}

/* Formular und Grundlayout */
.brand-logo[hidden] {
    display: none;
}

.brand-wordmark[hidden] {
    display: none;
}

.contact-form {
    max-width: 690px;
    margin: 34px auto 0;
    text-align: left;
    display: grid;
    gap: 17px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.contact-form input:not([type=checkbox]),.contact-form textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #b3beb0;
    border-radius: 5px;
    background: #fffdfa;
    color: #263326;
    font: inherit;
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form :is(input,textarea):focus-visible {
    outline: 3px solid #dab98e;
    outline-offset: 2px;
}

.contact-form .check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: #dce2d8;
    line-height: 1.5;
}

.contact-form .check-row input {
    margin: 2px 0 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.contact-form .check-row label {
    font-weight: 400;
    font-size: 12px;
    color: #dce2d8;
    margin: 0;
}

.contact-form .check-row a {
    text-decoration: underline;
}

.form-status {
    font-size: 14px;
    min-height: 1.5em;
    color: white;
}

.contact-form button[disabled] {
    opacity: .65;
    cursor: wait;
}

.trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width:700px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Bleibt bei wechselnden Galerie-Filtern verborgen */
.item[hidden] {
    display: none !important;
}

/* Sichtbarerer Kopfbereich – alle anderen Seitenbereiche bleiben unverändert. */
.header {
    background: rgba(255,253,249,.98);
    border-bottom: 1px solid #d9d1c3;
    box-shadow: 0 3px 16px rgba(40,50,40,.09);
}

.header .nav {
    min-height: 122px;
}

.header .brand {
    flex-shrink: 0;
    line-height: 0;
}

@media (max-width:700px) {
    .header .nav {
        min-height: 96px;
    }

    .header .links {
        top: 96px;
    }
}

/* ===== Kopfzeile mit dezenter Holzoptik =====
   Nur Header/Navigation angepasst; übrige Bereiche bleiben unverändert. */
:root {
    --kopf-creme: #faf5ec;
    --kopf-sand: #eadbc2;
    --kopf-holz-1: #d8b48d;
    --kopf-holz-2: #c79d70;
    --kopf-holz-3: #b98a58;
    --kopf-schrift: #4d3a2b;
    --kopf-akzent: #9c7048;
    --kopf-trennlinie: #cfb08b;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(255,251,244,.92), rgba(248,241,231,.97)),
    repeating-linear-gradient(
      90deg,
      rgba(185,138,88,.07) 0px,
      rgba(185,138,88,.07) 4px,
      rgba(255,255,255,.08) 4px,
      rgba(255,255,255,.08) 18px,
      rgba(154,112,72,.05) 18px,
      rgba(154,112,72,.05) 31px
    );
    border-bottom: 1px solid rgba(153,120,86,.24);
    box-shadow: 0 5px 15px rgba(89,65,41,.075);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 32%, rgba(172,129,87,.08) 100%);
    pointer-events: none;
}

/* Schmaler, zurückhaltender Trennbalken in warmem Eichenholzton.
   Farbe und Höhe lassen sich an dieser Stelle selbst anpassen. */
.header::after {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #d6b894 0%, #c9a47c 48%, #d6b894 100%);
    border-top: 1px solid rgba(122,85,52,.12);
}

.header .nav {
    position: relative;
    width: min(1160px, calc(100% - 48px));
    max-width: 1160px;
    margin-inline: auto;
    padding: 22px 0 16px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

.header .brand {
    margin: 0;
    padding: 0;
    align-self: center;
    text-align: center;
    flex: 0 0 auto;
    line-height: 0;
}

.header .brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(300px, 48vw);
    max-height: 160px;
    object-fit: contain;
    margin-inline: auto;
    filter: none;
    mix-blend-mode: normal;
    border-radius: 0;
}

.header .links {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(18px, 3vw, 38px);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--kopf-schrift);
}

.header .links a {
    padding: 10px 0 12px;
    position: relative;
    white-space: nowrap;
}

.header .links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;
    height: 2px;
    background: linear-gradient(90deg, var(--kopf-akzent), #c29668);
    transition: right .22s ease;
}

.header .links a:hover {
    color: #7c5838;
}

.header .links a:hover::after,
.header .links a:focus-visible::after {
    right: 0;
}

.header .menu-btn {
    display: none;
    background: none;
    border: 0;
    font-size: 30px;
    color: var(--kopf-schrift);
}

@media (max-width:850px) {
    .header .nav {
        padding: 16px 0 12px;
        gap: 10px;
    }

    .header .brand-logo {
        max-width: min(245px, 62vw);
        max-height: 132px;
    }

    .header .menu-btn {
        display: block;
        align-self: center;
        margin: 0;
    }

    .header .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        padding: 18px 24px 22px;
        background: linear-gradient(180deg, rgba(251,246,237,.99), rgba(243,232,214,.99)),
      repeating-linear-gradient(90deg, rgba(177,130,85,.05) 0 12px, rgba(255,255,255,.07) 12px 24px);
        border-bottom: 1px solid var(--kopf-trennlinie);
        box-shadow: 0 14px 22px rgba(85,61,38,.10);
        margin: 0;
    }

    .header .links.open {
        display: flex;
    }

    .header .links a {
        width: auto;
        text-align: center;
    }
}

@media (max-width:700px) {
    .header .nav {
        width: calc(100% - 36px);
        margin-inline: auto;
    }
}

/* Sprungmarken: Überschriften bleiben unter der fixierten Kopfzeile sichtbar.
   Die tatsächliche Höhe wird bei Bildschirm-/Logoänderungen per JS gemessen. */
/* Genau ein Offset: scroll-padding und scroll-margin NICHT addieren.
   Die Ziel-Sektion beginnt unmittelbar unter der gemessenen Kopfzeile. */
html {
    scroll-padding-top: 0;
}

#start, #kollektion, #geschichte, #kontakt {
    scroll-margin-top: var(--header-scroll-offset, 0px);
}

/* Galerie als eigenständige Unterseite: identische Gestaltung wie bisher. */
.gallery-page {
    padding-top: 70px;
    min-height: 70vh;
}

.section-head > .btn {
    margin-top: 12px;
}

@media (max-width:700px) {
    .gallery-page {
        padding-top: 44px;
    }
}

/* === Rubriken-Galerie: unabhängig anpassbar === */
.category-gallery {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    margin-top: 28px;
}

.category-card {
    display: block;
    background: #fffdfa;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s,box-shadow .2s;
}

.category-card:hover,.category-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(65,47,29,.14);
}

.category-cover {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e6dac9;
}

.category-cover img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.category-card:hover .category-cover img {
    transform: scale(1.035);
}

.category-meta {
    padding: 19px 22px 23px;
}

.category-meta h3 {
    font: 24px Georgia,serif;
    margin: 0 0 8px;
}

.category-meta p {
    font-size: 13px;
    margin: 0 0 12px;
}

.category-meta span {
    font-size: 13px;
    font-weight: 700;
    color: #886342;
}

.category-back {
    display: inline-flex;
    margin-top: 8px;
    padding: 10px 16px;
    border: 1px solid #c9ad8a;
    color: #6c4f35;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.category-back:hover {
    background: #f1e7d9;
}

.category-empty {
    max-width: 640px;
    margin: 10px auto 55px;
    padding: 40px 28px;
    text-align: center;
    border: 1px solid #dfd1bc;
    background: #fffbf5;
    border-radius: 10px;
}

.category-empty h3 {
    font: 25px Georgia,serif;
}

.category-empty p {
    font-size: 14px;
    margin: 0;
}

@media (max-width:800px) {
    .category-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 15px;
    }
}

@media (max-width:520px) {
    .category-gallery {
        grid-template-columns: 1fr;
    }

    .category-meta {
        padding: 18px;
    }
}

/* Mobile Navigation: Dropdown darf nicht von der Kopfzeile abgeschnitten werden.
   Die dekorative Holztrennung bleibt erhalten. */
.header {
    overflow: visible;
}

@media (max-width:850px) {
    .header .nav {
        position: relative;
    }

    .header .links {
        z-index: 50;
        top: 100%;
        visibility: hidden;
        pointer-events: none;
    }

    .header .links.open {
        display: flex;
        visibility: visible;
        pointer-events: auto;
    }

    .header .menu-btn {
        position: relative;
        z-index: 51;
        display: block;
        cursor: pointer;
    }
}

/* === Kompakte, responsive Kopfzeile (Tablet + Smartphone) ===
   Desktop-Design bleibt unverändert. Eigene Werte hier anpassen. */
@media (max-width: 850px) {
    .header {
        overflow: visible;
    }

    .header .nav {
        width: calc(100% - 36px);
        max-width: none;
        margin-inline: 18px;
        min-height: 0;
        height: 80px;
        padding: 8px 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: relative;
    }

    .header .brand {
        flex: 0 1 auto;
        align-self: center;
        margin: 0;
        padding: 0;
        min-width: 0;
    }

    .header .brand-logo {
        width: auto;
        height: auto;
        max-width: min(200px, 62vw);
        max-height: 60px;
        margin: 0;
        object-fit: contain;
    }

    .header .menu-btn {
        position: relative;
        z-index: 51;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        padding: 0;
        margin: 0;
        align-self: center;
        border-radius: 6px;
        background: rgba(235, 219, 197, .5);
        color: var(--kopf-schrift);
        font-size: 28px;
    }

    .header .links {
        display: none;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        top: 100%;
        left: -18px;
        right: -18px;
        width: auto;
        margin: 0;
        padding: 14px 22px 18px;
        z-index: 50;
        align-items: stretch;
        text-align: left;
        flex-direction: column;
        gap: 5px;
        background: #faf4eb;
        border-bottom: 1px solid #d9c1a0;
        box-shadow: 0 14px 24px rgba(89,65,41,.14);
    }

    .header .links.open {
        display: flex;
        visibility: visible;
        pointer-events: auto;
    }

    .header .links a {
        width: 100%;
        padding: 12px 8px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header .nav {
        height: 70px;
    }

    .header .brand-logo {
        max-width: min(164px, 61vw);
        max-height: 52px;
    }

    .header .menu-btn {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

/* Dezenter Bildhinweis auf der Startseite – bewusst klein und ruhig. */
.hero-badge {
    left: 18px;
    bottom: 18px;
    width: auto;
    max-width: 205px;
    padding: 11px 15px;
    border-radius: 7px;
    background: rgba(255,252,246,.89);
    border: 1px solid rgba(211,197,178,.55);
    box-shadow: 0 3px 12px rgba(45,40,31,.08);
    backdrop-filter: blur(5px);
}

.hero-badge b {
    font: normal 16px/1.3 Georgia,serif;
    color: #594c3e;
}

.hero-badge small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.35;
    color: #7b756b;
}

@media (max-width:700px) {
    .hero-badge {
        left: 12px;
        bottom: 12px;
        width: auto;
        max-width: min(185px,calc(100% - 24px));
        padding: 9px 12px;
    }

    .hero-badge b {
        font-size: 14px;
    }

    .hero-badge small {
        font-size: 9px;
    }
}

/* Rechtliche Seiten – bewusst an die bestehende Gestaltung angelehnt */
.legal-page {
    min-height: 65vh;
    padding-top: 74px;
    padding-bottom: 94px;
}

.legal-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.legal-intro .eyebrow {
    justify-content: center;
}

.legal-intro h1 {
    font-size: clamp(42px,5vw,66px);
    margin: 17px 0 15px;
}

.legal-intro p {
    font-size: 15px;
}

.legal-content {
    max-width: 850px;
    margin: auto;
    padding: clamp(24px,5vw,55px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(70,50,30,.045);
}

.legal-content h2 {
    font: normal clamp(23px,3vw,31px)/1.3 Georgia,serif;
    letter-spacing: -.4px;
    margin: 32px 0 12px;
    color: var(--ink);
}

.legal-content h2:first-of-type {
    margin-top: 10px;
}

.legal-content p {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.legal-warning {
    padding: 17px 20px;
    background: #f6ede0;
    border-left: 3px solid #ae855b;
    border-radius: 5px;
    color: #5a4533;
}

@media (max-width:700px) {
    .legal-page {
        padding-top: 45px;
        padding-bottom: 65px;
    }

    .legal-content {
        padding: 23px 19px;
    }
}



/* ============================================================
   MOBILE KOPFZEILE – STABILE POSITION BEIM SCROLLEN
   Die feste Position verhindert das Hochrutschen der Menüschaltfläche.
   Desktop-Ansicht bleibt unverändert.
   ============================================================ */
@media (max-width: 850px) {
    :root {
        --mobile-header-height: 80px;
        --mobile-separator-height: 5px;
    }

    body {
        padding-top: calc(var(--mobile-header-height) + var(--mobile-separator-height));
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 100;
        overflow: visible;
    }

    .header .nav {
        height: var(--mobile-header-height);
        min-height: var(--mobile-header-height);
        max-height: var(--mobile-header-height);
        padding: 6px 0;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    .header .brand {
        flex: 0 1 auto;
        min-width: 0;
        align-self: center;
    }

    .header .brand-logo {
        max-height: calc(var(--mobile-header-height) - 16px);
    }

    .header .menu-btn {
        position: relative;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        margin: 0;
        align-self: center;
        top: auto;
        transform: none;
        z-index: 102;
    }

    .header .links {
        top: calc(100% + var(--mobile-separator-height));
        z-index: 101;
    }
}

@media (max-width: 480px) {
    :root {
        --mobile-header-height: 70px;
    }

    .header .menu-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        flex-basis: 42px;
    }
}


/* Light & Wood: Logo statt Schriftzug in der Fusszeile. */
.footer .footer-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
}
.footer .footer-logo {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
}
@media (max-width: 700px) {
    .footer .footer-logo {
        width: 125px;
        max-height: 75px;
    }
}

/* Dezentes, warmes Elfenbein statt grellem Weiss; nur Footer. */
.footer .footer-logo {
    filter: brightness(0) saturate(100%) invert(89%) sepia(12%) saturate(270%) hue-rotate(342deg) brightness(98%) contrast(92%);
    opacity: 0.88;
}

/* Footer: Logo und Unterzeile ueberall auf derselben Mittelachse. */
.footer .footer-inner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer .footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
}
.footer .footer-logo {
    object-position: center center;
    margin-inline: auto;
}
.footer .footer-inner > div:first-child > p {
    text-align: center;
    margin-inline: auto;
}


/* Light & Wood – kompakte, ruhige Bildbeschriftungen.
   Bildtitel links, Rubrik rechts: auch bei schmalen Vorschaubildern eine Zeile.
   Längere Bezeichnungen werden mit … abgekürzt, statt umzubrechen. */
.gallery-view #rubrik-bilder .gallery {
    align-items: stretch;
    gap: 20px 20px;
}
.gallery-view #rubrik-bilder .gallery .item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(91, 75, 55, .11);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    transform: none;
}
.gallery-view #rubrik-bilder .gallery .item:hover {
    box-shadow: none;
    transform: none;
}
.gallery-view #rubrik-bilder .gallery .photo {
    display: block;
    flex: 0 0 auto;
    border-radius: 0;
    cursor: zoom-in;
}
.gallery-view #rubrik-bilder .gallery .item-text {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 9px 11px;
    border-top: 1px solid rgba(91, 75, 55, .12);
    background: #fffdfa;
}
.gallery-view #rubrik-bilder .gallery .item-text h3 {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font: 700 13px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    color: #746755;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-view #rubrik-bilder .gallery .item-text small {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 38%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #857460;
    font: 400 11px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif;
    letter-spacing: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-self: end;
}
@media (max-width: 700px) {
    .gallery-view #rubrik-bilder .gallery .item-text { padding: 8px 10px; column-gap: 8px; }
    .gallery-view #rubrik-bilder .gallery .item-text h3 { font-size: 12px; }
    .gallery-view #rubrik-bilder .gallery .item-text small { font-size: 10px; max-width: 40%; }
}
