@font-face {
    font-family: "Lato";
    src: url("../fonts/lato-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/lato-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/lato-900.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --green-950: #0a2417;
    --green-850: #123c25;
    --green-700: #176b3a;
    --green-600: #24834a;
    --green-100: #eaf6ee;
    --gold-500: #c8a53a;
    --ink: #18221c;
    --muted: #68736d;
    --line: #dbe3de;
    --paper: #f7faf8;
    --white: #ffffff;
    --danger: #b3261e;
    --shadow: 0 18px 45px rgba(14, 43, 27, .13);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--green-700);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 12px 5vw;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    color: var(--ink);
    text-decoration: none;
}

.brand img,
.brand-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: var(--green-700);
    color: var(--white);
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.25;
}

.main-nav > ul,
.main-nav li,
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--green-100);
    color: var(--green-700);
}

.main-nav li ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    display: none;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
    display: block;
}

.main-nav li ul a {
    width: 100%;
    justify-content: flex-start;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--green-950);
    box-shadow: 0 12px 26px rgba(7, 31, 23, .18);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.hero,
.page-hero {
    background-color: var(--green-850);
    background-image: linear-gradient(90deg, rgba(10, 36, 23, .88), rgba(10, 36, 23, .58)), var(--hero-image);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-home {
    min-height: 58vh;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    width: min(1120px, 90vw);
    padding: 80px 0 70px;
    margin: 0 auto;
}

.page-hero > div {
    width: min(1000px, 90vw);
    padding: 62px 0 58px;
    margin: 0 auto;
}

.kicker {
    margin: 0 0 10px;
    color: var(--gold-500);
    font-size: .86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: 3.4rem;
    line-height: 1.02;
    font-weight: 900;
}

.page-hero h1 {
    font-size: 2.7rem;
}

.hero p:not(.kicker),
.page-hero p:not(.kicker) {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button,
button.button,
.button-light,
.button-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--green-700);
    border-radius: 8px;
    background: var(--green-700);
    color: var(--white);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

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

.button-secondary {
    background: var(--white);
    color: var(--green-700);
}

.button-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--green-850);
}

.button-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .72);
    color: var(--white);
}

.content-shell {
    width: min(1060px, 90vw);
    margin: 48px auto 72px;
}

.rich-content {
    padding: 0;
}

.rich-content > *:first-child {
    margin-top: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
    line-height: 1.18;
    color: var(--green-850);
}

.rich-content h1 {
    font-size: 2.1rem;
}

.rich-content h2 {
    margin-top: 38px;
    font-size: 1.7rem;
}

.rich-content h3 {
    font-size: 1.25rem;
}

.rich-content p,
.rich-content ul,
.rich-content ol {
    max-width: 78ch;
}

.rich-content figure {
    margin: 24px 0;
}

.rich-content img {
    border-radius: 8px;
    background: var(--green-100);
}

.rich-content a:has(img) {
    display: inline-block;
    text-decoration: none;
}

.rich-content div:has(> a > img),
.rich-content div:has(> img) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: start;
}

.rich-content div:has(> a > img) img,
.rich-content div:has(> img) img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    overflow: hidden;
}

.rich-content th,
.rich-content td {
    padding: 12px;
    border: 1px solid var(--line);
    vertical-align: top;
}

.rich-content th {
    background: var(--green-100);
    color: var(--green-850);
    text-align: left;
}

.contact-box {
    margin-top: 26px;
    padding: 28px;
    background: var(--green-100);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-box h2 {
    margin: 0 0 18px;
    color: var(--green-850);
}

.contact-form,
.admin-form,
.media-upload {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.flash-wrap {
    position: fixed;
    right: 20px;
    top: 92px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.flash {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--green-850);
    color: var(--white);
    box-shadow: var(--shadow);
}

.flash-error {
    background: var(--danger);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 5vw;
    background: var(--green-950);
    color: var(--white);
}

.site-footer p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .72);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-footer a {
    color: var(--white);
}

.admin-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: #eef3ef;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
    background: var(--green-950);
    color: var(--white);
}

.admin-brand {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
}

.admin-sidebar nav {
    display: grid;
    gap: 6px;
}

.admin-sidebar a,
.admin-sidebar button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar button:hover {
    background: rgba(255, 255, 255, .12);
}

.admin-sidebar form {
    margin-top: auto;
}

.admin-main {
    width: min(1200px, calc(100vw - 250px));
    padding: 34px;
}

.admin-login-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(430px, 100%);
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-panel h1 {
    margin: 0 0 18px;
}

.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-head h1 {
    margin: 0;
    color: var(--green-850);
    font-size: 2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-grid article,
.admin-panel,
.media-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(19, 44, 28, .07);
}

.stat-grid article {
    padding: 22px;
}

.stat-grid strong {
    display: block;
    color: var(--green-700);
    font-size: 2rem;
    line-height: 1;
}

.stat-grid span {
    color: var(--muted);
    font-weight: 700;
}

.admin-panel {
    padding: 22px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-panel h2,
.mini-media h2 {
    margin: 0;
    color: var(--green-850);
    font-size: 1.2rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

td small {
    display: block;
    color: var(--muted);
}

.text-button {
    font-weight: 900;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.editor-main,
.editor-side {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.field-hint {
    margin: -2px 0 4px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.45;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-toolbar button,
.delete-form button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.editor-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(0, 43, 29, .08);
}

.editor-wrap .editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    gap: 6px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.editor-wrap .editor-btn {
    min-height: 36px;
    padding: 7px 10px;
    border-color: #cfded5;
    border-radius: 7px;
    background: #f8fbf9;
    color: var(--green-850);
    font-size: .92rem;
}

.editor-wrap .editor-btn:hover,
.editor-wrap .editor-btn:focus-visible {
    border-color: var(--green-700);
    background: var(--green-100);
}

.editor-sep {
    width: 1px;
    height: 24px;
    margin: 0 2px;
    background: var(--line);
}

.editor-canvas {
    min-height: 560px;
    max-height: 72vh;
    overflow: auto;
    padding: 26px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(25, 126, 77, .14), rgba(203, 151, 38, .16)) border-box;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    outline: none;
}

.editor-canvas:focus {
    box-shadow: inset 0 0 0 2px rgba(25, 126, 77, .3);
}

.editor-canvas.is-dragover {
    background: #eef8f1;
    box-shadow: inset 0 0 0 2px var(--green-700);
}

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

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

.editor-canvas h2,
.editor-canvas h3 {
    margin: 1.25em 0 .45em;
    color: var(--green-900);
    line-height: 1.14;
}

.editor-canvas p,
.editor-canvas ul,
.editor-canvas ol,
.editor-canvas blockquote,
.editor-canvas figure {
    margin: 0 0 1em;
}

.editor-canvas ul,
.editor-canvas ol {
    padding-left: 1.35em;
}

.editor-canvas blockquote {
    padding: 12px 16px;
    border-left: 4px solid var(--gold);
    background: var(--green-100);
}

.editor-canvas figure {
    display: grid;
    gap: 8px;
}

.editor-canvas img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.editor-canvas table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.editor-canvas .editor-error {
    color: var(--danger);
    font-weight: 800;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
    min-height: auto;
}

.mini-media {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-media h2 {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.mini-media .field-hint {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.mini-media button {
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    cursor: pointer;
}

.mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-media span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--green-850);
    font-weight: 900;
}

.delete-form {
    margin-top: 18px;
}

.delete-form button {
    color: var(--danger);
}

.media-upload {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.media-grid article {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.media-grid img,
.file-tile {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    background: var(--green-100);
}

.file-tile {
    display: grid;
    place-items: center;
    color: var(--green-850);
    font-size: 1.6rem;
    font-weight: 900;
}

.media-grid input {
    font-size: .85rem;
}

.message-list {
    display: grid;
    gap: 16px;
}

.message-list article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.message-list article.is-read {
    opacity: .72;
}

.message-list header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.message-list strong,
.message-list a,
.message-list time {
    display: block;
}

@media (max-width: 1080px) {
    .site-header {
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
        margin-top: 5px;
    }

    .main-nav {
        position: absolute;
        left: 5vw;
        right: 5vw;
        top: 72px;
        display: none;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav > ul {
        display: grid;
        gap: 4px;
    }

    .main-nav li ul {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 14px;
        border: 0;
        box-shadow: none;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-main {
        width: 100%;
    }

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

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

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: .92rem;
    }

    .brand small {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-overlay,
    .page-hero > div {
        padding: 48px 0;
    }

    .content-shell {
        width: min(94vw, 1060px);
        margin-top: 28px;
    }

    .contact-box,
    .admin-panel {
        padding: 18px;
    }

    .site-footer,
    .admin-head,
    .message-list header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid,
    .media-upload {
        grid-template-columns: 1fr;
    }
}

/* Modern public theme overrides */
:root {
    --green-950: #071f17;
    --green-900: #0d2c20;
    --green-800: #164633;
    --green-700: #1d7145;
    --green-600: #2a8a55;
    --green-100: #e8f3ec;
    --gold-500: #c49a2c;
    --red-700: #a62822;
    --ink: #17211b;
    --muted: #637067;
    --line: #d8e1da;
    --paper: #f3f5f0;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(16, 34, 24, .14);
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, var(--paper) 420px),
        var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

.site-header {
    min-height: 84px;
    padding: 14px clamp(22px, 4vw, 70px);
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(216, 225, 218, .86);
    box-shadow: 0 16px 50px rgba(11, 35, 23, .06);
}

.brand {
    gap: 14px;
    min-width: 280px;
}

.brand img,
.brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(8, 34, 20, .12);
}

.brand strong {
    font-size: 1.08rem;
    font-weight: 900;
}

.brand small {
    color: var(--green-700);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.main-nav > ul {
    gap: 2px;
}

.main-nav a {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #24322a;
    font-size: .84rem;
    font-weight: 900;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: #eef5f0;
    color: var(--green-700);
}

.main-nav li ul {
    min-width: 260px;
    padding: 10px;
    border: 1px solid rgba(216, 225, 218, .94);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(9, 27, 18, .18);
}

.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--green-950);
    background-image:
        linear-gradient(90deg, rgba(7, 31, 23, .9) 0%, rgba(7, 31, 23, .72) 42%, rgba(7, 31, 23, .28) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--green-700), var(--gold-500), var(--red-700));
    z-index: -1;
}

.hero-home {
    min-height: clamp(560px, 68vh, 760px);
}

.hero-overlay {
    width: min(1180px, calc(100vw - 44px));
    padding: clamp(92px, 12vw, 150px) 0 clamp(72px, 9vw, 110px);
}

.page-hero > div {
    width: min(1080px, calc(100vw - 44px));
    padding: clamp(76px, 9vw, 124px) 0 clamp(66px, 8vw, 96px);
}

.kicker {
    margin-bottom: 13px;
    color: var(--gold-500);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
    max-width: 780px;
    font-size: clamp(3rem, 6.1vw, 5.35rem);
    line-height: .98;
    font-weight: 900;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero h1 span {
    display: block;
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.hero p:not(.kicker),
.page-hero p:not(.kicker) {
    max-width: 740px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.04rem, 1.6vw, 1.24rem);
    line-height: 1.55;
}

.hero-actions {
    margin-top: 34px;
}

.button,
button.button,
.button-light,
.button-outline-light {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 7px;
    font-size: .95rem;
    box-shadow: 0 12px 26px rgba(10, 36, 23, .14);
}

.button-light {
    color: var(--green-950);
}

.button-outline-light {
    box-shadow: none;
}

.content-shell {
    width: min(1160px, calc(100vw - 44px));
    margin: clamp(42px, 6vw, 74px) auto clamp(70px, 8vw, 110px);
}

.section-heading {
    display: grid;
    gap: 8px;
    margin: 52px 0 24px;
}

.section-heading h2 {
    max-width: 900px;
    margin: 0;
    color: var(--green-950);
    font-size: clamp(2rem, 3.6vw, 3.05rem);
    line-height: 1.04;
    font-weight: 900;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.home-intro {
    max-width: 840px;
    margin: 0 auto 48px;
    padding: 30px 0 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-intro h1,
.home-intro h2,
.home-intro h3 {
    color: var(--green-950);
}

.home-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.home-intro h3 {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.45;
}

.home-feature-pages {
    margin: 0 0 clamp(44px, 6vw, 76px);
}

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

.home-tile-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 158px;
    overflow: hidden;
    border: 1px solid rgba(216, 225, 218, .95);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(17, 42, 26, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-tile-card:hover {
    border-color: rgba(29, 113, 69, .4);
    box-shadow: 0 22px 50px rgba(17, 42, 26, .13);
    transform: translateY(-2px);
}

.home-tile-media {
    display: block;
    min-height: 100%;
    background: #dfe8e1;
}

.home-tile-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 158px;
    object-fit: cover;
}

.home-tile-placeholder {
    display: grid;
    place-items: center;
    background: var(--green-100);
    color: var(--green-850);
    font-size: 2.4rem;
    font-weight: 900;
}

.home-tile-body {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: 20px;
}

.home-tile-label {
    color: var(--gold-500);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-tile-body strong {
    color: var(--green-950);
    font-size: 1.28rem;
    line-height: 1.15;
    font-weight: 900;
    overflow-wrap: break-word;
}

.home-tile-body span:last-child {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.news-card {
    grid-column: span 4;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(216, 225, 218, .95);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(17, 42, 26, .08);
}

.news-card-featured {
    grid-column: span 8;
}

.news-card-media {
    background: #dfe8e1;
}

.news-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #e4ece6;
}

.news-card-featured .news-card-media img {
    aspect-ratio: 16 / 8;
}

.news-card-body {
    display: grid;
    gap: 12px;
    padding: clamp(20px, 2.8vw, 30px);
}

.news-card h3 {
    margin: 0;
    color: var(--green-950);
    font-size: clamp(1.32rem, 1.55vw, 1.72rem);
    line-height: 1.12;
    font-weight: 900;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.news-card-featured h3 {
    font-size: clamp(1.55rem, 2vw, 2.05rem);
}

.news-card .rich-content {
    font-size: .97rem;
    line-height: 1.62;
}

.news-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    margin: 0;
    color: #33443a;
    font-size: .98rem;
    line-height: 1.58;
}

.news-card-featured .news-card-excerpt {
    -webkit-line-clamp: 4;
}

.news-card-detail {
    margin-top: 2px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.news-card-detail summary {
    color: var(--green-700);
    font-size: .9rem;
    font-weight: 900;
    cursor: pointer;
}

.news-card-detail .rich-content {
    margin-top: 14px;
    overflow: hidden;
}

.news-card-detail .rich-content > div,
.news-card-detail .rich-content > p,
.news-card-detail .rich-content > ul,
.news-card-detail .rich-content > ol {
    max-width: 100%;
}

.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.news-detail-gallery figure {
    margin: 0;
}

.news-detail-gallery img {
    width: 100%;
    height: auto;
    max-height: 260px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 7px;
    box-shadow: none;
}

.news-detail-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.news-detail-copy > div {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.news-detail-copy * {
    max-width: 100%;
    min-width: 0;
}

.news-detail-copy p,
.news-detail-copy .rich-content p {
    max-width: 100%;
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.news-detail-copy span {
    display: inline;
}

.news-card .rich-content > *:last-child {
    margin-bottom: 0;
}

.news-card .rich-content img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.news-card-detail .rich-content div:has(> a > img),
.news-card-detail .rich-content div:has(> img),
.news-card-detail .rich-content ul:has(img) {
    display: block;
}

.page-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
}

.page-subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 960px;
    margin: -22px auto 34px;
}

.page-subnav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--green-850);
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(17, 42, 26, .07);
}

.page-subnav a:hover,
.page-subnav a:focus-visible {
    border-color: rgba(29, 113, 69, .4);
    color: var(--green-700);
}

.shop-page {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.shop-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.shop-intro h2 {
    max-width: 620px;
    margin: 0;
    color: var(--green-950);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
    font-weight: 900;
    text-wrap: balance;
}

.shop-copy {
    color: #33443a;
    font-size: .98rem;
    line-height: 1.55;
}

.shop-copy p {
    margin: 0;
}

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

.product-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(216, 225, 218, .95);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(17, 42, 26, .08);
}

.product-media {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 18px;
    background: #eef6f1;
}

.product-media img {
    width: 100%;
    height: 260px;
    max-width: 360px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(17, 42, 26, .12));
}

.product-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
}

.product-body h3 {
    margin: 0;
    color: var(--green-950);
    font-size: 1.15rem;
    line-height: 1.18;
    font-weight: 900;
}

.product-body p {
    margin: 0;
    color: var(--green-700);
    font-size: 1.05rem;
    font-weight: 900;
    white-space: nowrap;
}

.rich-content {
    color: #26342b;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
    color: var(--green-950);
    font-weight: 900;
}

.rich-content h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.rich-content h2 {
    margin: 44px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.rich-content h3 {
    margin: 28px 0 12px;
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    line-height: 1.22;
}

.rich-content p,
.rich-content li {
    color: #2c3931;
}

.rich-content p,
.rich-content ul,
.rich-content ol {
    max-width: 76ch;
}

.rich-content p {
    margin: 0 0 1.05em;
}

.rich-content a:not(:has(img)) {
    font-weight: 900;
}

.rich-content figure {
    margin: 28px 0;
}

.rich-content img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(820px, 82vh);
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 18px 45px rgba(17, 42, 26, .1);
}

.rich-content div:has(> a > img),
.rich-content div:has(> img),
.rich-content ul:has(img) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: stretch;
    padding: 0;
    list-style: none;
}

.rich-content div:has(> a > img) img,
.rich-content div:has(> img) img,
.rich-content ul:has(img) img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.contact-box {
    max-width: 820px;
    margin: 38px auto 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(17, 42, 26, .08);
}

.site-footer {
    padding: 42px clamp(22px, 5vw, 74px);
    background: var(--green-950);
}

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

    .news-card,
    .news-card-featured {
        grid-column: auto;
    }
}

@media (max-width: 980px) {
    .shop-intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .site-header {
        min-height: 76px;
        align-items: center;
        padding-right: 78px;
    }

    .nav-toggle {
        position: absolute;
        top: 16px;
        right: 18px;
        display: block;
        flex: 0 0 44px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-nav {
        top: 76px;
        left: 22px;
        right: 22px;
    }

    .main-nav a {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .site-header {
        padding: 10px 18px;
        width: 100vw;
        max-width: 100vw;
    }

    .nav-toggle {
        position: static;
        margin-left: auto;
        z-index: 100;
    }

    .brand img,
    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand strong {
        max-width: 210px;
        font-size: .9rem;
        overflow-wrap: anywhere;
    }

    .hero-home {
        min-height: 520px;
    }

    .hero-overlay,
    .page-hero > div,
    .content-shell {
        width: auto;
        max-width: none;
        margin-right: 16px;
        margin-left: 16px;
    }

    .hero h1,
    .page-hero h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 10vw, 2.85rem);
    }

    .hero p:not(.kicker),
    .page-hero p:not(.kicker),
    .home-intro h3,
    .rich-content p,
    .rich-content li {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .home-intro h1,
    .section-heading h2 {
        max-width: 100%;
        font-size: clamp(1.65rem, 7.5vw, 2.05rem);
    }

    .home-intro h1 {
        overflow-wrap: normal;
        hyphens: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .news-card-featured {
        grid-column: auto;
    }

    .news-card {
        grid-column: auto;
        min-width: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 34px;
    }

    .home-intro {
        margin-bottom: 34px;
    }

    .news-card-media img,
    .news-card-featured .news-card-media img {
        aspect-ratio: 4 / 3;
    }

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

    .product-media,
    .product-media img {
        min-height: 250px;
        height: 250px;
    }

    .product-media img {
        max-width: min(320px, 86vw);
    }

    .product-body {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .page-subnav {
        justify-content: flex-start;
        margin-top: -10px;
    }

    .rich-content div:has(> a > img),
    .rich-content div:has(> img),
    .rich-content ul:has(img) {
        grid-template-columns: 1fr;
    }
}

/* Modern admin theme */
.admin-body {
    grid-template-columns: 280px minmax(0, 1fr);
    background: linear-gradient(180deg, #f7f9f5 0%, #eef4ef 100%);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    gap: 18px;
    padding: 20px 18px;
    background: #062116;
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 18px 0 50px rgba(6, 33, 22, .14);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px;
    border-radius: 14px;
    color: var(--white);
    text-decoration: none;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: var(--white);
    color: var(--green-900);
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-size: 1.05rem;
    line-height: 1.15;
}

.admin-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    font-size: .78rem;
    line-height: 1.25;
}

.admin-sidebar nav {
    gap: 5px;
}

.admin-sidebar a,
.admin-sidebar button {
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: .96rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar a:hover,
.admin-sidebar button:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--white);
}

.admin-sidebar a.is-active {
    background: var(--white);
    color: var(--green-950);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .2);
}

.admin-sidebar form {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.admin-main {
    width: min(1380px, calc(100vw - 280px));
    padding: clamp(30px, 3.2vw, 52px);
}

.admin-login-main {
    grid-column: 1 / -1;
}

.admin-head {
    align-items: flex-end;
    margin-bottom: 28px;
}

.admin-head h1 {
    color: var(--green-900);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    line-height: 1.04;
}

.admin-head .kicker {
    margin-bottom: 9px;
}

.admin-head-copy {
    max-width: 560px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.admin-head .button,
.admin-form .button,
.media-upload .button {
    min-height: 46px;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(23, 107, 58, .2);
}

.admin-panel,
.stat-grid article,
.media-grid article {
    border: 1px solid rgba(14, 43, 27, .08);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(19, 44, 28, .08);
}

.admin-panel {
    padding: 24px;
}

.admin-panel-head {
    margin-bottom: 18px;
}

.admin-panel-head h2 {
    font-size: 1.15rem;
}

.admin-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.stat-grid article {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: linear-gradient(180deg, var(--white), #fbfdfb);
}

.stat-grid article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--gold-500);
}

.stat-grid strong {
    color: var(--green-900);
}

.admin-list-panel {
    overflow: hidden;
    padding: 0;
}

.admin-list-panel .admin-panel-head {
    align-items: end;
    margin: 0;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(14, 43, 27, .08);
    background: rgba(255, 255, 255, .72);
}

.admin-search {
    min-width: min(310px, 100%);
    gap: 6px;
    color: var(--muted);
    font-size: .85rem;
}

.admin-search input {
    min-height: 42px;
    border-radius: 999px;
    background: #f8faf7;
    font-weight: 700;
}

.admin-search input:focus {
    border-color: var(--green-700);
    outline: 3px solid rgba(29, 113, 69, .14);
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    padding: 13px 24px;
    background: #f8faf7;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table td {
    padding: 17px 24px;
    border-bottom: 1px solid rgba(14, 43, 27, .08);
}

.admin-table tbody tr {
    transition: background-color .16s ease;
}

.admin-table tbody tr:hover {
    background: #fbfdfb;
}

.page-title-cell strong {
    display: block;
    color: var(--green-900);
    font-size: 1.02rem;
    line-height: 1.25;
}

.page-title-cell small {
    margin-top: 4px;
    font-size: .88rem;
    line-height: 1.35;
}

.page-url {
    display: inline-flex;
    max-width: 330px;
    overflow-wrap: anywhere;
    color: var(--green-700);
    font-weight: 900;
}

.admin-tag,
.status-pill,
.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-tag {
    padding: 6px 10px;
    background: #f1f5f1;
    color: #4f5f56;
}

.status-pill {
    padding: 7px 10px;
}

.status-pill.is-published {
    background: #e5f5eb;
    color: #106438;
}

.status-pill.is-draft {
    background: #fff5d9;
    color: #826018;
}

.admin-actions {
    text-align: right;
}

.action-link {
    padding: 8px 12px;
    background: var(--green-700);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(23, 107, 58, .18);
}

.action-link:hover {
    background: var(--green-900);
    color: var(--white);
}

.text-button {
    color: var(--green-700);
}

.editor-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.editor-wrap {
    border-radius: 14px;
}

.editor-canvas {
    min-height: 600px;
    padding: 30px;
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.delete-form-inline {
    margin: 0;
}

.button-danger,
.delete-form-inline .button-danger {
    border-color: #f0c4c0;
    background: #fff8f7;
    color: var(--danger);
    box-shadow: none;
}

.button-danger:hover,
.delete-form-inline .button-danger:hover {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--white);
}

.page-editor-grid {
    grid-template-columns: minmax(640px, 1fr) minmax(340px, 380px);
    gap: 24px;
}

.editor-content-panel {
    gap: 18px;
    padding: 26px;
}

.editor-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 2px;
}

.editor-panel-head h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 1.16rem;
    line-height: 1.2;
}

.editor-panel-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .91rem;
    font-weight: 700;
    line-height: 1.4;
}

.editor-panel-head > a {
    color: var(--green-700);
    font-size: .9rem;
    font-weight: 900;
}

.editor-side {
    position: static;
    align-self: start;
    display: grid;
    gap: 16px;
}

.editor-side .admin-panel {
    padding: 20px;
}

.editor-status-panel {
    background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

.editor-status-panel .editor-panel-head {
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(14, 43, 27, .08);
}

.editor-status-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.editor-status-actions .button {
    width: 100%;
}

.editor-settings-panel {
    display: grid;
    gap: 14px;
}

.editor-two-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(96px, .75fr);
    gap: 12px;
}

.input-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.input-action-row .button {
    min-height: 44px;
    box-shadow: none;
}

.editor-media-panel {
    padding-bottom: 16px;
}

.editor-media-panel .editor-panel-head {
    align-items: flex-start;
    margin-bottom: 12px;
}

.editor-media-panel > .button {
    width: 100%;
}

.media-modal-open {
    overflow: hidden;
}

.media-modal[hidden] {
    display: none;
}

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 28px;
}

.media-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 33, 22, .58);
    backdrop-filter: blur(10px);
}

.media-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(1040px, calc(100vw - 44px));
    max-height: min(860px, calc(100vh - 44px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}

.media-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(14, 43, 27, .08);
}

.media-dialog-head h2 {
    margin: 0;
    color: var(--green-900);
    font-size: 1.55rem;
    line-height: 1.1;
}

.media-dialog-head p:not(.kicker) {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.media-dialog-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #f8faf7;
    color: var(--green-900);
    font: inherit;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.media-upload-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px 26px;
    border-bottom: 1px solid rgba(14, 43, 27, .08);
    background: #f8faf7;
}

.media-upload-panel .button {
    min-height: 44px;
}

.media-upload-status {
    grid-column: 1 / -1;
    min-height: 20px;
    margin: -4px 0 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    grid-auto-rows: 128px;
    align-items: stretch;
    gap: 14px;
    overflow-y: auto;
    padding: 22px 26px 26px;
}

.media-picker-item {
    position: relative;
    display: block;
    width: 100%;
    height: 128px;
    min-height: 128px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 42, 26, .08);
}

.media-picker-item:hover,
.media-picker-item:focus-visible {
    border-color: var(--green-700);
    outline: 3px solid rgba(29, 113, 69, .14);
}

.media-picker-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.media-picker-item span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--green-850);
    font-weight: 900;
}

@media (max-width: 1080px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        padding: 16px;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .admin-sidebar form {
        margin-top: 0;
    }

    .admin-main {
        width: 100%;
        padding: 26px 18px 42px;
    }

    .editor-grid,
    .page-editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-side {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 720px) {
    .admin-head,
    .admin-list-panel .admin-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-head .button {
        width: 100%;
    }

    .admin-head-actions,
    .delete-form-inline {
        width: 100%;
    }

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

    .admin-table {
        min-width: 820px;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-list-panel {
        padding: 0;
    }

    .editor-canvas {
        min-height: 460px;
        padding: 22px;
    }

    .editor-two-fields {
        grid-template-columns: 1fr;
    }

    .editor-media-panel .mini-media {
        max-height: none;
    }

    .input-action-row,
    .media-upload-panel {
        grid-template-columns: 1fr;
    }

    .media-modal {
        padding: 12px;
    }

    .media-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .media-dialog-head,
    .media-upload-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .media-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 132px;
        padding: 18px;
    }

    .media-picker-item {
        height: 132px;
        min-height: 132px;
    }
}

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

@media (max-width: 720px) {
    .home-tile-grid {
        grid-template-columns: 1fr;
    }

    .home-tile-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 138px;
    }

    .home-tile-media img {
        min-height: 138px;
    }

    .home-tile-body {
        padding: 16px;
    }
}

/* =========================================================================
 * MODERNISIERUNG: Motion, Galerien, Lightbox, Mobil (2026)
 * additive Ebene – überschreibt bewusst frühere Regeln am Dateiende
 * ====================================================================== */

:root {
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: .28s;
    --shadow-sm: 0 8px 22px rgba(16, 34, 24, .10);
    --shadow-lg: 0 30px 70px rgba(9, 28, 19, .30);
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

/* ---- Scroll-Reveal (nur mit aktivem JS, damit ohne JS nichts verborgen bleibt) ---- */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---- Sticky-Header schrumpft beim Scrollen ---- */
.site-header {
    transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease),
        background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header .brand img,
.site-header .brand-mark {
    transition: width var(--dur) var(--ease), height var(--dur) var(--ease), flex-basis var(--dur) var(--ease);
}

.site-header.is-scrolled {
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 34px rgba(11, 35, 23, .13);
}

.site-header.is-scrolled .brand img,
.site-header.is-scrolled .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

/* ---- Menü-Dropdown + Burger-Animation ---- */
.main-nav {
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav-toggle span {
    transition: transform .32s var(--ease), opacity .2s var(--ease);
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Micro-Interactions: Buttons & Karten ---- */
.button {
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
        transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.news-card {
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* =====================  FOTO-GALERIEN  ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

.gallery-grid .gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: var(--green-100);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    cursor: zoom-in;
}

.gallery-grid .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    box-shadow: none;
    transition: transform .55s var(--ease);
}

.gallery-grid .gallery-item:hover img,
.gallery-grid .gallery-item:focus-visible img {
    transform: scale(1.06);
}

/* Verlauf + Lupe beim Hover */
.gallery-grid .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 31, 23, .5), rgba(7, 31, 23, 0) 55%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}

.gallery-grid .gallery-item::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -42%) scale(.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176b3a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: 0 10px 26px rgba(7, 31, 23, .35);
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.gallery-grid .gallery-item:hover::after,
.gallery-grid .gallery-item:focus-visible::after {
    opacity: 1;
}

.gallery-grid .gallery-item:hover::before,
.gallery-grid .gallery-item:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-grid .gallery-item:focus-visible {
    outline: 3px solid rgba(29, 113, 69, .55);
    outline-offset: 3px;
}

/* News-Detail-Galerie erbt das Grid-Verhalten */
.news-detail-gallery.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin: 0 0 18px;
}

/* =====================  LIGHTBOX  ===================== */
.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 40px);
    opacity: 0;
    transition: opacity .24s var(--ease);
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 22, 15, .92);
    backdrop-filter: blur(6px);
}

.lightbox-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    max-width: min(1200px, 94vw);
}

.lightbox-image {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: scale(.96);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.lightbox.is-open .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox.is-loading .lightbox-image {
    opacity: .35;
}

.lightbox-caption {
    max-width: 60ch;
    color: rgba(255, 255, 255, .9);
    font-size: .95rem;
    text-align: center;
}

.lightbox-counter {
    position: absolute;
    z-index: 2;
    top: clamp(14px, 3vw, 26px);
    left: clamp(16px, 3vw, 30px);
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 900;
    letter-spacing: .05em;
    font-size: .85rem;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    background: rgba(255, 255, 255, .26);
    outline: none;
}

.lightbox-close {
    top: clamp(12px, 3vw, 24px);
    right: clamp(12px, 3vw, 24px);
    font-size: 2.3rem;
}

.lightbox-prev {
    top: 50%;
    left: clamp(10px, 2vw, 28px);
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: clamp(10px, 2vw, 28px);
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* =====================  MOBIL-VERFEINERUNG + NAV-FIX  ===================== */
@media (max-width: 1080px) {
    body.nav-open {
        overflow: hidden;
    }

    .main-nav a {
        min-height: 44px;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-wrap: nowrap;
        gap: 12px;
    }

    /* Nav-Bug-Fix: Brand darf schrumpfen, Toggle bleibt immer sichtbar */
    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand strong {
        overflow-wrap: anywhere;
    }

    .nav-toggle {
        flex: 0 0 44px;
    }

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

    .site-footer a {
        display: inline-block;
        padding: 6px 0;
    }

    .lightbox-btn {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 10px 16px;
    }

    .brand strong {
        font-size: .92rem;
    }
}

/* =====================  BEWEGUNG REDUZIEREN  ===================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .gallery-grid .gallery-item:hover img,
    .gallery-grid .gallery-item:focus-visible img {
        transform: none;
    }
}

/* =====================  VORSCHAU-INTRO (Conrad Knorr Webdesign)  ===================== */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: #eef4f0;
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(29, 113, 69, .5), transparent 60%),
        radial-gradient(1000px 800px at 110% 120%, rgba(201, 165, 58, .2), transparent 55%),
        linear-gradient(160deg, #061a12 0%, #08251a 45%, #041009 100%);
    animation: intro-play 3.4s var(--ease) forwards;
}

.intro-overlay.intro-done {
    animation: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease, visibility .45s ease;
}

.intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.intro-kicker {
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(201, 165, 58, .92);
    opacity: 0;
    animation: intro-fade .8s ease .1s both;
}

.intro-title {
    font-size: clamp(2.4rem, 9vw, 4.6rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.02em;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: intro-up .95s var(--ease) .22s both;
}

.intro-sub {
    margin-top: 4px;
    font-size: clamp(.9rem, 3.4vw, 1.2rem);
    font-weight: 900;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: rgba(238, 244, 240, .82);
    opacity: 0;
    transform: translateY(14px);
    animation: intro-up .95s var(--ease) .4s both;
}

.intro-line {
    width: 0;
    height: 2px;
    margin-top: 22px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    animation: intro-line 1s var(--ease) .55s both;
}

.intro-skip {
    position: absolute;
    left: 50%;
    bottom: clamp(28px, 8vh, 64px);
    transform: translateX(-50%);
    padding: 12px 22px;
    font: inherit;
    font-weight: 900;
    font-size: .9rem;
    color: #eef4f0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
    opacity: 0;
    animation: intro-fade .6s ease 1.15s both;
    transition: background .2s ease, border-color .2s ease;
}

.intro-skip:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .5);
}

@keyframes intro-play {
    0% { opacity: 1; }
    82% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-up {
    to { opacity: 1; transform: none; }
}

@keyframes intro-fade {
    to { opacity: 1; }
}

@keyframes intro-line {
    to { width: min(160px, 60vw); }
}

/* =====================  DOKUMENT-DOWNLOADS (PDF-Icons, nicht Galerie)  ===================== */
/* Zeilen wie <div><a href="...pdf"><img Icon></a><div>Text</div></div> werden von der
   :has(> a > img)-Galerieregel fälschlich als Galerie aufgeblasen. Hier zurücksetzen. */
.rich-content div:has(> a[href$=".pdf"] > img),
.rich-content div:has(> a[href$=".PDF"] > img),
.rich-content div:has(> a[href$=".doc"] > img),
.rich-content div:has(> a[href$=".docx"] > img),
.rich-content div:has(> a[href$=".xls"] > img),
.rich-content div:has(> a[href$=".xlsx"] > img) {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 14px 0;
}

.rich-content a[href$=".pdf"] > img,
.rich-content a[href$=".PDF"] > img,
.rich-content a[href$=".doc"] > img,
.rich-content a[href$=".docx"] > img,
.rich-content a[href$=".xls"] > img,
.rich-content a[href$=".xlsx"] > img {
    width: 52px;
    min-width: 52px;
    height: auto;
    min-height: 0;
    max-width: 52px;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: none;
    flex: 0 0 auto;
}

/* Der umschließende Icon-Link schrumpft, der Textblock nimmt den Rest */
.rich-content div:has(> a[href$=".pdf"] > img) > a,
.rich-content div:has(> a[href$=".doc"] > img) > a,
.rich-content div:has(> a[href$=".docx"] > img) > a,
.rich-content div:has(> a[href$=".xls"] > img) > a,
.rich-content div:has(> a[href$=".xlsx"] > img) > a {
    flex: 0 0 auto;
    line-height: 0;
}

/* =====================  LOGO-/VERWEIS-RASTER (Social Media, Sponsoren, Links)  ===================== */
.rich-content .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    align-items: stretch;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.rich-content .logo-grid .logo-item {
    display: grid;
    place-items: center;
    padding: 20px;
    min-height: 128px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rich-content .logo-grid a.logo-item:hover,
.rich-content .logo-grid a.logo-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-600);
    outline: none;
}

.rich-content .logo-grid .logo-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 88px;
    min-height: 0;
    margin: 0;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
}

/* Einzelne verlinkte Logos (z. B. Sponsoren mit Textblock) einheitlich begrenzen */
.rich-content a[href^="http"] > img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100px;
    min-height: 0;
    object-fit: contain;
    box-shadow: none;
    aspect-ratio: auto;
}


/* =========================================================================
 * BACKEND: flaches, eckiges, linienbasiertes Design (2026)
 * ausschliesslich auf .admin-body gescoped -> die Website bleibt unveraendert
 * ====================================================================== */

/* 1) Alles eckig -- keine Rundungen, keine Pills */
.admin-body .button,
.admin-body button.button,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body .admin-panel,
.admin-body .stat-grid article,
.admin-body .media-grid article,
.admin-body .media-grid img,
.admin-body .admin-brand,
.admin-body .admin-brand-mark,
.admin-body .admin-sidebar a,
.admin-body .admin-sidebar button,
.admin-body .admin-search input,
.admin-body .admin-tag,
.admin-body .status-pill,
.admin-body .action-link,
.admin-body .editor-wrap,
.admin-body .editor-canvas,
.admin-body .editor-canvas img,
.admin-body .editor-toolbar button,
.admin-body .editor-wrap .editor-btn,
.admin-body .login-panel,
.admin-body .flash,
.admin-body .media-dialog,
.admin-body .media-dialog-close,
.admin-body .media-picker-item,
.admin-body .file-tile,
.admin-body .message-list article {
    border-radius: 0;
}

/* 2) Tiefe/Schatten raus -- klare 1px-Linien statt Schlagschatten */
.admin-body .admin-panel,
.admin-body .stat-grid article,
.admin-body .media-grid article,
.admin-body .editor-wrap,
.admin-body .login-panel,
.admin-body .media-dialog,
.admin-body .media-picker-item,
.admin-body .admin-sidebar a.is-active,
.admin-body .flash,
.admin-body .admin-brand-mark {
    box-shadow: none;
}

.admin-body .admin-panel,
.admin-body .stat-grid article,
.admin-body .media-grid article,
.admin-body .login-panel {
    border: 1px solid var(--line);
    background: #fff;
}

/* 3) Buttons: flach & eckig, kein Glow */
.admin-body .button,
.admin-body .admin-head .button,
.admin-body .admin-form .button,
.admin-body .media-upload .button {
    box-shadow: none;
}

.admin-body .button:focus-visible,
.admin-body .action-link:focus-visible,
.admin-body .admin-sidebar a:focus-visible,
.admin-body a:focus-visible {
    outline: 2px solid var(--green-700);
    outline-offset: 2px;
}

/* 4) Formularfelder: klare Linie, ruhiger Fokus ohne Halo */
.admin-body input,
.admin-body textarea,
.admin-body select {
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus,
.admin-body .admin-search input:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: inset 0 0 0 1px var(--green-700);
}

.admin-body .admin-search input {
    background: #fff;
}

/* 5) Sidebar: flach; aktiver Punkt mit Akzentlinie statt weisser Pill */
.admin-body .admin-sidebar a,
.admin-body .admin-sidebar button {
    border-left: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.admin-body .admin-sidebar a:hover,
.admin-body .admin-sidebar button:hover {
    background: rgba(255, 255, 255, .06);
    border-left-color: rgba(255, 255, 255, .34);
    transform: none;
}

.admin-body .admin-sidebar a.is-active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-left-color: var(--gold-500);
}

/* 6) Status/Tags: eckige Linien-Badges statt Pills */
.admin-body .admin-tag,
.admin-body .status-pill {
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .72rem;
    font-weight: 900;
}

.admin-body .admin-tag {
    color: var(--muted);
}

.admin-body .status-pill.is-published {
    border-color: #a9d5ba;
    color: #106438;
    background: transparent;
}

.admin-body .status-pill.is-draft {
    border-color: #e4cd92;
    color: #7c5b16;
    background: transparent;
}

/* action-link: eckiger, flacher Button */
.admin-body .action-link {
    padding: 8px 14px;
    border: 1px solid var(--green-700);
    background: var(--green-700);
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.admin-body .action-link:hover {
    background: var(--green-900);
    border-color: var(--green-900);
}

/* 7) Stat-Karten: flach, schmale Akzentlinie links */
.admin-body .stat-grid article::before {
    width: 3px;
}

/* 8) Editor: eckig, flach, ohne Farbverlauf-Rand */
.admin-body .editor-wrap {
    border: 1px solid var(--line);
}

.admin-body .editor-canvas {
    background: #fff;
}

.admin-body .editor-canvas:focus {
    box-shadow: inset 0 0 0 2px var(--green-700);
}

.admin-body .editor-wrap .editor-btn:hover,
.admin-body .editor-wrap .editor-btn:focus-visible {
    border-color: var(--green-700);
    background: var(--green-100);
}

/* 9) Medienpool: eckig & linienbasiert */
.admin-body .media-dialog {
    border: 1px solid var(--line);
}

.admin-body .media-dialog-close {
    border: 1px solid var(--line);
    background: #fff;
}

.admin-body .media-dialog-close:hover {
    border-color: var(--green-700);
    color: var(--green-900);
}

.admin-body .media-picker-item {
    border: 1px solid var(--line);
}

.admin-body .media-picker-item:hover,
.admin-body .media-picker-item:focus-visible {
    border-color: var(--green-700);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--green-700);
}

/* 10) Medien-Bibliothek: Datei-Kacheln eckig */
.admin-body .media-grid img,
.admin-body .file-tile {
    border-radius: 0;
}

/* Backend: echtes Vereinswappen im Sidebar-Tile statt "GW" */
.admin-body .admin-brand-mark {
    padding: 3px;
    background: #fff;
    overflow: hidden;
}

.admin-body .admin-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Backend: SEO-Panel mit Live-Google-Vorschau */
.admin-body .seo-preview {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: arial, "Lato", sans-serif;
}

.admin-body .seo-preview-url {
    color: #202124;
    font-size: .8rem;
    line-height: 1.3;
    word-break: break-all;
}

.admin-body .seo-preview-url span {
    color: #5f6368;
}

.admin-body .seo-preview-title {
    color: #1a0dab;
    font-size: 1.15rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .seo-preview-desc {
    color: #4d5156;
    font-size: .88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-body .seo-over {
    color: var(--danger);
    font-weight: 900;
}

/* Backend: Vorschaubild-Thumbnail (Social/og:image) */
.admin-body .og-thumb {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-top: 10px;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--paper);
}

/* =========================================================================
 * FRONTEND-FEINSCHLIFF: Bildzuschnitt & Überschriften
 * ====================================================================== */

/* Beschnitt von der Mitte auf OBEN -> bei Hochkant-Spielerfotos werden
   keine Köpfe mehr abgeschnitten (Gesicht bleibt im Bild). */
.rich-content div:has(> a > img) img,
.rich-content div:has(> img) img,
.rich-content ul:has(img) img,
.gallery-grid .gallery-item img,
.news-detail-gallery img {
    object-position: center top;
}

/* Vereinsname "Grün-Weiß" nicht am Bindestrich umbrechen; Überschriften ausbalancieren */
.hero h1,
.page-hero h1,
.rich-content h1,
.rich-content h2,
.shop-intro h2,
.section-heading h2,
.news-card-body h3 {
    text-wrap: balance;
}
