:root {
    --header-height: 110px;
    --container-width: 1120px;
    --color-primary: #0b3d5c;
    --color-primary-hover: #14577f;
    --color-secondary: #1e486c;
    --color-accent: #8a111f;
    --color-accent-hover: #a31727;
    --color-bg: #f4f7fa;
    --color-surface: #ffffff;
    --color-surface-soft: #f9fbfd;
    --color-border: #dbe4ec;
    --color-border-strong: #c8d3dc;
    --color-text: #222222;
    --color-text-soft: #62707d;
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 24px rgba(11, 61, 92, 0.08);
    --shadow-modal: 0 18px 40px rgba(0, 0, 0, 0.22);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    padding-top: var(--header-height);
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
}

button,
input,
textarea,
select {
    font: inherit;
}

/* =========================
   Grundlayout
========================= */
.site-shell {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.container {
    width: min(92%, var(--container-width));
    margin: 0 auto;
}

main {
    flex: 1 0 auto;
}

.content {
    padding: 18px 0 28px;
}

/* =========================
   Header
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dcdcdc;
    padding: 12px 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    min-height: calc(var(--header-height) - 24px);
}

.header-left {
    flex: 0 0 auto;
}

.logo-link {
    display: inline-block;
}

.logo {
    max-height: 70px;
    width: auto;
}

.header-right {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.header-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-nav a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.header-nav a:hover {
    background: #e8f0f6;
}

.header-nav a.is-active {
    background: #eef4f8;
    color: var(--color-primary);
}

.contact-btn {
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 10px 16px;
}

.contact-btn:hover {
    background: var(--color-accent-hover) !important;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
}

/* =========================
   Allgemeine Boxen
========================= */
.hero,
.info-box,
.page-header,
.widget-box,
.downloads-panel {
    background: var(--color-surface);
    padding: 24px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero h2,
.page-header h2,
.widget-box h3,
.info-box h3,
.downloads-panel h2 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.page-header p,
.hero p,
.info-box p,
.widget-box p,
.downloads-panel p {
    margin-bottom: 10px;
}

.page-header p:last-child,
.hero p:last-child,
.info-box p:last-child,
.widget-box p:last-child,
.downloads-panel p:last-child {
    margin-bottom: 0;
}

/* =========================
   Buttons allgemein
========================= */
.btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--color-primary);
    color: #ffffff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.25s ease, transform 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* =========================
   Startseite Standard Karten
========================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    background: var(--color-surface-soft);
    border: 1px solid #e4e8ec;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* =========================
   Startseite angepasst
========================= */
.homepage-hero {
    background: linear-gradient(135deg, #8a111f 0%, #b51d2d 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 34px 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(138, 17, 31, 0.18);
}

.homepage-hero h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.homepage-hero p {
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 10px;
    font-size: 1rem;
}

.homepage-hero p:last-child {
    margin-bottom: 0;
}

.homepage-highlight-box {
    background: #ffffff;
    border: 2px solid #8a111f;
    border-radius: 18px;
    padding: 26px 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(138, 17, 31, 0.08);
}

.homepage-highlight-box h3 {
    color: #8a111f;
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.homepage-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.homepage-card {
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
    border: 1px solid #efc9cf;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 16px rgba(138, 17, 31, 0.06);
}

.homepage-card h4 {
    color: #8a111f;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.homepage-card p {
    margin-bottom: 12px;
    color: #333333;
    line-height: 1.6;
}

.homepage-card p:last-child {
    margin-bottom: 0;
}

.homepage-card strong {
    color: #8a111f;
}

.homepage-note-box {
    background: #fff3f5;
    border: 1px solid #e8b9c1;
    border-left: 6px solid #8a111f;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 5px 14px rgba(138, 17, 31, 0.05);
}

.homepage-note-box h3 {
    color: #8a111f;
    margin-bottom: 10px;
}

.homepage-note-box p {
    margin-bottom: 0;
    color: #333333;
}

/* =========================
   Header Box Aktionen
========================= */
.course-header-box h2 {
    margin-bottom: 8px;
}

.course-header-box > p {
    margin-bottom: 16px;
}

.subtle-note {
    font-size: 0.9em;
    font-weight: normal;
}

.course-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.info-toggle-btn,
.request-toggle-btn,
.btn-primary-action,
.btn-secondary-action {
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
}

.info-toggle-btn {
    background: var(--color-secondary);
    color: #ffffff;
}

.info-toggle-btn:hover {
    background: #25577f;
}

.request-toggle-btn,
.btn-primary-action {
    background: var(--color-accent);
    color: #ffffff;
}

.request-toggle-btn:hover,
.btn-primary-action:hover {
    background: var(--color-accent-hover);
}

.btn-secondary-action {
    background: #e9eef3;
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary-action:hover {
    background: #dfe7ee;
}

.course-inline-alert {
    margin-top: 18px;
}

/* =========================
   Buchungsseite
========================= */
.booking-page {
    overflow-y: auto;
}

/* =========================
   Kursort Buttons
========================= */
.location-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 18px 0;
}

.location-btn {
    background: #e9eef3;
    color: var(--color-primary);
    border: 1px solid var(--color-border-strong);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: bold;
    transition: all 0.25s ease;
}

.location-btn:hover {
    background: #d8e5ef;
}

.location-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* =========================
   Widget Inhalte
========================= */
.widget-content {
    width: 100%;
}

.widget-content h4 {
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* =========================
   Highlight Box
========================= */
.course-highlight-box {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin: 0 0 18px 0;
}

.course-highlight-box p {
    margin-bottom: 8px;
}

.course-highlight-box p:last-child {
    margin-bottom: 0;
}

/* =========================
   Adressbox
========================= */
.location-address-box {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
}

.location-address-box h5 {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 8px;
}

.location-address-box p {
    margin-bottom: 0;
    font-size: 0.96rem;
}

/* =========================
   Widget
========================= */
.location-widget {
    width: 100%;
}

.location-widget cnct-widget-loader {
    display: block;
    width: 100%;
}

/* =========================
   Coming Soon
========================= */
.coming-soon-box {
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
}

.coming-soon-box .emoji {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.coming-soon-box h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

.coming-soon-box p {
    margin-bottom: 10px;
}

.coming-soon-box p:last-child {
    margin-bottom: 0;
}

/* =========================
   Modal / Popup
========================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 25, 36, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay-large {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    box-shadow: var(--shadow-modal);
}

.modal-box-large {
    max-width: 920px;
    max-height: none;
}

.modal-box h3 {
    color: var(--color-primary);
    margin-bottom: 18px;
    padding-right: 32px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #eef3f7;
    color: var(--color-primary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.modal-close:hover {
    background: #dbe7ef;
    color: var(--color-accent);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
}

.modal-info-row {
    padding: 14px 0;
    border-top: 1px solid #e3e8ee;
}

.modal-info-row:first-child {
    border-top: none;
    padding-top: 0;
}

.modal-info-row:last-child {
    padding-bottom: 0;
}

.modal-info-row h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.modal-info-row p {
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.modal-info-row p:last-child {
    margin-bottom: 0;
}

.modal-intro-text {
    margin: 8px 0 18px 0;
}

/* =========================
   Formulare
========================= */
.form-alert {
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 18px 0;
    font-size: 0.98rem;
}

.form-alert-success {
    background: #edf8ef;
    border: 1px solid #b9dfc0;
    color: #1f5d2d;
}

.form-alert-error {
    background: #fff3f3;
    border: 1px solid #e6b8b8;
    color: var(--color-accent);
}

.form-alert ul {
    margin: 10px 0 0 18px;
}

.inhouse-request-form {
    margin-top: 10px;
}

.inhouse-request-form-modern {
    margin-top: 14px;
}

.form-section-title {
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    color: var(--color-primary);
}

.form-type-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.form-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card-ui {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 88px;
    padding: 18px 18px 18px 52px;
    border: 1px solid #d5e0e8;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.choice-card-ui::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid #9eb4c3;
    background: #ffffff;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.choice-card-ui strong {
    color: var(--color-primary);
    font-size: 1rem;
}

.choice-card-ui small {
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.choice-card.is-selected .choice-card-ui {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(30, 72, 108, 0.08);
    transform: translateY(-1px);
}

.choice-card.is-selected .choice-card-ui::before {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.form-section-block {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fbfdff;
}

.form-section-block.is-hidden {
    display: none;
}

.form-section-head {
    margin-bottom: 16px;
}

.form-section-head h4 {
    margin-bottom: 4px;
    color: var(--color-primary);
    font-size: 1.02rem;
}

.form-section-head p {
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: 0.94rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd8df;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(30, 72, 108, 0.10);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    margin-top: 6px;
    color: #666666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.modal-box-large .form-actions {
    margin-top: 22px;
    padding-top: 6px;
}

.hidden-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.date-picker-input {
    background-color: #ffffff !important;
    cursor: pointer;
}

/* optionale Zwischenüberschriften im Formular */
.form-subsection-head {
    margin: 4px 0 14px;
    padding-top: 4px;
}

.form-subsection-head h5 {
    color: var(--color-accent);
    font-size: 0.98rem;
    margin: 0;
}

/* =========================
   Downloads
========================= */
.downloads-hero {
    background: linear-gradient(135deg, #0b3d5c 0%, #1e486c 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 34px 28px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}

.downloads-hero-compact {
    padding-top: 30px;
    padding-bottom: 30px;
}

.downloads-hero-inner {
    max-width: 760px;
}

.downloads-overline {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.downloads-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 12px;
    color: #ffffff;
}

.downloads-hero p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.downloads-panel {
    padding: 0;
    overflow: hidden;
}

.downloads-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #e7edf2;
}

.downloads-panel-head h2 {
    margin-bottom: 6px;
}

.downloads-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 10px 14px;
    background: #eef4f8;
    color: var(--color-primary);
    border: 1px solid #d8e5ef;
    border-radius: 999px;
    font-weight: bold;
    white-space: nowrap;
}

.download-list-simple {
    display: flex;
    flex-direction: column;
}

.download-row-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    border-top: 1px solid #edf2f6;
    transition: background 0.25s ease;
}

.download-row-card:first-child {
    border-top: none;
}

.download-row-card:hover {
    background: #fbfdff;
}

.download-row-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8a111f 0%, #b11d2f 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 18px rgba(138, 17, 31, 0.18);
}

.download-row-content {
    min-width: 0;
}

.download-row-content h3 {
    margin: 0 0 8px 0;
    color: var(--color-primary);
    font-size: 1.08rem;
    line-height: 1.3;
    word-break: break-word;
}

.download-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    color: var(--color-text-soft);
    font-size: 0.92rem;
}

.download-row-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f8fb;
    border: 1px solid #e1e9ef;
    border-radius: 999px;
    padding: 6px 10px;
}

.download-row-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.download-btn-simple {
    margin-top: 0;
    white-space: nowrap;
    background: var(--color-primary);
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

.download-btn-simple:hover {
    background: var(--color-primary-hover);
}

.downloads-empty-simple {
    padding: 28px 24px;
    text-align: center;
}

.downloads-empty-simple h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.downloads-empty-simple p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text-soft);
}

/* =========================
   Footer
========================= */
.site-footer {
    background: linear-gradient(135deg, #8a111f 0%, #b51d2d 100%);
    color: #ffffff;
    padding: 16px 0;
    margin-top: 18px;
    box-shadow: 0 -6px 18px rgba(138, 17, 31, 0.15);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-left {
    font-size: 0.95rem;
    opacity: 0.95;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-right a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* =========================
   Rechtliches
========================= */
.legal-page {
    overflow-y: auto;
}

.legal-page .site-shell {
    min-height: calc(100vh - var(--header-height));
}

.legal-box h3,
.legal-box h4 {
    color: var(--color-primary);
    margin-top: 25px;
    margin-bottom: 10px;
}

.legal-box h3:first-child {
    margin-top: 0;
}

.legal-box p {
    margin-bottom: 15px;
}

.legal-box ul {
    margin: 10px 0 15px 20px;
}

.legal-box li {
    margin-bottom: 8px;
}

.legal-box a {
    color: var(--color-primary);
    word-break: break-word;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .downloads-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-row-card {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .download-row-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .download-row-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 78px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 92px;
    }

    body {
        padding-top: var(--header-height);
    }

    .container {
        width: 94%;
    }

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: auto;
        gap: 12px;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .header-right {
        width: auto;
        flex: 0 0 auto;
        position: relative;
    }

    .logo {
        max-height: 56px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: 1px solid var(--color-border-strong);
        border-radius: 10px;
        background: #ffffff;
        color: var(--color-primary);
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .menu-toggle:hover {
        background: #f3f7fa;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: min(320px, 85vw);
        background: #ffffff;
        border: 1px solid #dfe7ee;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        z-index: 10000;
    }

    .header-nav.nav-open {
        display: flex;
    }

    .header-nav a {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }

    .contact-btn {
        text-align: center;
    }

    .hero,
    .info-box,
    .page-header,
    .widget-box {
        padding: 18px;
    }

    .downloads-hero {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .downloads-panel-head,
    .download-row-card,
    .downloads-empty-simple {
        padding-left: 18px;
        padding-right: 18px;
    }

    .location-buttons,
    .course-header-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .location-btn,
    .info-toggle-btn,
    .request-toggle-btn,
    .btn-primary-action,
    .btn-secondary-action {
        width: 100%;
        text-align: center;
    }

    .location-address-box,
    .coming-soon-box,
    .modal-box,
    .form-section-block,
    .homepage-highlight-box,
    .homepage-note-box,
    .homepage-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .homepage-hero {
        padding: 24px 18px;
    }

    .homepage-hero h2 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .modal-box {
        max-height: 88vh;
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .form-grid,
    .form-type-options,
    .homepage-card-grid {
        grid-template-columns: 1fr;
    }

    .choice-card-ui {
        min-height: 78px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-right a {
        margin: 0 8px;
    }
}

@media (max-width: 560px) {
    .download-row-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .download-row-icon {
        width: 56px;
        height: 56px;
    }

    .download-row-action {
        grid-column: auto;
        padding-left: 0;
        width: 100%;
    }

    .download-btn-simple {
        width: 100%;
        text-align: center;
    }

    .download-row-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-row-meta span {
        width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .modal-overlay {
        padding: 12px;
    }
}