/* bitinspect – modernes Redesign */

@font-face {
  font-family: 'MuseoSans';
  src: url('../fonts/MuseoSans_300Web.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MuseoSans';
  src: url('../fonts/2EAB74_3_0.woff2') format('woff2'),
       url('../fonts/2EAB74_3_0.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MuseoSans';
  src: url('../fonts/MuseoSans_700Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #9d43b9;
  --accent-dark: #7d2f96;
  --accent-light: #f4ebf8;
  --accent-muted: rgba(157, 67, 185, 0.12);
  --text: #1c1c28;
  --text-muted: #5e5e72;
  --text-light: #8a8a9a;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-hero-overlay: rgba(28, 28, 40, 0.62);
  --border: #e6e8ee;
  --shadow-sm: 0 1px 3px rgba(28, 28, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 28, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(28, 28, 40, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1160px;
  --header-height: 72px;
  --space-section: clamp(4rem, 8vw, 7rem);
  --space-block: clamp(1.5rem, 3vw, 2.5rem);
  --font: 'MuseoSans', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececf0;
    --text-muted: #a8a8b8;
    --text-light: #787888;
    --bg: #16161e;
    --bg-alt: #1e1e28;
    --border: #2e2e3a;
    --accent-light: rgba(157, 67, 185, 0.18);
    --accent-muted: rgba(157, 67, 185, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
    --bg-hero-overlay: rgba(10, 10, 16, 0.75);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
strong, b {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

ul {
  list-style: none;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-dark {
  color: var(--text);
  font-weight: 500;
}

.logo-accent {
  color: var(--accent);
  font-weight: 300;
}

/* Layout */
.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(22, 22, 30, 0.92);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-header__tagline {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  background: var(--accent-muted);
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav__dropdown:hover .site-nav__dropdown-menu,
.site-nav__dropdown:focus-within .site-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__dropdown-menu a {
  padding: 0.625rem 1rem;
  white-space: nowrap;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  /* backdrop-filter erzeugt auf iOS/Safari einen Containing Block –
     position:fixed im Header würde sonst auf ~72px Höhe begrenzt. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--border);
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .site-nav__dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    display: none;
  }

  .site-nav__dropdown.is-open .site-nav__dropdown-menu {
    display: block;
  }

  .site-nav__dropdown > a::after {
    content: " ▾";
    font-size: 0.75em;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 65vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--accent) url("../../images/BitInspect_BG.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-hero-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  max-width: 720px;
}

.hero .logo {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero .logo-dark {
  color: #fff;
}

.hero__tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 300;
  opacity: 0.95;
  letter-spacing: 0.01em;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-block);
}

.feature-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition);
}

.section--alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* Intro text */
.intro {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.intro p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Anniversary block */
.anniversary {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.anniversary p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.anniversary p:last-child {
  margin-bottom: 0;
}

/* Portfolio cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-block);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card__list {
  flex: 1;
}

.card__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: auto;
}

.card__link::after {
  content: "→";
  transition: transform var(--transition);
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-block);
  max-width: 720px;
  margin-inline: auto;
}

.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.team-card__info p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

/* Membership */
.membership {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.membership__logo {
  padding: 1.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.membership__logo img {
  max-height: 80px;
  width: auto;
  margin-inline: auto;
}

.membership p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: var(--space-section);
}

.site-footer .section__title::after {
  margin-inline: 0 auto 0;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-light);
}

.site-footer__bottom a {
  color: var(--text-muted);
}

.site-footer__bottom a:hover {
  color: var(--accent);
}

/* Subpages */
.page-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 560px;
  margin-inline: auto;
}

.page-content {
  padding-block: var(--space-section);
}

.prose {
  max-width: 780px;
  margin-inline: auto;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-muted);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose b, .prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Process steps (subpages) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.process-step {
  padding: 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  padding: 1.25rem 1.5rem;
  background: var(--accent-muted);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  list-style-type: none;
}

/* Legacy mark classes */
mark.lila, .logo-accent { color: var(--accent); background: none; font-weight: 300; }
mark.black, .logo-dark { color: var(--text); background: none; font-weight: 500; }
