/* ===============================
   Self-hosted font (place files in /fonts)
   =============================== */
   @font-face {
    font-family: "Questrial";
    src:
      url("fonts/Questrial-Regular.woff2") format("woff2"),
      url("fonts/Questrial-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  /* ===============================
     Theme
     =============================== */
  :root {
    --bg-dark: #1b2735;
    --bg-darker: #090a0f;
    --panel: rgba(55, 64, 73, 0.9);
    --accent: #446e90;
    --accent-soft: rgba(159, 202, 235, 0.7);
  
    --text: #ffffff;
    --muted: #d6dde6;
  
    --header-height: 72px;
  
    --radius: 18px;
    --shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  }
  
  /* ===============================
     Base
     =============================== */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html { scroll-behavior: smooth; }
  
  body {
    min-height: 100vh;
    font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(ellipse at bottom, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
  }
  
  a { 
    color: var(--accent-soft); 
    text-decoration: none; 
  }
  
  /* ===============================
     DNA Background (A/C/G/T)
     =============================== */
  #nucleotides {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    z-index: 0;
  }
  
  .nucleotide {
    position: absolute;
    color: #9b9a9a;
    text-shadow: 0 0 4px rgba(229,228,228,0.9);
    animation-name: animNuc;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
    transform: translateZ(0);
  }
  
  .layer1 { font-size: 9px;  opacity: 0.45; }
  .layer2 { font-size: 12px; opacity: 0.65; }
  .layer3 { font-size: 16px; opacity: 0.80; text-shadow: 0 0 6px rgb(229, 228, 228); }
  
  @keyframes animNuc {
    from { transform: translateY(0); }
    to   { transform: translateY(-220vh); }
  }
  
  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nucleotide { animation: none !important; }
    #title h1, #title p { transition: none !important; }
  }
  
  /* ===============================
     Header + Nav
     =============================== */
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 10;
  
    /* blends into the animated background */
    background: linear-gradient(
      to bottom,
      rgba(27, 39, 53, 0.9),
      rgba(27, 39, 53, 0.6),
      rgba(9, 10, 15, 0)
    );
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  
  .header-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 11;
  }
  
  .logo-mark {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .nav a {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease-out;
  }
  
  .nav a:hover::after,
  .nav a:focus-visible::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(9, 10, 15, 0.35);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
  }
  
  .menu-toggle-line,
  .menu-toggle-line::before,
  .menu-toggle-line::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .menu-toggle-line::before { transform: translateY(-6px); }
  .menu-toggle-line::after  { transform: translateY(4px); }
  
  .menu-open .menu-toggle-line { transform: rotate(45deg); }
  .menu-open .menu-toggle-line::before { transform: rotate(-90deg); }
  .menu-open .menu-toggle-line::after { opacity: 0; }
  
  @media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
  
    .nav {
      position: fixed;
      inset: var(--header-height) 0 auto 0;
      background: rgba(9,10,15,0.9);
      flex-direction: column;
      padding: 16px;
      gap: 12px;
  
      transform: translateY(-120%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.2s ease, opacity 0.2s ease;
      z-index: 9;
    }
  
    .nav.nav-open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  }
  
  /* ===============================
     Main stacking over background
     =============================== */
  main { position: relative; z-index: 1; }
  
  /* Offset anchors for fixed header */
  section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
  
  /* ===============================
     Hero
     =============================== */
  .hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 56px;
  }
  
  .hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 16px;
  }
  
  #title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #title h1 {
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: clamp(24px, 4vw, 40px);
    margin: 0 0 0.7rem;
  }
  
  #title p {
    margin: 0;
    max-width: 600px;
    font-size: clamp(18px, 2.6vw, 28px);
    color: var(--muted);
  }
  
  #title h1,
  #title p {
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent blur during transitions */
    -webkit-font-smoothing: antialiased; /* Better text rendering on iOS */
    text-rendering: optimizeLegibility;
  }
  
  .hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
      box-shadow 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  }
  
  .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
  }
  
  .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
  }
  
  /* ===============================
     Bands + Cards
     =============================== */
  .band {
    background: var(--accent);
    color: #fff;
    padding: 40px 16px 56px;
  }
  
  .band--dark { background: #374049; }
  
  .band-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .band-heading {
    font-size: clamp(26px, 3vw, 36px);
    text-align: center;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  
  .band-text {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .band-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
  }
  
  @media (max-width: 900px) {
    .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  
  @media (max-width: 600px) {
    .band-grid { grid-template-columns: 1fr; }
  }
  
  .band-card {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  
    /* default: left aligned (important for full-width cards too) */
    text-align: left;
    overflow: hidden;
  }
  
  /* Inner spacing for normal cards (text area) */
  .band-card > h3,
  .band-card > p,
  .band-card > ul {
    padding: 0 18px;
  }
  
  .band-card > h3 {
    font-size: 1.25rem;
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  
  .band-card > p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e7f0;
    margin: 0 0 22px;
  }
  
  /* Lists inside cards */
  .band-card ul.list {
    padding: 0 18px 22px;
    margin: 0;
    list-style: disc;
    color: #e2e7f0;
    line-height: 1.5;
  }
  
  .band-card ul.list li { margin-left: 18px; }
  
  /* spacing between stacked full-width cards */
  .band-card--full + .band-card--full {
    margin-top: 24px;
  }

  /* === Card image: SAME SIZE across the 3 cards (CONSULTING reference) ===
     1536×1024 = 3:2 */
  .card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* ensures identical visible sizing across cards */
  }
  
  /* Full-width cards */
  .band-card--full {
    grid-column: 1 / -1;
    text-align: left;
  }
  
  /* Optional: if you add an image to a full-width card, use this layout:
     <div class="full-card-grid">
       <div class="full-card-media"><img ...></div>
       <div class="full-card-content">...</div>
     </div>
  */
  .full-card-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    padding: 22px;
    align-items: start;
  }
  
  .full-card-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }
  
  .full-card-content h3,
  .full-card-content p,
  .full-card-content ul {
    padding: 0; /* content already padded by .full-card-grid */
  }
  
  @media (max-width: 768px) {
    .full-card-grid { grid-template-columns: 1fr; }
    .full-card-media { max-width: 320px; }
  }
  
/* Full-width profile cards: image left, text left */
.band-card--profile {
  padding: 22px;
  text-align: left;
}

.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.profile-image {
  justify-self: center;
  width: 260px;
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* Full-width profile images: force square (1:1) */
.band-card--profile .profile-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.band-card--profile .profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.profile-content {
  text-align: left;
}

/* Make sure list renders nicely */
.profile-content .list {
  margin: 0;
  padding-left: 18px;   /* keeps bullets aligned */
  line-height: 1.5;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    max-width: 320px;
    justify-self: center;
  }
}

  /* ===============================
     Testimonials
     =============================== */
  .testimonial-card {
    padding: 18px 18px 22px;
  }
  
  .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e7f0;
  }
  .testimonial-author img { vertical-align: middle; }

  .contact-address {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: #e2e7f0;
    line-height: 1.6;
  }
  
  .contact-address p { margin: 0; }
  
  /* ===============================
     Footer
     =============================== */
  .site-footer {
    position: relative;
    z-index: 2;
    background: #232a31;
    color: #fff;
    padding: 32px 16px 40px;
  }
  
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
  
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
  }
  
  .footer-logo-mark {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
  }
  
  .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.9rem;
  }
  
  .footer-menu a {
    position: relative;
    padding-bottom: 2px;
  }
  
  .footer-menu a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.2s ease;
  }
  
  .footer-menu a:hover::after { width: 100%; }
  
  @media (max-width: 640px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
  }
  
/* --- About box meta blocks (Further profiles / Member of) --- */
.meta-block {
  margin-top: 12px;          /* ↓ was 16px */
  padding-top: 10px;         /* ↓ was 14px */
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.35;         /* ↓ tighter line spacing */
}

.meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px;                  /* ↓ was 12px */
  align-items: start;
  margin-top: 6px;           /* ↓ was 10px */
}


.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.72);
}

.meta-items2 .meta-link2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--accent-soft);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  display: inline;
}

.meta-items--logos { gap: 10px; }

.meta-link {
  color: var(--accent-soft);
  text-decoration: none;
}

.meta-link:hover,
.meta-link:focus-visible {
  color: var(--accent);
}

.meta-link2 {
  color: var(--accent-soft);
  text-decoration: none;
}

.meta-link2:hover,
.meta-link2:focus-visible {
  color: var(--accent);
}

.meta-sep {
  color: rgba(255,255,255,0.35);
}

.meta-logo img {
  display: block;
  border-radius: 6px;
}

.meta-note {
  color: rgba(255,255,255,0.72);
}

/* Mobile: stack label above content */
@media (max-width: 600px) {
  .meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --- Contact layout: address + keywords column --- */
.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.contact-address {
  text-align: left;
  color: #e2e7f0;
  line-height: 1.6;
}

.contact-line { margin: 0; }
.contact-gap { height: 12px; }

/* Impressum content - same text style as contact-address but full width */
.impressum-content {
  width: 100%;
  text-align: left;
  color: #e2e7f0;
  line-height: 1.6;
}

.impressum-content p,
.impressum-content h4,
.impressum-content ul,
.impressum-content ol,
.impressum-content li {
  color: #e2e7f0;
  line-height: 1.6;
}

.impressum-content p {
  margin: 0 0 1em 0;
}

.impressum-content h4 {
  margin: 1.5em 0 0.5em 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.impressum-content ul,
.impressum-content ol {
  margin: 0.5em 0 1em 0;
  padding-left: 1.5em;
}

.impressum-content li {
  margin: 0.5em 0;
}

.contact-keywords {
  text-align: left;
  color: rgba(255,255,255,0.60);
  font-size: 0.88rem;
  line-height: 1.55;

  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.14);
}

/* Mobile: stack columns */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-keywords {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 14px;
  }
}

/* Global link hover color */
a:hover,
a:focus-visible {
  color: var(--accent); /* blue */
}

