@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

/* ── Black canvas ─────────────────────────── */

body {
  margin: 0;
  padding: 32px 16px;
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Wrapper box ──────────────────────────── */

#wrapper {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  background-color: #080810;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('pics/rnet-background.jpg');
  background-size: cover;
  background-position: center;
}

/* ── Header ───────────────────────────────── */

#site-header {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 50px;
  background-color: #aaaadd;
  background-image: url('pics/rnet-header.jpg');
  background-size: 100% 100%;
  border-bottom: 1px solid rgba(238, 238, 255, 0.4);
}

.site-brand {
  font-family: 'JetBrains Mono', 'Lucida Console', monospace;
  font-size: 15px;
  color: #ddddee;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ── Main content ─────────────────────────── */

#content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  padding: 56px 48px;
}

/* ── Cards ────────────────────────────────── */

.card {
  position: relative;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  padding: 48px 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Unsichtbares Vollflächen-Overlay für Karten-Link */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.65);
}

#card-christina::before,
#card-martin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

#card-christina::before {
  background-color: #00784f;
}

#card-martin::before {
  background-color: #800080;
}

/* Logo — <a> als Slot-Container, beide gleich hoch, unten alignt */

.card > a:not(.card-link) {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 101px;
  margin-bottom: 28px;
}

.card-logo {
  display: block;
  object-fit: contain;
}

/* Christina: 40% größer als Basis (72 × 1.4 ≈ 101px) */
#card-christina .card-logo {
  height: 101px;
  width: auto;
  max-width: 294px;
}

/* digitstudios: natürliche Größe, am unteren Ende des Slots */
#card-martin .card-logo {
  height: auto;
  max-height: 72px;
  width: auto;
  max-width: 210px;
}

/* Name */

.card h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.4;
}

/* Tagline */

.tagline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* Divider */

.divider {
  width: 32px;
  height: 1px;
  background-color: #ddd;
  margin-bottom: 24px;
}

#card-martin .divider {
  background-color: #800080;
  opacity: 0.35;
}

/* Contact — über dem Overlay, damit Links klickbar bleiben */

.contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
}

.contact-link {
  font-size: 12px;
  font-weight: 300;
  color: #444;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #991188;
}

.site-link {
  color: #666;
}

/* ── Footer ───────────────────────────────── */

#site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 16px 5px;
  height: 36px;
  background-image: url('pics/rnet-footer.jpg');
  background-size: 100% 100%;
  border-top: 1px solid rgba(238, 238, 255, 0.3);
  opacity: 0.7;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 640px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  #wrapper {
    max-width: 100%;
  }
  #content {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 24px;
  }
  .card {
    width: 100%;
    max-width: 400px;
    padding: 36px 28px 32px;
  }
  #site-header {
    justify-content: center;
    height: 40px;
  }
  #site-footer {
    height: 30px;
  }
}
