/* ========================================================================== 
   MMIG46 app.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens and reset
   -------------------------------------------------------------------------- */

:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --surface-soft: #fbfaf7;
    --paper: #ffffff;
    --navy: #071f45;
    --navy-2: #0d2b57;
    --text: #172033;
    --muted: #647084;
    --line: #e2ded6;
    --border: #e2ded6;
    --accent: #b77a43;
    --accent-dark: #8f5a2c;
    --sand: #efe6da;
    --danger: #8b1e2d;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
    --radius: 16px;
    --container: 1180px;
    --header-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1 0 auto;
    min-width: 0;
}

a {
    color: inherit;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

p,
li,
td,
th {
    overflow-wrap: break-word;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.inline {
    display: inline;
    margin: 0;
}

/* --------------------------------------------------------------------------
   2. Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 222, 214, 0.86);
    background: rgba(246, 244, 239, 0.94);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 1.25vw, 20px);
}

.brand {
    color: var(--navy);
    font-size: clamp(1.65rem, 2.05vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.15vw, 20px);
}

.site-nav a,
.plain-action {
    color: var(--navy);
    font-size: clamp(0.86rem, 0.78vw, 0.93rem);
    font-weight: 700;
    text-decoration: none;
}

.site-nav a {
    position: relative;
    white-space: nowrap;
}

.site-nav a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.site-nav a:hover,
.plain-action:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--accent-dark);
}

.site-tools,
.site-actions {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.site-tools {
    gap: 10px;
}

.site-actions {
    gap: 16px;
    white-space: nowrap;
}

.plain-action {
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-toggle {
    display: none;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font-weight: 800;
}

.site-search {
    width: clamp(190px, 15vw, 280px);
    max-width: 280px;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.site-search input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
}

.site-search input[type="search"]::placeholder {
    color: var(--muted);
}

.site-search button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--navy);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
}

.site-search button:hover {
    background: var(--navy-2);
}

.language-switch {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.language-switch a {
    min-width: 38px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.language-switch a:hover {
    background: var(--surface-soft);
    color: var(--accent-dark);
}

.language-switch a.is-active {
    background: var(--accent);
    color: #fff;
}

.admin-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 7px;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-action:hover {
    background: var(--navy-2);
    color: #fff;
}

/* --------------------------------------------------------------------------
   3. Feedback and buttons
   -------------------------------------------------------------------------- */

.flash {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.flash.ok {
    border: 1px solid #bbebcc;
    background: #e8f5ee;
    color: #166534;
}

.flash.error {
    border: 1px solid #f3caca;
    background: #fff0f0;
    color: #991b1b;
}

.button,
.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.btn {
    min-height: 44px;
    padding: 0 18px;
    border-color: #cfc8ba;
    border-radius: 6px;
}

.button--primary,
.btn.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button--primary:hover,
.btn.primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.button--secondary {
    border-color: #9ca8b6;
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
}

.button--outline,
.button-outline {
    border-color: var(--accent);
    background: transparent;
    color: var(--accent-dark);
}

.button--secondary:hover,
.button--outline:hover,
.button-outline:hover {
    border-color: var(--navy);
}

.small-button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #9ca8b6;
    border-radius: 4px;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. General page structure
   -------------------------------------------------------------------------- */

.page {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    padding: 72px 0 96px;
}

.page--narrow,
.page.narrow {
    max-width: 860px;
}

.page-hero {
    margin-bottom: 34px;
}

.page-kicker,
.eyebrow,
.section-eyebrow,
.event-kicker,
.event-popup__eyebrow {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.3rem, 4vw, 4rem);
    letter-spacing: -0.06em;
    line-height: 1;
}

.page-lead {
    max-width: 740px;
    margin: 18px 0 0;
    color: #536073;
    font-size: 1.12rem;
}

.dynamic-hero {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    padding: 90px 0 72px;
}

.dynamic-hero h1 {
    max-width: 760px;
}

.section {
    padding: 34px 0;
}

.section--compact,
.section-tight {
    padding-top: 10px;
}

.section-heading,
.section-head,
.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.split {
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-heading h2,
.section-head h2,
.split h2 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.meta {
    color: #65738a;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. Home page
   -------------------------------------------------------------------------- */

.home-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 88px 24px;
    border-bottom: 1px solid #ddd8ce;
    background:
        linear-gradient(90deg, rgba(246, 244, 239, 0.98) 0%, rgba(246, 244, 239, 0.82) 42%, rgba(246, 244, 239, 0.35) 100%),
        url("/assets/img/hero-pa46.jpg") center / cover no-repeat;
}

.home-hero__content {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.home-hero h1,
.home-hero__title {
    max-width: 900px;
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(3rem, 6vw, 5.8rem);
    letter-spacing: -0.07em;
    line-height: 0.94;
}

.home-hero p {
    max-width: 640px;
    font-size: 1.12rem;
    line-height: 1.65;
}

.home-hero__association {
    display: block;
}

.actions,
.action-row,
.form-actions,
.membership-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.actions {
    margin-top: 28px;
}

.action-row,
.form-actions {
    margin-top: 8px;
}

.feature-strip {
    width: min(var(--container), calc(100% - 48px));
    margin: -34px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.feature-strip article {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 28px;
    border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
    border-right: 0;
}

.feature-strip span {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(7, 31, 69, 0.28);
    border-radius: 50%;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 900;
}

.feature-strip h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1rem;
}

.feature-strip p {
    margin: 0;
    color: #65738a;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Cards and grids
   -------------------------------------------------------------------------- */

.card-grid,
.travel-grid,
.split-grid,
.image-card-grid,
.cards,
.page-grid,
.admin-grid,
.content-card-grid,
.home-news-grid,
.news-card-grid,
.admin-card-grid {
    display: grid;
    gap: 28px;
}

.card-grid--three,
.travel-grid,
.image-card-grid,
.cards,
.home-news-grid,
.news-card-grid,
.image-card-grid.home-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-grid,
.content-card-grid,
.admin-grid,
.admin-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
    gap: 34px;
}

.story-card,
.travel-card,
.table-card,
.card,
.image-card,
.content-card,
.content-body,
.auth-card,
.form-card,
.info-card,
.sidebar-card,
.forum-card,
.forum-post,
.forum-form-card,
.forum-reply-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.story-card,
.travel-card,
.image-card {
    overflow: hidden;
}

.card {
    border-color: #ddd8ce;
    box-shadow: 0 2px 8px rgba(9, 31, 66, 0.06);
}

.card-body,
.story-card__body,
.travel-card__body,
.image-card__body {
    padding: 24px;
}

.content-card,
.content-body {
    padding: 30px;
}

.content-card-grid > .content-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-card + .content-card {
    margin-top: 24px;
}

.content-card-grid .content-card + .content-card {
    margin-top: 0;
}

.card h2,
.card h3,
.content-card h2,
.content-card h3,
.story-card h3,
.travel-card h2,
.travel-card h3,
.table-card h2 {
    margin-top: 0;
    color: var(--navy);
    letter-spacing: -0.035em;
}

.story-card p,
.travel-card p,
.image-card__body p,
.content-card p,
.content-body p {
    color: #536073;
}

.content-body {
    line-height: 1.75;
}

.content-body p {
    margin: 0 0 1.25rem;
}

.image-card__media {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #d8e0ea;
}

.image-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card__media--empty {
    background: linear-gradient(135deg, #d8e0ea, #f6f4ef);
}

.image-card__badge,
.badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 11px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.image-card__body h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.35;
}

.image-card__meta,
.story-card__meta,
.travel-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: #65738a;
    font-size: 0.9rem;
}

.image-card__meta {
    margin-top: 28px;
}

.image-card__title-link,
.image-card__cta {
    color: inherit;
    text-decoration: none;
}

.image-card__title-link:hover,
.image-card__cta:hover {
    text-decoration: underline;
}

.image-card__cta {
    font-weight: 600;
}

.image-card__cta--disabled {
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(1);
}

.home-news-grid {
    gap: clamp(24px, 4vw, 40px);
}

.home-news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.home-news-card__link {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    color: inherit;
    text-decoration: none;
}

.home-news-card__media {
    position: relative;
    height: clamp(220px, 28vw, 340px);
    overflow: hidden;
    background: #e7ebef;
}

.home-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-card__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    padding: 9px 14px;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-news-card__body {
    display: grid;
    gap: 12px;
    padding: clamp(22px, 3vw, 32px);
}

.home-news-card__body h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.home-news-card__teaser,
.home-news-card__meta {
    margin: 0;
}

.home-news-card__teaser {
    color: #4c5566;
}

.home-news-card__meta {
    color: #697386;
    font-size: 0.95rem;
}

.home-news-card__more {
    margin-top: 8px;
    color: var(--navy);
    font-weight: 900;
}

.home-news-card:hover .home-news-card__more {
    color: var(--accent-dark);
}

.story-card__image,
.travel-card__image {
    position: relative;
    min-height: 165px;
    background-color: #e8ebef;
    background-position: center;
    background-size: cover;
    filter: saturate(0.9) contrast(0.96);
}

.travel-card {
    display: grid;
    grid-template-rows: auto 1fr;
}

.travel-card__image {
    height: 255px;
    overflow: hidden;
}

.travel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-card__image .badge {
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: calc(100% - 18px);
    border-radius: 0 4px 0 0;
}

.story-card__image span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 9px;
    border-radius: 3px;
    background: var(--navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.story-card__image--woerthersee,
.travel-card__image--woerthersee {
    background-image: linear-gradient(rgba(7, 31, 69, 0.08), rgba(7, 31, 69, 0.1)), url("/assets/img/news-woerthersee.jpg");
}

.story-card__image--meeting {
    background-image: linear-gradient(rgba(7, 31, 69, 0.08), rgba(7, 31, 69, 0.12)), url("/assets/img/news-meeting.jpg");
}

.story-card__image--technik {
    background-image: linear-gradient(rgba(7, 31, 69, 0.08), rgba(7, 31, 69, 0.12)), url("/assets/img/news-technik.jpg");
}

.travel-card__image--venedig {
    background-image: linear-gradient(rgba(7, 31, 69, 0.04), rgba(7, 31, 69, 0.08)), url("/assets/img/travel-venedig.jpg");
}

.travel-card__image--verona {
    background-image: linear-gradient(rgba(7, 31, 69, 0.04), rgba(7, 31, 69, 0.08)), url("/assets/img/travel-verona.jpg");
}

.story-card h3,
.travel-card h2,
.travel-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.25rem;
    letter-spacing: -0.035em;
}

.story-card p {
    min-height: 66px;
    margin: 9px 0 16px;
    font-size: 0.94rem;
}

.travel-card__body {
    display: grid;
    gap: 16px;
}

.travel-card__body p {
    margin: 0;
}

.travel-card__meta {
    margin-top: auto;
    font-weight: 700;
}

.travel-card__meta a,
.travel-card a {
    display: inline-flex;
    margin-top: 0;
    color: var(--navy);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.travel-card__meta a:hover,
.travel-card a:hover {
    color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   7. Panels, lists and tables
   -------------------------------------------------------------------------- */

.community-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: 52px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fbfaf7, #f0e8dd);
}

.community-panel__copy {
    max-width: 520px;
}

.community-panel__copy h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.85rem;
    letter-spacing: -0.035em;
}

.community-panel p {
    color: #4f5b6d;
}

.link-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.link-panel a {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 20px 50px 20px 24px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.link-panel a:last-child {
    border-bottom: 0;
}

.link-panel a::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 24px;
    color: var(--navy);
    font-size: 1.5rem;
    transform: translateY(-50%);
}

.link-panel strong {
    color: var(--navy);
}

.link-panel span {
    color: #667184;
    font-size: 0.9rem;
}

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

.static-list article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.static-list h2,
.static-list h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.static-list p {
    margin: 0;
    color: #536073;
}

.sidebar-list,
.clean-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-list {
    gap: 0;
}

.sidebar-list li,
.clean-list li {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: #536073;
}

.clean-list li {
    padding: 14px 0;
    border-bottom-color: #e4dfd6;
    color: #65738a;
}

.sidebar-list li:last-child,
.clean-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.table-card {
    padding: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.table-card h2 {
    font-size: 1.25rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

th,
td {
    padding: 9px 8px;
    border-bottom: 1px solid #eee9df;
    text-align: left;
    vertical-align: top;
}

th {
    color: #536073;
    font-size: 0.78rem;
    font-weight: 900;
}

td {
    color: #2f3948;
}

.table-card .text-link {
    display: inline-flex;
    margin-top: 18px;
}

.empty-state {
    max-width: 680px;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.empty-state h2 {
    margin: 0 0 10px;
    color: var(--navy);
    letter-spacing: -0.035em;
}

.empty-state p {
    margin: 0;
    color: #4c5566;
}

/* --------------------------------------------------------------------------
   8. Forms and authentication
   -------------------------------------------------------------------------- */

.auth-shell {
    min-height: min(680px, calc(100vh - 160px));
    display: grid;
    align-items: center;
    padding: 64px 0;
}

.auth-card {
    width: min(500px, 100%);
    margin-inline: auto;
    padding: 36px;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 2.2rem;
    letter-spacing: -0.055em;
    line-height: 1;
}

.auth-card > p {
    margin: 0 0 28px;
    color: var(--muted);
}

.form-stack {
    display: grid;
    gap: 18px;
}

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

.form-field,
.form-grid label {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.form-field--full,
.span-2 {
    grid-column: 1 / -1;
}

.form-field--captcha,
.captcha-field {
    max-width: 360px;
}

.form-field label,
.form-grid label,
.form-card > label,
.form-stack label {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.form-card > label {
    display: block;
    margin-bottom: 20px;
}

.form-field input,
.form-field textarea,
.form-field select,
.form-grid input,
.form-grid textarea,
.form-grid select,
.form-card input,
.form-card textarea,
.form-card select,
.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--text);
}

.form-field textarea,
.form-grid textarea,
.form-card textarea,
.form-stack textarea {
    min-height: 150px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7, 31, 69, 0.08);
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.form-card {
    max-width: 760px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(9, 31, 66, 0.05);
}

.form-card input,
.form-card textarea,
.form-card select {
    margin-top: 8px;
    padding: 13px 14px;
}

.checkbox-row,
.form-card label.checkbox,
.form-card label.consent-inline,
.membership-form label.checkbox,
.membership-form label.consent-inline {
    width: fit-content;
    max-width: 100%;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 20px 0;
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"],
.form-card label.checkbox input[type="checkbox"],
.form-card label.consent-inline input[type="checkbox"],
.membership-form label.checkbox input[type="checkbox"],
.membership-form label.consent-inline input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--accent);
}

.info-card {
    min-width: 0;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(9, 31, 66, 0.05);
}

.sidebar-card {
    padding: 24px;
    background: var(--surface-soft);
}

.sidebar-card h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1.2rem;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   9. Search page
   -------------------------------------------------------------------------- */

.search-page-form {
    max-width: 760px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.search-page-form input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    background: #fff;
    color: var(--text);
}

.search-page-form input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(183, 122, 67, 0.14);
}

.search-page-form button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
}

.search-page-form button:hover {
    background: var(--navy-2);
}

.search-results {
    display: grid;
    gap: 1rem;
}

.search-result-card {
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    background: #fff;
}

.search-result-card h2 {
    margin: 0.2rem 0 0.5rem;
}

.search-result-card p {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Contact and membership pages
   -------------------------------------------------------------------------- */

.contact-cta {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.contact-cta__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 1.35rem;
}

.contact-cta h2 {
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.035em;
}

.contact-cta p {
    margin: 6px 0 0;
    color: #4f5b6d;
}

.contact-page,
.membership-page {
    padding: clamp(52px, 7vw, 88px) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: clamp(32px, 6vw, 72px);
}

.contact-main {
    min-width: 0;
}

.contact-header,
.membership-header {
    max-width: 760px;
    margin-bottom: 34px;
}

.membership-header {
    margin-bottom: 52px;
}

.contact-header h1,
.membership-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.contact-header p:not(.eyebrow),
.membership-header p:not(.eyebrow) {
    margin: 20px 0 0;
    color: #4c5566;
    font-size: 1.08rem;
}

.contact-form,
.contact-aside {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.contact-form {
    max-width: 900px;
    padding: clamp(24px, 3vw, 36px);
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
}

.contact-form label {
    min-width: 0;
    display: grid;
    gap: 9px;
    color: var(--navy);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
}

.contact-form input {
    min-height: 46px;
    padding: 10px 12px;
}

.contact-form textarea {
    min-height: 210px;
    padding: 12px;
    resize: vertical;
}

.contact-form .span-2 {
    grid-column: 1 / -1;
}

.contact-form__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}

.contact-form__actions p {
    margin: 0;
    color: #697386;
}

.contact-aside {
    padding: clamp(24px, 3vw, 34px);
}

.contact-aside h2 {
    margin: 0 0 22px;
    color: var(--navy);
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}

.contact-aside ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-aside li {
    padding: 16px 0;
    border-top: 1px solid var(--line);
    color: #5f6f89;
    font-size: 1.02rem;
    line-height: 1.45;
}

.contact-aside li:first-child {
    padding-top: 0;
    border-top: 0;
}

.print-button {
    margin-top: 24px;
}

.membership-form {
    display: grid;
    gap: 28px;
}

.membership-fieldset {
    min-width: 0;
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.membership-fieldset legend {
    padding: 0 10px;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 900;
}

.membership-options {
    display: grid;
    gap: 12px;
}

.membership-option,
.consent-check {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    color: var(--navy);
    font-weight: 800;
}

.membership-option input,
.consent-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.consent-box p {
    max-width: 90ch;
    margin: 0 0 14px;
    color: #4c5566;
}

.consent-check {
    margin-top: 12px;
}

.membership-signature,
.print-check,
.print-text-line {
    display: none;
}

/* --------------------------------------------------------------------------
   11. Association page
   -------------------------------------------------------------------------- */

.verein-hero {
    padding: clamp(56px, 8vw, 104px) 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(246, 244, 239, 0.98), rgba(238, 241, 243, 0.88));
}

.verein-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.verein-main,
.verein-side {
    min-width: 0;
}

.verein-main h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.7rem, 5vw, 5rem);
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.verein-main .lead {
    max-width: 760px;
    margin: 26px 0 0;
    color: #4c5566;
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.verein-card-stack {
    display: grid;
    gap: 18px;
    margin-top: 38px;
}

.verein-info-card,
.verein-action-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.verein-info-card {
    padding: clamp(22px, 3vw, 34px);
}

.verein-info-card h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.035em;
}

.verein-info-card p {
    margin: 0;
    color: #4c5566;
}

.verein-side {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 14px;
}

.verein-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    color: var(--navy);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.verein-action-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.verein-action-card strong,
.verein-action-card small {
    display: block;
}

.verein-action-card small {
    margin-top: 5px;
    color: #697386;
}

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

.verein-section-grid .card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: 18px;
}

.verein-section-grid .card h2 {
    margin-top: 0;
    color: #002855;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.verein-section-grid .card p {
    max-width: 62ch;
    color: #5f6f89;
}

.verein-section-grid .button {
    margin-top: 18px;
}

.verein-heading,
.club-board-header {
    max-width: 820px;
    margin-bottom: 2rem;
}

.verein-heading h2,
.club-board-header h2 {
    margin: 0 0 0.75rem;
}

.club-board-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.club-board-header > p:last-child {
    max-width: 780px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.club-board-grid,
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.club-board-card,
.board-member {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(30, 43, 58, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(24, 34, 46, 0.06), 0 2px 8px rgba(24, 34, 46, 0.04);
}

.club-board-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.club-board-card__top {
    min-height: 128px;
    padding: 1.35rem 1.4rem 1.25rem;
    border-bottom: 1px solid rgba(30, 43, 58, 0.08);
    background: linear-gradient(145deg, rgba(126, 54, 62, 0.98), rgba(80, 34, 41, 0.98));
    color: #fff;
}

.club-board-card__role,
.board-member__position {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.club-board-card__top h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.3;
}

.club-board-card__body {
    flex: 1;
    display: flex;
    padding: 1.3rem 1.4rem 1.45rem;
}

.club-board-card__body p {
    margin: 0;
    color: #35404c;
    font-size: 0.96rem;
    line-height: 1.65;
}

.board-member__monogram {
    min-height: 155px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(126, 52, 61, 0.96), rgba(65, 30, 36, 0.98));
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.board-member__content {
    padding: 1.3rem;
}

.board-member__position {
    color: #8f2732;
}

.board-member__content h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.board-member__content p:last-child {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.6;
}

.club-board-contact,
.verein-board-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(30, 43, 58, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.club-board-contact h3,
.club-board-contact p,
.verein-board-contact p {
    margin: 0;
}

.club-board-contact h3 {
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.club-board-contact .button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.club-advisor {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.club-advisor__label {
    display: flex;
    align-items: center;
    gap: 14px;
}

.club-advisor__label .eyebrow {
    margin: 0;
}

.club-advisor__line {
    flex: 0 0 34px;
    width: 34px;
    height: 2px;
    background: var(--accent);
}

.club-advisor__content {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(200px, 0.4fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.club-advisor__heading,
.club-advisor__description {
    min-width: 0;
}

.club-advisor__role {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.club-advisor__heading h3 {
    margin: 6px 0 0;
    color: var(--navy);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.club-advisor__description {
    max-width: 66ch;
    margin: 0;
    color: #4c5566;
    font-size: 1rem;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   12. Statute and legal content
   -------------------------------------------------------------------------- */

.legal-page,
.legal-content {
    max-width: 900px;
}

.legal-card,
.legal-content {
    line-height: 1.75;
}

.legal-card h2,
.legal-content h2 {
    margin: 34px 0 10px;
    color: var(--navy);
    font-size: 1.45rem;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.legal-card h2:first-child,
.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin: 24px 0 8px;
    color: var(--navy);
    font-size: 1.08rem;
}

.legal-content p,
.legal-content li {
    color: #536073;
}

.legal-content p {
    margin: 0 0 16px;
}

.legal-content ul {
    margin: 0 0 18px;
    padding-left: 1.35rem;
}

.legal-content a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.statute-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid rgba(31, 47, 63, 0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #f7f4f1);
    box-shadow: 0 18px 45px rgba(25, 37, 48, 0.07);
}

.statute-preview__content {
    max-width: 720px;
}

.statute-preview__content h2 {
    margin-bottom: 0.7rem;
}

.statute-preview__note {
    font-size: 0.88rem;
    opacity: 0.7;
}

.statute-preview__action {
    flex: 0 0 auto;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
    font-size: 0.88rem;
}

.page-breadcrumb a {
    font-weight: 700;
}

.statute-hero h1 {
    max-width: 900px;
}

.statute-hero__lead {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.statute-original-note {
    max-width: 820px;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(145, 45, 55, 0.2);
    border-left: 5px solid #8f2732;
    border-radius: 12px;
    background: rgba(145, 45, 55, 0.07);
}

.statute-original-note strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #7c222c;
}

.statute-original-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.statute-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.statute-navigation {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 1.1rem;
    border: 1px solid rgba(31, 47, 63, 0.11);
    border-radius: 15px;
    background: #fff;
    scrollbar-width: thin;
}

.statute-navigation__heading {
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.statute-navigation nav {
    display: grid;
    gap: 0.15rem;
}

.statute-navigation a {
    display: block;
    padding: 0.48rem 0.55rem;
    border-radius: 7px;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.35;
    text-decoration: none;
}

.statute-navigation a:hover,
.statute-navigation a:focus-visible {
    background: rgba(143, 39, 50, 0.08);
    color: #7c222c;
}

.statute-document {
    min-width: 0;
    padding: clamp(1.3rem, 4vw, 3rem);
    border: 1px solid rgba(31, 47, 63, 0.11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 37, 48, 0.07);
}

.statute-document__header {
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(143, 39, 50, 0.18);
}

.statute-document__header p {
    margin: 0;
    color: #7c222c;
    font-size: 1.1rem;
    font-weight: 800;
}

.statute-paragraph {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(31, 47, 63, 0.1);
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.statute-paragraph h2 {
    margin: 0 0 1rem;
    color: #20262d;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.statute-paragraph h3 {
    margin: 1.3rem 0 0.5rem;
    font-size: 1.02rem;
}

.statute-paragraph p,
.statute-paragraph li {
    font-size: 0.97rem;
    line-height: 1.75;
}

.statute-paragraph p {
    margin: 0.7rem 0;
}

.statute-paragraph ul {
    margin: 1rem 0;
    padding-left: 1.4rem;
}

.statute-paragraph li + li {
    margin-top: 0.5rem;
}

.statute-fees {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f4f5f6;
}

.statute-fees p {
    margin: 0.35rem 0;
}

.statute-signatures {
    padding-top: 2rem;
}

.statute-signatures ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.statute-signatures li {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(31, 47, 63, 0.11);
}

.statute-document__back {
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   13. Articles and archive
   -------------------------------------------------------------------------- */

.article-page {
    max-width: 1120px;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 3rem) 1rem 4rem;
}

.article-shell {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.article-header {
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.25rem) 1.5rem;
}

.article-header h1 {
    max-width: 860px;
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4.2vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.article-author {
    margin: -0.5rem 0 1.75rem;
    color: var(--navy);
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
}

.article-lead {
    max-width: 760px;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    line-height: 1.55;
}

.article-meta {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.article-hero {
    margin: 0;
    padding: 0 clamp(1rem, 4vw, 3.25rem) 1.5rem;
}

.article-hero img {
    width: 100%;
    max-height: 520px;
    border-radius: 22px;
    object-fit: cover;
}

.article-body,
.article-footer {
    max-width: 780px;
    padding-right: clamp(1.25rem, 4vw, 3.25rem);
    padding-left: clamp(1.25rem, 4vw, 3.25rem);
}

.article-body {
    padding-bottom: clamp(2rem, 4vw, 3.25rem);
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.75;
}

.article-footer {
    padding-bottom: 2.5rem;
}

.article-body h2 {
    margin-top: 2.25rem;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
}

.article-body h3 {
    margin-top: 1.75rem;
    font-size: 1.2rem;
}

.article-body p {
    margin: 1rem 0;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 1.4rem;
}

.article-body li {
    margin: 0.35rem 0;
}

.article-body img {
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.malibu-check-list {
    margin: 1.5rem 0 0;
    padding-left: 0;
    list-style: none;
}

.malibu-check-list li {
    position: relative;
    margin-bottom: 0.85rem;
    padding-left: 1.75rem;
    line-height: 1.55;
}

.malibu-check-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

.malibu-model-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.malibu-model-grid > div {
    padding: 1.35rem 1.5rem;
    border-right: 1px solid rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.malibu-model-grid h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.malibu-model-grid p {
    margin: 0;
    line-height: 1.6;
}

.malibu-archive-list,
.malibu-archive-link-list {
    margin: 1.25rem 0 0;
    padding-left: 1.25rem;
}

.malibu-archive-link-list {
    padding-left: 0;
    list-style: none;
}

.malibu-archive-list li,
.malibu-archive-link-list li {
    margin-bottom: 0.6rem;
}

.malibu-archive-link-list a {
    border-bottom: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
}

.fineprint {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.75;
}

.malibu-article-card {
    max-width: 68rem;
    overflow-x: auto;
}

.malibu-article-card h1,
.malibu-article-card h2,
.malibu-article-card h3 {
    margin-top: 2rem;
}

.malibu-article-card h1:first-child,
.malibu-article-card h2:first-child,
.malibu-article-card h3:first-child {
    margin-top: 0;
}

.malibu-article-card p,
.malibu-article-card li {
    line-height: 1.7;
}

.malibu-article-card img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.malibu-article-card table {
    margin: 1.5rem 0;
}

.malibu-article-card th,
.malibu-article-card td {
    padding: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.malibu-article-card blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid currentColor;
    opacity: 0.85;
}

.article-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-download-card {
    display: block;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
    text-decoration: none;
}

.article-download-card strong,
.article-download-card span {
    display: block;
}

.article-download-card strong {
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.article-download-card span {
    line-height: 1.55;
    opacity: 0.78;
}

.article-figure {
    margin: 2rem 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    border-radius: 0.9rem;
}

.article-figure figcaption {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.75;
}

.travel-detail {
    overflow: hidden;
}

.travel-detail__media {
    height: 360px;
}

.travel-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prose {
    color: var(--muted);
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.malibu-page h1,
.malibu-page h2,
.malibu-page h3 {
    color: #061f44;
}

.prose p,
.prose li {
    color: #5f6f89;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. Forum
   -------------------------------------------------------------------------- */

.forum-page {
    max-width: 980px;
    margin-inline: auto;
}

.forum-page-narrow {
    max-width: 860px;
    margin-inline: auto;
}

.forum-card,
.forum-form-card {
    padding: 1.75rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 35, 65, 0.06);
}

.forum-thread {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.forum-post {
    padding: 1.5rem 1.75rem;
}

.forum-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.forum-post-meta strong {
    color: var(--navy);
}

.forum-post-body {
    max-width: 72ch;
    overflow-wrap: anywhere;
    font-size: 1.03rem;
    line-height: 1.75;
}

.forum-post-body h2,
.forum-post-body h3 {
    margin: 1.7rem 0 0.65rem;
}

.forum-post-body p {
    margin: 0 0 1rem;
}

.forum-post-body ul,
.forum-post-body ol {
    margin: 0 0 1.1rem 1.25rem;
    padding-left: 1rem;
}

.forum-post-body li {
    margin-bottom: 0.4rem;
}

.forum-login-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}

.forum-login-callout h2 {
    margin-bottom: 0.35rem;
}

.forum-login-callout p {
    margin: 0;
    color: var(--muted);
}

.forum-reply-card {
    padding: 1.5rem;
}

.forum-table a {
    font-weight: 700;
    text-decoration: none;
}

.forum-table a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   15. Admin panel
   -------------------------------------------------------------------------- */

.admin-shell {
    max-width: 1180px;
    min-width: 0;
}

.admin-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34rem), linear-gradient(135deg, #fff, #f8fafc);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.admin-hero h1 {
    margin-bottom: 0.35rem;
}

.admin-hero p {
    max-width: 58ch;
    color: #475569;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.admin-card-grid {
    margin-bottom: 1.25rem;
    gap: 1.25rem;
}

.admin-card,
.admin-panel.admin-card {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.admin-card-wide {
    margin-top: 1.25rem;
}

.admin-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-card-header h2,
.admin-card-header p {
    margin: 0;
}

.admin-card-header p {
    margin-top: 0.2rem;
    color: #64748b;
}

.admin-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    font-size: 1.15rem;
}

.admin-shell form {
    display: grid;
    gap: 0.85rem;
}

.admin-shell label {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-weight: 650;
}

.admin-shell input:not([type="checkbox"]),
.admin-shell select,
.admin-shell textarea {
    width: 100%;
    min-width: 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-shell input:focus,
.admin-shell select:focus,
.admin-shell textarea:focus {
    border-color: #2563eb;
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.admin-shell textarea {
    min-height: 9rem;
    resize: vertical;
}

.admin-shell label.checkbox-row {
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.admin-shell label.checkbox-row input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
}

.admin-shell .table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-shell table {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.admin-shell th,
.admin-shell td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-shell th {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-shell tr:hover td {
    background: #f8fafc;
}

.admin-shell code {
    padding: 0.18rem 0.4rem;
    border-radius: 0.45rem;
    background: #f1f5f9;
    color: #334155;
}

.admin-shell .button,
.admin-shell .primary,
.admin-shell button {
    justify-self: start;
    padding: 0.72rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    font-weight: 750;
    text-decoration: none;
}

.admin-shell .button.ghost {
    background: #fff;
    color: #1e293b;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
}

.status-badge.is-online {
    background: #dcfce7;
    color: #166534;
}

.status-badge.is-offline {
    background: #fee2e2;
    color: #991b1b;
}

/* --------------------------------------------------------------------------
   16. Training weekend
   -------------------------------------------------------------------------- */

.training-banner {
    padding: 1.4rem 0;
    background: var(--danger);
    color: #fff;
}

.training-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.training-banner__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.training-banner h2 {
    margin: 0 0 0.45rem;
    color: inherit;
}

.training-banner p {
    margin-top: 0;
}

.training-banner__limited {
    margin-bottom: 0;
    font-weight: 700;
}

.event-hero {
    padding: clamp(4rem, 9vw, 8rem) 0;
    background: linear-gradient(135deg, rgba(20, 28, 36, 0.96), rgba(61, 74, 87, 0.88));
    color: #fff;
}

.event-hero__inner {
    max-width: 880px;
}

.event-hero h1 {
    margin: 0 0 1rem;
    color: inherit;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
}

.event-hero__date {
    font-size: 1.2rem;
    font-weight: 700;
}

.event-hero__lead {
    max-width: 760px;
    font-size: 1.15rem;
    line-height: 1.7;
}

.event-alert {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid currentColor;
    background: rgba(255, 255, 255, 0.1);
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.event-fact {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.event-fact__label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 5rem);
}

.event-schedule {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.event-schedule li {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.event-schedule time {
    font-weight: 700;
}

.event-schedule h3 {
    margin-top: 0;
}

.event-registration {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 5rem);
}

.event-form {
    min-width: 0;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 1rem;
    background: #fff;
    color: #161b20;
}

.programme-options {
    min-width: 0;
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
}

.programme-options label,
.programme-option {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
}

.programme-options input[type="checkbox"],
.event-form .consent-label input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0.18rem 0 0;
    padding: 0;
    accent-color: var(--accent);
}

.programme-option__text,
.consent-label__text {
    min-width: 0;
    display: block;
}

.programme-option__text small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.7;
}

.event-notes-field {
    min-width: 0;
    display: grid;
    gap: 0.55rem;
    color: var(--navy);
    font-weight: 700;
}

.event-notes-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 165px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    font-weight: 400;
    line-height: 1.55;
    resize: vertical;
}

.event-notes-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(183, 122, 67, 0.14), var(--shadow-soft);
}

.event-form .consent-label {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
    margin: 0.25rem 0 0;
    cursor: pointer;
}

.consent-label__text {
    font-weight: 400;
    line-height: 1.65;
}

.consent-label__privacy {
    display: block;
    margin-top: 0.45rem;
}

.consent-label__privacy a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.18em;
}

.event-price-box {
    width: min(100%, 720px);
    margin: 1.5rem 0 1.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.event-price-box__heading {
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-price-box__prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.event-price {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: #20242a;
}

.event-price strong {
    flex: 0 0 auto;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    white-space: nowrap;
}

.event-self-pay-notice,
.event-contact-card,
.event-additional-programme {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
}

.event-self-pay-notice {
    border: 1px solid rgba(167, 35, 46, 0.25);
    border-left: 5px solid #a7232e;
    background: rgba(190, 45, 57, 0.1);
    color: #522026;
}

.event-contact-card,
.event-additional-programme {
    border: 1px solid rgba(31, 47, 63, 0.12);
    background: #f7f8f9;
}

.event-contact-card {
    display: grid;
    gap: 0.55rem;
    font-style: normal;
}

.event-contact-card a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.event-speakers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.event-speaker {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 47, 63, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(25, 37, 48, 0.08);
}

.event-speaker__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e8ebed;
}

.event-speaker__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.event-speaker__image--placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(120, 55, 62, 0.92), rgba(66, 32, 38, 0.96));
}

.event-speaker__image--placeholder span {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.event-speaker__content {
    padding: 1.1rem;
}

.event-speaker__content h3 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.event-speaker__role,
.speaker-role {
    color: #7d2831;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
}

.event-popup[hidden] {
    display: none;
}

.event-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.event-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 20, 0.72);
    backdrop-filter: blur(4px);
}

.event-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.event-popup__close {
    position: absolute;
    top: 0.7rem;
    right: 0.9rem;
    border: 0;
    background: transparent;
    font-size: 2rem;
}

.has-modal {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   17. Partner advertisements
   -------------------------------------------------------------------------- */

.partner-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    border-top: 1px solid rgba(24, 47, 71, 0.1);
    background: linear-gradient(180deg, rgba(247, 249, 252, 0.96), rgba(237, 242, 247, 0.96));
}

.partner-section__header {
    max-width: 760px;
    margin-bottom: 1.75rem;
}

.partner-section__header h2 {
    margin: 0.35rem 0 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.partner-card {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(220px, 0.9fr) auto;
    overflow: hidden;
    border: 1px solid rgba(24, 47, 71, 0.12);
    border-radius: 20px;
    background: #fff;
    color: inherit;
    box-shadow: 0 18px 45px rgba(20, 39, 60, 0.08);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.partner-card:hover,
.partner-card:focus-visible {
    border-color: rgba(24, 47, 71, 0.28);
    box-shadow: 0 24px 55px rgba(20, 39, 60, 0.14);
    transform: translateY(-4px);
}

.partner-card__visual {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: #eef3f7;
}

.partner-card__visual img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 300ms ease;
}

.partner-card:hover .partner-card__visual img {
    transform: scale(1.025);
}

.partner-card--piper .partner-card__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: radial-gradient(circle at 30% 25%, #fff, #eef4f9 58%, #dce7f0);
}

.partner-card--piper .partner-card__visual img {
    height: auto;
    min-height: 0;
    max-height: 260px;
    object-fit: contain;
}

.partner-card--ras .partner-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 20, 37, 0.02) 40%, rgba(4, 20, 37, 0.26));
}

.partner-card__content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 2rem);
}

.partner-card__label {
    display: block;
    margin-bottom: 0.65rem;
    color: #245f91;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.partner-card__content h3 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.partner-card__content p {
    margin: 0;
    color: rgba(24, 47, 71, 0.78);
    line-height: 1.65;
}

.partner-card__link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1.15rem;
    font-weight: 700;
}

.partner-section__notice {
    margin: 1rem 0 0;
    color: rgba(24, 47, 71, 0.58);
    font-size: 0.78rem;
    text-align: right;
}

/* --------------------------------------------------------------------------
   18. Footer and cookie notice
   -------------------------------------------------------------------------- */

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
}

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

.footer-links {
    display: flex;
    flex-shrink: 0;
    gap: 26px;
}

.footer-links a,
.site-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.cookie {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    display: none;
    max-width: 360px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.cookie.show {
    display: block;
}

.cookie p {
    margin: 0 0 12px;
    color: #4f5b6d;
    font-size: 0.9rem;
}

.cookie button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   19. Responsive: navigation and medium screens
   -------------------------------------------------------------------------- */

@media (min-width: 1401px) and (max-width: 1560px) {
    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .site-header__inner,
    .site-nav {
        gap: 10px;
    }

    .site-search {
        width: 190px;
    }

    .site-search button {
        padding-inline: 16px;
    }

    .admin-action {
        padding-inline: 14px;
    }
}

@media (max-width: 1400px) {
    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-flex;
        grid-column: 2;
        align-items: center;
        justify-content: center;
    }

    .site-nav,
    .site-tools,
    .site-actions {
        display: none;
    }

    .site-header.open .site-nav,
    .site-header.open .site-tools,
    .site-header.open .site-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
    }

    .site-header.open .site-nav {
        max-height: calc(100vh - 76px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        padding: 14px 0 6px;
        border-top: 1px solid var(--line);
        overscroll-behavior: contain;
    }

    .site-header.open .site-nav a {
        width: 100%;
        padding: 13px 0;
        border-bottom: 1px solid rgba(10, 35, 66, 0.08);
        line-height: 1.35;
        white-space: normal;
    }

    .site-header.open .site-nav a.is-active::after {
        display: none;
    }

    .site-header.open .site-tools {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 16px;
    }

    .site-header.open .site-search {
        width: 100%;
        max-width: none;
    }

    .site-header.open .language-switch {
        width: fit-content;
        align-self: flex-start;
    }

    .site-header.open .site-actions {
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 10px 0 18px;
    }

    .page-grid,
    .community-panel,
    .contact-cta,
    .contact-layout,
    .verein-layout,
    .event-registration {
        grid-template-columns: 1fr;
    }

    .verein-side {
        position: static;
    }

    .card-grid--three,
    .travel-grid,
    .cards,
    .image-card-grid,
    .home-news-grid,
    .news-card-grid,
    .image-card-grid.home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .feature-strip article {
        border-bottom: 1px solid var(--line);
    }

    .feature-strip article:nth-child(2) {
        border-right: 0;
    }

    .feature-strip article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .contact-aside {
        order: -1;
    }

    .admin-hero {
        flex-direction: column;
    }

    .admin-hero-actions {
        justify-content: flex-start;
    }
}

/* --------------------------------------------------------------------------
   20. Responsive: tablets
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .split-grid,
    .content-card-grid,
    .admin-grid,
    .admin-card-grid,
    .verein-section-grid,
    .event-content,
    .statute-layout {
        grid-template-columns: 1fr;
    }

    .club-board-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .club-board-card {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
    }

    .club-board-card__top {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-right: 1px solid rgba(30, 43, 58, 0.08);
        border-bottom: 0;
    }

    .club-advisor {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .statute-navigation {
        position: static;
        max-height: none;
        overflow: visible;
    }

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

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

/* --------------------------------------------------------------------------
   21. Responsive: phones
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
    .form-grid,
    .contact-form__grid,
    .search-page-form,
    .malibu-model-grid,
    .article-downloads {
        grid-template-columns: 1fr;
    }

    .form-field--full,
    .span-2,
    .contact-form .span-2 {
        grid-column: auto;
    }

    .container,
    .page,
    .dynamic-hero,
    .home-hero__content,
    .feature-strip {
        width: calc(100% - 28px);
    }

    .page {
        padding: 48px 0 72px;
    }

    .dynamic-hero {
        padding: 56px 0 48px;
    }

    .section {
        padding: 24px 0;
    }

    .section-heading,
    .section-head,
    .split,
    .site-footer__inner,
    .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .home-hero {
        min-height: auto;
        align-items: flex-start;
        padding: 46px 0 54px;
        background:
            linear-gradient(180deg, rgba(246, 244, 239, 0.96), rgba(246, 244, 239, 0.75)),
            url("/assets/img/hero-pa46.jpg") 62% center / cover no-repeat;
    }

    .home-hero h1,
    .home-hero__title {
        max-width: 100%;
        font-size: clamp(2.2rem, 12vw, 3.45rem);
        letter-spacing: -0.055em;
        line-height: 0.98;
    }

    .home-hero p {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.55;
    }

    .actions,
    .action-row,
    .membership-actions,
    .form-actions,
    .contact-form__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .actions .button,
    .actions .btn,
    .action-row .button,
    .action-row .btn,
    .membership-actions .button,
    .membership-actions .btn,
    .form-actions .button,
    .form-actions .btn,
    .contact-form__actions .button,
    .contact-form__actions .btn {
        width: 100%;
    }

    .feature-strip,
    .card-grid--three,
    .travel-grid,
    .cards,
    .image-card-grid,
    .home-news-grid,
    .news-card-grid,
    .image-card-grid.home-news-grid,
    .partner-grid,
    .event-facts,
    .event-speakers {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        margin-top: -22px;
    }

    .feature-strip article,
    .feature-strip article:nth-child(2),
    .feature-strip article:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .feature-strip article:last-child {
        border-bottom: 0;
    }

    .community-panel,
    .contact-cta {
        padding: 24px;
    }

    .link-panel a {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .card-body,
    .story-card__body,
    .travel-card__body,
    .image-card__body,
    .content-card,
    .content-body,
    .form-card,
    .auth-card,
    .info-card,
    .sidebar-card,
    .table-card,
    .contact-form,
    .contact-aside,
    .membership-fieldset,
    .forum-card,
    .forum-post,
    .forum-form-card,
    .forum-reply-card {
        padding: 20px;
    }

    .table-card table,
    .admin-shell table,
    .malibu-article-card table,
    .forum-table {
        min-width: 560px;
    }

    .contact-aside {
        order: 0;
    }

    .verein-hero {
        padding: 42px 0;
    }

    .verein-main h1 {
        font-size: clamp(2.2rem, 12vw, 3.15rem);
        line-height: 1;
    }

    .verein-main .lead {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .verein-info-card,
    .verein-section-grid .card,
    .verein-action-card {
        padding: 20px;
        border-radius: 14px;
    }

    .club-board-card {
        display: flex;
        flex-direction: column;
        border-radius: 14px;
    }

    .club-board-card__top {
        min-height: 0;
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(30, 43, 58, 0.08);
    }

    .club-board-card__body {
        padding: 20px;
    }

    .board-member {
        display: flex;
        flex-direction: column;
    }

    .club-board-contact,
    .verein-board-contact,
    .statute-preview,
    .forum-login-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .club-board-contact .button,
    .verein-board-contact .button,
    .statute-preview__action,
    .statute-preview__action .button {
        width: 100%;
        white-space: normal;
    }

    .club-advisor {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        border-left-width: 4px;
        border-radius: 14px;
    }

    .club-advisor__content {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .statute-navigation nav,
    .statute-signatures ul {
        grid-template-columns: 1fr;
    }

    .statute-document {
        padding: 18px;
        border-radius: 14px;
    }

    .statute-paragraph {
        padding: 24px 0;
        scroll-margin-top: calc(var(--header-height) + 16px);
    }

    .article-page {
        padding-right: 0;
        padding-left: 0;
    }

    .article-shell {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .article-hero img {
        max-height: 360px;
        border-radius: 18px;
    }

    .forum-post-body {
        max-width: 100%;
        font-size: 1rem;
    }

    .admin-shell {
        width: calc(100% - 28px);
        max-width: none;
    }

    .admin-hero,
    .admin-card,
    .admin-panel.admin-card {
        padding: 18px;
        border-radius: 18px;
    }

    .admin-hero-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-hero-actions .button,
    .admin-shell form > button,
    .admin-shell form > .button {
        width: 100%;
        justify-self: stretch;
    }

    .admin-card-header {
        flex-direction: column;
    }

    .training-banner__inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .training-banner .button,
    .event-hero .button,
    .event-form button[type="submit"] {
        width: 100%;
        white-space: normal;
    }

    .event-hero {
        padding: 46px 0 54px;
    }

    .event-hero__inner {
        width: calc(100% - 28px);
        margin-inline: auto;
    }

    .event-hero h1 {
        font-size: clamp(2.35rem, 12vw, 4rem);
    }

    .event-registration,
    .event-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-schedule li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .event-form {
        padding: 20px 16px;
    }

    .programme-options {
        padding: 0;
    }

    .programme-options label,
    .programme-option {
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

    .programme-options label:last-child {
        border-bottom: 0;
    }

    .event-price-box__prices {
        grid-template-columns: 1fr;
    }

    .event-speaker {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .event-speaker__image {
        height: 100%;
        min-height: 165px;
        aspect-ratio: auto;
    }

    .partner-card {
        grid-template-rows: auto auto;
        border-radius: 14px;
    }

    .partner-card__visual {
        height: clamp(190px, 62vw, 280px);
        min-height: 0;
    }

    .partner-card__visual img {
        min-height: 0;
    }

    .partner-card--piper .partner-card__visual {
        height: clamp(190px, 58vw, 250px);
        padding: 18px;
    }

    .partner-card__content {
        padding: 20px 18px;
    }

    .partner-section__notice {
        text-align: left;
    }

    .site-footer__inner {
        min-height: auto;
        padding-block: 24px;
    }
}

/* --------------------------------------------------------------------------
   22. Responsive: small phones
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
    :root {
        --header-height: 64px;
    }

    .brand {
        min-width: 0;
        overflow: hidden;
        font-size: clamp(1.35rem, 8vw, 1.6rem);
        text-overflow: ellipsis;
    }

    .nav-toggle {
        padding: 8px 11px;
        font-size: 0.9rem;
    }

    .site-header.open .site-search {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .site-header.open .site-search button {
        width: 100%;
        border-top: 1px solid var(--line);
        border-left: 0;
        border-radius: 0 0 18px 18px;
    }

    .admin-action {
        width: 100%;
        justify-content: center;
    }

    .page,
    .dynamic-hero,
    .membership-page,
    .contact-page,
    .article-page {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .contact-header,
    .membership-header {
        margin-bottom: 28px;
    }

    .contact-header h1,
    .membership-header h1,
    .verein-main h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .form-field--captcha,
    .captcha-field {
        max-width: 100%;
    }

    .article-header,
    .article-body,
    .article-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .article-header h1 {
        font-size: clamp(1.8rem, 11vw, 2.65rem);
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.68;
    }

    .article-hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .article-hero img {
        max-height: 300px;
        border-radius: 14px;
    }

    .travel-detail__media {
        height: clamp(210px, 62vw, 300px);
    }

    .cookie {
        right: 14px;
        bottom: 14px;
        left: 14px;
        max-width: none;
    }
}

@media (max-width: 390px) {
    .container,
    .page,
    .dynamic-hero,
    .home-hero__content,
    .feature-strip,
    .site-header__inner,
    .event-hero__inner {
        width: calc(100% - 22px);
    }

    .card-body,
    .story-card__body,
    .travel-card__body,
    .image-card__body,
    .content-card,
    .content-body,
    .form-card,
    .auth-card,
    .info-card,
    .sidebar-card,
    .table-card,
    .contact-form,
    .contact-aside,
    .membership-fieldset,
    .forum-card,
    .forum-post,
    .forum-form-card,
    .forum-reply-card,
    .verein-info-card,
    .verein-section-grid .card,
    .club-board-card__top,
    .club-board-card__body,
    .club-advisor,
    .statute-document {
        padding: 16px;
    }

    .button,
    .btn {
        min-height: 44px;
        padding-inline: 14px;
    }

    .home-hero h1,
    .home-hero__title {
        font-size: clamp(2rem, 14vw, 2.85rem);
    }

    .page-title {
        font-size: clamp(1.85rem, 13vw, 2.55rem);
    }

    .event-speaker {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .event-speaker__content {
        padding: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   23. Reduced motion
   -------------------------------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --------------------------------------------------------------------------
   24. Print: membership application
   -------------------------------------------------------------------------- */

@media print {
    @page {
        size: A4;
        margin: 9mm 10mm;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: #fff !important;
        color: #000 !important;
        font-size: 8.8pt !important;
        line-height: 1.2 !important;
    }

    .no-print,
    .site-header,
    .site-footer,
    .cookie,
    .print-button,
    .membership-actions {
        display: none !important;
    }

    main,
    .membership-page {
        padding: 0 !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    .membership-header {
        max-width: none !important;
        margin: 0 0 5mm !important;
    }

    .membership-header h1 {
        margin: 0 !important;
        color: #000 !important;
        font-size: 20pt !important;
        letter-spacing: -0.03em !important;
        line-height: 1 !important;
    }

    .membership-form {
        display: grid !important;
        gap: 3mm !important;
    }

    .membership-fieldset {
        break-inside: avoid !important;
        padding: 3.5mm 5mm 4mm !important;
        border: 0.35mm solid #999 !important;
        border-radius: 4mm !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .membership-fieldset legend {
        padding: 0 2mm !important;
        color: #000 !important;
        font-size: 8.5pt !important;
    }

    .membership-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2mm !important;
    }

    .membership-option,
    .consent-check {
        grid-template-columns: 4mm minmax(0, 1fr) !important;
        gap: 2mm !important;
        color: #000 !important;
        font-size: 7.8pt !important;
    }

    .membership-option input[type="radio"],
    .consent-check input[type="checkbox"] {
        display: none !important;
    }

    .membership-option .print-check,
    .consent-check .print-check {
        width: 3.8mm !important;
        height: 3.8mm !important;
        display: inline-block !important;
        border: 0.25mm solid #777 !important;
        border-radius: 50% !important;
        background: #fff !important;
    }

    .consent-check .print-check {
        border-radius: 0.8mm !important;
    }

    .form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 2.2mm 3mm !important;
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        height: 6.2mm !important;
        min-height: 6.2mm !important;
        padding: 0 1.5mm !important;
        border: 0.25mm solid #bbb !important;
        border-radius: 1.5mm !important;
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        font-size: 7.5pt !important;
    }

    .form-grid textarea {
        height: 9mm !important;
        min-height: 9mm !important;
        resize: none !important;
    }

    .membership-form input::placeholder,
    .membership-form textarea::placeholder {
        color: transparent !important;
    }

    .membership-signature {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8mm;
        margin-top: 1mm;
        color: #000;
        font-size: 8pt;
    }

    datalist {
        display: none !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}


/* ==========================================================================
   Mobile Tabellen: Forum und Mitgliederverzeichnis
   --------------------------------------------------------------------------
   Verhindert horizontales Überlaufen auf kleinen Bildschirmen.
   Tabellenzeilen werden mobil als lesbare Karten dargestellt.
   Die Feldbezeichnungen kommen sprachabhängig aus data-label im HTML.
   ========================================================================== */

/* Seiten und Tabellencontainer dürfen den Viewport nicht verbreitern. */
.forum-hero,
.forum-hero .container,
.forum-index-page,
.forum-index-page .container,
.forum-index-card,
.forum-index-head,
.forum-table-wrap,
.memberlist-page,
.memberlist-table-wrap {
    min-width: 0;
    max-width: 100%;
}

/* Desktop und Tablet: Tabellen bleiben innerhalb ihres Containers. */
.forum-table-wrap,
.memberlist-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Lange Inhalte dürfen die Tabelle nicht unnötig verbreitern. */
.forum-table th,
.forum-table td,
.memberlist-table th,
.memberlist-table td {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Überschriften und Buttons innerhalb der Forumkarte absichern. */
.forum-index-head,
.forum-index-head h2 {
    min-width: 0;
}

.forum-index-head h2 {
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Mobile Kartendarstellung
   ========================================================================== */

@media (max-width: 700px) {
    /*
     * Hebt eine möglicherweise vorhandene globale Mindestbreite für Tabellen
     * auf diesen beiden Seiten gezielt auf.
     */
    .forum-table,
    .memberlist-table {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        border: 0;
    }

    .forum-table-wrap,
    .memberlist-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    /*
     * Tabellenkopf bleibt für Screenreader erhalten, wird visuell jedoch
     * ausgeblendet. Die sichtbaren Bezeichnungen stehen in data-label.
     */
    .forum-table thead,
    .memberlist-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .forum-table tbody,
    .memberlist-table tbody {
        display: grid;
        width: 100%;
        min-width: 0;
        gap: 14px;
    }

    .forum-table tr,
    .memberlist-table tr {
        display: grid;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface, #ffffff);
        box-shadow: 0 8px 24px rgba(15, 35, 65, 0.06);
    }

    .forum-table td,
    .memberlist-table td {
        display: grid;
        grid-template-columns: minmax(104px, 36%) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        width: 100%;
        min-width: 0;
        padding: 12px 14px;
        border: 0;
        border-bottom: 1px solid var(--line);
        text-align: left;
        line-height: 1.45;
    }

    .forum-table td:last-child,
    .memberlist-table td:last-child {
        border-bottom: 0;
    }

    /*
     * Die Bezeichnungen werden aus den sprachabhängigen data-label-Attributen
     * der PHP-Templates übernommen.
     */
    .forum-table td::before,
    .memberlist-table td::before {
        content: attr(data-label);
        min-width: 0;
        color: var(--muted, #58677c);
        font-size: 0.77rem;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .forum-table td > *,
    .memberlist-table td > * {
        min-width: 0;
        max-width: 100%;
    }

    .forum-table td a,
    .memberlist-table td a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Wichtigste Inhalte jeder Karte hervorheben. */
    .forum-table td:first-child,
    .memberlist-table td:first-child {
        background: rgba(15, 48, 89, 0.025);
        font-weight: 800;
    }

    /* Forumkarte auf kleinen Bildschirmen kompakter gestalten. */
    .forum-index-card {
        width: 100%;
        max-width: 100%;
        padding: 18px;
        overflow: hidden;
    }

    .forum-index-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 16px;
        margin-bottom: 22px;
    }

    .forum-index-head h2 {
        margin: 0;
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1;
        letter-spacing: -0.045em;
    }

    .forum-index-head .button {
        width: 100%;
        max-width: none;
        min-height: 52px;
        padding-inline: 18px;
        text-align: center;
    }

    /* Hero und Seitentitel dürfen nicht über den Viewport hinausragen. */
    .forum-hero h1,
    .forum-hero p,
    .memberlist-page h1,
    .memberlist-page .meta {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    /*
     * Das Mitgliederverzeichnis erhält dieselben mobilen Seitenränder wie
     * die übrigen Inhaltsseiten.
     */
    .memberlist-page {
        width: min(var(--container), calc(100% - 28px));
        margin-inline: auto;
        padding-top: 48px;
        padding-bottom: 72px;
    }
}

/* Sehr schmale Geräte */
@media (max-width: 420px) {
    .forum-index-card {
        padding: 14px;
        border-radius: 14px;
    }

    .forum-table td,
    .memberlist-table td {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 12px;
    }

    .forum-table td::before,
    .memberlist-table td::before {
        font-size: 0.7rem;
        letter-spacing: 0.025em;
    }
}