/* -----------------------------------------------------------
   CSS RESET & NORMALIZATION
----------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary, 
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  line-height: 1.45;
  background: #FFF;
  color: #214478;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  word-break: break-word;
  position: relative;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #214478;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:focus {
  outline: 2px dashed #BA983C;
  outline-offset: 2px;
}

ul, ol {
  margin-left: 1.2em;
  padding-left: 0.6em;
}
li {
  margin-bottom: 0.4em;
}

strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}

/* -----------------------------------------------------------
   VARIABLES
----------------------------------------------------------- */
:root {
  --rm-primary: #214478;
  --rm-secondary: #BA983C;
  --rm-accent: #F5F5F5;
  --rm-bright1: #FAE956;
  --rm-bright2: #24C2E0;
  --rm-bright3: #FF7171;
  --rm-white: #FFF;
  --rm-black: #172133;
  --rm-shadow: 0 4px 16px rgba(33,68,120,0.09);
  --rm-radius: 24px;
}

/* -----------------------------------------------------------
   TYPOGRAPHY
----------------------------------------------------------- */
h1, h2, h3, .cta-button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--rm-primary);
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--rm-bright3);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rm-secondary);
  margin-bottom: 12px;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--rm-primary);
  font-weight: 600;
  margin-bottom: 12px;
}
p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--rm-black);
}

.text-section ul {
  margin-bottom: 16px;
}
.text-section li {
  margin-bottom: 6px;
}

.cta-link {
  font-weight: 700;
  color: var(--rm-bright2);
  text-decoration: underline;
  transition: color 0.2s;
}
.cta-link:hover {
  color: var(--rm-primary);
}

/* -----------------------------------------------------------
   GENERAL UTILITIES & CONTAINER
----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* -----------------------------------------------------------
   HEADER & NAVBAR STYLES
----------------------------------------------------------- */
header {
  width: 100%;
  background: var(--rm-accent);
  box-shadow: 0 1px 8px rgba(33,68,120, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0.6em 0;
}
.main-nav > a img {
  height: 40px;
  margin-right: 10px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.main-nav li {
  margin: 0;
}
.main-nav a:not(.cta-button) {
  color: var(--rm-primary);
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:not(.cta-button):hover,
.main-nav a:not(.cta-button):focus {
  background: var(--rm-bright1);
  color: #222;
}
.cta-button {
  background: var(--rm-bright2);
  color: var(--rm-white);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--rm-radius);
  border: none;
  box-shadow: 0 2px 10px rgba(36,194,224,0.15);
  text-align: center;
  transition: background 0.18s, transform 0.18s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}
.cta-button::after {
  content: '';
  position: absolute;
  left: -60%;
  top: 50%;
  width: 110%;
  height: 220%;
  background: rgba(255,255,255,0.14);
  transform: skew(30deg) translateY(-50%);
  filter: blur(2px);
  pointer-events: none;
  transition: left 0.36s;
  z-index: 0;
}
.cta-button:hover, .cta-button:focus {
  background: var(--rm-bright3);
  color: var(--rm-white);
  transform: translateY(-2px) scale(1.04) rotate(-0.5deg);
}
.cta-button:hover::after {
  left: 60%;
}

/* -----------------------------------------------------------
   MOBILE NAVIGATION
----------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--rm-bright3);
  color: var(--rm-white);
  font-size: 2rem;
  border: none;
  padding: 10px 16px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s, box-shadow 0.3s;
  z-index: 110;
}
.mobile-menu-toggle:focus {
  background: var(--rm-bright1);
  color: var(--rm-primary);
  outline: 2px solid var(--rm-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--rm-white);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.5,1.6,.4,.7);
  z-index: 120;
  box-shadow: 0 8px 40px rgba(33,68,120,0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--rm-bright3);
  align-self: flex-end;
  margin: 30px 24px 14px 0;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus {
  color: var(--rm-primary);
  outline: 2px solid var(--rm-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 38px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rm-primary);
  background: var(--rm-bright1);
  border-radius: 15px;
  padding: 16px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--rm-bright3);
  color: var(--rm-white);
}

@media (max-width: 1020px) {
  .main-nav ul {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 10px;
  }
}

@media (max-width: 880px) {
  .main-nav ul {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Hide default nav when mobile menu is open */
@media (max-width: 880px) {
  .mobile-menu {
    display: flex;
  }
}

/* -----------------------------------------------------------
   HERO SECTIONS
----------------------------------------------------------- */
.hero-section {
  background: var(--rm-bright1);
  background-image: url('../assets/hero-bg-dots.svg');
  background-repeat: repeat-x;
  background-position: bottom;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 48px 48px;
  border-bottom-right-radius: 48px 48px;
  box-shadow: 0 5px 16px rgba(250, 233, 86, 0.12);
  margin-bottom: 40px;
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section .content-wrapper {
  align-items: center;
  gap: 10px;
  text-align: center;
}
.hero-section h1 {
  font-size: 2.6rem;
  color: var(--rm-primary);
  margin-bottom: 0.25em;
}
.hero-section .lead {
  color: var(--rm-bright3);
  font-weight: 700;
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 160px;
    padding-bottom: 18px;
    border-bottom-left-radius: 24px 24px;
    border-bottom-right-radius: 24px 24px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
}

/* -----------------------------------------------------------
   FEATURE & SERVICE LISTING PANELS
----------------------------------------------------------- */
.features-section, .services-section, .services-overview, .about-section,
.team-section, .case-studies-section, .blog-list-section, .legal-section, .contact-section, .info-section, .thank-you-section {
  background: var(--rm-accent);
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid,
.service-list,
.team-list,
.service-card-grid,
.case-study-grid,
.blog-teasers,
.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > li,
.testimonial-card,
.service-card,
.service-item,
.team-member,
.case-study,
.blog-teaser {
  background: var(--rm-white);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(33,68,120,0.09);
  padding: 32px 26px 28px 26px;
  min-width: 230px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  will-change: transform;
}

.feature-grid > li:hover,
.service-card:hover,
.service-item:hover,
.blog-teaser:hover,
.team-member:hover,
.case-study:hover {
  box-shadow: 0 6px 32px rgba(255,113,113,0.13), 0 2px 14px rgba(33,68,120,0.09);
  transform: translateY(-8px) scale(1.02) rotateZ(-0.5deg);
}
.feature-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
}

.service-list {
  gap: 24px;
}
.service-item {
  min-width: 220px;
  flex: 1 1 320px;
}
.service-item h3 {
  color: var(--rm-bright3);
  margin-bottom: 10px;
}
.service-item strong {
  color: var(--rm-secondary);
}

.service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.service-card {
  min-width: 220px;
  flex: 1 1 320px;
}
.service-card h3 {
  color: var(--rm-bright2);
}
.service-card strong {
  color: var(--rm-secondary);
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  flex: 1 1 240px;
  min-width: 180px;
  padding-top: 20px;
}
.team-member img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.case-study-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study {
  background: var(--rm-bright1);
  color: var(--rm-primary);
}

.blog-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-teaser h3 {
  color: var(--rm-bright3);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .feature-grid, .service-list, .service-card-grid, .team-list, .case-study-grid, .blog-teasers {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > li, .service-card, .service-item, .team-member, .case-study, .blog-teaser {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* -----------------------------------------------------------
   TESTIMONIALS
----------------------------------------------------------- */
.testimonials-section {
  background: linear-gradient(95deg, var(--rm-bright2) 0 30%, var(--rm-bright1) 100%);
  border-radius: var(--rm-radius);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.testimonials-section h2 {
  color: var(--rm-white);
}

.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 24px 26px;
  background: var(--rm-accent);
  color: var(--rm-black);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(33,68,120,0.09);
  margin-bottom: 24px;
  min-width: 240px;
  flex: 1 1 340px;
  transition: box-shadow 0.2s, transform 0.2s;
  font-size: 1.06rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(186,152,60,0.13), 0 2px 8px rgba(33,68,120,0.09);
  transform: translateY(-6px) scale(1.025) rotateZ(0.5deg);
}
.testimonial-card p {
  color: var(--rm-black);
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: var(--rm-bright3);
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--rm-primary);
}

/* -----------------------------------------------------------
   CTA SECTION
----------------------------------------------------------- */
.cta-section {
  background: var(--rm-bright2);
  color: var(--rm-white);
  border-radius: var(--rm-radius);
  box-shadow: 0 2px 14px rgba(33,68,120,0.09);
  margin-bottom: 60px;
  padding: 40px 20px;
  text-align: center;
}
.cta-section h2 {
  color: var(--rm-bright1);
  font-size: 2.15rem;
}
.cta-section p {
  color: var(--rm-white);
  font-size: 1.12rem;
}
.cta-section .cta-button {
  margin-top: 12px;
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
  background: var(--rm-black);
  padding: 40px 0 20px 0;
  color: var(--rm-white);
  font-size: 0.98rem;
  box-shadow: 0 -2px 20px rgba(33,68,120, 0.06);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 70px;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--rm-white);
  padding: 6px 10px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--rm-bright3);
  color: var(--rm-white);
}
.footer-contact p {
  color: var(--rm-accent);
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  footer {
    padding: 28px 0 12px 0;
  }
  .footer-nav, .footer-contact {
    gap: 12px;
    font-size: 0.92rem;
  }
}

/* -----------------------------------------------------------
   COOKIE CONSENT BANNER
----------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--rm-bright1);
  color: var(--rm-black);
  padding: 24px 18px 18px 18px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  box-shadow: 0 -3px 36px rgba(33,68,120, 0.13);
  z-index: 200;
  transition: transform 0.33s,
    opacity 0.3s;
  transform: translateY(0);
  border-radius: 18px 18px 0 0;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin-bottom: 8px;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 10px 24px;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.22s;
}
.cookie-banner .cookie-accept {
  background: var(--rm-bright3);
  color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--rm-secondary);
  color: var(--rm-white);
}
.cookie-banner .cookie-reject {
  background: var(--rm-accent);
  color: var(--rm-primary);
  border: 2px solid var(--rm-primary);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--rm-primary);
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--rm-bright2);
  color: var(--rm-white);
}
.cookie-banner .cookie-settings:hover {
  background: var(--rm-secondary);
  color: var(--rm-white);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 201;
  width: 100vw;
  height: 100dvh;
  background: rgba(22,43,80,0.34);
  justify-content: center;
  align-items: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInCookieModal 0.32s cubic-bezier(.65,.24,.42,1) both;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--rm-white);
  border-radius: 24px;
  box-shadow: 0 2px 36px rgba(33,68,120, 0.17);
  padding: 34px 28px;
  width: 90vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popInCookieModal 0.26s cubic-bezier(.65,.24,.42,1) both;
}
@keyframes popInCookieModal {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  color: var(--rm-bright2);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
  font-size: 1.15rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-modal-content .cookie-switch {
  width: 36px;
  height: 18px;
  background: var(--rm-accent);
  border-radius: 9px;
  position: relative;
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--rm-secondary);
}
.cookie-modal-content .cookie-switch[data-checked="true"] {
  background: var(--rm-bright3);
}
.cookie-modal-content .cookie-switch-circle {
  width: 17px;
  height: 17px;
  background: var(--rm-white);
  border-radius: 50%;
  position: absolute;
  left: 0.5px;
  top: 0.5px;
  transition: transform 0.22s;
  box-shadow: 0 1px 2px rgba(33,68,120,0.10);
}
.cookie-modal-content .cookie-switch[data-checked="true"] .cookie-switch-circle {
  transform: translateX(18px);
}
.cookie-modal-content .cookie-switch[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
.cookie-modal-content .cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 11px;
  background: none;
  border: none;
  color: var(--rm-bright3);
  font-size: 1.3rem;
  cursor: pointer;
}
.cookie-modal-close:focus {
  color: var(--rm-secondary);
  outline: 2px solid var(--rm-bright2);
}

/* -----------------------------------------------------------
   OTHER LAYOUT CLASSES FROM MANDATE
----------------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 17px;
  background: var(--rm-accent);
  box-shadow: var(--rm-shadow);
  padding: 24px;
}

/* spacing for pages with .section, .content-grid, .testimonial-card, .feature-item already handled above */

/* -----------------------------------------------------------
   RESPONSIVE DESIGN
----------------------------------------------------------- */
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .section, .features-section, .services-section, .about-section, .contact-section,
  .services-overview, .case-studies-section, .team-section, .legal-section, .thank-you-section, .info-section {
    padding: 22px 4vw 22px 4vw;
    border-radius: 11px;
  }
  .card, .testimonial-card, .service-item, .feature-grid > li,
  .service-card, .team-member, .case-study, .blog-teaser {
    padding: 18px 9px 19px 9px;
  }
  .hero-section, .cta-section {
    padding: 16px 0 8px 0;
    min-height: 90px;
    border-bottom-left-radius: 12px 12px;
    border-bottom-right-radius: 12px 12px;
  }
  .footer-contact, .footer-nav {
    flex-direction: column;
    gap: 6px;
    font-size: 0.90rem;
  }
  .blog-teasers, .service-card-grid, .feature-grid, .testimonial-slider, .testimonial-list, .team-list, .case-study-grid {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* -----------------------------------------------------------
   MICRO-INTERACTIONS & ANIMATIONS
----------------------------------------------------------- */

/* Fun bouncy button effect */
.cta-button:active {
  transform: scale(0.96) rotate(-1deg);
  box-shadow: 0 1px 3px #21447844;
}

/* Card hover fun up-down bounce */
@media (hover: hover) {
  .feature-grid > li:hover, .service-card:hover, .testimonial-card:hover, .team-member:hover, .blog-teaser:hover {
    animation: funcard-bounce 0.16s cubic-bezier(.44,1.7,.4,1) 1;
  }
}
@keyframes funcard-bounce {
  0% { transform: translateY(0) scale(1) rotateZ(0deg); }
  65% { transform: translateY(-5px) scale(1.02) rotateZ(-1deg); }
  100% { transform: translateY(-8px) scale(1.027) rotateZ(-0.7deg); }
}

/* Slight fade-in for major sections */
.section, .features-section, .services-section, .about-section,
.team-section, .case-studies-section, .blog-list-section, .legal-section, .contact-section, .info-section, .thank-you-section {
  opacity: 0;
  animation: fadeInSection 0.98s cubic-bezier(.44,1.7,.4,1) forwards;
  animation-delay: 0.15s;
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(64px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------
   MISCELLANEOUS (TABLES, CODE)
----------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.98rem;
  margin-bottom: 18px;
}
th, td {
  padding: 8px 11px;
  border: 1px solid var(--rm-accent);
}

pre, code {
  background: var(--rm-accent);
  font-size: 1em;
  padding: 3px 7px;
  border-radius: 6px;
}

/* -----------------------------------------------------------
   FORM ELEMENTS (Kontaktseite Placeholders)
----------------------------------------------------------- */
input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1.7px solid var(--rm-bright2);
  outline: none;
  margin-bottom: 12px;
  background: var(--rm-white);
  transition: border 0.18s, box-shadow 0.21s;
  box-shadow: 0 1px 5px rgba(33,68,120,0.03);
}
input:focus, textarea:focus {
  border: 1.9px solid var(--rm-bright3);
  box-shadow: 0 3px 12px rgba(255,113,113,0.10);
}
label {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--rm-primary);
}

/* -----------------------------------------------------------
   ACCESSIBILITY
----------------------------------------------------------- */
[tabindex]:focus,
button:focus,
a:focus {
  outline: 2px dashed var(--rm-secondary);
}

/* -----------------------------------------------------------
   PRINT ADAPTATION (optional)
----------------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body {
    color: #111;
    background: #fff;
  }
}
