* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #243447;
    background-color: #f4f7fb;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    max-width: 1382px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-nav {
    position: relative;
    border-top: 16px solid #004d7d;
    padding: 25px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #d9e2ec;
    backdrop-filter: blur(10px);
}

.site-nav .container {
    padding-left: 0;
    padding-right: 0;
}

.nav-inner {
    min-height: 126px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #16324f;
    text-decoration: none;
}

.brand-link {
    transition: opacity 0.2s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
    opacity: 0.85;
}

.brand-text {
    white-space: nowrap;
}

.media-frame {
    position: relative;
    overflow: hidden;
}

.media-frame.is-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(22, 50, 79, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.media-frame.is-fallback::after {
    content: attr(data-fallback-label);
    color: rgba(22, 50, 79, 0.7);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-logo-frame {
    width: 400px;
    max-width: 100%;
    height: 100px;
    border-radius: 14px;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #16324f;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-contact-link:hover {
    color: #b9473b;
}

.nav-contact-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(20, 91, 135, 0.1);
    color: #145b87;
    flex-shrink: 0;
}

.nav-contact-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-contact-text {
    letter-spacing: 0.01em;
}

.nav-right {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.nav-toplinks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 17.92px;
}

.nav-toplinks li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav-toplinks li + li {
    margin-left: 16px;
}

.nav-toplinks a {
    color: #004d7d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-toplinks a:hover,
.nav-toplinks a:focus-visible {
    text-decoration: underline;
}

.nav-toplinks a > i {
    color: #004d7d;
    font-size: 12.8px;
    margin-right: 8px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: #35506b;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.nav-links a:hover,
.brand:hover {
    color: #b9473b;
}

.hero,
.page-hero {
    background: linear-gradient(135deg, #15324d 0%, #28557f 55%, #3f7baa 100%);
    color: white;
}

.hero {
    padding: 40px 0 40px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(270px, 0.72fr);
    gap: 42px;
    align-items: center;
}

.page-hero {
    padding: 72px 0 56px;
}

.hero-content,
.page-hero-content {
    max-width: 760px;
}

.hero-portrait-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(9, 26, 42, 0.2);
    max-width: 360px;
    justify-self: end;
}

.hero-portrait-frame {
    width: 100%;
    aspect-ratio: 5 / 6;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-portrait-frame.is-fallback::after {
    color: rgba(255, 255, 255, 0.88);
}

.hero-portrait-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 18%;
}

.hero-portrait-copy {
    margin-top: 16px;
}

.hero-portrait-name {
    color: #ffffff;
    font-size: 1.24rem;
    font-weight: 700;
}

.hero-portrait-role {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
}

.hero-kicker,
.page-kicker {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: 700;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.nowrap {
    white-space: nowrap;
    hyphens: none;
    -webkit-hyphens: none;
}

.hero p,
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #ffffff;
    color: #16324f;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

main {
    display: block;
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: #edf3f8;
}

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

.section-header-left {
    margin: 0 0 22px;
    text-align: left;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #16324f;
    margin-bottom: 5px;
    font-weight: 700;
}

.section-subtitle {
    color: #52667a;
    font-size: 1.04rem;
}

.intro-grid,
.contact-grid,
.footer-main {
    display: grid;
    gap: 28px;
}

.intro-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    align-items: start;
    margin-bottom: 48px;
}

.intro-copy p {
    color: #52667a;
    font-size: 1rem;
}

.welcome-quote {
    margin: 40px 0 0;
    padding: 22px 24px;
    border-left: 4px solid #b9473b;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(135deg, #f8fbfd 0%, #edf3f8 100%);
    box-shadow: 0 12px 28px rgba(17, 40, 63, 0.06);
}

.welcome-quote p {
    color: #16324f;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
}

.intro-links {
    margin-top: 22px;
}

.intro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #145b87;
    font-weight: 700;
    text-decoration: none;
}

.intro-link::after {
    content: '→';
    line-height: 1;
}

.intro-link:hover {
    color: #004d7d;
}

.feature-list-inline {
    margin-top: 24px;
}

.info-card,
.contact-card,
.testimonial-card,
.legal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(17, 40, 63, 0.08);
}

.info-card,
.contact-card,
.legal-content {
    padding: 30px;
}

.info-card h3,
.contact-card h3,
.testimonial-card h3,
.legal-block h2,
.legal-block h3 {
    color: #16324f;
}

.profile-overview-card {
    display: grid;
    gap: 22px;
}

.profile-portrait-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    background: #eef4f8;
}

.profile-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.profile-role {
    margin-top: 4px;
    color: #2e6d9b;
    font-weight: 700;
}

.profile-overview-head p {
    margin-top: 10px;
    color: #52667a;
}

.profile-entry-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-entry-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf3f8;
    color: #16324f;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 600;
}

.profile-group h4 {
    color: #16324f;
    font-size: 1rem;
    margin-bottom: 10px;
}

.profile-group + .profile-group {
    padding-top: 18px;
    border-top: 1px solid #dbe5ef;
}

.profile-group-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.profile-group-list li {
    color: #52667a;
    padding-left: 18px;
    position: relative;
}

.profile-group-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2e6d9b;
    position: absolute;
    left: 0;
    top: 10px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.feature-list li {
    color: #44596e;
    padding-left: 18px;
    position: relative;
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b9473b;
    position: absolute;
    left: 0;
    top: 10px;
}

.tiles-grid,
.testimonials-grid,
.footer-categories {
    display: grid;
    gap: 24px;
}

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

.tile {
    background: white;
    border-radius: 18px;
    padding: 26px;
    padding-bottom: 64px;
    text-decoration: none;
    color: #243447;
    box-shadow: 0 16px 40px rgba(17, 40, 63, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    position: relative;
    border-top: 4px solid #2e6d9b;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(17, 40, 63, 0.14);
}

.tile-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(20, 91, 135, 0.1);
    color: #145b87;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tile-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.tile:hover .tile-arrow {
    background: #145b87;
    color: #ffffff;
}

.tile:hover .tile-arrow svg {
    transform: translateX(2px);
}

.tile:focus-visible .tile-arrow {
    background: #145b87;
    color: #ffffff;
}

.tile h3 {
    color: #16324f;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tile p,
.testimonial-card p,
.download-info p,
.contact-list p,
.footer-category li,
.footer-column p,
.legal-block p,
.legal-block li {
    color: #52667a;
    font-size: 0.97rem;
}

.testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
}

.testimonials-grid .testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
}

.testimonial-card {
    padding: 18px;
    border-top: 4px solid #b9473b;
    display: flex;
    flex-direction: column;
}

.testimonial-logo-frame {
    width: 100%;
    max-width: 360px;
    height: 120px;
    border-radius: 12px;
    background: transparent;
    margin-bottom: 12px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.testimonial-role {
    color: #2e6d9b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-card h3 {
    margin-bottom: 1px;
    font-size: 1.15rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    white-space: pre-line;
}

.testimonial-card.is-expanded .testimonial-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.testimonial-toggle {
    align-self: flex-start;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2e6d9b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.testimonial-toggle:hover {
    color: #16324f;
}

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

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(17, 40, 63, 0.08);
    padding: 30px;
    margin-top: 28px;
}

.contact-form-card h3 {
    color: #16324f;
    margin-bottom: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #16324f;
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: #b9473b;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #243447;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2e6d9b;
    box-shadow: 0 0 0 3px rgba(46, 109, 155, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.captcha-input {
    flex: 1;
    max-width: 200px;
}

.captcha-image {
    height: 48px;
    width: auto;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    background: #f8fbfd;
    display: block;
}

.captcha-reload {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #dbe5ef;
    background: #ffffff;
    color: #2e6d9b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background-color .2s ease, color .2s ease;
}

.captcha-reload:hover,
.captcha-reload:focus-visible {
    background: #2e6d9b;
    color: #ffffff;
    outline: none;
}

/* Honeypot: fuer Menschen unsichtbar, fuer Bots formal vorhanden */
.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-consent {
    margin-top: 4px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #52667a;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #2e6d9b;
    cursor: pointer;
}

.consent-label a {
    color: #2e6d9b;
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 50, 79, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(22, 50, 79, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal[aria-hidden="false"] .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #dbe5ef;
}

.modal-header h2 {
    color: #16324f;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52667a;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #f4f7fb;
    color: #16324f;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 28px;
}

.modal-body p {
    color: #52667a;
    margin: 0;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #dbe5ef;
    display: flex;
    justify-content: flex-end;
}

.contact-list p + p {
    margin-top: 8px;
}

.contact-list a,
.footer-column a,
.legal-content a {
    color: #16324f;
    text-decoration: none;
}

.contact-list a:hover,
.footer-column a:hover,
.legal-content a:hover {
    color: #b9473b;
}

.downloads-section {
    display: grid;
    gap: 14px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #f8fbfd;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-item:hover {
    border-color: #abc3d6;
    transform: translateY(-1px);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: #2c5282;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.download-info {
    flex-grow: 1;
}

.download-info h4 {
    color: #16324f;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.download-btn {
    background: #2c5282;
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #16324f;
}

.site-footer {
    margin-top: 24px;
    background: #004d7d;
    color: #bcddf2;
}

.footer-categories-wrap {
    background: #145b87bb;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 34px 0 30px;
}

.footer-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-category h3 {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-category ul {
    list-style: none;
    display: grid;
    gap: 7px;
}

.footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 26px 20px 50px;
}

.footer-column h3 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-column {
    align-self: start;
}

.footer-column p + p {
    margin-top: 8px;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.84);
}

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

.footer-contact-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-contact-text p + p {
    margin-top: 2px;
}

.footer-category li,
.footer-category a,
.footer-category ul,
.footer-category {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-link-list {
    display: grid;
    gap: 8px;
}

.footer-social-list {
    display: grid;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.footer-social-link:hover {
    color: #ffffff;
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.footer-social-label {
    line-height: 1.3;
}

.content-page {
    padding: 56px 0 88px;
}

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

.legal-block + .legal-block {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid #dbe5ef;
}

.legal-block h2 {
    font-size: 1.55rem;
    margin-bottom: 16px;
}

.legal-block h3 {
    font-size: 1.1rem;
    margin: 18px 0 10px;
}

.legal-block h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 14px 0 6px;
    color: #16324f;
}

.legal-block p + p,
.legal-block ul + p,
.legal-block p + ul,
.legal-block ul + ul {
    margin-top: 12px;
}

.legal-block ul {
    padding-left: 18px;
}

.legal-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.legal-links-inline .btn-primary {
    background: #16324f;
    color: #ffffff;
}

.legal-links-inline .btn-secondary {
    background: transparent;
    color: #16324f;
    border: 1px solid #16324f;
}

@media (max-width: 992px) {
    .hero-layout,
    .intro-grid,
    .contact-grid,
    .footer-main,
    .footer-categories {
        grid-template-columns: 1fr;
    }

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

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

    .testimonials-grid .testimonial-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }

    .testimonial-card {
        height: auto;
    }

    .hero-portrait-card {
        justify-self: center;
        max-width: 360px;
        margin: 0 auto;
    }

    .nav-inner {
        min-height: 112px;
        gap: 22px;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        min-height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        padding: 16px 0;
        text-align: center;
    }

    .nav-toplinks {
        display: none;
    }

    .nav-right {
        width: auto;
        align-self: auto;
        align-items: center;
        gap: 0;
    }

    .brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .brand-logo-image {
        object-position: center center;
    }

    .hero {
        padding: 96px 0 76px;
    }

    .brand-logo-frame {
        width: 320px;
        max-width: 70vw;
        height: 82px;
    }

    .nav-contact-link {
        font-size: 1rem;
    }

    .nav-contact-icon {
        width: 36px;
        height: 36px;
    }

    .section {
        padding: 68px 0;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-btn {
        width: 100%;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero,
    .page-hero {
        padding: 80px 0 60px;
    }

    .hero h1,
    .page-hero h1,
    .intro-copy h1,
    .section-title {
        font-size: clamp(1.65rem, 7.5vw, 2rem);
        line-height: 1.2;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .hero-kicker,
    .page-kicker {
        font-size: 0.78rem;
    }

    .nav-inner {
        padding: 14px 0;
    }

    .brand {
        width: 100%;
    }

    .brand-logo-frame {
        width: 280px;
        max-width: 78vw;
        height: 72px;
    }

    .nav-contact-link {
        gap: 12px;
        font-size: 0.95rem;
    }

    .nav-contact-icon {
        width: 34px;
        height: 34px;
    }

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

    .brand-text {
        white-space: normal;
    }

    .info-card,
    .contact-card,
    .legal-content,
    .testimonial-card,
    .tile {
        padding: 22px;
    }

    .tile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tile-arrow {
        position: static;
        align-self: flex-end;
        margin-top: 4px;
    }

    .hero-actions,
    .legal-links-inline {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Subtle scroll reveal animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.reveal-left {
    transform: translate3d(-22px, 0, 0);
}

.reveal.reveal-right {
    transform: translate3d(22px, 0, 0);
}

.reveal.reveal-fade {
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Site nav: subtle elevation once user scrolls */
.site-nav {
    transition: box-shadow 300ms ease, background-color 300ms ease;
}

.site-nav.is-scrolled {
    box-shadow: 0 6px 24px -18px rgba(15, 35, 60, 0.35);
    background: rgba(255, 255, 255, 0.98);
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-left,
    .reveal.reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-nav {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

