/* Bauerbach – Dorflinien | MIT | no external fonts or libraries */
:root {
  --pine: #173f36;
  --pine-deep: #102f2a;
  --pine-soft: #2a594b;
  --sage: #779680;
  --cream: #f8f5ec;
  --paper: #fffdf8;
  --ink: #20352e;
  --muted: #536c61;
  --clay: #c96f4a;
  --gold: #eec584;
  --line: #d9e0d6;
  --shadow: 0 18px 52px rgba(20, 56, 44, .09);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--pine-soft); text-underline-offset: .16em; }
a:hover { color: #a94e2e; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.wrap { width: min(100% - 3rem, 1220px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: .55rem 1rem; background: white; color: var(--pine); font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* Header and navigation */
.site-header { position: relative; z-index: 30; background: var(--paper); box-shadow: 0 3px 18px rgba(18, 48, 41, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--pine-deep); }
.brand:hover { color: var(--pine-deep); }
.brand-mark { display: block; width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.85rem); letter-spacing: -.035em; font-weight: 700; }
.brand-text small { margin-top: .35rem; color: var(--muted); font-size: .71rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.menu-toggle { display: none; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 99px; padding: .65rem .85rem; background: var(--paper); color: var(--pine); font-size: .92rem; font-weight: 700; }
.menu-toggle-lines { width: 21px; display: grid; gap: 4px; }
.menu-toggle-lines span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.submenu-toggle { display: none; }
.main-navigation { background: var(--pine); color: #fff; }
.nav-list, .nav-submenu { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; align-items: stretch; gap: .2rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; min-height: 48px; padding: .55rem 1.1rem; color: #fff; text-decoration: none; font-size: .92rem; font-weight: 700; letter-spacing: .015em; white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-item.menu-current > .nav-link, .nav-item.menu-parent > .nav-link { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-item:has(> .nav-submenu) > .nav-link::after { content: ''; width: 6px; height: 6px; margin-left: .75rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }
.nav-submenu { display: none; position: absolute; z-index: 40; top: 100%; left: 0; min-width: 225px; max-width: min(330px, 90vw); padding: .45rem; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-submenu .nav-submenu { top: -.45rem; left: 100%; }
.nav-submenu .nav-link { min-height: 43px; padding: .65rem .8rem; color: var(--pine); white-space: normal; font-size: .88rem; border-radius: 3px; }
.nav-submenu .nav-link:hover, .nav-submenu .nav-link:focus-visible, .nav-submenu .menu-current > .nav-link { background: #e9f0e8; color: var(--pine-deep); }
.nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu { display: block; }
.nav-submenu .nav-item:has(> .nav-submenu) > .nav-link::after { margin-left: auto; transform: rotate(-45deg); }

/* The village landscape is decorative; the visual identity also lives in the layout and type. */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 225px; background: var(--pine-deep); color: white; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 10%, rgba(236, 190, 123, .2), transparent 31%), linear-gradient(125deg, #143e35, #1f5145 65%, #315c4f); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16; background-image: repeating-linear-gradient(146deg, transparent 0 24px, rgba(255,255,255,.32) 25px, transparent 26px 50px); mask-image: linear-gradient(90deg, transparent 25%, #000 100%); }
.hero-landscape { position: absolute; z-index: -1; bottom: -1px; right: -2%; width: min(76%, 1120px); height: 100%; background: url('landscape.svg') right bottom / contain no-repeat; opacity: .98; pointer-events: none; }
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 225px; padding-block: 1.2rem 1.8rem; }
.hero-copy { max-width: 610px; text-shadow: 0 2px 18px rgba(13, 41, 35, .22); }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; color: #f8e3be; font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 30px; height: 2px; background: var(--gold); }
.hero-title { margin: .45rem 0 .5rem; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -.047em; }
.hero-title em { color: var(--gold); font-weight: 400; }
.hero-subtitle { margin: 0; color: #f5f1e8; font-size: clamp(.96rem, 1.55vw, 1.14rem); }
.hero-stamp { position: relative; display: grid; place-items: center; width: 94px; height: 94px; flex: none; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; color: #fff2d8; font-family: var(--serif); font-size: .98rem; font-style: italic; line-height: 1.1; text-align: center; transform: rotate(10deg); background: rgba(19, 59, 48, .28); }
.hero-stamp::before { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.55); border-radius: 50%; }

/* Reading area */
.main-area { padding: clamp(2.3rem, 4vw, 4rem) 0 6rem; background: linear-gradient(180deg, var(--cream), #f4f0e6); }
.page-intro { max-width: 900px; margin-bottom: 2.7rem; }
.section-label { color: var(--clay); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-label span { color: #9baaa0; margin-inline: .4em; }
.page-intro h1 { margin: .45rem 0 .7rem; font-family: var(--serif); font-size: clamp(2.3rem, 5.3vw, 4.5rem); line-height: 1.11; letter-spacing: -.04em; color: var(--pine-deep); }
.intro-rule { display: block; width: 78px; height: 4px; border-radius: 10px; background: var(--clay); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.content-grid.has-aside { grid-template-columns: minmax(0, 2.3fr) minmax(250px, 1fr); }
.content-body { width: 100%; min-width: 0; padding: clamp(1.5rem, 3.5vw, 3.2rem); background: var(--paper); border: 1px solid #e9e9df; border-radius: 4px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.content-grid:not(.has-aside) .content-body { max-width: 950px; }
.content-body > :first-child { margin-top: 0; }
.content-body > :last-child { margin-bottom: 0; }
.content-body p, .content-body li { max-width: 76ch; }
.content-body p { margin: 0 0 1.15em; }
.content-body h1, .content-body h2, .content-body h3, .content-aside h2, .content-aside h3 { color: var(--pine-deep); font-family: var(--serif); line-height: 1.22; letter-spacing: -.025em; }
.content-body h1 { font-size: clamp(2rem, 3vw, 2.75rem); }
.content-body h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.65rem, 2.5vw, 2.15rem); }
.content-body h3 { margin: 1.9rem 0 .6rem; font-size: 1.4rem; }
.content-body h4 { margin: 1.5rem 0 .45rem; font-size: 1.05rem; color: var(--pine); }
.content-body ul, .content-body ol { padding-left: 1.5rem; margin: .5rem 0 1.4rem; }
.content-body li { padding-left: .2rem; margin-bottom: .35rem; }
.content-body li::marker { color: var(--clay); }
.content-body a:not(.btn), .content-aside a { text-decoration-thickness: 1px; font-weight: 600; }
.content-body blockquote { margin: 2rem 0; padding: .8rem 1.3rem; border-left: 4px solid var(--clay); background: #f5f1e7; color: var(--pine); font-family: var(--serif); font-size: 1.16rem; font-style: italic; }
.content-body img { border-radius: 3px; }
.content-body figure { margin: 1.7rem 0; }
.content-body figcaption { color: var(--muted); font-size: .84rem; }
.content-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.content-body table { display: block; width: max-content; max-width: 100%; border-collapse: collapse; overflow-x: auto; margin: 1.5rem 0; font-size: .94rem; }
.content-body th, .content-body td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-body th { background: #edf2eb; color: var(--pine); }
.content-body input:not([type=checkbox]):not([type=radio]), .content-body textarea, .content-body select { max-width: 100%; min-height: 40px; padding: .55rem .7rem; border: 1px solid #b7c6bc; border-radius: 3px; background: white; color: var(--ink); }
.content-body textarea { min-height: 110px; }
.content-body button, .content-body input[type=submit], .content-body .btn { display: inline-block; border: 0; border-radius: 3px; padding: .65rem 1rem; background: var(--pine); color: white; text-decoration: none; font-weight: 700; }
.content-body button:hover, .content-body input[type=submit]:hover, .content-body .btn:hover { background: var(--pine-soft); color: white; }
.content-aside { min-width: 0; padding: 1.7rem; background: #e9f0e9; border-top: 4px solid var(--sage); border-radius: 3px; color: var(--ink); overflow-wrap: anywhere; }
.content-aside > :first-child { margin-top: 0; }
.content-aside > :last-child { margin-bottom: 0; }
.content-aside h2, .content-aside h3 { font-size: 1.35rem; margin: 1.4rem 0 .5rem; }
.content-aside p, .content-aside li { font-size: .92rem; }
.content-aside ul { padding-left: 1.2rem; }

/* Footer */
.site-footer { background: var(--pine-deep); color: #e8f0e8; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; padding-block: 3.4rem 2.8rem; }
.footer-kicker { color: var(--gold); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .17em; }
.footer-title { margin: .1rem 0 .4rem; color: white; font: 2rem/1.2 var(--serif); letter-spacing: -.03em; }
.footer-note { margin: 0; color: #c5d6cc; font-size: .9rem; }
.site-search { width: min(100%, 380px); }
.site-search label { display: block; margin-bottom: .55rem; color: #e8f0e8; font-size: .82rem; font-weight: 700; }
.search-row { display: flex; min-height: 46px; }
.search-row input { min-width: 0; flex: 1; border: 1px solid #91aea0; border-right: 0; border-radius: 3px 0 0 3px; padding: .6rem .8rem; color: var(--ink); background: white; }
.search-row button { flex: none; border: 0; border-radius: 0 3px 3px 0; padding: .55rem .9rem; background: var(--gold); color: var(--pine-deep); font-weight: 800; }
.search-row button:hover { background: #f6d49b; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(255,255,255,.16); padding-block: 1.15rem 1.55rem; color: #c5d6cc; font-size: .84rem; }
.footer-managed a, .back-to-top { color: #f3e1c3; }
.footer-managed p { margin: 0; }
.back-to-top { white-space: nowrap; }

@media (max-width: 900px) {
  .content-grid.has-aside { grid-template-columns: minmax(0, 1fr); }
  .content-aside { max-width: 950px; }
  .hero-stamp { display: none; }
  .hero-landscape { width: 90%; opacity: .72; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 2rem, 1220px); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: clamp(1.23rem, 4.5vw, 1.65rem); }
  .brand-text small { font-size: .58rem; letter-spacing: .12em; }
  .js .menu-toggle { display: inline-flex; }
  .js .main-navigation:not(.is-open) { display: none; }
  .main-navigation { max-height: min(75vh, 650px); overflow-y: auto; border-top: 1px solid var(--line); background: var(--paper); color: var(--pine); }
  .main-navigation .wrap { width: 100%; }
  .nav-list { display: block; padding: .35rem 1rem 1rem; }
  .nav-list > .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { min-height: 50px; padding: .8rem .5rem; color: var(--pine); white-space: normal; }
  .nav-link:hover, .nav-link:focus-visible, .nav-item.menu-current > .nav-link, .nav-item.menu-parent > .nav-link { color: var(--pine-deep); background: #edf2eb; }
  .nav-item:has(> .nav-submenu) > .nav-link::after { display: none; }
  .nav-submenu { display: block; position: static; min-width: 0; max-width: none; padding: 0 0 .5rem .85rem; background: transparent; border: 0; border-left: 2px solid #d3dfd2; box-shadow: none; }
  .js .nav-submenu { display: none; }
  .js .nav-item.is-open > .nav-submenu { display: block; }
  .nav-submenu .nav-link { min-height: 42px; padding: .5rem .7rem; }
  .nav-item:hover > .nav-submenu, .nav-item:focus-within > .nav-submenu { display: block; }
  .js .nav-item:not(.is-open):hover > .nav-submenu, .js .nav-item:not(.is-open):focus-within > .nav-submenu { display: none; }
  .submenu-toggle { position: absolute; top: 5px; right: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--pine); }
  .submenu-toggle::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); }
  .nav-item.is-open > .submenu-toggle::after { transform: rotate(225deg) translate(-2px,-2px); }
  .nav-item:has(> .submenu-toggle) > .nav-link { padding-right: 3.2rem; }
  .nav-submenu .submenu-toggle { top: 2px; }
  .hero, .hero-inner { min-height: 205px; }
  .hero-inner { padding-block: 1.45rem 1.8rem; }
  .hero-landscape { width: 110%; right: -25%; opacity: .42; }
  .hero-title { font-size: clamp(2.4rem, 7.2vw, 3.3rem); }
  .main-area { padding-block: 2.3rem 4rem; }
  .footer-top { flex-direction: column; gap: 2.4rem; }
}

@media (max-width: 420px) {
  .brand { gap: .5rem; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-text strong { font-size: 1.14rem; }
  .brand-text small { font-size: .51rem; }
  .menu-toggle { gap: .4rem; padding: .55rem .6rem; }
  .menu-toggle-label { font-size: .8rem; }
  .hero-title { font-size: 2.35rem; }
  .content-body { padding: 1.35rem; }
  .footer-bottom { align-items: flex-start; }
}

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

@media print {
  body { background: white; color: black; }
  .site-header, .hero, .site-footer, .skip-link { display: none !important; }
  .main-area { padding: 0; background: white; }
  .page-intro { margin-bottom: 1rem; }
  .content-grid, .content-grid.has-aside { display: block; }
  .content-body, .content-aside { max-width: none; padding: 0; border: 0; box-shadow: none; background: white; }
  .content-aside { margin-top: 2rem; }
  a { color: black; }
}
