@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --lw-accent: #A66D1F;
    --lw-gold: #C09446;
    --lw-forest: #13261B;
    --lw-cream: #FBF9F5;
}

.lw-trigger {
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--lw-accent);
}
.lw-trigger-underline {
    border-bottom: 1.5px dashed var(--lw-gold);
    text-decoration: none !important;
    font-weight: 600;
    padding-bottom: 1px;
}
.lw-trigger-underline:hover {
    background-color: rgba(192, 148, 70, 0.14);
    border-bottom-style: solid;
    color: var(--lw-forest);
}
.lw-trigger-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 9px;
    border-radius: 5px;
    background: #F3EFE6;
    border: 1px solid #E5DEC9;
    color: #13261B !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 0.94em;
}
.lw-trigger-badge:hover {
    background: #C09446;
    border-color: #C09446;
    color: #ffffff !important;
}
.lw-trigger-iconlink {
    text-decoration: underline !important;
    text-decoration-color: var(--lw-gold) !important;
    text-underline-offset: 3px;
    font-weight: 600;
}
.lw-trigger-iconlink::after {
    content: " \24D8";
    font-size: 0.85em;
    color: var(--lw-gold);
}

/* Dialog-Grundlayout: Funktioniert auch in Templates ohne Bootstrap-CSS. */
.lw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    overscroll-behavior: contain;
}
.lw-modal, .lw-modal * { box-sizing: border-box; }
.lw-modal .modal-dialog {
    position: relative;
    width: auto;
    max-width: 520px;
    margin: 1rem auto;
    pointer-events: none;
    padding: 0 1rem;
}
.lw-modal .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}
.lw-modal .modal-dialog.modal-sm { max-width: 380px; }
.lw-modal .modal-dialog.modal-lg { max-width: 780px; }
.lw-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
}
.lw-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
}
.lw-modal .modal-title { margin: 0; line-height: 1.25; }
.lw-modal .modal-body { position: relative; flex: 1 1 auto; padding: 1.5rem; }
.lw-modal .btn-close {
    position: relative;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: .25rem;
    background: transparent;
    color: #18241e;
    cursor: pointer;
    opacity: .8;
}
.lw-modal .btn-close::before, .lw-modal .btn-close::after {
    content: '';
    position: absolute;
    top: 50%; left: 25%;
    width: 50%; height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}
.lw-modal .btn-close::after { transform: rotate(-45deg); }
.lw-modal .btn-close:hover { opacity: 1; }
.lw-modal .btn-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lw-modal .d-flex { display: flex; }
.lw-modal .align-items-center { align-items: center; }
.lw-modal .justify-content-between { justify-content: space-between; }
.lw-modal .gap-3 { gap: 1rem; }
.lw-modal .flex-grow-1 { flex-grow: 1; min-width: 0; }
.lw-modal .mb-1 { margin-bottom: .25rem; }
.lw-modal .me-1 { margin-right: .25rem; }
.lw-modal .mb-3 { margin-bottom: 1rem; }
.lw-modal .mt-1 { margin-top: .25rem; }
.lw-modal .mt-3 { margin-top: 1rem; }
.lw-modal .pt-2 { padding-top: .5rem; }
.lw-modal .p-3 { padding: 1rem; }
.lw-modal .small { font-size: .875em; }
.lw-modal .text-muted { color: #6c757d; }
.lw-modal .text-white { color: #fff; }
.lw-modal .text-end { text-align: right; }
.lw-modal .fw-bold { font-weight: 700; }
.lw-modal .fst-italic { font-style: italic; }
.lw-modal .lh-base { line-height: 1.5; }
.lw-modal .border-top { border-top: 1px solid #dee2e6; }
.lw-modal .rounded { border-radius: .375rem; }
.lw-modal .badge { display: inline-block; padding: .35em .65em; border-radius: .375rem; font-size: .75em; font-weight: 700; line-height: 1.2; }
body:has(> .lw-modal.show) > .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background: #000;
    opacity: .5;
}
@media (max-width: 480px) {
    .lw-modal .modal-body { padding: 1rem; }
    .lw-modal .lw-avatar, .lw-modal .lw-crest { width: 76px; height: 76px; }
}

.lw-modal .modal-content {
    border: 1px solid #E5DEC9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(19, 38, 27, 0.32);
    background: #FFFFFF;
    color: #18241E;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 16px;
}

.lw-modal.lw-theme-mb .modal-content {
    background: #FBF9F5;
    border: 1px solid #DFD7C4;
    color: #18241E;
    font-family: 'Source Sans 3', sans-serif;
}
.lw-modal.lw-theme-mb .modal-title,
.lw-modal.lw-theme-mb h4,
.lw-modal.lw-theme-mb h5 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

.lw-modal .modal-header.lw-header-mb-forest {
    background: #13261B !important;
    color: #FBF9F5 !important;
    border-bottom: 3px solid #C09446;
    padding: 1rem 1.4rem;
}
.lw-modal .modal-header.lw-header-mb-forest .modal-title {
    color: #FBF9F5 !important;
    font-size: 1.5rem;
}
.lw-modal .modal-header.lw-header-mb-forest .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.lw-modal .modal-header.lw-header-mb-ornament {
    background: #FBF9F5 !important;
    border-bottom: 1px solid #E5DEC9;
    padding: 1.25rem 1.4rem 0.9rem 1.4rem;
    position: relative;
    justify-content: center;
}
.lw-modal .modal-header.lw-header-mb-ornament .lw-ornament-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding-right: 24px;
}
.lw-modal .modal-header.lw-header-mb-ornament .lw-ornament-line {
    height: 1.5px;
    width: 38px;
    background-color: #C09446;
    display: inline-block;
    flex-shrink: 0;
}
.lw-modal .modal-header.lw-header-mb-ornament .modal-title {
    color: #18241E !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
}
.lw-modal .modal-header.lw-header-mb-ornament .btn-close {
    position: absolute;
    right: 1.15rem;
    top: 1.15rem;
}

.lw-modal .modal-header.lw-header-mwh-dark {
    background: #0D1117 !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--lw-entry-color, #FF6A00);
    padding: 1rem 1.35rem;
}
.lw-modal .modal-header.lw-header-mwh-dark .modal-title {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.22rem;
}
.lw-modal .modal-header.lw-header-mwh-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.lw-modal .modal-header.lw-header-solid {
    color: #ffffff !important;
    border-bottom: none;
}
.lw-modal .modal-header.lw-header-solid .modal-title {
    color: #ffffff !important;
}
.lw-modal .modal-header.lw-header-solid .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.lw-mb-quotebox {
    border-left: 3px solid #C09446;
    background: #F3EFE6;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}

.lw-btn-mb {
    background-color: #C09446 !important;
    border-color: #C09446 !important;
    color: #FFFFFF !important;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.2s ease;
}
.lw-btn-mb:hover {
    background-color: #A66D1F !important;
    color: #FFFFFF !important;
}

.lw-modal .lw-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--lw-entry-color, #C09446);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.lw-modal .lw-crest {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid var(--lw-entry-color, #C09446);
    background: #ffffff;
    padding: 6px;
    flex-shrink: 0;
}
.lw-modal .lw-side-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E5DEC9;
    flex-shrink: 0;
}
.lw-modal .lw-banner {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #C09446;
}
.lw-modal .lw-facts-table {
    width: 100%;
    margin-top: 0.85rem;
    border-collapse: collapse;
}
.lw-modal .lw-facts-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #EAE3D2;
    font-size: 0.92rem;
    vertical-align: top;
}
.lw-modal .lw-facts-table tr:last-child td {
    border-bottom: none;
}
.lw-modal .lw-tennis-facts tr:nth-child(odd) { background: #f8efeb; }
.lw-modal .lw-tennis-facts tr:nth-child(even) { background: #fff9f1; }
.lw-modal .lw-tennis-facts td:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
/* Native buttons retain keyboard accessibility while looking like inline links. */
button.lw-trigger { font-family: inherit; font-size: inherit; cursor: pointer; text-align: inherit; }
button.lw-trigger-underline, button.lw-trigger-iconlink { background: transparent; border: 0; padding: 0; }
button.lw-trigger-underline { border-bottom: 1.5px dashed var(--lw-gold); padding-bottom: 1px; }
button.lw-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.lw-collection { margin: 1.5rem 0; }
.lw-collection-heading { margin: 1.5rem 0 .75rem; font-family: 'Cormorant Garamond', Georgia, serif; color: #13261b; }
.lw-collection-grid { display: grid; grid-template-columns: repeat(var(--lw-columns, 3), minmax(0, 1fr)); gap: 1rem; }
.lw-collection-card { min-width: 0; overflow: hidden; border: 1px solid #e5dec9; border-top: 3px solid #c09446; border-radius: .6rem; background: #fbf9f5; color: #18241e; box-shadow: 0 3px 14px rgba(19,38,27,.09); }
.lw-collection .lw-collection-image { display: block; width: 100%; height: 200px !important; object-fit: cover; }
.lw-collection-content { padding: 1rem; }
.lw-collection-content h4 { margin: 0 0 .3rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; line-height: 1.25; }
.lw-collection-content p { margin: 0; line-height: 1.4; font-size: .95rem; }
.lw-collection-dark .lw-collection-card { background: #13261b; color: #fbf9f5; border-color: #344b3d; border-top-color: #c09446; }
.lw-collection-dark .lw-trigger { color: #f5dfac; }
.lw-collection-plain .lw-collection-card { box-shadow: none; background: transparent; border-color: #dedede; }
@media (max-width: 1000px) { .lw-collection-grid { grid-template-columns: repeat(min(var(--lw-columns, 3), 3), minmax(0, 1fr)); } }
@media (max-width: 700px) { .lw-collection-grid { grid-template-columns: repeat(min(var(--lw-columns, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 440px) { .lw-collection-grid { grid-template-columns: 1fr; } }
