@font-face {
  font-family: DM;
  src: url("/fonts/sans-400-normal.woff");
}
@font-face {
  font-family: DM;
  src: url("/fonts/sans-700-normal.woff");
  font-weight: 700;
}
@font-face {
  font-family: Hofschrift;
  src: local("ThirstyRoughReg"), local("Thirsty Rough Reg"),
    local("Thirsty Rough Regular"), url("/fonts/hofschrift.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --green: #2c6136;
  --orange: #bd390c;
  --leaf: #e5eade;
  --line: #ced7c8;
  --paper: #fdfcf8;
  --max: 1320px;
  --g: clamp(20px, 5vw, 88px);
  color-scheme: light;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--green);
  font:
    1.02rem/1.63 DM,
    Arial,
    sans-serif;
}
h1,
h2,
h3 {
  font-family: Hofschrift, Georgia, serif;
  color: var(--orange);
  text-align: center;
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: normal;
  text-wrap: balance;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
p + p {
  margin-top: 0.85rem;
}
a {
  color: var(--green);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
img {
  display: block;
  max-width: 100%;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a74712;
  outline-offset: 4px;
}
.container,
.nav-in,
.hero-in {
  width: min(100%, var(--max));
  padding-left: var(--g);
  padding-right: var(--g);
  margin: auto;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -150px;
  background: white;
  padding: 1rem;
  z-index: 10;
}
.skip:focus {
  top: 0.5rem;
}
.kopf {
  background: #fffefb;
  border-bottom: 1px solid var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.4vw, 40px);
  min-height: 85px;
}
.marke {
  flex-shrink: 0;
  margin-right: auto;
}
.marke img {
  width: 115px;
  height: 65px;
  object-fit: contain;
}
.breit {
  display: flex;
  gap: clamp(12px, 2.3vw, 34px);
  align-items: center;
}
.breit a,
.mobil nav a {
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}
.breit a:hover,
.breit a[aria-current] {
  text-decoration: underline;
}
.btn,
.editor button.btn {
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
}
.btn:hover {
  background: #17382a;
}
.book {
  font-size: 0.93rem;
}
.mobil {
  display: none;
}
.hero {
  background: #eaf0e2;
  border-bottom: 1px solid var(--line);
}
.hero-in {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(35px, 4.2vw, 65px);
  padding-bottom: clamp(35px, 4.2vw, 65px);
  align-items: center;
}
.hero-copy {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
}
.ort {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
}
.ort svg {
  width: 16px;
  height: 16px;
}
.hero h1 {
  font-size: clamp(2.7rem, 4.3vw, 4.85rem);
  margin: 0.35em auto 0.32em;
  line-height: 1.12;
  overflow-wrap: break-word;
}
.hero-lead {
  max-width: 520px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.28vw, 1.16rem);
}
.hero-links,
.actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.6rem 0 0.25rem;
}
.underline {
  font-weight: 700;
  text-decoration: underline;
}
.hero-bild {
  height: clamp(320px, 32vw, 485px);
  border-radius: 9px;
  overflow: hidden;
}
.hero-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}
.wohnungen {
  padding: clamp(48px, 5vw, 78px) 0;
}
.section-head {
  display: grid;
  max-width: 70ch;
  gap: .65rem;
  margin: 0 auto 1.8rem;
}
.section-head h2,
.feature h2,
.homepage-anfrage h2,
.vorstellung h2 {
  font-size: clamp(2.1rem, 3.3vw, 3.15rem);
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
}
.wohncard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card-photo {
  display: block;
  overflow: hidden;
  height: clamp(175px, 19vw, 290px);
}
.card-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.card-body {
  padding: clamp(18px, 2.2vw, 34px);
}
.card-body .facts {
  font-size: 0.86rem;
  font-weight: 700;
}
.card-body h3 {
  font-size: clamp(1.7rem, 2.3vw, 2.45rem);
  margin: 0.35em 0;
}
.card-body .underline {
  display: inline-block;
  margin-top: 1rem;
}
.vorstellung,
.homepage-anfrage {
  max-width: 810px;
  margin: 15px auto 68px;
  text-align: center;
}
.vorstellung h2,
.homepage-anfrage h2 {
  margin: 0.45em 0;
}
.mini-icon svg {
  width: 42px;
  height: 42px;
  color: #627b51;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(25px, 5vw, 85px);
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}
.feature-photo img {
  width: 100%;
  height: clamp(200px, 25vw, 350px);
  object-fit: cover;
  border-radius: 8px;
}
.feature h2 {
  margin-bottom: 0.35em;
}
.homepage-anfrage {
  padding: 2.5rem 0 0;
}
.hofarchiv {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.hofarchiv summary {
  font-weight: 700;
}
.hofarchiv h2 {
  font-size: 1.4rem;
  margin: 1rem 0;
}
footer {
  background: #edf0e7;
}
.partner {
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}
.partner h2 {
  font-size: 1.45rem;
  margin: 0 0 1.25rem;
}
.logos {
  display: flex;
  gap: clamp(10px, 2.5vw, 45px);
  flex-wrap: wrap;
  align-items: center;
}
.logos a {
  display: grid;
  place-items: center;
  width: 105px;
  height: 65px;
  background: white;
  border-radius: 3px;
  padding: 7px;
}
.logos img {
  max-height: 51px;
  max-width: 91px;
  object-fit: contain;
}
.fuss {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0 3rem;
}
.fuss nav {
  max-width: 55%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}
.fuss a,
.fuss p {
  font-size: 0.91rem;
}
.bread {
  font-size: 0.88rem;
  display: flex;
  gap: 0.65em;
  flex-wrap: wrap;
  margin: 0 0 1.3rem;
}
.page-top {
  background: #eaf0e2;
  padding: 1.8rem 0 2.65rem;
}
.innerhead {
  margin-inline: auto;
  max-width: 850px;
}
.innerhead.mitbild {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  align-items: center;
}
.innerhead h1,
.editor h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  margin: 0.1em 0 0.3em;
  hyphens: auto;
}
.innerhead figure {
  height: clamp(220px, 27vw, 350px);
  overflow: hidden;
  border-radius: 9px;
}
.innerhead img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.textseite,
.editor {
  width: min(100% - 2 * var(--g), 860px);
  margin: 2.5rem auto 4rem;
}
.textseite h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: 1.5em 0 0.45em;
}
.textseite h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin: 1.25em 0 0.4em;
}
.textseite li {
  margin: 0.3em 0;
}
.block-link {
  margin: 0.65em 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.35rem;
  margin: 1.8rem 0;
}
.gallery a {
  display: block;
  background: white;
}
.gallery img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 5px;
}
.gallery figure:only-child img {
  height: auto;
  max-height: 510px;
  object-fit: contain;
  background: #f0f1ea;
}
.gallery figcaption {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.45rem;
}
.hofprodukte .gallery figure:only-child img {
  max-height: 430px;
}
.assistent {
  background: #eff2e9;
  border: 1px solid var(--line);
  padding: clamp(15px, 3vw, 30px);
  border-radius: 7px;
  margin: 1.5rem 0;
}
.assistent > div:first-child {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.assistent .btn {
  margin: 1rem 0;
}
.assistent iframe {
  width: 100%;
  height: 840px;
  border: 1px solid var(--line);
  background: white;
  margin-top: 1rem;
}
dialog {
  background: var(--paper);
  border: 0;
  border-radius: 9px;
  padding: 1rem;
  max-width: 92vw;
}
dialog::backdrop {
  background: #13251fdf;
}
dialog img {
  max-width: 85vw;
  max-height: 73vh;
  object-fit: contain;
}
dialog button {
  float: right;
  min-width: 44px;
  min-height: 44px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 6px;
}
dialog p {
  clear: both;
  padding-top: 0.4em;
}
.editor > h1 {
  margin: 0.4em 0;
}
.editor label {
  display: block;
  font-weight: 700;
  margin: 0.8em 0;
}
.editor input,
.editor select,
.editor textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #89998b;
  background: white;
  border-radius: 4px;
  display: block;
  margin-top: 4px;
}
.editor textarea {
  min-height: 115px;
}
.editor button {
  border: 1px solid #819182;
  border-radius: 4px;
  padding: 0.5em 0.9em;
  background: white;
  color: var(--green);
  min-height: 44px;
}
.editor form {
  max-width: 480px;
}
.red-bar {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.red-bar label {
  width: min(72%, 460px);
}
.red-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0.55rem 0;
}
.red-block summary {
  padding: 0.75rem;
  font-weight: 700;
}
.red-block > div {
  padding: 0 1rem 1rem;
}
.ed-photo {
  max-height: 145px;
}
.editor .actions {
  margin: 1rem 0;
}
.previewflag,
#status:not(:empty) {
  background: #faeed0;
  color: #2e3726;
  padding: 0.7rem 1rem;
}
.previewflag {
  text-align: center;
}
.editor button:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 1000px) {
  .breit {
    display: none;
  }
  .mobil {
    position: relative;
    display: block;
  }
  .mobil summary {
    min-height: 44px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem;
  }
  .mobil nav {
    position: absolute;
    z-index: 5;
    right: 0;
    top: 100%;
    background: white;
    min-width: 195px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 16px #142f2517;
  }
  .mobil nav a {
    display: block;
    padding: 0.6rem 1rem;
  }
  .nav-in {
    min-height: 76px;
  }
}
@media (max-width: 720px) {
  .nav-in {
    gap: 0.6rem;
  }
  .marke img {
    width: 84px;
    height: 51px;
  }
  .book {
    font-size: 0.86rem;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
  }
  .book svg {
    width: 16px;
  }
  .mobil summary {
    font-size: 0.9rem;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 23px;
  }
  .hero h1 {
    max-width: 540px;
    font-size: clamp(2.65rem, 8.4vw, 3.75rem);
  }
  .hero-bild {
    height: auto;
    aspect-ratio: 1.78;
    border-top-right-radius: 42px;
  }
  .hero-links {
    margin-top: 1.1rem;
  }
  .hero-copy {
    max-width: none;
  }
  .cards,
  .section-head,
  .feature,
  .innerhead.mitbild {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 0.7rem;
  }
  .card-photo {
    height: auto;
    aspect-ratio: 1.9;
  }
  .fuss {
    display: block;
  }
  .fuss nav {
    max-width: none;
    margin-top: 1.2rem;
  }
  .feature {
    gap: 1.2rem;
    padding: 2rem 0;
  }
  .innerhead figure {
    height: auto;
    aspect-ratio: 1.8;
    margin-top: 1rem;
  }
  .hero .btn {
    min-height: 44px;
  }
  .vorstellung,
  .homepage-anfrage {
    margin-bottom: 40px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .gallery figure:only-child {
    grid-column: 1/-1;
  }
  .gallery img {
    height: 120px;
  }
  .textseite {
    width: calc(100% - 2 * var(--g));
  }
  .gallery figcaption {
    font-size: 0.82rem;
  }
  .logos a {
    width: 82px;
    height: 53px;
  }
  .logos img {
    max-width: 70px;
    max-height: 42px;
  }
}
@media (max-width: 370px) {
  .book svg {
    display: none;
  }
  .nav-in {
    padding: 0 12px;
  }
  .hero-links {
    gap: 0.85rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
[hidden] {
  display: none !important;
}
.termin {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.termin h2 {
  margin-bottom: 0.4em;
}
.anfrage-form {
  padding: 1.4rem;
  background: #edf1e8;
  border-radius: 8px;
  margin-top: 1.2rem;
}
.anfrage-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}
.anfrage-form legend,
.anfrage-form > label {
  font-weight: 700;
}
.anfrage-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.4em 0.8em 0.4em 0;
}
.anfrage-form input {
  width: 20px;
  height: 20px;
}
.anfrage-form textarea {
  display: block;
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.65rem;
  font: inherit;
  border: 1px solid #83917d;
  border-radius: 4px;
}
.anfrage-form p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

/* Center the guest-facing copy within each column and keep long lines readable. */
#inhalt,
footer,
dialog {
  color: var(--green);
  text-align: center;
}
.hero-links,
.logos,
.fuss nav,
.bread {
  justify-content: center;
}
#inhalt p {
  max-inline-size: 64ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}
#inhalt .hero-lead {
  max-inline-size: min(100%, 48ch);
}
#inhalt .textseite ul {
  margin-inline: auto;
  max-inline-size: 60ch;
  padding-inline: 0;
  list-style-position: inside;
}
#inhalt legend {
  margin-inline: auto;
}
.assistent > div:first-child {
  justify-content: center;
}
.anfrage-form textarea,
.editor input,
.editor select,
.editor textarea {
  color: var(--green);
}
@media (min-width: 721px) {
  /* The final line stays centered; details and short labels keep their alignment. */
  #inhalt :is(.hero-lead, .innerhead p, .section-head p, .card-body p:not(.facts),
    .feature p, .vorstellung p, .homepage-anfrage p, .textseite > p,
    .termin p, .hofarchiv p):not(.block-link):not(:has(br)) {
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
  }
}

/* Keep the editable name in the accessibility tree and show the original lettering. */
@supports (mask-image: url("")) {
  @media screen and (forced-colors: none) {
    .hofname {
      position: relative;
      display: inline-block;
      inline-size: 4.5em;
      block-size: 1em;
      max-inline-size: 100%;
      vertical-align: -.09em;
      color: transparent;
      white-space: nowrap;
    }
    .hofname::before {
      content: "";
      position: absolute;
      inset: 0;
      background: var(--orange);
      mask: url("/fonts/poldlbauer-wortmarke.png") center / contain no-repeat;
    }
    .hofname::selection {
      color: HighlightText;
      background: Highlight;
    }
  }
}

/* Die Hofwiese liegt fest hinter den Gästeseiten, vom oberen Fensterrand an. */
@media screen {
  body:has(> .kopf) {
    --green: #214a2a;
    color: var(--green);
    isolation: isolate;
    padding-top: clamp(22px, 4vh, 56px);
    background: #d4e8ea;
  }
  body:has(> .kopf)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("/medien/hofwiese-fleckvieh.webp") center / min(100vw, 1428.57px) auto no-repeat,
      linear-gradient(#c8e6ed, #e1eff1 43%, #b4d377 48%, #83a74b 65%, #718e3a);
    filter: brightness(0.63);
  }
  body > :is(.kopf, #inhalt, footer, .previewflag) {
    width: min(84%, 1200px);
    margin-inline: auto;
  }
  .kopf {
    background: rgb(255 254 251 / 91%);
    border-radius: 12px 12px 0 0;
  }
  #inhalt {
    display: flow-root;
    background: rgb(253 252 248 / 77%);
  }
  .hero, .page-top {
    background: rgb(226 237 216 / 29%);
  }
  footer {
    background: rgb(237 240 231 / 95%);
  }
  @media (max-width: 720px) {
    body > :is(.kopf, #inhalt, footer, .previewflag) {
      --g: 16px;
    }
  }
}

@media screen {
  .gallery figcaption {
    opacity: 0;
  }
  .gallery figure:focus-within figcaption {
    opacity: 1;
  }
}
@media screen and (any-hover: hover) {
  .gallery figure:has(a:hover) figcaption,
  .gallery figure:has(figcaption:hover) figcaption {
    opacity: 1;
  }
}

.wohnung-einstieg { text-align: center; }
.wohnung-einstieg figure { margin: 0 0 .65rem; }
#wohnungsfotos { scroll-margin-top: 6rem; }
.fotonavi { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.fotonavi button { float: none; border-radius: .4rem; padding: .4rem .85rem; cursor: pointer; }

.produktgruppe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}
.produktkarte {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: rgb(255 255 255 / 48%);
}
.hofprodukte .produktkarte h3 { margin: 0; }
.produktkarte p { margin: .65rem 0 1rem; line-height: 1.5; }
.produktkarte .gallery { display: block; margin: auto 0 0; }
.hofprodukte .produktkarte .gallery figure:only-child img {
  display: block;
  height: 9rem;
  object-fit: contain;
}

.familiengalerie .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.familiengalerie .gallery img { height: auto; aspect-ratio: 4 / 3; }
@media (max-width: 44rem) {
  .familiengalerie .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .familiengalerie .gallery { grid-template-columns: 1fr; }
}

.credited-photo { display: block; position: relative; }
.credited-photo > img { display: block; }
.hero-bild > .credited-photo, .innerhead figure > .credited-photo,
.card-photo > .credited-photo { height: 100%; }
.photo-credit {
  position: absolute;
  right: .4rem;
  bottom: .4rem;
  max-width: calc(100% - .8rem);
  background: transparent;
  color: white;
  text-shadow: 0 0 1px #111, 0 1px 2px #222;
  font: 400 .5625rem/1.35 system-ui, sans-serif;
  text-align: right;
  pointer-events: none;
}
.grossfoto { clear: both; width: fit-content; margin: auto; }

@media screen {
  .region-galerie .gallery figure:last-child figcaption,
  #gross.dezenter-bildtitel .bildtitel {
    opacity: 0;
    pointer-events: none;
  }
  .region-galerie .gallery figure:last-child:has(a:focus-visible) figcaption,
  #gross.dezenter-bildtitel:has(:focus-visible) .bildtitel {
    opacity: 1;
  }
}
@media screen and (any-hover: hover) {
  .region-galerie .gallery figure:last-child:has(a:hover) figcaption,
  #gross.dezenter-bildtitel:has(img:hover) .bildtitel {
    opacity: 1;
  }
}
