/* rfu research GmbH – Main Stylesheet */
:root {
  --primary: #00005a;
  --primary-hover: #000080;
  --secondary: #234180;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #666666;
  --text: #919191;
  --border: #e0e0e0;
  --header-height: 90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main { flex: 1; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: georgia, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.1; }
h2 { font-size: 1.7rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
h4 { font-size: 1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.1rem; }
li > p { margin-bottom: 0.3rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 700; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1410px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ===== HERO (homepage) ===== */
.hero {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 480px;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 90, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero-content { color: var(--white); max-width: 820px; }
.hero-content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===== PAGE HERO ===== */
.page-hero {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sidebar-hero {
  margin-bottom: 1.5rem;
}
.sidebar-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== HOME INTRO ===== */
.home-intro { padding: 72px 0; }
.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-intro-text .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray);
}
.home-intro-text h2 { margin-bottom: 1.2rem; }

/* ===== SERVICES TEASER ===== */
.home-services { padding: 64px 0; background: var(--gray-light); }
.home-services > .container > h2 { text-align: center; margin-bottom: 2.5rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-top: 3px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,90,0.11);
}
.service-card h3 { margin-bottom: 0.8rem; font-size: 1rem; }
.service-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 1.2rem; }
.service-card .more-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

/* ===== DEFAULT PAGE ===== */
.page-content { padding: 48px 0; }
.content-body {
  display: flex;
  gap: 85px;
  align-items: flex-start;
}
.content-sidebar {
  width: 21%;
  flex-shrink: 0;
}
.content-main {
  width: 79%;
}
.content-main h2 { margin-top: 2.2rem; }
.content-main h3 { margin-top: 1.6rem; color: var(--primary); }
.content-main p + h2,
.content-main p + h3 { margin-top: 1rem; }
.content-main img { max-width: 100%; height: auto; margin: 1rem 0; }
.content-main a:hover { text-decoration: underline; }
.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:first-child { border-top: 1px solid var(--border); }
.sidebar-nav a { display: block; padding: 0.65rem 0.25rem; color: var(--text); text-decoration: none; }
.sidebar-nav a:hover { color: var(--primary); }
.sidebar-nav .is-active > a { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) {
  .content-body { flex-direction: column; gap: 1rem; }
  .content-body--reverse { flex-direction: column-reverse; gap: 1rem;  }
  .content-sidebar, .content-main { width: 100%; }
}

/* ===== CONTACT ===== */
.contact-section { padding: 64px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.4rem; }
.contact-info p { margin-bottom: 0.5rem; }
.contact-info .info-group { margin-bottom: 1.6rem; }
.contact-info .info-group strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin-bottom: 0.3rem; }

.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--primary); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { height: 140px; resize: vertical; }

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--white); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--primary);
}
.btn--outline:hover { background: var(--primary); color: var(--white); }

/* ===== WIDGETS ===== */
.voenix-widget {
  display: inline-flex;
  flex-direction: column;
  background: var(--white);
  border-top: 3px solid var(--primary);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 6px 6px;
  padding: 16px;
  gap: 8px;
  width: 225px;
  margin-top: 15px;
  margin-bottom: 30px;
}
.voenix-widget__logo {
  display: flex;
  justify-content: center;
}
.voenix-widget__logo img {
  display: block;
  max-width: 160px;
  height: auto;
  margin-bottom: 4px;
}
.voenix-widget iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ===== EMBEDDED IMAGE ===== */
.embedded-image {
  padding: 12px;
 
}

.embedded-image--card {
   background: var(--gray-light);
  /* border: 1px solid var(--border); */
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
}

@media (max-width: 768px) {
  .embedded-image--hide-mobile {
    display: none;
  }
}

/* ===== ACCESSIBILITY / SEO ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);  
}
.footer-inner {
  max-width: 1410px;
  margin: 0 auto;
  padding: 10px 50px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Mobile: copyright + links stacked left, LinkedIn right */
@media (max-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-areas:
      "copy linkedin"
      "links linkedin";
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 24px;
  }
  .footer-copy  { grid-area: copy; }
  .footer-links { grid-area: links; margin-right: 0; }
  .footer-linkedin { grid-area: linkedin; align-self: center; }
  main { min-height: calc(100dvh - var(--header-height)); }
}
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}
.footer-linkedin:hover { background: rgba(255,255,255,0.3); text-decoration: none; }
.footer-copy { font-size: 11px; flex: 1; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.footer-legal { display: flex; gap: 20px; list-style: none; flex: 0 0 auto; }
.footer-legal a { color: rgba(255,255,255,0.7); font-size: 0.84rem; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ===== ERROR PAGE ===== */
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-size: 6rem; margin-bottom: 0; opacity: 0.15; }
.error-page h2 { margin-bottom: 1rem; }
.error-page p { margin-bottom: 2rem; color: var(--gray); }

/* ===== MISC ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.img-fluid { max-width: 100%; height: auto; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .home-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 1224px) {
  .hero-content h1 { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }

  .container {
    max-width: 1410px;
    /* width: 95%; */
    margin: 0 auto;
    padding: 0 30px;
  }
}
