:root {
    --page: #f5f3ef;
    --surface: #ffffff;
    --surface-soft: #eeeae3;
    --text: #24272c;
    --muted: #68707a;
    --line: #ddd8cf;
    --red: #a9403b;
    --red-dark: #87332f;
    --blue: #315f78;
    --gold: #b88d2f;
    --shadow: 0 8px 24px rgba(29, 32, 36, .06);
    --radius: 10px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font: 16px/1.65 Arial, Helvetica, sans-serif;
}

@supports (padding: max(0px)) {
    .site-header,
    .page-intro,
    .home-page-intro,
    .site-footer {
        margin-right: calc(env(safe-area-inset-right) * -1);
        margin-left: calc(env(safe-area-inset-left) * -1);
        padding-right: env(safe-area-inset-right);
        padding-left: env(safe-area-inset-left);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
    font-size: 1.18rem;
}

p {
    color: var(--muted);
}

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

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 1200;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: var(--text);
    color: #fff;
    clip: auto;
}

/* Header und Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 8px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.brand strong {
    letter-spacing: .12em;
}

.brand small {
    color: var(--muted);
    font-size: .72rem;
}

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

.main-nav > a,
.nav-dropdown summary {
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    font-size: .93rem;
    font-weight: 700;
    list-style: none;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-dropdown summary:hover {
    background: var(--surface-soft);
    color: var(--red);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nav-avatar {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    font-size: .7rem;
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.nav-dropdown__menu a,
.nav-logout-form button {
    padding: 9px 10px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 700;
    text-align: left;
}

.nav-logout-form {
    margin: 0;
}

.nav-dropdown__menu a:hover,
.nav-logout-form button:hover {
    background: var(--surface-soft);
    color: var(--red);
}

.menu-toggle {
    display: none;
}

.cookie-consent {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(560px, calc(100% - 36px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 45px rgba(29, 32, 36, .16);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-consent p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        width: calc(100% - 24px);
    }

    .cookie-consent .button {
        width: 100%;
        text-align: center;
    }
}

/* Allgemeine Seitenbereiche */
.page-intro {
    padding: 64px 0 42px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    text-align: center;
}

.page-intro h1 {
    margin-bottom: 12px;
}

.page-intro p:last-child {
    max-width: 620px;
    margin: 0 auto;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.section {
    padding: 64px 0;
}

.section--soft {
    background: var(--surface-soft);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading--center,
.button-row--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    justify-content: center;
}

.section-heading--center {
    margin-bottom: 30px;
}

.section-heading--center p:last-child {
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;
}

.section > .container > h2,
.section > .container > h3 {
    text-align: center;
}

.hero-classic {
    padding: 92px 0 82px;
    text-align: center;
}

.hero-classic h1 {
    margin-bottom: 4px;
}

.hero-classic__subline {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-classic__intro {
    max-width: 650px;
    margin: 20px auto 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 9px 16px;
    border: 1px solid var(--red);
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.button:hover {
    background: var(--red-dark);
    box-shadow: 0 5px 12px rgba(135, 51, 47, .18);
}

.button--secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.button--secondary:hover {
    background: var(--surface-soft);
    box-shadow: none;
}

.home-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    background: #fff;
}

.home-summary__item {
    padding: 17px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.home-summary__item:last-child {
    border-right: 0;
}

.home-summary__item strong,
.home-summary__item span {
    display: block;
}

.home-summary__item strong {
    margin-bottom: 3px;
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-summary__item span {
    color: var(--muted);
}

/* Karten und Layouts */
.cards,
.classic-event-grid,
.content-grid,
.classic-info-grid {
    display: grid;
    gap: 18px;
}

.cards {
    grid-template-columns: repeat(3, 1fr);
}

.cards--classic .card,
.classic-event-card,
.card,
.classic-info-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card,
.classic-event-card,
.classic-info-panel {
    padding: 23px;
}

.card:hover,
.classic-event-card:hover {
    border-color: #cfc5b8;
}

.card--centered,
.classic-event-card--featured {
    text-align: center;
}

.classic-event-grid--two,
.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.classic-info-grid {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
}

.classic-info-grid--centered > div:first-child,
.classic-info-grid--centered .classic-info-panel {
    text-align: center;
}

.classic-info-grid--centered .classic-list {
    display: inline-block;
    text-align: left;
}

.dealer-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
}

.dealer-card {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.dealer-card__logo {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f3eee6);
    box-shadow: 0 12px 24px rgba(36, 43, 52, .08);
    overflow: hidden;
}

.dealer-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.dealer-card__logo span {
    color: var(--red);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.dealer-card .button {
    margin-top: 10px;
}

.classic-event-card__label {
    margin-bottom: 8px;
    color: var(--red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.classic-event-card--next {
    text-align: center;
}

.classic-event-card--next .classic-event-card__meta {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
}

.classic-event-card__meta,
.info-list,
.classic-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.classic-event-card__meta li,
.info-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.classic-event-card__meta li:last-child,
.info-list li:last-child {
    border-bottom: 0;
}

.classic-event-card__meta strong,
.info-list strong {
    display: block;
    color: var(--text);
    font-size: .75rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.classic-list li {
    position: relative;
    padding: 7px 0 7px 18px;
    color: var(--muted);
}

.classic-list li::before {
    position: absolute;
    top: 14px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    content: '';
}

.feedback-grid {
    align-items: stretch;
}

.feedback-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.feedback-card p {
    color: var(--text);
    font-size: 1.02rem;
    font-style: italic;
}

.feedback-card strong {
    color: var(--red);
    font-size: .84rem;
}

.feedback-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.content-grid--centered > div:first-child,
.content-grid--centered > article:first-child {
    text-align: center;
}

.content-grid--centered > div:first-child .schedule {
    text-align: left;
}

.content-grid--centered > aside.card {
    align-self: start;
    min-height: 0;
}

.content-grid--centered > div > .form-card {
    width: 100%;
}

.contact-page .content-grid {
    align-items: start;
}

.contact-page .form-card {
    padding: 28px;
    background: #fff;
}

.contact-page .card--centered {
    padding: 28px 24px;
    background: #f8fafb;
}

.contact-page .callout {
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(195, 154, 61, .35);
    border-radius: 10px;
    background: #fffaf0;
    text-align: center;
}

.section-heading--left {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.section-heading--left p:last-child {
    max-width: 620px;
    margin-right: 0;
    margin-left: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    align-items: start;
    gap: 28px;
}

.contact-form-panel .section-heading {
    margin-bottom: 22px;
}

.contact-page .contact-form-panel .form-card {
    padding: 30px;
    text-align: left;
}

.contact-page .contact-form-panel label {
    margin-top: 0;
    color: var(--text);
    text-align: left;
}

.contact-page .contact-form-panel input,
.contact-page .contact-form-panel textarea {
    margin-bottom: 16px;
    background: #fbfcfc;
}

.contact-page .contact-form-panel textarea {
    min-height: 155px;
}

.contact-page .contact-form-panel .button-row {
    justify-content: flex-start;
    margin-top: 4px;
}

.contact-info-panel {
    position: sticky;
    top: 96px;
    padding: 30px;
    border: 1px solid rgba(32, 59, 76, .13);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-info-panel h2 {
    margin-bottom: 22px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.contact-info-list {
    display: grid;
    gap: 12px;
}

.contact-info-list > div,
.contact-response {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafb;
}

.contact-info-list span,
.contact-response span {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-info-list a {
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-info-list p,
.contact-response p {
    margin: 0;
}

.contact-response {
    margin-top: 14px;
    border-color: rgba(195, 154, 61, .42);
    background: #fffaf0;
}

.contact-debug {
    margin-bottom: 16px;
    border-color: #d9c7c7;
}

.contact-page--new {
    background:
        linear-gradient(180deg, #eef1f3 0%, #f7f8f8 100%);
}

.contact-board {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
    gap: 26px;
    align-items: stretch;
}

.contact-sidebar,
.contact-message-panel {
    border: 1px solid rgba(32, 59, 76, .13);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    background: #203b4c;
    color: #fff;
}

.contact-sidebar h2 {
    margin-bottom: 14px;
    color: #fff;
}

.contact-sidebar p {
    color: #d5e0e5;
}

.contact-sidebar .eyebrow {
    color: #e7bd59;
}

.contact-methods {
    display: grid;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.contact-method:hover {
    background: rgba(255, 255, 255, .13);
}

.contact-method__label {
    display: block;
    margin-bottom: 3px;
    color: #e7bd59;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-method strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.instagram-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #b5433d;
}

.instagram-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.contact-note {
    padding: 16px;
    border: 1px solid rgba(231, 189, 89, .38);
    border-radius: 12px;
    background: rgba(231, 189, 89, .1);
}

.contact-note span {
    display: block;
    margin-bottom: 5px;
    color: #e7bd59;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-note p {
    margin: 0;
}

.contact-message-panel {
    padding: 30px;
}

.contact-message-head {
    margin-bottom: 22px;
}

.contact-message-head h2 {
    margin-bottom: 6px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

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

.contact-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    background: #fbfcfc;
}

.contact-form textarea {
    min-height: 190px;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-form-actions span {
    color: var(--muted);
    font-size: .9rem;
}

.tournament-pdf {
    overflow: hidden;
    margin: 22px 0 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafb;
}

.tournament-pdf object {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
}

.tournament-pdf p {
    margin: 0;
    padding: 24px;
    text-align: center;
}

.contact-page--new .contact-message-panel {
    order: 1;
}

.contact-page--new .contact-sidebar {
    order: 2;
    background: #fff;
    color: var(--text);
}

.contact-page--new .contact-sidebar h2 {
    color: var(--text);
}

.contact-page--new .contact-sidebar p {
    color: var(--muted);
}

.contact-page--new .contact-sidebar .eyebrow,
.contact-page--new .contact-method__label,
.contact-page--new .contact-note span {
    color: var(--red);
}

.contact-page--new .contact-method {
    border-color: var(--line);
    background: #f8fafb;
}

.contact-page--new .contact-method:hover {
    border-color: rgba(181, 67, 61, .34);
    background: #fff;
}

.contact-page--new .contact-method strong {
    color: var(--text);
}

.contact-page--new .contact-note {
    border-color: rgba(195, 154, 61, .42);
    background: #fffaf0;
}

/* Formulare, Tabellen und Karten */
.form-section {
    max-width: 820px;
    margin: 0 auto;
}

.form-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

label {
    display: block;
    margin: 13px 0 5px;
    font-size: .86rem;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cbc4b9;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(49, 95, 120, .14);
}

.notice,
.access-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 7px;
    font-weight: 700;
}

.notice {
    background: #e9f2eb;
    color: #2f6842;
}

.access-error {
    background: #f8e7e4;
    color: #7d302c;
}

.schedule {
    width: 100%;
    border-collapse: collapse;
}

.schedule th,
.schedule td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.schedule th {
    color: var(--muted);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.map-panel {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map-panel__details {
    padding: 24px;
}

.map-panel__map {
    min-height: 380px;
}

.map-panel__map iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
}

.location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.location-features {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.feature > span {
    min-width: 48px;
    color: var(--red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

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

.feature small {
    color: var(--muted);
}

/* Galerie */
.gallery-grid,
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-grid a,
.gallery-preview a {
    display: block;
    min-height: 160px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.gallery-grid img,
.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Turnierseite */
.tournament-page-intro {
    padding-bottom: 42px;
}

.tournament-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.tournament-capacity {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 auto 18px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

.tournament-format-card .tournament-capacity {
    margin-top: 14px;
    margin-bottom: 0;
}

.tournament-section--formats .container {
    text-align: center;
}

.tournament-section--formats .cards {
    text-align: left;
}

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

.tournament-format-card.is-active {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(169, 64, 59, .11);
}

.tournament-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f5e7c9;
    color: #755516;
    font-size: .76rem;
    font-weight: 800;
}

.tournament-rules {
    padding: 16px;
    border-left: 3px solid var(--red);
    background: var(--surface-soft);
}

/* Footer */
.site-footer {
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr .8fr;
    gap: 34px;
}

.site-footer h2 {
    margin-bottom: 9px;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer p {
    max-width: 420px;
    margin-top: 12px;
}

.site-footer a:not(.brand) {
    display: block;
    width: max-content;
    margin: 5px 0;
    color: var(--red);
    font-weight: 700;
}

.tournament-format-card .tournament-capacity {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin: 20px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(195, 154, 61, .42);
    border-radius: 12px;
    background: #fffaf0;
    text-align: center;
}

.tournament-format-card .tournament-capacity__label {
    color: #705a2c;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}

.tournament-format-card .tournament-capacity strong {
    color: var(--red);
    font-size: 1.65rem;
    line-height: 1;
    white-space: nowrap;
}

.tournament-format-card .tournament-capacity strong small {
    color: #765f31;
    font-size: .85rem;
}

.tournament-format-card .tournament-capacity__status {
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1e2bc;
    color: #705a2c;
    font-size: .72rem;
    font-weight: 800;
}

@media (max-width: 520px) {
    .tournament-format-card .tournament-capacity {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tournament-format-card .tournament-capacity__label,
    .tournament-format-card .tournament-capacity__status {
        justify-self: center;
        text-align: center;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 15px 0 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .86rem;
}

@media (max-width: 900px) {
    .cards,
    .home-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .contact-info-panel {
        position: static;
    }

    .map-panel {
        grid-template-columns: 1fr;
    }

    .map-panel__map {
        min-height: 300px;
    }

    .map-panel__map iframe {
        min-height: 300px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .header-inner {
        min-height: 66px;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding: 10px 0 14px;
    }

    .main-nav.is-open {
        display: grid;
        justify-items: stretch;
    }

    .nav-dropdown__menu {
        position: static;
        margin-top: 5px;
        box-shadow: none;
    }

    .menu-toggle {
        display: grid;
        gap: 4px;
        width: 40px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: #fff;
    }

    .menu-toggle span:not(.sr-only) {
        display: block;
        height: 2px;
        background: var(--text);
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
    }

    .page-intro,
    .hero-classic {
        padding-top: 52px;
        padding-bottom: 42px;
    }

    .section,
    .tournament-section {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .cards,
    .classic-event-grid--two,
    .content-grid,
    .classic-info-grid,
    .tournament-format-grid,
    .home-summary {
        grid-template-columns: 1fr;
    }

    .home-summary__item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-summary__item:last-child {
        border-bottom: 0;
    }

    .cta-panel,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid,
    .gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-sidebar,
    .contact-message-panel {
        padding: 24px;
    }

    .tournament-pdf object {
        min-height: 420px;
    }
}

/* Pokepolda Redesign: ruhig, modern und mit dezenten Bewegungseffekten */
:root {
    --page: #eef1f3;
    --surface: #ffffff;
    --surface-soft: #e5eaed;
    --text: #202b35;
    --muted: #65717a;
    --line: #d5dde1;
    --red: #b5433d;
    --red-dark: #8d302d;
    --blue: #203b4c;
    --gold: #c39a3d;
    --shadow: 0 12px 30px rgba(25, 43, 55, .08);
    --shadow-hover: 0 18px 38px rgba(25, 43, 55, .14);
    --radius: 14px;
}

body {
    background: var(--page);
}

.site-header {
    border-bottom-color: rgba(255, 255, 255, .12);
    background: var(--blue);
    box-shadow: 0 4px 18px rgba(18, 34, 44, .16);
}

.brand strong {
    color: #fff;
}

.brand small {
    color: #c8d2d8;
}

.main-nav > a,
.nav-dropdown summary {
    color: #d7e0e5;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-dropdown summary:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.nav-dropdown__menu {
    border-color: rgba(255, 255, 255, .12);
    background: #243f50;
    box-shadow: 0 14px 30px rgba(13, 27, 36, .2);
}

.nav-dropdown__menu a {
    color: #d7e0e5;
}

.nav-dropdown__menu a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.nav-avatar {
    background: var(--red);
}

.page-intro {
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    background: var(--blue);
    color: #fff;
}

.page-intro::after {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 320px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .03), 0 0 0 36px rgba(255, 255, 255, .025);
    content: '';
    transform: rotate(-18deg);
}

.page-intro h1,
.page-intro p {
    position: relative;
    z-index: 1;
}

.page-intro p {
    color: #d5e0e5;
}

.page-intro .eyebrow {
    color: #e5bd58;
}

.home-page-intro {
    position: relative;
    overflow: hidden;
    background: var(--blue);
    color: #fff;
}

.home-page-intro::after {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 320px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(255, 255, 255, .03), 0 0 0 36px rgba(255, 255, 255, .025);
    content: '';
    transform: rotate(-18deg);
}

.home-page-intro .hero-classic {
    position: relative;
    z-index: 1;
}

.home-page-intro .hero-classic__subline,
.home-page-intro .hero-classic__intro {
    color: #d5e0e5;
}

.home-page-intro .eyebrow {
    color: #e5bd58;
}

.section--soft {
    background: #e5eaed;
}

.card,
.classic-event-card,
.classic-info-panel,
.form-card,
.map-panel,
.home-summary,
.cta-panel {
    border-color: rgba(32, 59, 76, .13);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.classic-event-card {
    animation: surface-in .5s ease both;
}

.card:hover,
.classic-event-card:hover {
    border-color: rgba(181, 67, 61, .35);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.button {
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(181, 67, 61, .16);
}

.button:hover {
    box-shadow: 0 8px 20px rgba(181, 67, 61, .25);
    transform: translateY(-2px);
}

.button--secondary {
    box-shadow: none;
}

.eyebrow {
    letter-spacing: .16em;
}

.tournament-capacity {
    border-color: rgba(195, 154, 61, .35);
    background: #fffaf0;
    box-shadow: 0 5px 15px rgba(195, 154, 61, .1);
}

.tournament-badge {
    background: #fff1c9;
}

.site-footer {
    background: var(--blue);
    color: #eef4f6;
}

.site-footer p,
.site-footer .brand small {
    color: #c4d0d6;
}

.site-footer h2 {
    color: #fff;
}

.site-footer a:not(.brand) {
    color: #e7bd59;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, .16);
    color: #bac8cf;
}

@keyframes surface-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Demo-Zugang */
.access-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(32, 59, 76, .94), rgba(32, 59, 76, .82)),
        radial-gradient(circle at top left, rgba(195, 154, 61, .24), transparent 34%),
        #203b4c;
}

.access-main {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 38px 18px;
}

.access-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    width: min(980px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 26px 70px rgba(9, 24, 34, .32);
}

.access-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    padding: 34px;
    overflow: hidden;
    background: #203b4c;
    color: #fff;
}

.access-info::after {
    position: absolute;
    right: -115px;
    bottom: -125px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(255, 255, 255, .035),
        0 0 0 48px rgba(255, 255, 255, .025);
    content: '';
}

.brand--access {
    position: relative;
    z-index: 1;
    width: max-content;
}

.brand--access .brand-mark {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, .16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.brand--access strong {
    color: #fff;
}

.brand--access small {
    color: #d0dbe0;
}

.access-copy {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 56px 0;
}

.access-copy .eyebrow {
    color: #e7bd59;
}

.access-copy h1 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.access-copy p {
    color: #d7e2e7;
    font-size: 1.03rem;
}

.access-progress {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 430px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.access-progress p {
    margin: 0;
    color: #d7e2e7;
    font-size: .93rem;
}

.progress-ring {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(from 22deg, #e7bd59 0 74%, rgba(255, 255, 255, .18) 74% 100%);
}

.progress-ring::before {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #203b4c;
    content: '';
}

.progress-ring span {
    position: relative;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.access-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
}

.access-login__label {
    margin-bottom: 8px;
    color: var(--red);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.access-login h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.access-form {
    display: grid;
    gap: 12px;
}

.access-form label {
    margin: 0;
    color: #34424c;
}

.access-form input {
    min-height: 48px;
    padding: 11px 13px;
    border-color: #cbd5da;
    background: #f8fafb;
}

.access-form input:focus {
    background: #fff;
}

.access-form .button {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
}

.access-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 4px;
    color: #34424c;
    font-size: .92rem;
    font-weight: 800;
}

.access-remember input {
    width: 17px;
    height: 17px;
    min-height: 0;
    margin: 0;
    accent-color: var(--red);
}

.access-login .access-error {
    margin-bottom: 16px;
}

.access-card > .eyebrow,
.access-card > h1,
.access-card > .notice,
.access-card > .access-error,
.access-card > .access-form,
.access-card > .button {
    grid-column: 1 / -1;
    margin-right: auto;
    margin-left: auto;
    width: min(430px, calc(100% - 48px));
}

.access-card > .eyebrow {
    margin-top: 40px;
}

.access-card > h1 {
    text-align: center;
}

.access-card > .button {
    margin-bottom: 40px;
}

@media (max-width: 820px) {
    .access-card {
        grid-template-columns: 1fr;
    }

    .access-info {
        min-height: auto;
        padding: 28px;
    }

    .access-copy {
        margin: 42px 0 28px;
    }

    .access-login {
        padding: 32px 28px 34px;
    }
}

@media (max-width: 520px) {
    .access-main {
        padding: 18px 12px;
    }

    .access-card {
        border-radius: 14px;
    }

    .access-info,
    .access-login {
        padding: 24px 20px;
    }

    .access-progress {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand--access {
        align-items: flex-start;
    }
}

.error-page {
    background: var(--page);
}

.error-page .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.error-page__nav {
    justify-content: flex-end;
}

.error-page__intro {
    padding-top: clamp(56px, 8vw, 92px);
    padding-bottom: clamp(48px, 7vw, 78px);
}

.error-page__intro h1 {
    max-width: 780px;
}

.error-page__content {
    display: flex;
    justify-content: center;
}

.error-page__card {
    max-width: 760px;
    padding: clamp(28px, 5vw, 46px);
}

.error-page__card h2 {
    margin-bottom: 12px;
    color: var(--text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.error-page__card p:not(.eyebrow) {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 760px) {
    .error-page__nav {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive safety layer for tablets and phones. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
object {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

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

    .cards,
    .cards--classic,
    .content-grid,
    .classic-info-grid,
    .classic-event-grid--two,
    .contact-page .content-grid,
    .contact-page--new .contact-layout,
    .tournament-format-grid,
    .tournament-section--formats .cards {
        gap: 20px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .header-inner {
        gap: 14px;
    }

    .main-nav {
        gap: 6px;
    }

    .main-nav > a,
    .nav-dropdown summary {
        padding: 8px 10px;
        font-size: .94rem;
    }
}

@media (max-width: 920px) {
    .cards,
    .cards--classic,
    .home-summary,
    .tournament-section--formats .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .classic-info-grid,
    .classic-event-grid--two,
    .contact-page .content-grid,
    .contact-page--new .contact-layout,
    .contact-board,
    .map-panel,
    .tournament-meta,
    .tournament-rule-layout,
    .tournament-register-layout {
        grid-template-columns: 1fr;
    }

    .contact-page .card--centered,
    .contact-page .form-card,
    .contact-page--new .contact-message-panel,
    .contact-page--new .contact-sidebar,
    .content-grid--centered > div:first-child,
    .content-grid--centered > aside.card {
        width: 100%;
        max-width: 100%;
    }

    .dealer-grid {
        grid-template-columns: repeat(2, minmax(0, 320px));
        justify-content: center;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: .9rem;
        letter-spacing: .08em;
    }

    .brand small {
        font-size: .68rem;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .header-inner {
        min-height: 64px;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        margin-left: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
    }

    .main-nav > a,
    .nav-dropdown summary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-dropdown__menu {
        width: 100%;
        padding: 8px;
    }

    .nav-dropdown__menu a {
        text-align: center;
    }

    .page-intro,
    .home-page-intro,
    .hero-classic {
        padding-top: 44px;
        padding-bottom: 38px;
    }

    .page-intro h1,
    .hero-classic h1 {
        font-size: clamp(2rem, 12vw, 3.3rem);
        line-height: 1.05;
    }

    .section,
    .tournament-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .cards,
    .cards--classic,
    .home-summary,
    .dealer-grid,
    .gallery-grid,
    .gallery-preview,
    .tournament-format-grid,
    .tournament-section--formats .cards {
        grid-template-columns: 1fr;
    }

    .card,
    .form-card,
    .classic-info-panel,
    .contact-page--new .contact-message-panel,
    .contact-page--new .contact-sidebar,
    .contact-sidebar,
    .contact-message-panel,
    .cta-panel,
    .notice,
    .access-error {
        border-radius: 14px;
    }

    .card,
    .form-card,
    .contact-page--new .contact-message-panel,
    .contact-page--new .contact-sidebar,
    .contact-sidebar,
    .contact-message-panel {
        padding: 22px;
    }

    .button-row,
    .button-row--center {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .button-row .button,
    .button-row--center .button,
    .form-card .button {
        width: 100%;
        justify-content: center;
    }

    .form-card input,
    .form-card textarea,
    .form-card select,
    .contact-page--new input,
    .contact-page--new textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .schedule {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .info-list--centered li,
    .home-summary__item,
    .classic-list li {
        text-align: center;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .brand--footer {
        justify-content: center;
    }

    .site-footer .footer-bottom {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(var(--container), calc(100% - 18px));
    }

    .brand span:last-child {
        max-width: 180px;
    }

    .page-intro h1,
    .hero-classic h1 {
        font-size: clamp(1.85rem, 13vw, 2.7rem);
    }

    .section-heading h2,
    .card h2,
    .card h3 {
        overflow-wrap: anywhere;
    }

    .card,
    .form-card,
    .contact-page--new .contact-message-panel,
    .contact-page--new .contact-sidebar,
    .contact-sidebar,
    .contact-message-panel {
        padding: 18px;
    }

    .dealer-card__logo {
        width: 64px;
        height: 64px;
    }

    .tournament-format-card .tournament-capacity {
        grid-template-columns: 1fr;
    }
}

/* Mobile fixes: footer and event page. */
@media (max-width: 680px) {
    .site-footer,
    .site-footer .footer-grid,
    .site-footer .footer-bottom,
    .site-footer .footer-brand-block {
        text-align: center;
    }

    .site-footer .footer-grid > div {
        display: grid;
        justify-items: center;
    }

    .site-footer p {
        margin-right: auto;
        margin-left: auto;
    }

    .site-footer a:not(.brand) {
        width: auto;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .site-footer .brand,
    .site-footer .brand--footer {
        justify-content: center;
    }

    .site-footer .footer-bottom {
        justify-content: center;
        gap: 6px;
    }

    .content-grid--centered {
        text-align: center;
    }

    .content-grid--centered > div:first-child,
    .content-grid--centered > aside.card {
        justify-self: stretch;
        max-width: 100%;
    }

    .content-grid--centered > aside.card {
        padding: 22px 18px;
    }

    .info-list,
    .info-list--centered {
        width: 100%;
    }

    .info-list li {
        padding-right: 0;
        padding-left: 0;
    }

    .schedule {
        display: grid;
        gap: 10px;
        overflow: visible;
        border-collapse: separate;
        white-space: normal;
    }

    .schedule tr {
        display: grid;
        gap: 4px;
        padding: 13px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        box-shadow: 0 8px 18px rgba(25, 43, 55, .06);
        text-align: center;
    }

    .schedule tr:first-child {
        display: none;
    }

    .schedule th,
    .schedule td {
        display: block;
        padding: 0;
        border-bottom: 0;
        text-align: center;
    }

    .schedule td:first-child {
        color: var(--red);
        font-size: .78rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .map-panel {
        overflow: visible;
        text-align: center;
    }

    .map-panel__details {
        padding: 22px 18px;
    }

    .location-features {
        text-align: left;
    }

    .location-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .location-buttons .button {
        width: 100%;
        justify-content: center;
    }

    .map-panel__map,
    .map-panel__map iframe {
        min-height: 280px;
        border-radius: 0 0 var(--radius) var(--radius);
    }
}

@media (max-width: 420px) {
    .content-grid--centered h2,
    .section-heading h2 {
        overflow-wrap: anywhere;
    }

    .map-panel__map,
    .map-panel__map iframe {
        min-height: 240px;
    }
}

/* Phone landscape: avoid visible side gutters. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
    html,
    body {
        width: 100%;
        min-width: 0;
        margin: 0;
        background: var(--page);
    }

    .site-header,
    .page-intro,
    .home-page-intro,
    .section,
    .site-footer {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .page-intro,
    .home-page-intro,
    .site-footer {
        position: relative;
        left: 50%;
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .container {
        width: 100%;
        max-width: none;
        padding-right: max(10px, env(safe-area-inset-right));
        padding-left: max(10px, env(safe-area-inset-left));
    }

    .header-inner {
        width: 100%;
    }

    .page-intro,
    .home-page-intro,
    .hero-classic {
        padding-top: 34px;
        padding-bottom: 30px;
    }

    .section,
    .tournament-section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .card,
    .form-card,
    .map-panel,
    .contact-page--new .contact-message-panel,
    .contact-page--new .contact-sidebar {
        max-width: 100%;
    }
}

/* Final polish: fixed public topbar and cleaner dealer presentation. */
body {
    padding-top: 74px;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

.dealer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 440px));
    align-items: stretch;
    justify-content: center;
    gap: 24px;
}

.dealer-card {
    align-items: flex-start;
    min-height: 100%;
    padding: 28px;
    text-align: left;
}

.dealer-card__logo {
    width: 74px;
    height: 74px;
    margin: 0 0 18px;
    border-radius: 18px;
}

.dealer-card .eyebrow {
    margin-bottom: 6px;
}

.dealer-card h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.dealer-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65;
    text-align: left;
}

.dealer-card .button {
    margin-top: auto;
    align-self: flex-start;
}

@media (min-width: 760px) {
    .dealer-card {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        column-gap: 18px;
    }

    .dealer-card__logo {
        grid-row: 1 / 5;
    }
}

@media (max-width: 680px) {
    body {
        padding-top: 64px;
    }

    .site-header {
        min-height: 64px;
    }

    .main-nav.is-open {
        max-height: calc(100vh - 64px);
    }

    .dealer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dealer-card {
        align-items: center;
        padding: 24px 20px;
        text-align: center;
    }

    .dealer-card__logo {
        margin-right: auto;
        margin-left: auto;
    }

    .dealer-card p:not(.eyebrow) {
        text-align: center;
    }

    .dealer-card .button {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
}

/* Final 404 alignment. */
.error-page .page-intro,
.error-page__intro,
.error-page__intro .container,
.error-page__content,
.error-page__card {
    text-align: center;
}

.error-page__intro .container {
    display: grid;
    justify-items: center;
}

.error-page__intro h1,
.error-page__intro p,
.error-page__card h2,
.error-page__card p {
    margin-right: auto;
    margin-left: auto;
}

.error-page__intro h1 {
    max-width: 760px;
}

.error-page__intro p:not(.eyebrow) {
    max-width: 620px;
}

.error-page__content {
    display: grid;
    justify-items: center;
}

.error-page__card {
    width: min(760px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.error-page__card .button-row {
    justify-content: center;
}

@media (max-width: 680px) {
    .error-page__card {
        width: 100%;
    }
}
