@font-face {
    font-family: 'President';
    src: url('../fonts/President/PRESDNTN.woff2') format('woff2'),
        url('../fonts/President/PRESDNTN.woff') format('woff'),
        url('../fonts/President/PRESDNTN.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NunitoLocal';
    src: url('../fonts/Nunito/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NunitoLocal';
    src: url('../fonts/Nunito/Nunito-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NunitoLocal';
    src: url('../fonts/Nunito/Nunito-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NunitoLocal';
    src: url('../fonts/Nunito/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --green-deep: #556733;
    --green: #6f8037;
    --ink: #2f342c;
    --muted: #6e7168;
    --paper: #f1eddf;
    --paper-light: #f7f4ea;
    --font-heading: 'President', Georgia, serif;
    --font-body: 'NunitoLocal', Arial, sans-serif;
    --sidebar-width: clamp(230px, 14vw, 300px);
    --section-max-width: 2200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.48;
    background: var(--paper);
}

a {
    color: inherit;
}

.mobile-header {
    display: none;
}

.page-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    background: var(--paper-light);
}

.sidebar,
.content,
.mobile-header {
    background-image:
        linear-gradient(rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)),
        url('../img/texture.png');
    background-repeat: repeat;
}

.sidebar {
    position: sticky;
    top: 0;
    min-height: 0;
    height: 100dvh;
    padding: 28px 32px 24px 28px;
    color: #f8f5e9;
    background-color: var(--green-deep);
    overflow: hidden;
    z-index: 2;
}

/* Feste, nicht skalierte Abrisskante. Die 3000-Pixel-Datei reicht auch für 4K-Höhen. */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 16px;
    height: 100%;
    pointer-events: none;
    background-color: var(--paper-light);
    background-image: url('../img/texture.png');
    background-repeat: repeat;
    -webkit-mask-image: url('../img/edge-menu-soft-fixed-tall.png');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: top center;
    -webkit-mask-size: 16px 3000px;
    mask-image: url('../img/edge-menu-soft-fixed-tall.png');
    mask-repeat: no-repeat;
    mask-position: top center;
    mask-size: 16px 3000px;
}

.brand {
    text-align: center;
}

.brand img {
    width: clamp(76px, 5.2vw, 92px);
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(31px, 2vw, 37px);
    line-height: .92;
    letter-spacing: -.01em;
}

.brand-region {
    color: #cbdc45;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.nav {
    margin-top: clamp(24px, 3.1dvh, 34px);
    display: grid;
    gap: 0;
}

.nav a {
    position: relative;
    text-decoration: none;
    padding: 6px 10px 9px 12px;
    font-size: 14px;
    color: #f8f5e9;
    transition: color .15s ease;
}

.nav a span {
    position: relative;
    display: inline-block;
}

.nav a:hover,
.nav a:focus-visible {
    color: #e2ed74;
}

.nav a.active {
    color: #f4f1df;
}

.nav a.active span::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: -3px;
    width: 110%;
    height: 5px;
    pointer-events: none;
    background-image: url(../img/menu-underline.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
}

.sidebar-note {
    margin: 28px 10px 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .21);
    color: rgba(255, 255, 255, .65);
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.12;
}

.content {
    min-width: 0;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    background-color: var(--paper-light);
}

/* Einziger interner Scrollbereich im Desktopmodus. Längere Inhaltsseiten
   scrollen hier; Sidebar und Footer bleiben sichtbar. */
.content-scroll {
    min-width: 0;
    min-height: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(83, 100, 47, .28) transparent;
}

.content-scroll::-webkit-scrollbar {
    width: 7px;
}

.content-scroll::-webkit-scrollbar-thumb {
    background: rgba(83, 100, 47, .24);
    border-radius: 7px;
}

.intro,
.contact,
.footer {
    width: 100%;
    max-width: var(--section-max-width);
    justify-self: center;
}

.intro {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, .94fr) minmax(420px, 1.06fr);
    gap: clamp(28px, 3vw, 56px);
    padding: clamp(30px, 4dvh, 52px) clamp(38px, 4vw, 76px) clamp(24px, 3dvh, 38px) clamp(38px, 3.5vw, 68px);
    align-items: start;
}

.intro-copy {
    min-width: 0;
    padding-right: 8px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 10px;
    font-weight: 700;
}

h1,
h2 {
    max-width: 100%;
    margin: 0;
    color: #4c5e32;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 2.7vw, 48px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.012em;
}

h2 {
    font-family: var(--font-body);
    font-size: clamp(20px, 1.35vw, 24px);
    font-weight: 700;
    line-height: 1.2;
}

.hand-line {
    width: 84px;
    height: 7px;
    margin: 18px 0 18px;
    background: linear-gradient(91deg, transparent 0 2%, #9eb92f 4% 86%, transparent 90%);
    clip-path: polygon(0 43%, 25% 30%, 49% 50%, 77% 31%, 100% 48%, 100% 65%, 73% 55%, 45% 70%, 18% 52%, 0 61%);
}

.hand-line.small {
    width: 64px;
    margin: 10px 0 13px;
}

.welcome-text {
    max-width: 590px;
}

.welcome-text p {
    margin: 0 0 10px;
}

.hero {
    margin: 0;
    position: relative;
    min-width: 0;
    width: 100%;
    height: clamp(380px, 52dvh, 760px);
    overflow: hidden;
    background: transparent;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.hero img {
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    display: block;
    opacity: .72;
    filter: saturate(.72) contrast(.90) brightness(1.05);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .10) 3%, rgba(0, 0, 0, .52) 9%, rgba(0, 0, 0, .88) 16%, #000 24%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .10) 3%, rgba(0, 0, 0, .52) 9%, rgba(0, 0, 0, .88) 16%, #000 24%, #000 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 15px;
    z-index: 2;
    pointer-events: none;
    background-color: var(--paper-light);
    background-image: url('../img/texture.png');
    background-repeat: repeat;
    -webkit-mask: url('../img/edge-image.svg') center / 100% 100% no-repeat;
    mask: url('../img/edge-image.svg') center / 100% 100% no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(247, 244, 234, .42) 0%, rgba(247, 244, 234, .18) 18%, rgba(247, 244, 234, .04) 48%, rgba(247, 244, 234, .10) 100%);
}

/* Der Kontaktbereich liegt nun auf derselben Papierfläche wie der restliche Inhalt. */
.contact {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 280px) minmax(0, 760px);
    justify-content: start;
    gap: clamp(24px, 2.4vw, 40px);
    padding: 18px clamp(38px, 4vw, 76px) 28px clamp(38px, 3.5vw, 68px);
    background-color: transparent;
}

.contact-copy {
    min-width: 0;
    padding-right: 6px;
}

.contact-copy h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.contact-copy p {
    margin: 0 0 11px;
    color: #555b50;
    font-size: 13px;
}

.contact-copy address {
    font-style: normal;
    font-size: 12px;
    line-height: 1.5;
}

.contact-copy address a {
    text-decoration: none;
    border-bottom: 1px solid rgba(83, 100, 47, .35);
}

.contact-form {
    min-width: 0;
    width: 100%;
    max-width: 760px;
    display: grid;
    gap: 6px;
    align-content: start;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-form label {
    display: grid;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #4b5147;
}

.contact-form label span {
    font-weight: 400;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(83, 100, 47, .22);
    background: rgba(255, 255, 255, .30);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 1px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, .46);
    box-shadow: 0 0 0 2px rgba(111, 128, 55, .07);
}

.contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 76px;
    max-height: 160px;
    height: 86px;
    resize: vertical;
}

.contact-form button {
    justify-self: start;
    border: 0;
    background: var(--green-deep);
    color: #fff;
    padding: 8px 18px;
    font: 600 13px var(--font-body);
    cursor: pointer;
    border-radius: 1px;
}

.contact-form button:hover {
    background: #465527;
}

hr {
    border-top: 1px solid var(--green);
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.form-actions {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 1px;
}

.form-actions label {
    display: grid;
    grid-template-columns: auto 86px;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    white-space: nowrap;
    font-weight: 600;
}

.form-actions input {
    min-width: 0;
    text-align: center;
}


.footer {
    min-height: 34px;
    padding: 0 clamp(38px, 4vw, 76px) 0 clamp(38px, 3.5vw, 68px);
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    color: #77796f;
    font-size: 11px;
    background-color: transparent;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer a {
    text-decoration: none;
}

/* Desktop: Die Grundseite bleibt exakt im Viewport. */
@media (min-width: 961px) {

    html,
    body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .page-shell,
    .content {
        height: 100dvh;
        min-height: 0;
    }

    .content {
        overflow: hidden;
    }

    .content-scroll {
        min-height: 0;
    }
}

@media (min-width: 2200px) {
    :root {
        --sidebar-width: clamp(320px, 13.5vw, 380px);
        --section-max-width: 2700px;
    }

    body {
        font-size: 18px;
    }

    .sidebar {
        padding: 38px 42px 32px 36px;
    }

    .brand img {
        width: 108px;
    }

    .brand-name {
        font-size: 43px;
    }

    .brand-region {
        font-size: 13px;
    }

    .nav {
        margin-top: 38px;
    }

    .nav a {
        font-size: 17px;
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .sidebar-note {
        font-size: 23px;
    }

    .intro {
        grid-template-columns: minmax(500px, .94fr) minmax(640px, 1.06fr);
        gap: 70px;
        padding: 54px 88px 42px 80px;
        align-items: center;
    }

    .eyebrow {
        font-size: 12px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 24px;
    }

    .welcome-text {
        max-width: 720px;
    }

    .hero {
        height: clamp(600px, 52dvh, 900px);
    }

    .contact {
        grid-template-columns: 260px minmax(0, 860px);
        gap: 44px;
        padding: 22px 88px 30px 80px;
    }

    .contact-copy p {
        font-size: 15px;
    }

    .contact-copy address {
        font-size: 14px;
    }

    .contact-form label {
        font-size: 13px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 9px 11px;
    }

    .contact-form button {
        font-size: 15px;
        padding: 10px 22px;
    }

    .footer {
        min-height: 42px;
        padding-left: 80px;
        padding-right: 88px;
        font-size: 13px;
    }
}

@media (min-width: 3200px) {
    :root {
        --sidebar-width: clamp(440px, 13vw, 500px);
        --section-max-width: 3300px;
    }

    body {
        font-size: 22px;
    }

    .sidebar {
        padding: 54px 58px 44px 50px;
    }

    .brand img {
        width: 142px;
    }

    .brand-name {
        font-size: 56px;
    }

    .brand-region {
        font-size: 16px;
    }

    .nav {
        margin-top: 50px;
    }

    .nav a {
        font-size: 21px;
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .nav a.active span::after {
        bottom: -9px;
        height: 11px;
        background-size: 100% 100%;
    }

    .sidebar-note {
        margin-top: 40px;
        font-size: 29px;
    }

    .intro {
        grid-template-columns: minmax(700px, .94fr) minmax(900px, 1.06fr);
        gap: 95px;
        padding: 80px 120px 60px 108px;
    }

    .eyebrow {
        font-size: 15px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 24px;
    }

    .hand-line {
        width: 112px;
        height: 9px;
        margin-top: 25px;
        margin-bottom: 25px;
    }

    .hand-line.small {
        width: 82px;
    }

    .welcome-text {
        max-width: 920px;
    }

    .hero {
        height: clamp(820px, 50dvh, 1080px);
    }

    .contact {
        grid-template-columns: 300px minmax(0, 980px);
        gap: 52px;
        padding: 26px 120px 38px 108px;
    }

    .contact-copy p {
        font-size: 19px;
    }

    .contact-copy address {
        font-size: 17px;
    }

    .contact-form label {
        font-size: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 19px;
        padding: 12px 14px;
    }

    .contact-form textarea {
        min-height: 86px;
        max-height: 180px;
        height: 96px;
    }

    .contact-form button {
        font-size: 18px;
        padding: 12px 28px;
    }

    .footer {
        min-height: 54px;
        padding-left: 108px;
        padding-right: 120px;
        font-size: 16px;
    }
}


/* Kompakter Desktop: Das Bild bleibt vollständig sichtbar und wird nicht mehr beschnitten. */
@media (max-width: 1500px) and (min-width: 961px) {
    .intro {
        grid-template-columns: minmax(300px, .96fr) minmax(280px, 1.04fr);
        gap: clamp(20px, 2.4vw, 36px);
    }

    .hero {
        align-self: start;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        overflow: hidden;
    }

    .hero img {
        object-fit: contain;
        object-position: center top;
    }
}

@media (max-width: 1180px) and (min-width: 961px) {
    :root {
        --sidebar-width: clamp(240px, 22vw, 250px);
    }

    .sidebar {
        padding-left: 24px;
        padding-right: 27px;
    }

    .brand img {
        width: 72px;
    }

    .brand-name {
        font-size: 30px;
    }

    .nav {
        margin-top: 22px;
    }

    .nav a {
        font-size: 13px;
        padding-top: 5px;
        padding-bottom: 8px;
    }

    .sidebar-note {
        display: none;
    }

    .intro {
        grid-template-columns: minmax(330px, 1.15fr) minmax(220px, .85fr);
        gap: 18px;
        padding-left: 24px;
        padding-right: 24px;
    }

    h1 {
        font-size: clamp(40px, 4.2vw, 48px);
    }

    .welcome-text p {
        margin-bottom: 8px;
    }

    .contact {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 26px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-height: 880px) and (min-width: 961px) {
    body {
        font-size: 15px;
    }

    .sidebar {
        padding-top: 17px;
        padding-bottom: 14px;
    }

    .brand img {
        width: 60px;
        margin-bottom: 6px;
    }

    .brand-name {
        font-size: 27px;
    }

    .brand-region {
        margin-top: 5px;
        font-size: 10px;
    }

    .nav {
        margin-top: 14px;
    }

    .nav a {
        padding-top: 3px;
        padding-bottom: 6px;
        font-size: 14px;
    }

    .sidebar-note {
        display: none;
    }

    .intro {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .eyebrow {
        font-size: 10px;
    }

    h1 {
        font-size: clamp(40px, 3.2vw, 48px);
    }

    .hand-line {
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .welcome-text p {
        margin-bottom: 7px;
    }

    .contact {
        padding-top: 5px;
        padding-bottom: 9px;
    }

    h2 {
        font-size: clamp(20px, 1.35vw, 24px);
    }

    .hand-line.small {
        margin-top: 7px;
        margin-bottom: 8px;
    }

    .contact-copy p {
        margin-bottom: 6px;
        line-height: 1.35;
        font-size: 13px;
    }

    .contact-copy address {
        line-height: 1.35;
        font-size: 12px;
    }

    .contact-form {
        gap: 5px;
    }

    .contact-form label {
        font-size: 11px;
    }

    .contact-form input,
    .contact-form textarea {
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 13px;
    }

    .contact-form textarea {
        min-height: 68px;
        max-height: 140px;
        height: 74px;
    }

    .contact-form button {
        font-size: 13px;
        padding: 8px 18px;
    }

    .footer {
        min-height: 30px;
        font-size: 11px;
    }
}

/* Sehr flache Desktopfenster: Menü und Inhalt scrollen als eine gemeinsame Seite.
   Damit gibt es weder eine separate Sidebar- noch eine separate Content-Scrollleiste. */
@media (max-height: 650px) and (min-width: 961px) {

    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .page-shell {
        height: auto;
        min-height: 100dvh;
        align-items: stretch;
    }

    .sidebar {
        position: relative;
        top: auto;
        height: 100%;
        min-height: 100dvh;
        align-self: stretch;
        padding-top: 8px;
        padding-bottom: 8px;
        overflow: visible;
        scrollbar-width: none;
    }

    .sidebar::-webkit-scrollbar {
        display: none;
    }

    .brand img {
        width: 44px;
        margin-bottom: 3px;
    }

    .brand-name {
        font-size: 22px;
        line-height: .88;
    }

    .brand-region {
        margin-top: 3px;
        font-size: 8px;
    }

    .nav {
        margin-top: 7px;
    }

    .nav a {
        padding-top: 2px;
        padding-bottom: 4px;
        font-size: 12px;
    }

    .nav a.active span::after {
        bottom: -4px;
        height: 6px;
    }

    .sidebar-note {
        display: none;
    }

    .content {
        display: block;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .content-scroll {
        display: block;
        min-height: 0;
        overflow: visible;
    }

    .intro {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .contact {
        padding-top: 5px;
        padding-bottom: 8px;
    }

    .footer {
        min-height: 28px;
    }
}

.back-to-top {
    display: none;
}

/* Mobile und Tablet: normaler Seitenfluss statt erzwungener Viewport-Geometrie. */
@media (max-width: 960px) {
    body.menu-open {
        overflow: hidden;
    }

    .mobile-header {
        display: flex;
        height: 74px;
        align-items: center;
        justify-content: space-between;
        padding: 8px 16px;
        position: sticky;
        top: 0;
        z-index: 20;
        color: #fff;
        background-color: var(--green-deep);
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1;
        text-decoration: none;
    }

    .mobile-brand img {
        width: 46px;
        height: auto;
    }

    .mobile-brand span {
        display: grid;
        min-width: 0;
        line-height: 1.02;
    }

    .mobile-brand strong {
        font-family: var(--font-heading);
        font-weight: 400;
        font-size: 24px;
        white-space: nowrap;
    }

    .mobile-brand small {
        color: #d4e34f;
        font-size: 9px;
        letter-spacing: .09em;
        text-transform: uppercase;
        margin-top: 4px;
    }

    .menu-toggle {
        flex: 0 0 auto;
        width: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        padding: 10px;
        display: grid;
        gap: 5px;
        font: inherit;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 27px;
        height: 2px;
        background: #fff;
    }

    .page-shell {
        display: block;
        min-height: auto;
    }

    .sidebar {
        position: fixed;
        inset: 74px 0 0 auto;
        width: min(320px, 88vw);
        height: calc(100dvh - 74px);
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .2s ease, visibility 0s linear .2s;
        z-index: 19;
        box-shadow: -20px 0 50px rgba(0, 0, 0, .15);
        padding: 24px 28px;
        overflow-y: auto;
    }

    .sidebar::after {
        display: none;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .sidebar .brand {
        display: none;
    }

    .nav {
        margin-top: 0;
    }

    .nav a {
        font-size: 15px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .sidebar-note {
        margin-top: 34px;
    }

    .content {
        min-height: 0;
        display: block;
    }

    .content-scroll {
        display: block;
        overflow: visible;
    }

    .intro,
    .contact,
    .footer {
        max-width: none;
    }

    .intro {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 34px 20px 28px;
        gap: 26px;
        align-items: stretch;
    }

    .intro-copy {
        padding: 0;
    }

    .eyebrow {
        font-size: 9px;
    }

    h1 {
        font-size: clamp(34px, 8vw, 42px);
    }

    .welcome-text {
        font-size: 15px;
    }

    /* Unterhalb des Desktop-Breakpoints liegt das Bild unter dem Text.
       Es behält dabei sein echtes 3:2-Format und wird nicht mehr in eine
       feste Höhe gezwungen oder beschnitten. Die Maximalbreite verhindert,
       dass es auf Tablets unnötig dominant wird. */
    .hero {
        align-self: center;
        width: min(100%, 620px);
        min-height: 0;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
        overflow: hidden;
    }

    .hero img {
        object-fit: contain;
        object-position: center;
        opacity: .86;
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .65) 0%, #000 12%, #000 100%);
        mask-image: linear-gradient(to right, rgba(0, 0, 0, .65) 0%, #000 12%, #000 100%);
    }

    .hero::before {
        width: 11px;
    }

    .contact {
        display: block;
        padding: 24px 20px 34px;
    }

    .contact-copy {
        margin-bottom: 18px;
    }

    h2 {
        font-size: clamp(20px, 4.8vw, 23px);
    }

    .contact-copy h2 {
        font-size: 22px;
    }

    .contact-form {
        display: grid;
        padding-top: 0;
    }

    .contact-form textarea {
        min-height: 86px;
        max-height: 180px;
        height: 96px;
    }

    .footer {
        min-height: 64px;
        padding: 16px 20px;
    }

    .back-to-top {
        position: fixed;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        z-index: 18;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, .38);
        border-radius: 50%;
        background: rgba(85, 103, 51, .58);
        color: #fff;
        font: 500 23px/1 Arial, sans-serif;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        cursor: pointer;
        backdrop-filter: blur(2px);
    }

    .back-to-top.is-visible {
        opacity: .68;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
        opacity: .9;
    }

    body.menu-open .back-to-top {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .mobile-header {
        height: 68px;
        padding-left: 12px;
        padding-right: 10px;
    }

    .mobile-brand img {
        width: 42px;
    }

    .mobile-brand strong {
        font-size: 22px;
    }

    .sidebar {
        inset: 68px 0 0 auto;
        height: calc(100dvh - 68px);
    }

    .intro {
        padding: 28px 16px 24px;
        gap: 22px;
    }

    h1 {
        font-size: clamp(32px, 10vw, 38px);
    }

    .hand-line {
        margin-top: 15px;
        margin-bottom: 17px;
    }

    .hero {
        width: 100%;
        min-height: 0;
        height: auto;
        max-height: none;
        aspect-ratio: 3 / 2;
    }

    .contact {
        padding: 22px 16px 30px;
    }

    h2 {
        font-size: 22px;
    }

    .contact-copy h2 {
        font-size: 21px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        display: grid;
        align-items: stretch;
        gap: 10px;
    }

    .form-actions label {
        grid-template-columns: 1fr 76px;
        width: 100%;
    }

    .contact-form button {
        width: 100%;
    }

    .footer {
        padding: 15px 16px;
        display: grid;
        justify-content: start;
        gap: 6px;
    }
}


/* Smartphones im Querformat: Das Bild wird ausgeblendet, damit Inhalt und Kontakt nicht von ihm verdrängt werden. */
@media (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {
    .mobile-header {
        height: 64px;
    }

    .sidebar {
        inset: 64px 0 0 auto;
        height: calc(100dvh - 64px);
    }

    .intro {
        padding-top: 24px;
        padding-bottom: 20px;
        gap: 0;
    }

    .hero {
        display: none;
    }

    .contact {
        padding-top: 18px;
    }
}

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

    .sidebar,
    .back-to-top {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Inhaltsseiten und dynamische Bereiche
   -------------------------------------------------------------------------- */
.brand {
    display: block;
    color: inherit;
    text-decoration: none;
}

.brand-name,
.brand-region {
    display: block;
}

.content-scroll[aria-busy='true'] {
    cursor: progress;
}

.page-loading .content-scroll {
    opacity: .72;
}

.content-scroll {
    transition: opacity .14s ease;
}

.page-section {
    width: 100%;
    max-width: var(--section-max-width);
    min-height: 0;
    justify-self: center;
    padding: clamp(34px, 5dvh, 66px) clamp(38px, 6vw, 108px) clamp(32px, 5dvh, 70px) clamp(38px, 5vw, 92px);
}

.page-section.compact-page {
    min-height: auto;
}

/* Begleitillustrationen der Fachseiten.
   Auf ausreichend breiten Desktopfenstern nutzen sie die freie Fläche rechts.
   Auf kompakteren Desktops, Tablets und Smartphones bleiben sie bewusst weg. */
.page-main {
    min-width: 0;
}

.page-art {
    display: none;
    margin: 0;
    pointer-events: none;
}

@media (min-width: 1281px) {
    .page-section-with-art {
        display: grid;
        grid-template-columns: minmax(0, 980px) minmax(360px, 1fr);
        gap: clamp(42px, 4vw, 76px);
        align-items: start;
    }

    .page-art {
        display: block;
        width: min(100%, 620px);
        justify-self: end;
        align-self: start;
        margin-top: -8px;
    }

    .page-art img {
        display: block;
        width: 100%;
        height: auto;
        max-height: clamp(390px, 55dvh, 650px);
        object-fit: contain;
        object-position: right top;
        opacity: .72;
        filter: saturate(.72) contrast(.90) brightness(1.06);
    }
}

@media (min-width: 2200px) {
    .page-section-with-art {
        grid-template-columns: minmax(0, 1120px) minmax(480px, 1fr);
        gap: 88px;
    }

    .page-art {
        width: min(100%, 720px);
    }

    .page-art img {
        max-height: 760px;
    }
}

@media (min-width: 3200px) {
    .page-section-with-art {
        grid-template-columns: minmax(0, 1320px) minmax(620px, 1fr);
        gap: 110px;
    }

    .page-art {
        width: min(100%, 860px);
    }

    .page-art img {
        max-height: 920px;
    }
}

.page-header {
    margin-bottom: clamp(20px, 3dvh, 34px);
}

.page-header h1 {
    max-width: 100%;
    line-height: .95;
}

.prose {
    max-width: 980px;
    font-size: clamp(14px, .9vw, 17px);
    line-height: 1.67;
}

.prose> :first-child {
    margin-top: 0;
}

.prose> :last-child {
    margin-bottom: 0;
}

.prose p {
    margin: 0 0 1.05em;
}

.prose h2,
.prose h3,
.course-group h2,
.course-registration h2,
.empty-state h2 {
    margin: 1.15em 0 .45em;
    color: #4c5e32;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
}

.prose h2,
.course-group h2,
.course-registration h2,
.empty-state h2 {
    font-size: clamp(20px, 1.35vw, 24px);
}

.prose h3 {
    font-size: clamp(18px, 1.2vw, 22px);
}

.prose ul,
.prose ol {
    margin: .5em 0 1.2em;
    padding-left: 1.45em;
}

.prose li {
    padding: .16em 0;
}

.prose blockquote {
    margin: 1.2em 0;
    padding: .45em 0 .45em 1.2em;
    border-left: 4px solid rgba(111, 128, 55, .55);
    color: #52584d;
}

.text-link,
.prose a {
    color: #4d642c;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.small-note {
    font-size: .88em;
    color: #65695f;
}

.current-content ul {
    padding-left: 1.3em;
}

.current-content li {
    padding: .35em 0;
}

.timeline {
    display: grid;
    gap: 0;
    margin: 1.4em 0;
}

.timeline>div {
    display: grid;
    grid-template-columns: minmax(115px, 150px) minmax(0, 1fr);
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(83, 100, 47, .15);
}

.timeline dt {
    font-weight: 800;
    color: #52632f;
}

.timeline dd {
    margin: 0;
}

.contact-details {
    font-size: 16px;
}

.form-status {
    padding: 9px 11px;
    border: 1px solid rgba(83, 100, 47, .24);
    background: rgba(255, 255, 255, .38);
    font-size: 12px;
}

.form-status p {
    margin: 0;
}

.form-status p+p {
    margin-top: 4px;
}

.form-status.error {
    border-color: rgba(152, 61, 51, .34);
    background: rgba(184, 78, 65, .09);
    color: #7c3129;
}

.form-status.notice {
    border-color: rgba(77, 103, 44, .34);
    background: rgba(111, 128, 55, .10);
    color: #405627;
}

.contact-form button:disabled,
.course-form button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Kurse */
.course-page {
    min-height: auto;
}

.course-intro {
    margin-bottom: 28px;
}

.course-list {
    display: grid;
    gap: 28px;
}

.course-group h2 {
    margin-top: 0;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.course-card {
    min-width: 0;
    padding: 19px;
    border: 1px solid rgba(83, 100, 47, .21);
    background: rgba(255, 255, 255, .24);
    box-shadow: 0 4px 14px rgba(54, 61, 45, .04);
}

.course-card.sold-out {
    opacity: .72;
}

.course-card h3 {
    margin: 0 0 13px;
    color: #4b5d31;
    font-size: 17px;
}

.course-card dl {
    display: grid;
    gap: 6px;
    margin: 0 0 15px;
}

.course-card dl div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
}

.course-card dt {
    color: #71766c;
}

.course-card dd {
    margin: 0;
    font-weight: 700;
}

.course-note {
    margin: 0 0 14px;
    color: #60655b;
    font-size: 13px;
}

.course-card button,
.course-form button {
    border: 0;
    background: var(--green-deep);
    color: #fff;
    padding: 9px 16px;
    font: 600 13px var(--font-body);
    cursor: pointer;
}

.course-card button:hover,
.course-form button:hover {
    background: #465527;
}

.course-card button:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.empty-state {
    padding: 22px;
    border: 1px dashed rgba(83, 100, 47, .28);
    background: rgba(255, 255, 255, .18);
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    margin-bottom: 0;
}

.course-registration {
    max-width: 980px;
    margin-top: 38px;
    padding-top: 12px;
    border-top: 1px solid rgba(83, 100, 47, .18);
    scroll-margin-top: 18px;
}

.course-registration h2 {
    margin-top: .65em;
}

.course-form {
    display: grid;
    gap: 10px;
    max-width: 820px;
}

.course-form label {
    display: grid;
    gap: 4px;
    color: #4b5147;
    font-size: 12px;
    font-weight: 600;
}

.course-form label span {
    color: var(--muted);
    font-weight: 400;
}

.course-form input,
.course-form textarea,
.course-form select {
    width: 100%;
    border: 1px solid rgba(83, 100, 47, .22);
    background: rgba(255, 255, 255, .30);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    padding: 8px 9px;
    border-radius: 1px;
    outline: none;
}

.course-form input:focus,
.course-form textarea:focus,
.course-form select:focus {
    border-color: var(--green);
    background: rgba(255, 255, 255, .46);
    box-shadow: 0 0 0 2px rgba(111, 128, 55, .07);
}

.course-form textarea {
    min-height: 90px;
    max-height: 240px;
    resize: vertical;
}

.course-form .form-actions {
    margin-top: 4px;
}

.legal-page .prose {
    max-width: 1050px;
}

.legal-page .prose h2 {
    font-size: clamp(20px, 1.35vw, 24px);
}

@media (max-width: 960px) {
    .page-section {
        min-height: 0;
        padding: 34px 24px 42px;
    }

    .page-header {
        margin-bottom: 22px;
    }

    .prose {
        font-size: 15px;
        line-height: 1.62;
    }

    .timeline>div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .course-cards {
        grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    }

    .course-registration {
        scroll-margin-top: 84px;
    }
}

@media (max-width: 560px) {
    .page-section {
        padding: 28px 16px 36px;
    }

    .page-header h1 {
        font-size: clamp(32px, 10vw, 38px);
    }

    .course-cards {
        grid-template-columns: 1fr;
    }

    .course-card {
        padding: 16px;
    }

    .course-card dl div {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .course-form .form-actions {
        display: grid;
    }

    .course-form .form-actions label {
        grid-template-columns: 1fr 76px;
    }

    .course-form button {
        width: 100%;
    }
}