* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #1D261F;
  color: var(--jomiva-cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: center;
  padding: 48px 24px 24px;
}

.logo {
  width: 260px;
  max-width: 80vw;
  height: auto;
}

main {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.intro {
  text-align: center;
  margin-bottom: 48px;
}

.intro h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--jomiva-cream);
}

.intro p {
  color: #D8CCC0;
  margin: 0;
  font-size: 1.05rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: #29332B;
  border: 1px solid #495247;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:has(a):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
}

.project-card .project-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  align-self: flex-start;
}

.project-card.centered {
  align-items: center;
  text-align: center;
}

.project-card.centered .project-icon,
.project-card.centered .card-link {
  align-self: center;
}

.project-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--jomiva-cream);
}

.project-card p {
  margin: 0;
  color: var(--jomiva-cream);
  opacity: 0.75;
  flex: 1;
}

.project-card .card-link {
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--jomiva-sage);
  color: var(--jomiva-weiss);
}

.project-card .card-link.disabled {
  background: #D8CCC0;
  color: #1D261F;
  cursor: default;
  pointer-events: none;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: #D8CCC0;
  font-size: 0.85rem;
}

/* Metallic logo depth */
.logo { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }

/* Footer navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 8px;
}

.site-footer a {
  color: #D8CCC0;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--jomiva-cream);
  text-decoration: underline;
}

/* Legal pages (Impressum, Datenschutz) */
.legal {
  max-width: 720px;
  line-height: 1.6;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 24px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 32px 0 8px;
}

.legal p {
  margin: 0 0 12px;
  color: #D8CCC0;
}

.legal a {
  color: var(--jomiva-cream);
}
